get_files(e_PLUGIN."featurebox/templates/"); if (e_QUERY) { $qs = explode(".", e_QUERY); $action = varset($qs[0],FALSE); $id = intval(varset($qs[1],0)); } else { $action = FALSE; $id = FALSE; } if(isset($_POST['createFB']) || isset($_POST['updateFB'])) { if ($_POST['fb_title'] && $_POST['fb_text']) { $fbInfo = array(); $fbInfo['fb_title'] = $tp -> toDB($_POST['fb_title']); $fbInfo['fb_text'] = $tp -> toDB($_POST['fb_text']); $fbInfo['fb_mode'] = intval($_POST['fb_mode']); $fbInfo['fb_class'] = intval($_POST['fb_class']); $fbInfo['fb_rendertype'] = intval($_POST['fb_rendertype']); $fbInfo['fb_template'] = $tp -> toDB($_POST['fb_template']); if(isset($_POST['createFB'])) { $sql->db_Insert("featurebox", $fbInfo); $admin_log->logArrayAll('FBLAN_01',$fbInfo); $message = FBLAN_15; } if(isset($_POST['updateFB'])) { $sql->db_UpdateArray('featurebox',$fbInfo, 'WHERE `fb_id`='.intval($_POST['fb_id'])); $admin_log->logArrayAll('FBLAN_02',$fbInfo); $message = FBLAN_16; } } else { $message = FBLAN_17; } } if (($action == "delete") && $id) { $sql->db_Delete("featurebox", "fb_id=".$id); $admin_log->log_event('FBLAN_03',$id,E_LOG_INFORMATIVE,''); $message = FBLAN_18; } if (isset($message)) { $ns->tablerender("", "
ID | ".FBLAN_07." | ".FBLAN_19." |
".$entry['fb_id']." | ".$entry['fb_title']." | ".FBLAN_20." - ".FBLAN_21." |