-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathindex.php
More file actions
29 lines (22 loc) · 703 Bytes
/
index.php
File metadata and controls
29 lines (22 loc) · 703 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
/***************************************************************************
* index.php
*
* Jul 05, 07:00:00 2009
* Copyright 2009 Istvan Petres (aka P.I.Julius)
* me@pijulius.com
* For licensing, see LICENSE or http://jcore.net/license
****************************************************************************/
$ROOT_DIR = '';
if (isset($_GET['path']) && $_GET['path']) {
$values = explode('/', $_GET['path']);
foreach ($values as $key => $value) {
if ($key > 0) $ROOT_DIR .= '../';
}
}
define('ROOT_DIR', $ROOT_DIR);
include_once('config.inc.php');
include_once('lib/includes.fxn.php');
include_once('template/template.php');
sql::logout();
?>