19if(!defined(
"SEC_FILE")){define(
"SEC_FILE",
'/framework/secure.php' );}
20if (defined(
'LEPTON_PATH')) {
21 include LEPTON_PATH.SEC_FILE;
26 while ((
$level < 10) && (!file_exists(
$root.SEC_FILE))) {
30 if (file_exists(
$root.SEC_FILE)) {
31 include
$root.SEC_FILE;
33 trigger_error(sprintf(
"[ <b>%s</b> ] Can't include secure.php!", $_SERVER[
'SCRIPT_NAME']), E_USER_ERROR);
50$info =
'@TEMP_DEPRECATED 20250418: this function has to be reworked in L* 7.4.0")';
61 "SELECT parent, level from ".TABLE_PREFIX.
"pages WHERE page_id = ".$page_id.
" ",
67 $parent = $aDetails[
'parent' ];
68 $level = $aDetails[
'level' ];
74 elseif ( $parent == 0 )
82 return $parent_ids[ 0 ];
static getInstance(array &$settings=[])
get_parent_ids(int $iParentId)