forked from MaxPovver/fl-ru-damp
/
index.php
38 lines (32 loc) · 952 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
<?
$no_banner = 1;
$rpath = "../../";
require_once $_SERVER['DOCUMENT_ROOT'].'/classes/stdf.php';
if (!(hasPermissions('admin'))) {
header ("Location: /404.php");
exit;
}
$mode = __paramInit( 'string', 'mode', null, '' ); // ðàçäåë
$action = __paramInit( 'string', 'action', 'action', '' ); // òåêóùåå äåéñòâèå
$view = __paramInit( 'string', 'view', 'view', '' ); // çàïðîñ øàáëîíà
// ãäå íàõîäèìñÿ
if ( !in_array($mode, array('files')) ) {
header ("Location: /404.php");
exit;
}
if ( !$page ) {
$page = 1;
}
elseif ( $page < 0 ) {
header_location_exit( '/404.php' );
exit;
}
$content = '../content.php';
$js_file = array( 'banned.js');
$css_file = array( 'nav.css' );
$inner_page = $mode.'/content.php';
$header = $rpath."header.php";
$footer = $rpath."footer.html";
//$log_pp = __paramInit( 'int', 'log_pp', 'log_pp', 20 );
define( 'IS_SITE_ADMIN', 1 );
include "$mode/index.php";