diff --git a/src/server/cyberhex-code/system/secure_zone/php/welcome.php b/src/server/cyberhex-code/system/secure_zone/php/welcome.php index 17c9855..94b851b 100644 --- a/src/server/cyberhex-code/system/secure_zone/php/welcome.php +++ b/src/server/cyberhex-code/system/secure_zone/php/welcome.php @@ -10,21 +10,94 @@ if (!isset($_SESSION['username']) or !isset($_SESSION["login"])) { $username = $_SESSION['username']; $perms = $_SESSION["perms"]; - +$email = $_SESSION["email"]; ?> - - Cyberhex + Change Password -

Welcome to the Cyberhex dashboard

-

On your left are all available actions / settings of Cyberhex

-

If you need support, please contact us! info.jakach@gmail.com

+ +
+
+
+
+
+

Dashboard

+
+
+

Current Threads

+ connect_error) { + die("Connection failed: " . $conn->connect_error); + } + $sql = "SELECT count(*) AS vir_count FROM vir_notify"; + $stmt = $conn->prepare($sql); + // Execute the statement + $stmt->execute(); + // Get the result + $result = $stmt->get_result(); + $row = $result->fetch_assoc(); + $num_of_entrys=$row["vir_count"]; + $stmt->close(); + $conn->close(); + + //now list of all the entrys => machineid, file, hash, action taken + // Create a connection + $conn = new mysqli($DB_SERVERNAME, $DB_USERNAME, $DB_PASSWORD, $DB_DATABASE); + + // Check the connection + if ($conn->connect_error) { + die("Connection failed: " . $conn->connect_error); + } + $last_id=-1; + //create the table header + echo(''); + echo(''); + echo(''); + echo(''); + echo(''); + echo(''); + echo(''); + while($num_of_entrys!=0){ + $sql = "SELECT * FROM vir_notify where id > $last_id"; + $stmt = $conn->prepare($sql); + // Execute the statement + $stmt->execute(); + // Get the result + $result = $stmt->get_result(); + $row = $result->fetch_assoc(); + $last_id=$row["id"]; + $machineid=$row["machine_id"]; + $hash=$row["hash"]; + $file=$row["file"]; + $action=$row["action"]; + echo(''); + echo(''); + echo(''); + echo(''); + echo(''); + echo(''); + echo(''); + $stmt->close(); + $num_of_users--; + } + echo(''); + echo('
MachineidFileHashAction Taken
'.$last_id.''.$machineid.''.$file.''.$hash.''.$action.'
'); + $conn->close(); + ?> +
+
+
+
+
-