-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.php
52 lines (50 loc) · 1.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
49
50
51
52
<?
define("C_MOD",1);
define("F_MOD",1);
include("inc/functions.php");
$sess_id=session_id();
if(empty($file)) $file="";
$chat_refreshtime*=1000;
if(empty($resultcnt)) $resultcnt=0;
if(!empty($_SESSION['suser']))
{
$checkauth=mysql_query("select sid from chat_onliners where user='$_SESSION[suser]' and sid='$sess_id'");
$resultcnt=mysql_num_rows($checkauth);
}
if(isset($_SESSION['suser'])&&$resultcnt==1)
{
include("theme/$skin/colors.php");
if($file=="header")
{
include("files/header.php");
}
if($file=="messages")
{
include("files/messages.php");
}
elseif($file=="users")
{
include("files/users.php");
}
elseif($file=="send")
{
include("files/send.php");
}
else
{
include("files/main.php");
}
}
elseif($_SERVER['QUERY_STRING']=="reg"&&empty($_SESSION['suser']))
{
include("files/reg.php");
}
elseif($_SERVER['QUERY_STRING']=="forg"&&empty($_SESSION['suser']))
{
include("files/forg.php");
}
else
{
include("files/index.php");
}
?>