mirror of
https://github.com/myronblair/jarvis
synced 2026-06-30 17:50:23 -05:00
fix: PHP entry point with Cache-Control: no-transform — disables Rocket Loader; server-side auth redirect
This commit is contained in:
@@ -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>
|
||||
Reference in New Issue
Block a user