diff options
-rw-r--r-- | README.md | 6 | ||||
-rw-r--r-- | endpoints/lib/auth/MySQL.php | 23 |
2 files changed, 14 insertions, 15 deletions
@@ -20,13 +20,11 @@ possession. 1) Download zip file from GitHub project site: https://github.com/phpvirtualbox/phpvirtualbox/archive/master.zip -2) Unzip zipfile into /usr/share/phpvirtualbox +2) Unzip the zipfile into a folder accessible by your web server 3) Rename config.php-example to config.php and edit as needed. -4) Move phpvirtualbox.conf into /etc/apache2/conf-available/ * NB: The default config file makes phpvirtualbox only accessible from the localhost for security reasons. - -5) Run `a2enconf phpvirtualbox` and `service apache2 reload` +Read the wiki for more information : https://github.com/phpvirtualbox/phpvirtualbox/wiki # Post installation diff --git a/endpoints/lib/auth/MySQL.php b/endpoints/lib/auth/MySQL.php index c23346c..bf7caf6 100644 --- a/endpoints/lib/auth/MySQL.php +++ b/endpoints/lib/auth/MySQL.php @@ -21,17 +21,18 @@ */ - /** - struct of db: - CREATE TABLE users( - username VARCHAR(20) PRIMARY KEY, - password VARCHAR(40), - admin ENUM('0','1') DEFAULT '0' - )ENGINE=InnoDB; - - INSERT INTO users(username,password,admin) - VALUES("admin","$1$65CMtT1M$GSDBTEZ6o5Web.4cDL6rz1",'1'); /*user:admin, pass:admin*/ - +/** + * struct of db: + * CREATE TABLE users( + * username VARCHAR(20) PRIMARY KEY, + * password VARCHAR(40), + * admin ENUM('0','1') DEFAULT '0' + * )ENGINE=InnoDB; + * + * user:admin, pass:admin + * INSERT INTO users(username,password,admin) + * VALUES("admin","$1$65CMtT1M$GSDBTEZ6o5Web.4cDL6rz1",'1') + * */ class phpvbAuthMySQL implements phpvbAuth { |