From 06a5b92543f377671ac89d132736f649df8d68e2 Mon Sep 17 00:00:00 2001 From: Myron Blair Date: Mon, 1 Jun 2026 09:39:03 +0000 Subject: [PATCH] =?UTF-8?q?fix:=20PHP=20entry=20point=20with=20Cache-Contr?= =?UTF-8?q?ol:=20no-transform=20=E2=80=94=20disables=20Rocket=20Loader;=20?= =?UTF-8?q?server-side=20auth=20redirect?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- public_html/bridge.php | 11 ++++++ public_html/index.php | 15 ++++++++ public_html/login.php | 80 ++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 106 insertions(+) create mode 100644 public_html/bridge.php create mode 100644 public_html/index.php create mode 100644 public_html/login.php diff --git a/public_html/bridge.php b/public_html/bridge.php new file mode 100644 index 0000000..1ac1c8e --- /dev/null +++ b/public_html/bridge.php @@ -0,0 +1,11 @@ + + + diff --git a/public_html/index.php b/public_html/index.php new file mode 100644 index 0000000..d7d62ab --- /dev/null +++ b/public_html/index.php @@ -0,0 +1,15 @@ +sessionStorage.setItem("jarvis_token",' . json_encode($token) + . ');sessionStorage.setItem("jarvis_user",' . json_encode($name) . ');'; +echo str_replace('', '' . $inject, $html); diff --git a/public_html/login.php b/public_html/login.php new file mode 100644 index 0000000..1e9e46c --- /dev/null +++ b/public_html/login.php @@ -0,0 +1,80 @@ + PDO::ERRMODE_EXCEPTION]); + $row = $pdo->prepare('SELECT * FROM users WHERE username=? LIMIT 1'); + $row->execute([$u]); + $user = $row->fetch(PDO::FETCH_ASSOC); + if ($user && password_verify($p, $user['password_hash'])) { + $token = bin2hex(random_bytes(32)); + $_SESSION['jarvis_token'] = $token; + $_SESSION['jarvis_user_id'] = $user['id']; + $_SESSION['jarvis_name'] = $user['display_name']; + $pdo->prepare('UPDATE users SET last_seen=NOW() WHERE id=?')->execute([$user['id']]); + header('Location: /bridge.php'); + exit; + } + $error = 'ACCESS DENIED'; + } else { $error = 'ENTER CREDENTIALS'; } +} +?> + + +JARVIS + + + + +
+
+
+
+
+
+
+

JARVIS

+

Just A Rather Very Intelligent System

+
+ + + +
+
+
+