/
rules.php
48 lines (29 loc) · 947 Bytes
/
rules.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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
<?php
require_once('../board/SSI.php');
$_SESSION['login_url'] = 'http://www.turkiball.com/board' . $_SERVER['PHP_SELF'];
$_SESSION['logout_url'] = 'http://www.turkiball.com' . $_SERVER['PHP_SELF'];
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<?php
include $_SERVER['DOCUMENT_ROOT'].'/scripts/functions_page.php';
$filename = "http://www.turkiball.com" . $_SERVER["PHP_SELF"];
// Removes the slash if there is one
if (substr($filename, (strlen($filename) - 1), 1) == '/')
{ $filename = substr($filename, 0, (strlen($filename) - 1));
}
head(0); // Means we're in home
?>
</head>
<body>
<?php
title();
newsbar(0); // Means we're in home
navbarleft();
content(0, 0, 0, 0, $filename); // in home, filename for echoContent, rest for the fn entries
bottom();
?>
</body>
</html>