-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.php
40 lines (27 loc) · 995 Bytes
/
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
<?php
/*
AMXBans v6.0
Copyright 2009, 2010 by SeToY & |PJ|ShOrTy
This file is part of AMXBans.
AMXBans is free software, but it's licensed under the
Creative Commons - Attribution-NonCommercial-ShareAlike 2.0
AMXBans is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
You should have received a copy of the cc-nC-SA along with AMXBans.
If not, see <http://creativecommons.org/licenses/by-nc-sa/2.0/>.
*/
session_start();
//check for existing config file
if(!file_exists("include/db.config.inc.php")) {
header("Location: setup.php");
}
require_once("include/config.inc.php");
require_once("include/access.inc.php");
//start page loader
if( $config->start_page == "" || $config->start_page == "index.php" || (!file_exists("$config->start_page"))) {
header("Location:ban_list.php");
} else {
header("Location:$config->start_page");
}
?>