function PostfixLogsPop() { $page = CurrentPageName(); $html = "\n<script language=\"JavaScript\"> // une premiere fonction pour manipuler les valeurs \"dynamiques\" \nfunction mettre(){ \n document.form1.source.focus();\n document.form1.source.select();\n}\n\nvar timerID = null;\nvar timerID1 = null;\nvar tant=0;\nvar reste=0;\n\nfunction demarre(){\n tant = tant+1;\n reste=10-tant;\n \n \n\n if (tant < 5 ) { //exemple:caler a une minute (60*1000) \n timerID = setTimeout(\"demarre()\",700);\n \n } else {\n tant = 0;\n //;\n postlogs();\n demarre(); //la boucle demarre !\n }\n}\n\nvar x_postlogs=function(obj){\n var tempvalue=obj.responseText;\n document.getElementById('postlogs').innerHTML=tempvalue;\n document.getElementById('showstatus').innerHTML=' ';\n }\n\n\nfunction postlogs(){\n\t var filter=document.getElementById('filter').value;\n\n\t\tdocument.getElementById('showstatus').innerHTML='<img src=img/wait.gif>';\n\t \tvar XHR = new XHRConnection();\n\t if(filter.length>0){\n\t \tXHR.appendData('filter',filter);\n\t }\t \t\n\t \tXHR.appendData('getPopupLogs','1');\n\t\tXHR.sendAndLoad('{$page}', 'GET',x_postlogs);\n\n}\n\n\n\n\nfunction demar1(){\n tant = tant+1;\n \n \n\n if (tant < 2 ) { //delai court pour le premier affichage !\n timerID = setTimeout(\"demar1()\",1000);\n \n } else {\n tant = 0; //reinitialise le compteur\n LoadAjax2('postlogs','postfix.events.php?getPopupLogs=1');\n \n demarre(); //on lance la fonction demarre qui relance le compteur\n }\n}\n</script>\t\n\t<table style='width:100%;padding:3px;margin:3px;border:1px solid #CCCCCC'>\n\t<tr>\n\t\t<td class=legend width=1%>{filter}:</td>\n\t\t<td width=98%><input type='text' id='filter' name='filter' value='{$_COOKIE["postfix_filter"]}' style='width:190px'>\n\t\t<td width=1%><span id='showstatus'></span>\n\t</tr>\n\t</table>\t\n\t<div id=wait style='margin:5px;font-weight:bold;font-size:12px;text-align:right'></div>\n\t<div id=postlogs style='width:100%'></div>\n\t\n\t<script>LoadAjax2('postlogs','postfix.events.php?getPopupLogs=1');</script>\n\t<script>demarre();</script>\n\t\t\n\t\n\t\n\t"; $tpl = new template_users("{postfix_events}", $html); $tpl->nogbPopup = 1; $tpl->_BuildPopUp($html, "{postfix_events}"); echo $tpl->web_page; }
function start() { $uri = $_GET["uri"]; $page = CurrentPageName(); $tpl = new templates(); $success = $tpl->_ENGINE_parse_body('{success}'); $title = $tpl->_ENGINE_parse_body('{unlock_web_site}'); $dans = new dansguardian(); $port = trim($dans->Master_array["filterport"]); $success = $form = "\n\t<script>\n\tvar timeout=0;\n\tfunction releasetouri(){\n\t\tdocument.getElementById('mmwait').innerHTML=\"\";\n\t\tdocument.location.href=\"{$_GET["uri"]}\";\n\t}\n\t\n\tfunction CheckUnlockForm(e){\n\t\tif(checkEnter(e)){ReleaseWebSite();}\n\t\n\t\t}\n\t\n\t\n\tvar x_ReleaseWebSite= function (obj) {\n\t\tvar text=obj.responseText;\n\t\t\n\t\tif(text=='SUCCESS'){\n\t\t\talert('{$success}');\n\t\t\ttimeout=0;\n\t\t\tsetTimeout(\"testingConnection()\",1000);\n\t\t\treturn false;\n\t\t\t}\n\t\t\t\n\t\talert(text);\n\t\tdocument.getElementById('mmwait').innerHTML=\"\";\n\t}\n\t\n\t\nvar x_testingConnection= function (obj) {\n\t\tvar text=obj.responseText;\n\t\tif(text=='SUCCESS'){\n\t\t\tsetTimeout(\"releasetouri()\",1000);\n\t\t\treturn;\n\t\t}\n\t\t\n\t\tsetTimeout(\"testingConnection()\",1000);\n}\n\n\tfunction testingConnection(){\n\t\ttimeout=timeout+1;\n\t\tif(timeout>20){\n\t\t\treleasetouri();\n\t\t\treturn;\n\t\t\t}\t\n\t\tvar XHR = new XHRConnection();\n\t\tXHR.appendData('testing-connection','{$port}');\n\t\tXHR.sendAndLoad('{$page}', 'POST',x_testingConnection);\n\t\n\t}\n\t\n\tfunction ReleaseWebSite(){\n\t\tvar password=document.getElementById('password').value;\n\t\tvar user=document.getElementById('username').value;\n\t\tvar XHR = new XHRConnection();\n\t\tXHR.appendData('password',password);\n\t\tXHR.appendData('userid',user);\n\t\tXHR.appendData('uri','{$uri}');\n\t\tdocument.getElementById('mmwait').innerHTML=\"<center style='width:100%'><img src='img/wait_verybig.gif'></center>\";\n\t\tXHR.sendAndLoad('{$page}', 'POST',x_ReleaseWebSite);\t\n\t}\n\t</script>\n\t\n\t<span id='mmwait'></span>\n\t<center>\n\t<div style='width:700px;border:2px solid red;margin-top:100px;margin-left:100px;padding:20px;background-color:#d32d2d'>\n\t<div style='width:600px;border:2px solid red;padding:20px;background-color:white'>\n\t\t<div style='font-size:18px;margin:10px;text-align:center'>{$uri}</div>\n\t<div style='width:300px;margin-top:50px;margin-bottom:50px'>\n\t" . RoundedLightYellow("\n\t<table style='width:100%'>\n\t<tr>\n\t\t<td valign='top' class=legend>{username}:</td>\n\t\t<td>" . Field_text('username', null, 'width:120px', null, null, null, null, "CheckUnlockForm(event)") . "</td>\n\t</tr>\n\t<tr>\n\t\t<td valign='top' class=legend>{password}:</td>\n\t\t<td>" . Field_password('password', null, 'width:120px', null, null, null, null, "CheckUnlockForm(event)") . "</td>\n\t</tr>\t\n\t<tr>\n\t\t<td colspan=2 align='right'><hr><input type='button' OnClick=\"javascript:ReleaseWebSite();\" value='{unlock} »'></td>\n\t</tr>\n\t</table>\n\t") . "\n\t</div>\n\t</div>\n\t</div>\n\t</center>\n\t\n\t\n\t"; $tpl = new template_users($title, $form, 0, 1, 1, 0); $tpl->_BuildPopUp($form, $title); echo $tpl->web_page; }
function external() { $page = CurrentPageName(); $tpl = new template_users(); $t = time(); $html = "\r\n\t<div id='{$t}'></div>\r\n\t<script>\r\n\t\tLoadAjax('{$t}','{$page}?bypopup=yes');\r\n\t</script>"; $tpl = new template_users("{events}::{APP_SQUID}", $html, 0, 1, 1); $tpl->_BuildPopUpNew($html, "{events}::{APP_SQUID}"); $html = $tpl->web_page; SET_CACHED(__FILE__, __FUNCTION__, __FUNCTION__, $html); echo $html; }
<?php header("Pragma: no-cache"); header("Expires: 0"); header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT"); header("Cache-Control: no-cache, must-revalidate"); include_once 'ressources/class.templates.inc'; include_once 'ressources/class.mailboxes.inc'; include_once 'ressources/kav4mailservers.inc'; include_once 'ressources/class.cyrus.inc'; include_once 'ressources/class.html.pages.inc'; include_once 'ressources/class.cron.inc'; $tpl = new template_users(); $_GET["PRIVS"] = $tpl->_ParsePrivieleges($_SESSION["privileges"]["ArticaGroupPrivileges"]); writequeries(); if (isset($_GET["delete_domain_confirm"])) { delete_domain_confirm(); exit; } if (isset($_GET["add_domain_entity"])) { add_domain_entity(); exit; } if (isset($_GET["ListDomainByEntity"])) { echo List_domains($_GET["ListDomainByEntity"]); exit; } if (isset($_GET["add_entity"])) { add_entity(); exit; }
function FetchLogsPop() { $page = CurrentPageName(); $html = "\n<script language=\"JavaScript\"> // une premiere fonction pour manipuler les valeurs \"dynamiques\" \nfunction mettre(){ \n document.form1.source.focus();\n document.form1.source.select();\n}\n\nvar timerID = null;\nvar timerID1 = null;\nvar tant=0;\nvar reste=0;\n\nfunction demarre(){\n tant = tant+1;\n reste=10-tant;\n \n \n\n if (tant < 5 ) { //exemple:caler a une minute (60*1000) \n timerID = setTimeout(\"demarre()\",700);\n \n } else {\n tant = 0;\n //;\n postlogs();\n demarre(); //la boucle demarre !\n }\n}\n\nvar x_postlogs=function(obj){\n var tempvalue=obj.responseText;\n document.getElementById('fetchev').innerHTML=tempvalue;\n }\n\n\nfunction postlogs(){\n\t var XHR = new XHRConnection();\n\t \tXHR.appendData('getFetchlogs','1');\n\t\tXHR.sendAndLoad('{$page}', 'GET',x_postlogs);\n\n}\n\n\n\n\nfunction demar1(){\n tant = tant+1;\n \n \n\n if (tant < 2 ) { //delai court pour le premier affichage !\n timerID = setTimeout(\"demar1()\",1000);\n \n } else {\n tant = 0; //reinitialise le compteur\n LoadAjax2('fetchev','{$page}?getFetchlogs=1');\n \n demarre(); //on lance la fonction demarre qui relance le compteur\n }\n}\n</script>\t\n\t<div id=wait style='margin:5px;font-weight:bold;font-size:12px;text-align:right'></div>\n\t<div id=fetchev style='width:100%'></div>\n\t\n\t<script>postlogs();</script>\n\t<script>demarre();</script>\n\t\t\n\t\n\t\n\t"; $tpl = new template_users("{events}", $html); $tpl->nogbPopup = 1; $tpl->_BuildPopUp($html, "{events}"); echo $tpl->web_page; }
<?php session_start(); include_once 'ressources/class.templates.inc'; include_once 'ressources/class.kas-filter.inc'; include_once 'ressources/class.groups.inc'; if ($_SESSION["uid"] != -100) { $tpl = new template_users(); $priv = $tpl->_ParsePrivieleges($_SESSION["privileges"]["ArticaGroupPrivileges"]); if ($priv["AllowChangeKas"] != 'yes') { exit; } } if (!isset($_GET["tab"])) { $_GET["tab"] = 0; } if (isset($_GET["ACTION_SPAM_MODE"])) { SaveActions(); exit; } if (isset($_GET["OPT_DNS_DNSBL"])) { SaveActionsRules(); exit; } switch ($_GET["tab"]) { case 0: Actions_Group(); exit; break; case 1: DNSSPFChecks();
<?php session_start(); include_once 'ressources/class.templates.inc'; include_once 'ressources/kav4mailservers.inc'; $tpl = new template_users(); $user = new usersMenus(); if ($user->AllowChangeKav == false) { echo $tpl->_ENGINE_parse_body("<h3>{not allowed}</H3>"); exit; } if (isset($_GET["InfectedQuarantine"])) { saveDatas(); exit; } if (isset($_GET["FilterByName_save"])) { FilterByName_save(); exit; } if (isset($_GET["FilterByName_load"])) { FilterByName_load(); exit; } if (isset($_GET["FilterByName_delete"])) { FilterByName_delete(); exit; } if (isset($_GET["PostUpdateCmd"])) { PostUpdateCmd(); exit; }