Skip to content
This repository was archived by the owner on Sep 23, 2022. It is now read-only.

Commit 0e03359

Browse files
author
NerdOfLinux
authored
Update 404.php
Redirects if user is logged in.
1 parent da476b3 commit 0e03359

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

404.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,9 @@
11
<?php
2+
session_start();
3+
if($_SESSION['status']=="1"){
4+
header("Location: /options.php");
5+
$_SESSION['logged_in']="1";
6+
}
27
$ip=$_SERVER['REMOTE_ADDR'];
38
echo "The file you tried to access is protected and you dont have permission to view it... <br>";
49
echo "Your IP has been reported: <b>$ip<b>";

0 commit comments

Comments
 (0)