diff --git a/web/zm.php b/web/zm.php index 914938c9a..4abc151e8 100644 --- a/web/zm.php +++ b/web/zm.php @@ -4,10 +4,10 @@ include_once( 'browser.php' ); import_request_variables( "GPC" ); -$DB_SERVER = "localhost"; // Database Server machine -$DB_LOGIN = "root"; // Database login -$DB_PASSWORD = ""; // Database password -$DB = "polycam"; // Database containing the tables +$DB_SERVER = "localhost"; // Database Server machine +$DB_NAME = "polycam"; // Database containing the tables +$DB_USER = "root"; // Database login +$DB_PASS = ""; // Database password define( "MAX_EVENTS", 12 ); @@ -64,8 +64,8 @@ else define( "IMAGE_SCALING", 4 ); } -$conn = mysql_connect("$DB_SERVER", "$DB_LOGIN", "$DB_PASSWORD") or die("Could not connect to DB: ".mysql_error()); -mysql_select_db("$DB", $conn) or die("Could not select DB: ".mysql_error()); +$conn = mysql_connect("$DB_SERVER", "$DB_USER", "$DB_PASS") or die("Could not connect to database: ".mysql_error()); +mysql_select_db("$DB_NAME", $conn) or die("Could not select database: ".mysql_error()); if ( $action ) { @@ -136,7 +136,7 @@ if ( $view == "console" ) ZM - Console - +