18declare(strict_types = 1);
21if(!defined(
"SEC_FILE")){define(
"SEC_FILE",
'/framework/secure.php' );}
22if (defined(
'LEPTON_PATH')) {
23 include LEPTON_PATH.SEC_FILE;
28 while ((
$level < 10) && (!file_exists(
$root.SEC_FILE))) {
32 if (file_exists(
$root.SEC_FILE)) {
33 include
$root.SEC_FILE;
35 trigger_error(sprintf(
"[ <b>%s</b> ] Can't include secure.php!", $_SERVER[
'SCRIPT_NAME']), E_USER_ERROR);
51$info =
'@TEMP_DEPRECATED 20250418: this function has to be reworked in L* 7.4.0")';
57 return intval(
$database->get_one(
'SELECT `parent` FROM `' . TABLE_PREFIX .
'pages` WHERE `page_id` = ' . $iPageId ));
static getInstance(array &$settings=[])