forked from DaWe35/SkyLive-webportal
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.php
26 lines (22 loc) · 793 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
<?php
require_once "config.php";
require_once "model/explode_url.php";
require_once "model/image_print.php";
exploge_geturl($_GET['geturl']);
/*
Schema:
domain.com / PAGE / SUBPAGE / SSPAGE / SSSPAGE
*/
require_once "model/initialize.php";
require_once "model/bruteforce_protection.php";
if ($_SERVER['REQUEST_METHOD'] == 'POST') {
$enable_CSRF = array('write');
if (!in_array(PAGE, $enable_CSRF)) {
require_once "model/referer.php";
referer(); // Check http referrer - so hackers can't send external forms to chainscore
}
bruteforce_check_ip();
if (file_exists('post/'.PAGE.'.php')) { include 'post/'.PAGE.'.php'; } //INCLUDE CONTROLLER
} else if ($_SERVER['REQUEST_METHOD'] == 'GET') {
if (file_exists('get/'.PAGE.'.php')) { include 'get/'.PAGE.'.php'; } //INCLUDE CONTROLLER
}