diff --git a/src/server/cyberhex-code/install/create_db.php b/src/server/cyberhex-code/install/create_db.php index d19ecfd..7319bac 100644 --- a/src/server/cyberhex-code/install/create_db.php +++ b/src/server/cyberhex-code/install/create_db.php @@ -1,30 +1,34 @@ - - - - Cyberhex Installation - + + + + Cyberhex login page -

We are creating the databases used in cyberhex, please stand by

-
If the creation fails, please wait a minute and try again. The database server might still be starting at the time.

+ +
+
+
+
+
+

We are creating the databases used in cyberhex, please stand by

+
+
+

If the creation fails, please wait a minute and try again. The database server might still be starting at the time.

+
+
+
+
+
+
+ + + + + + connect_error) { // Create database $sql = "CREATE DATABASE IF NOT EXISTS $DB_DATABASE"; if ($conn->query($sql) === TRUE) { - echo "Database created successfully
"; + echo '
'; } else { $success=0; - echo "Error creating database: " . $conn->error ."
"; + echo '
'; } $conn->close(); @@ -71,10 +79,14 @@ $sql = "CREATE TABLE IF NOT EXISTS users ( )"; if ($conn->query($sql) === TRUE) { - echo "Table 'users' created successfully
"; + echo '
'; } else { $success=0; - echo "Error creating table: " . $conn->error ."
"; + echo '
'; } // Create log table @@ -86,10 +98,14 @@ $sql = "CREATE TABLE IF NOT EXISTS log ( )"; if ($conn->query($sql) === TRUE) { - echo "Table 'log' created successfully
"; + echo '
'; } else { $success=0; - echo "Error creating table: " . $conn->error ."
"; + echo '
'; } // Create settings table @@ -100,10 +116,14 @@ $sql = "CREATE TABLE IF NOT EXISTS settings ( )"; if ($conn->query($sql) === TRUE) { - echo "Table 'settings' created successfully
"; + echo '
'; } else { $success=0; - echo "Error creating table: " . $conn->error ."
"; + echo '
'; } // Create api table @@ -114,10 +134,14 @@ $sql = "CREATE TABLE IF NOT EXISTS api ( )"; if ($conn->query($sql) === TRUE) { - echo "Table 'api' created successfully
"; + echo '
'; } else { $success=0; - echo "Error creating table: " . $conn->error ."
"; + echo '
'; } // Create secrets table @@ -128,10 +152,14 @@ $sql = "CREATE TABLE IF NOT EXISTS secrets ( )"; if ($conn->query($sql) === TRUE) { - echo "Table 'secrets' created successfully
"; + echo '
'; } else { $success=0; - echo "Error creating table: " . $conn->error ."
"; + echo '
'; } // Create machine table @@ -143,22 +171,27 @@ $sql = "CREATE TABLE IF NOT EXISTS machines ( )"; if ($conn->query($sql) === TRUE) { - echo "Table 'machines' created successfully
"; + echo '
'; } else { $success=0; - echo "Error creating table: " . $conn->error ."
"; + echo '
'; } if($success!==1){ - echo('

There was an error creating the databases. Please try again or contact support at: info.jakach@gmail.com

'); + echo '
'; }else{ - echo('

Database created successfully! Continue installation

'); + echo '
'; } $conn->close(); ?> -