-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy pathindex.php
More file actions
29 lines (28 loc) · 780 Bytes
/
index.php
File metadata and controls
29 lines (28 loc) · 780 Bytes
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
<?php
require_once(__DIR__."/config/config.php");
require_once(__DIR__."/config/function.php");
if(isset($_GET['ref']) )
{
if($CMSNT->get_row("SELECT * FROM `users` WHERE `id` = '".$_SESSION['ref']."' ")['ip'] != myip())
{
$_SESSION['ref'] = check_string($_GET['ref']);
}
else
{
$_SESSION['ref'] = NULL;
}
}
if(empty($_SESSION['ref']))
{
$_SESSION['ref'] = NULL;
}
/* ĐƠN VỊ THIẾT KẾ WEB WWW.CMSNT.CO | ZALO 0947838128 | FB.COM/NTGTANETWORK */
if($CMSNT->site('theme') != '')
{
require_once(__DIR__."/page/".$CMSNT->site('theme')."/index.php");
}
else
{
header("location:".BASE_URL('Dashbroad'));
exit();
}