Beispiel #1
0
     trbasic(lang('stacremo'), '', makeradio('staticmode', $staticarr, 0), '');
     tabfooter('bstaticindex');
     a_guide('staticindex');
 } else {
     if (!$sid && empty($ptypes)) {
         amessage('pchoidxtp', "?entry={$entry}&action={$action}{$param_suffix}");
     }
     if ($sid) {
         $ptypes = array('i');
     }
     if (in_array('i', $ptypes)) {
         include_once M_ROOT . "./include/cn_static.fun.php";
         if (empty($staticmode)) {
             cn_update_needstatic('', $sid, 0);
         } elseif ($staticmode == 1) {
             index_static('', 0, 1);
         } elseif ($staticmode == 2) {
             index_unstatic('', 0, 1);
         } elseif ($staticmode == 3) {
             $sid && cn_blank('', $sid, 0);
         }
     }
     if (in_array('m', $ptypes)) {
         include_once M_ROOT . "./include/mcn_static.fun.php";
         if (empty($staticmode)) {
             $db->query("UPDATE {$tblprefix}mconfigs SET value='{$timestamp}' WHERE varname='mcnneedstatic'");
         } elseif ($staticmode == 1) {
             mindex_static('', 0, 1);
         } elseif ($staticmode == 2) {
             mindex_unstatic('', 0, 1);
         }
Beispiel #2
0
                mexit();
            }
            if (!($needstatics = explode(',', $needstatics)) || empty($needstatics[$addno]) || $needstatics[$addno] > $timestamp) {
                mexit();
            }
        } elseif ($sid) {
            if (!($needstatic = $db->result_one("SELECT ineedstatic FROM {$tblprefix}subsites WHERE sid='{$sid}'"))) {
                mexit();
            }
        } else {
            if (!($needstatic = $db->result_one("SELECT value FROM {$tblprefix}mconfigs WHERE varname='ineedstatic'"))) {
                mexit();
            }
        }
    }
    index_static($cnstr, $addno, 1);
} elseif ($mode == 'mcnode') {
    include_once M_ROOT . './include/mcn_static.fun.php';
    parse_str($_SERVER['QUERY_STRING'], $temparr);
    $cnstr = mcnstr($temparr);
    $addno = max(0, intval(@$addno));
    if (!$debugtag) {
        if (!$cnstr) {
            if (!($needstatic = $db->result_one("SELECT value FROM {$tblprefix}mconfigs WHERE varname='mcnneedstatic'"))) {
                mexit();
            }
        } else {
            if (!($needstatics = $db->result_one("SELECT needstatics FROM {$tblprefix}mcnodes WHERE ename='{$cnstr}'"))) {
                mexit();
            }
            if (!($needstatics = explode(',', $needstatics)) || empty($needstatics[$addno]) || $needstatics[$addno] > $timestamp) {