diff options
-rw-r--r-- | .gitignore | 1 | ||||
-rw-r--r-- | CHANGELOG.txt | 1 | ||||
-rw-r--r-- | endpoints/api.php | 2 | ||||
-rw-r--r-- | endpoints/lib/auth/Builtin.php | 5 |
4 files changed, 6 insertions, 3 deletions
@@ -2,3 +2,4 @@ /.buildpath /.project /config.php +/phpinfo.php diff --git a/CHANGELOG.txt b/CHANGELOG.txt index d3a978d..d6f9393 100644 --- a/CHANGELOG.txt +++ b/CHANGELOG.txt @@ -1,6 +1,7 @@ -------------------------------------
5.0-5
-------------------------------------
+PHP 7 support
-------------------------------------
5.0-4 2015-12-07
diff --git a/endpoints/api.php b/endpoints/api.php index 8abd6e9..b6d768e 100644 --- a/endpoints/api.php +++ b/endpoints/api.php @@ -313,7 +313,7 @@ try { /*
* Call to vboxconnector
*/
- $vbox->$request['fn']($request['params'],array(&$response));
+ $vbox->{$request['fn']}($request['params'],array(&$response));
/*
diff --git a/endpoints/lib/auth/Builtin.php b/endpoints/lib/auth/Builtin.php index 30e5a82..fea93ab 100644 --- a/endpoints/lib/auth/Builtin.php +++ b/endpoints/lib/auth/Builtin.php @@ -167,7 +167,8 @@ class phpvbAuthBuiltin implements phpvbAuth { global $_SESSION; // Must be an admin - if(!$_SESSION['admin']) break; + if(!$_SESSION['admin']) + return; // Use main / auth server $vbox = new vboxconnector(true); @@ -175,7 +176,7 @@ class phpvbAuthBuiltin implements phpvbAuth { // See if it exists if(!$skipExistCheck && $vbox->vbox->getExtraData('phpvb/users/'.$vboxRequest['u'].'/pass')) - break; + return; if($vboxRequest['p']) $vbox->vbox->setExtraData('phpvb/users/'.$vboxRequest['u'].'/pass', hash('sha512', $vboxRequest['p'])); |