-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.php
34 lines (32 loc) · 1.08 KB
/
index.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<META HTTP-EQUIV="Content-type" CONTENT="text/html; charset=Shift_JIS">
<link rel="icon" type="image/x-icon" href="/imgs/favicon/favicon.ico">
<?php
session_start();
include("config.php");
include("scripts/util.php");
if (isBanned(getIp()) && !checkBanExpire(getIp()))
{
echo("</head>");
echo("You are temp banned from this message board1!1!");
echo("Please wait a few days or so before returning!");
return;
}
if (FORUM_SQL_ENABLED)
migrateMessagesToSQL();
if (isset($_GET["thread"])) // Just a hacky temp method of getting thread via get request if people want to make a link to a thread
{
$_SESSION["thread"] = str_replace("-"," ",$_GET["thread"]);
$_SESSION["thread"] = getCurrentThread();
}
include("scripts/header.php");
include("scripts/thread.php");
updateBans();
?>
<div class="pattern"></div>
</body>
</html>