summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.gitignore1
-rw-r--r--CHANGELOG.txt5
-rw-r--r--endpoints/api.php2
-rw-r--r--endpoints/lib/auth/Builtin.php5
-rw-r--r--endpoints/lib/config.php2
5 files changed, 11 insertions, 4 deletions
diff --git a/.gitignore b/.gitignore
index 13fc44a..141c8a9 100644
--- a/.gitignore
+++ b/.gitignore
@@ -2,3 +2,4 @@
/.buildpath
/.project
/config.php
+/phpinfo.php
diff --git a/CHANGELOG.txt b/CHANGELOG.txt
index 3439b3e..7e05745 100644
--- a/CHANGELOG.txt
+++ b/CHANGELOG.txt
@@ -1,4 +1,9 @@
-------------------------------------
+ 5.0-5 2016-01-08
+-------------------------------------
+PHP 7 support
+
+-------------------------------------
5.0-4 2015-12-07
-------------------------------------
Fixed bug in file / folder browser when $browserRestrictFolders is
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']));
diff --git a/endpoints/lib/config.php b/endpoints/lib/config.php
index 2c0c3b1..4c4fe2c 100644
--- a/endpoints/lib/config.php
+++ b/endpoints/lib/config.php
@@ -14,7 +14,7 @@
/*
* This version of phpVirtualBox
*/
-define('PHPVBOX_VER', '5.0-4');
+define('PHPVBOX_VER', '5.0-5');
class phpVBoxConfigClass {