exit; } if (isset($_GET["compile-settings-popup"])) { compile_settings_popup(); exit; } if (isset($_GET["compile-settings-perform"])) { compile_settings_perform(); exit; } if (isset($_POST["Addefaults"])) { Addefaults(); exit; } if (isset($_GET["Addefaults"])) { Addefaults(); exit; } page(); function task_run_js() { $t = time(); $page = CurrentPageName(); $tpl = new templates(); $run_this_task_now = $tpl->javascript_parse_text("{run_this_task_now} ?"); header("content-type: application/x-javascript"); $ID = $_GET["ID"]; $q = new mysql_squid_builder(); $ligne = mysql_fetch_array($q->QUERY_SQL("SELECT * FROM webfilters_schedules WHERE ID={$ID}")); $explain = $tpl->javascript_parse_text("{$q->tasks_explain_array[$ligne["TaskType"]]}"); $html = "\n\tvar x_SquidTaskRun{$t}=function (obj) {\n\t\t\n\t\tvar results=obj.responseText;\n\t\tif(results.length>0){alert(results);}\t\t\n\t}\n\n\t\n\tfunction SquidTaskRun{$t}(ID){\n\t\tif(confirm('{$run_this_task_now}: `{$explain}`')){\n\t\t\tvar XHR = new XHRConnection();\n\t\t\tXHR.appendData('ID',ID);\n\t \t\tXHR.appendData('schedule-run','yes');\n\t \t\tXHR.appendData('output','yes');\n\t \t\tXHR.sendAndLoad('{$page}', 'POST',x_SquidTaskRun{$t});\t\t\n\t\t}\n\t\n\t}\t\t\n\tSquidTaskRun{$t}();\n";
if(isset($_GET["AddNewSchedule-js"])){AddNewSchedule_js();exit;} if(isset($_GET["AddNewSchedule-popup"])){AddNewSchedule_popup();exit;} if(isset($_GET["explainthis"])){AddNewSchedule_explain();exit;} if(isset($_POST["TimeDescription"])){AddNewSchedule_save();exit;} if(isset($_POST["schedule-enable"])){AddNewSchedule_enable();exit;} if(isset($_POST["schedule-delete"])){AddNewSchedule_delete();exit;} if(isset($_POST["schedule-run"])){AddNewSchedule_run();exit;} if(isset($_GET["schedule-run-js"])){task_run_js();exit;} if(isset($_POST["DisableSquidDefaultSchedule"])){DisableSquidDefaultSchedule();exit;} if(isset($_GET["compile-settings-js"])){compile_settings_js();exit;} if(isset($_GET["compile-settings-popup"])){compile_settings_popup();exit;} if(isset($_GET["compile-settings-perform"])){compile_settings_perform();exit;} if(isset($_POST["Addefaults"])){Addefaults();exit;} if(isset($_GET["Addefaults"])){Addefaults();exit;} page(); function compile_settings_js(){ header("content-type: application/x-javascript"); $page=CurrentPageName(); $tpl=new templates(); $title=$tpl->_ENGINE_parse_body("{compile_settings}"); echo "YahooWin6('905','$page?compile-settings-popup=yes','$title')"; } function task_run_js(){ $t=time(); $page=CurrentPageName();