LEPTON CMS
7.2.0
feel free to keep it strictly simple...
Loading...
Searching...
No Matches
index.php
Go to the documentation of this file.
1
<?php
2
19
// include secure.php to protect this file and the whole CMS!
20
if
(!defined(
"SEC_FILE"
)){define(
"SEC_FILE"
,
'/framework/secure.php'
);}
21
if
(defined(
'LEPTON_PATH'
)) {
22
include LEPTON_PATH.SEC_FILE;
23
}
else
{
24
$oneback =
"../"
;
25
$root
= $oneback;
26
$level
= 1;
27
while
((
$level
< 10) && (!file_exists(
$root
.SEC_FILE))) {
28
$root
.= $oneback;
29
$level
+= 1;
30
}
31
if
(file_exists(
$root
.SEC_FILE)) {
32
include
$root
.SEC_FILE;
33
}
else
{
34
trigger_error(sprintf(
"[ <b>%s</b> ] Can't include secure.php!"
, $_SERVER[
'SCRIPT_NAME'
]), E_USER_ERROR);
35
}
36
}
37
// end include secure file
$root
$root
Definition
index.php:25
$level
$level
Definition
index.php:26
SVN
upload
framework
classes
index.php
Generated by
1.10.0