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) { $success=0; die("Connection failed: " . $conn->connect_error); } // Create database $sql = "CREATE DATABASE IF NOT EXISTS $DB_DATABASE"; if ($conn->query($sql) === TRUE) { echo '
'; } else { $success=0; echo '
'; } $conn->close(); // Connect to the new database $conn = new mysqli($DB_SERVERNAME, $DB_USERNAME, $DB_PASSWORD,$DB_DATABASE); // Check connection if ($conn->connect_error) { $success=0; die("Connection failed: " . $conn->connect_error); } // Create user table $sql = "CREATE TABLE IF NOT EXISTS users ( id INT AUTO_INCREMENT PRIMARY KEY, username VARCHAR(255) NOT NULL, email VARCHAR(255) NOT NULL, perms VARCHAR(255), password VARCHAR(255), 2fa VARCHAR(255), telegram_id VARCHAR(255), user_hex_id VARCHAR(255), credential_id VARBINARY(64), allow_pw_login INT, use_2fa INT, send_login_message INT, public_key TEXT, counter INT )"; if ($conn->query($sql) === TRUE) { echo '
'; } else { $success=0; echo '
'; } if($success!==1){ echo '
'; }else{ echo '
'; } $conn->close(); ?>