*added option for requiringing basic auth - only use over HTTPS and still not particularly secure //succeeds if function returns true, fails if false $authorized = $this->require_basic_auth(function($uname, $pass){ 	return $uname == 'paul'; });
*added option for requiringing basic auth - only use over HTTPS and still not particularly secure
//succeeds if function returns true, fails if false
$authorized = $this->require_basic_auth(function($uname, $pass){
	return $uname == 'paul';
});

if($authorized){
	die('in');
}

die('out');

surebert/surebert-framework,surebert/webapp-basic,surebert/webapp-basic