fix: PHP entry point with Cache-Control: no-transform — disables Rocket Loader; server-side auth redirect

This commit is contained in:
2026-06-01 09:39:03 +00:00
parent f30f0fdfad
commit 06a5b92543
3 changed files with 106 additions and 0 deletions
+11
View File
@@ -0,0 +1,11 @@
<?php
ini_set('session.cache_limiter', '');
header('Cache-Control: no-store, no-cache, must-revalidate, no-transform');
session_name('jarvis_main');
session_start();
if (empty($_SESSION['jarvis_token'])) { header('Location: /login.php'); exit; }
$t = json_encode($_SESSION['jarvis_token']);
$n = json_encode($_SESSION['jarvis_name'] ?? '');
?><!DOCTYPE html><html><head><meta charset="UTF-8"/>
<style>body{background:#000810;margin:0}</style></head>
<body><script>sessionStorage.setItem("jarvis_token",<?=$t?>);sessionStorage.setItem("jarvis_user",<?=$n?>);location.replace("/");</script></body></html>