function popup() { $form = "<table style='width=99%'>\n\t<tr>\n\t\t<th>{ip_address}</th>\n\t\t<th>{netmask}</th>\n\t\t<th>{gateway}</th>\n\t</tr>\n\t<tr>\n\t\t<td>" . Field_text("dhcpd_ip", null) . "</td>\n\t\t<td>" . Field_text("dhcpd_netmask", null) . "</td>\n\t\t<td>" . Field_text("dhcpd_gateway", null) . "</td>\n\t</tR>\n\t<tr>\n\t\t<td colspan=3 align='right'><hr><input type='button' OnClick=\"javascript:AddRouteDHCPD();\" value='{add} »'></td>\n\t</tr>\n\t</table>\n\t"; $html = "\n\t\n\t<table style='width:100%'>\n\t<tr>\n\t\t<td valign='top' width=1%><img src='img/computer-routes-128.png'></td>\n\t\t<td valign='top'>\n\t\t\t\t<div class=explain>{APP_DHCP_ROUTES_EXPLAIN}</div>\n\t\t\t\t{$form}\n\t\t\t\t<br>\n\t\t\t\t" . RoundedLightWhite("<div style='width:100%;height:120px;overflow:auto' id='dhcpdroutes'>" . popup_list() . "</div>") . "\n\t\t</td>\n\t</tr>\n\t</table>\n\t\n\t\n\t"; $tpl = new templates(); echo $tpl->_ENGINE_parse_body($html); }
exit; } if (isset($_GET["service-status"])) { service_status(); exit; } if (isset($_GET["script"])) { js(); exit; } if (isset($_POST["listname_add"])) { list_add(); exit; } if (isset($_GET["mailman-lists"])) { echo popup_list(); exit; } if (isset($_GET["table-list"])) { echo popup_list_items(); exit; } if (isset($_GET["add"])) { popup_add(); exit; } if (isset($_POST["DeleteList"])) { delete_distriblist($_POST["DeleteList"]); exit; } if (isset($_GET["mailmaninfos"])) {
ini_set('error_prepend_string', null); ini_set('error_append_string', null); } include_once 'ressources/class.templates.inc'; include_once 'ressources/class.ldap.inc'; include_once 'ressources/class.users.menus.inc'; include_once 'ressources/class.squid.inc'; $usersmenus = new usersMenus(); if (!$usersmenus->AsDansGuardianAdministrator) { $tpl = new templates(); $alert = $tpl->_ENGINE_parse_body('{ERROR_NO_PRIVS}'); echo "alert('{$alert}');"; die; } if (isset($_GET["now-search"])) { popup_list(); exit; } if (isset($_GET["rewrite-rule"])) { rewrite_rule_js(); exit; } if (isset($_GET["rewrite-rule-tab"])) { rewrite_rule_tab(); exit; } if (isset($_GET["rewrite-rule-settings"])) { rewrite_rule_settings(); exit; } if (isset($_GET["rewrite-rule-items"])) {
include_once('ressources/class.templates.inc'); include_once('ressources/class.ldap.inc'); include_once('ressources/class.users.menus.inc'); include_once('ressources/class.squid.inc'); $usersmenus=new usersMenus(); if(!$usersmenus->AsDansGuardianAdministrator){ $tpl=new templates(); $alert=$tpl->_ENGINE_parse_body('{ERROR_NO_PRIVS}'); echo "alert('$alert');"; die(); } if(isset($_GET["popup"])){popup();exit;} if(isset($_GET["now-search"])){popup_list();exit;} if(isset($_POST["pattern"])){SaveBlks();exit;} if(isset($_POST["delete-pattern"])){delete();exit;} if(isset($_POST["enable-pattern"])){enable();exit;} if(isset($_POST["AddDefaultMimeType-white"])){AddDefaultMimeType_white();exit;} if(isset($_GET["squid-groups"])){squid_groups_popup();exit;} if(isset($_GET["squid-groups-popup-list"])){squid_groups_popup_list();exit;} if(isset($_GET["squid-groups-popup-selected"])){squid_groups_popup_selected();exit;} if(isset($_GET["squid-UserAgent"])){squid_useragent();exit;} js();
//if(count($_POST)>0) $usersmenus=new usersMenus(); if(!$usersmenus->AllowAddUsers){ writelogs("Wrong account : no AllowAddUsers privileges",__FUNCTION__,__FILE__); if(isset($_GET["js"])){ $tpl=new templates(); $error="{ERROR_NO_PRIVS}"; echo $tpl->_ENGINE_parse_body("alert('$error')"); die(); } header("location:domains.manage.org.index.php?ou={$_GET["ou"]}"); } if(isset($_GET["popup"])){popup();exit;} if(isset($_GET["list"])){popup_list();exit;} if(isset($_GET["add_already_member_add"])){popup_add();exit;} js(); function js(){ $ou_decoded=base64_decode($_GET["ou"]); $tpl=new templates(); $title=$tpl->_ENGINE_parse_body("{add_already_member}"); $members=$tpl->_ENGINE_parse_body("{members}"); $page=CurrentPageName(); $html=" function add_already_member_load(){ YahooWin2('550','$page?popup=yes&ou={$_GET["ou"]}&gpid={$_GET["gpid"]}','$title'); }
} if(isset($_GET["js"])){js();exit;} if(isset($_GET["popup"])){popup();exit;} if(isset($_GET["edit-proxy-parent-js"])){parent_config_js();exit;} if(isset($_GET["edit-proxy-parent"])){parent_config();exit;} if(isset($_GET["edit-proxy-parent-tab"])){parent_tab();exit;} if(isset($_GET["edit-proxy-parent-table"])){parent_options_table();exit;} if(isset($_GET["SaveParentProxy"])){parent_save();exit;} if(isset($_GET["edit-proxy-parent-options"])){parent_options_popup();exit;} if(isset($_GET["edit-proxy-parent-options-explain"])){parent_options_explain();exit;} if(isset($_GET["extract-options"])){extract_options();exit;} if(isset($_POST["AddSquidParentOptionOrginal"])){construct_options();exit;} if(isset($_POST["DeleteSquidOption"])){delete_options();exit;} if(isset($_GET["parent-list"])){popup_list();exit;} if(isset($_GET["DeleteSquidParent"])){parent_delete();exit;} if(isset($_GET["EnableParentProxy"])){EnableParentProxy();exit;} if(isset($_GET["prefer_direct"])){prefer_direct();exit;} if(isset($_GET["nonhierarchical_direct"])){nonhierarchical_direct();exit;} if(isset($_GET["parent-list-options"])){extract_options();exit;} if(isset($_GET["ActionRun"])){ActionRun();exit;} if(isset($_GET["peer_infos"])){$GLOBALS["VERBOSE"]=true;peer_infos();exit;} popup(); function js(){ $t=time(); $tpl=new templates(); $page=CurrentPageName(); $title=$tpl->_ENGINE_parse_body("{squid_parent_proxy}"); $html="YahooWin3('875','$page','$title');";
<?php if(isset($_GET["verbose"])){ini_set('html_errors',0);ini_set('display_errors', 1);ini_set('error_reporting', E_ALL);ini_set('error_prepend_string','');ini_set('error_append_string','');} include_once('ressources/class.templates.inc'); include_once('ressources/class.users.menus.inc'); include_once('ressources/class.mysql.inc'); include_once('ressources/class.mysql-meta.inc'); $users=new usersMenus(); if(!$users->AsDansGuardianAdministrator){die();} if(isset($_GET["events"])){popup_list();exit;} if(isset($_GET["popup"])){popup();exit;} if(isset($_POST["domains"])){save();exit;} if(isset($_GET["add-www-js"])){add_www_js();exit;} if(isset($_GET["add-black-js"])){add_black_js();exit;} js(); function js(){ header("content-type: application/x-javascript"); $t=$_GET["t"]; $page=CurrentPageName(); $tpl=new templates(); $title=$tpl->javascript_parse_text("{whitelist} (Meta)"); echo "YahooWin4('650','$page?popup=yes&t=$t','$title')"; } function popup(){ $page=CurrentPageName(); $tpl=new templates();
function popup_conf_list() { $page = CurrentPageName(); $mailman = new mailmanctl(); $tabs = popup_tabs(); $add = Paragraphe("mailman-add.png", '{add_mailman}', '{add_mailman_text}', 'javascript:MailManAddlist()'); $sock = new sockets(); $EnableMailman = $sock->GET_INFO("MailManEnabled"); $enable_mailman = Paragraphe_switch_img('{ENABLE_MAILMAN}', '{ENABLE_MAILMAN_TEXT}', 'EnableMailman', $EnableMailman, null, 320); $html = "\n\t\n\t\n\t<form name='FFMCOMPRESSS'>\n\t<H1>{APP_MAILMAN}</h1>\n\t{$tabs}\n\t<p class=caption>{manage_distribution_lists}</p>\n\t\t<table style='width:100%'>\n\t\t<tr>\n\t\t\t<td width=60% valign='top'>\n\t\t\t<div id='mailman_info'></div>\n\t\t\t{$enable_mailman}\n\t\t\t<div style='text-align:left;margin-top:5px'>" . button("{advanced_options}", "MailManAdvancedOptions()") . "</div>\n\t\t\t<hr>\n\t\t\t<div style='margin-top:5px;text-align:right'>" . button("{edit}", "EnableMailManList()") . "</div>\n\t\t</td>\n\t\t<td valign='top'>" . Paragraphe("info-48.png", "{online_help}", "{online_help_text}", "javascript:s_PopUp('http://www.artica.fr/index.php/menudocmessaging/38-smtp-routing/285-using-distributions-lists-with-mailman-and-artica',1024,800") . "\n\t\t</td>\n\t\t</tr>\n\t\t<tr>\n\t\t<td valign='top' width=99% colspan=2>\n\t\t\t\t\n\t\t<div id='mailmanlist'>" . popup_list() . "</div>\n\t\t</td>\n\t</tr>\n\t</table>"; $tpl = new templates(); echo $tpl->_ENGINE_parse_body($html, 'mailman.lists.php'); }