-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.php
48 lines (48 loc) · 2.01 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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
<?php //
// INCLUDES
require_once("includes/session.php");
require_once("includes/connect.php");
require_once("includes/functions.php");
if (is_dir("install")) {echo "Please remove installation folder after you finish with installation."; die;}
// SETTINGS: page
$settingsQ = mysql_query("SELECT * FROM settings WHERE settingsID = '1'", $connection); $settingsR = mysql_fetch_array($settingsQ);
$pagetitle = $settingsR["pagetitle"];
$errorreporting = $settingsR["errorreporting"]; error_reporting($errorreporting);
// CONTROL: page
if (isset($_GET['site'])) {$site = sql_quote($_GET['site']);} else {$site = 'home';}
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<link rel="icon" href="favicon.ico" type="image/x-icon">
<link rel="shortcut icon" href="favicon.ico" type="image/x-icon">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title><?php echo $pagetitle; ?></title>
<link href="css/stylesheet.css" rel="stylesheet" type="text/css">
<link href="css/menu.css" media="screen" rel="stylesheet" type="text/css" />
</head>
<body>
<?php include_once("analyticstracking.php"); ?>
<table width="1020" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td height="150" background="images/web/logo.png"></td>
</tr>
<tr>
<td height="15"><?php require_once("includes/menu.php"); ?></td>
</tr>
<tr>
<td>
<div id="webpage">
<table width="100%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="810" valign="top"><div id="webmain"><?php @include($site.'.php'); ?></div></td>
<td width="210" valign="top"><div id="webside"><?php if ($site != "login") {include('login.php');} ?></div></td>
</tr>
</table>
</div>
</td>
</tr>
</table>
</body>
</html>
<?php $lastactiveDATE = time(); $activity = mysql_query("UPDATE users SET lastactive = '$lastactiveDATE' WHERE pid = '$pid'", $connection); ?>