Fix loading extension in console
This commit is contained in:
@@ -8,7 +8,7 @@ class backend {
|
||||
|
||||
function __construct() {
|
||||
|
||||
$this->USER = $_SERVER['SCRIPT_FILENAME'];
|
||||
$this->USER = (array_key_exists('PWD',$_SERVER) && is_dir($_SERVER['PWD'])) ? $_SERVER['PWD'] : $_SERVER['SCRIPT_FILENAME'];
|
||||
$this->USER = str_replace('/home', '', $this->USER);
|
||||
$this->USER = strtok($this->USER, '/');
|
||||
if ($this->USER == 'opt') {
|
||||
|
||||
Reference in New Issue
Block a user