20if(!defined(
"SEC_FILE")){define(
"SEC_FILE",
'/framework/secure.php' );}
21if (defined(
'LEPTON_PATH')) {
22 include LEPTON_PATH.SEC_FILE;
27 while ((
$level < 10) && (!file_exists(
$root.SEC_FILE))) {
31 if (file_exists(
$root.SEC_FILE)) {
32 include
$root.SEC_FILE;
34 trigger_error(sprintf(
"[ <b>%s</b> ] Can't include secure.php!", $_SERVER[
'SCRIPT_NAME']), E_USER_ERROR);
55 if (isset($option[
'POST_ID']) || defined(
'POST_ID'))
58 $post_id = defined(
'POST_ID') ? POST_ID : $option[
'POST_ID'];
59 $iPageId =
$database->get_one(
"SELECT page_id FROM ".TABLE_PREFIX.
"mod_news_posts WHERE post_id = ".$post_id.
" AND ((content_long LIKE '%[[".$droplet_name.
"?%') OR (content_long LIKE '%[[".$droplet_name.
"]]%')) ");
66 if (isset($option[
'TOPIC_ID']) || defined(
'TOPIC_ID'))
69 $topic_id = defined(
'TOPIC_ID') ? TOPIC_ID : $option[
'TOPIC_ID'];
70 $iPageId =
$database->get_one(
"SELECT page_id FROM ".TABLE_PREFIX.
"mod_topics WHERE topic_id = ".$topic_id.
" AND ((content_long LIKE '%[[".$droplet_name.
"?%') OR (content_long LIKE '%[[".$droplet_name.
"]]%')) ");
77 $iSectionId =
$database->get_one(
"SELECT section_id FROM ".TABLE_PREFIX.
"mod_wysiwyg WHERE page_id = ".$page_id.
" AND ((text LIKE '%[[".$droplet_name.
"?%') OR (text LIKE '%[[".$droplet_name.
"]]%')) ");
static getInstance(array &$settings=[])
droplet_exists($droplet_name, $page_id, &$option=array())