Loading auth.php +2 −4 Original line number Diff line number Diff line Loading @@ -186,9 +186,8 @@ class Auth { * HTTP basic auth mechanism * @return bool * @param $func callback * @param $halt bool **/ function basic($func=NULL,$halt=TRUE) { function basic($func=NULL) { $fw=Base::instance(); $realm=$fw->get('REALM'); if (isset($_SERVER['HTTP_AUTHORIZATION'])) Loading @@ -206,8 +205,7 @@ class Auth { return TRUE; if (PHP_SAPI!='cli') header('WWW-Authenticate: Basic realm="'.$realm.'"'); if ($halt) $fw->error(401); $fw->status(401); return FALSE; } Loading base.php +2 −1 Original line number Diff line number Diff line Loading @@ -908,6 +908,7 @@ final class Base { ($src.$line)).$eol; } $this->hive['ERROR']=array( 'status'=>$header, 'code'=>$code, 'text'=>$text, 'trace'=>$trace Loading Loading @@ -1520,7 +1521,7 @@ final class Base { 'AJAX'=>isset($headers['X-Requested-With']) && $headers['X-Requested-With']=='XMLHttpRequest', 'AUTOLOAD'=>'./', 'BAIL'=>FALSE, 'BAIL'=>TRUE, 'BASE'=>$base, 'BODY'=>file_get_contents('php://input'), 'CACHE'=>FALSE, Loading Loading
auth.php +2 −4 Original line number Diff line number Diff line Loading @@ -186,9 +186,8 @@ class Auth { * HTTP basic auth mechanism * @return bool * @param $func callback * @param $halt bool **/ function basic($func=NULL,$halt=TRUE) { function basic($func=NULL) { $fw=Base::instance(); $realm=$fw->get('REALM'); if (isset($_SERVER['HTTP_AUTHORIZATION'])) Loading @@ -206,8 +205,7 @@ class Auth { return TRUE; if (PHP_SAPI!='cli') header('WWW-Authenticate: Basic realm="'.$realm.'"'); if ($halt) $fw->error(401); $fw->status(401); return FALSE; } Loading
base.php +2 −1 Original line number Diff line number Diff line Loading @@ -908,6 +908,7 @@ final class Base { ($src.$line)).$eol; } $this->hive['ERROR']=array( 'status'=>$header, 'code'=>$code, 'text'=>$text, 'trace'=>$trace Loading Loading @@ -1520,7 +1521,7 @@ final class Base { 'AJAX'=>isset($headers['X-Requested-With']) && $headers['X-Requested-With']=='XMLHttpRequest', 'AUTOLOAD'=>'./', 'BAIL'=>FALSE, 'BAIL'=>TRUE, 'BASE'=>$base, 'BODY'=>file_get_contents('php://input'), 'CACHE'=>FALSE, Loading