if(ADMIN && getperms("0")) { global $sql,$pst,$ns,$tp,$e_wysiwyg,$pref; if(isset($pst) && $pst->form && $pst->page){ $thispage = urlencode(e_SELF."?".e_QUERY); if(is_array($pst->page)){ for ($i=0; $ipage); $i++) { if (strpos($thispage, urlencode($pst->page[$i])) !== FALSE){ $query = urlencode($pst->page[$i]); $theform = $pst->form[$i]; $pid = $i; } } }else{ $query = urlencode($pst->page); $theform = $pst->form; $pid = 0; } $existing = is_array($pst->id) ? $pst->id[$pid] : $pst->id; $trigger = ($e_wysiwyg && $pref['wysiwyg']) ? "tinyMCE.triggerSave();" : ""; if (strpos($thispage, $query) !== FALSE) { $pst_text = "
"; if(!$sql->db_Count("preset", "(*)", " WHERE preset_name='".$tp -> toDB($existing, true)."' ")){ $pst_text .= ""; }else{ $pst_text .= ""; $pst_text .= " toJS(LAN_PRESET_CONFIRMDEL." [".$existing."]")."')\" />"; } $pst_text .= "
"; return $ns -> tablerender(LAN_PRESET, $pst_text, '', TRUE); } } }