-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathlib_ref.php
27 lines (26 loc) · 869 Bytes
/
lib_ref.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
<?
/* This file is a security measure to prevent entering certain pages directly, instead of through a link.
* This is because some pages take actions over the database (or where else), and if entered in error, they could cause
* unexpected or even harmful results.
*/
require_once "inc_private.php";
require_once "lib.php";
if (!refererMatchesHost())
{
$txt = <<<TEXT
<!DOCTYPE HTML>
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<title>Session expired!</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="cache-control" content="no-cache" />
</head>
<body style="font-family:arial;">
<h1 style="color:#0a328c;font-size:1.0em;">SESSION EXPIRED</h1>
<p style="font-size:0.8em;">Please <a href="/">re-login</a>.</p>
</body>
</html>
TEXT;
exit($txt);
}
?>