function start() { $page = CurrentPageName(); $tpl = new templates(); $sock = new sockets(); $users = new usersMenus(); $zarafa = $tpl->_ENGINE_parse_body(quicklinks_paragraphe("zarafa-logo-48.png", "APP_ZARAFA", null, "QuickLinkSystems('section_zarafa')")); $postfix = $tpl->_ENGINE_parse_body(quicklinks_paragraphe("mass-mailing-postfix-48.png", "APP_POSTFIX", null, "QuickLinkSystems('section_postfix')")); if (!$users->ZARAFA_INSTALLED) { $zarafa = null; } $tr[] = $zarafa; $tr[] = $postfix; $tr[] = $tpl->_ENGINE_parse_body(quicklinks_paragraphe("48-bouclier.png", "security", "", "QuickLinkSystems('section_security')")); $tr[] = $tpl->_ENGINE_parse_body(quicklinks_paragraphe("folder-queue-48.png", "queue_management", "", "QuickLinkSystems('section_queue')")); $tr[] = $tpl->_ENGINE_parse_body(quicklinks_paragraphe("48-categories-white.png", "white list", "", "QuickLinkSystems('section_whitelist')")); $tr[] = $tpl->_ENGINE_parse_body(quicklinks_paragraphe("web-site-48.png", "main_interface", "main_interface_back_interface_text", "QuickLinksHide()")); $count = 1; while (list($key, $line) = each($tr)) { if ($line == null) { continue; } $f[] = "<li id='kwick1'>{$line}</li>"; $count++; } $html = "\n <div id='QuickLinksTop'>\n <ul class='kwicks'>\n\t\t\t\t\t" . @implode("\n", $f) . "\n \n </ul>\n </div>\n\t\n\t<div id='BodyContent' style='width:900px'></div>\n\t\n\t\n\t<script>\n\t\tfunction LoadQuickTaskBar(){\n\t\t\t\$(document).ready(function() {\n\t\t\t\t\$('#QuickLinksTop .kwicks').kwicks({max: 205,spacing: 5});\n\t\t\t});\n\t\t}\n\t\t\n\t\n\t\tfunction QuickLinkSystems(sfunction){\n\t\t\tSet_Cookie('QuickLinkCachePostfix', '{$page}?function='+sfunction, '3600', '/', '', '');\n\t\t\tLoadAjax('BodyContent','{$page}?function='+sfunction);\n\t\t}\n\t\t\n\t\tfunction QuickLinkMemory(){\n\t\t\tvar memorized=Get_Cookie('QuickLinkCachePostfix');\n\t\t\tif(!memorized){QuickLinkSystems('section_postfix');return;}\n\t\t\tif(memorized.length>0){LoadAjax('BodyContent',memorized);}else{QuickLinkSystems('section_mynic');}\n\t\t\n\t\t}\n\t\t\n\t\tLoadQuickTaskBar();\n\t\tQuickLinkMemory();\n\t</script>\n\t"; $tpl = new templates(); echo $tpl->_ENGINE_parse_body($html); }
function start() { $page = CurrentPageName(); $tpl = new templates(); $sock = new sockets(); $users = new usersMenus(); $nic = $tpl->_ENGINE_parse_body(quicklinks_paragraphe("folder-network-48.png", "parameters", null, "QuickLinkSystems('section_mynic')")); $openvpn = $tpl->_ENGINE_parse_body(quicklinks_paragraphe("48-openvpn.png", "APP_OPENVPN", null, "QuickLinkSystems('section_openvpn')")); $network_services = $tpl->_ENGINE_parse_body(quicklinks_paragraphe("48-network-server.png", "network_services", null, "QuickLinkSystems('section_network_services')")); $dhcp = $tpl->_ENGINE_parse_body(quicklinks_paragraphe("48-dhcp.png", "APP_DHCP", null, "QuickLinkSystems('section_dhcp')")); $computers = $tpl->_ENGINE_parse_body(quicklinks_paragraphe("48-computer-alias.png", "browse_computers", "browse_computers_text", "QuickLinkSystems('section_computers')")); $stats = $tpl->_ENGINE_parse_body(quicklinks_paragraphe("perf-stats-48.png", "statistics", null, "QuickLinkSystems('section_statistics')")); if (!$users->OPENVPN_INSTALLED) { $openvpn = null; } $tr[] = $nic; $tr[] = $dhcp; $tr[] = $network_services; $tr[] = $computers; $tr[] = $stats; $tr[] = $tpl->_ENGINE_parse_body(quicklinks_paragraphe("web-site-48.png", "main_interface", "main_interface_back_interface_text", "QuickLinksHide()")); $count = 1; while (list($key, $line) = each($tr)) { if ($line == null) { continue; } $f[] = "<li id='kwick1'>{$line}</li>"; $count++; } $html = "\n <div id='QuickLinksTop'>\n <ul class='kwicks'>\n\t\t\t\t\t" . @implode("\n", $f) . "\n \n </ul>\n </div>\n\t\n\t<div id='BodyContent' style='width:900px'></div>\n\t\n\t\n\t<script>\n\t\tfunction LoadQuickTaskBar(){\n\t\t\t\$(document).ready(function() {\n\t\t\t\t\$('#QuickLinksTop .kwicks').kwicks({max: 205,spacing: 5});\n\t\t\t});\n\t\t}\n\t\t\n\t\n\t\tfunction QuickLinkSystems(sfunction){\n\t\t\tSet_Cookie('QuickLinkCacheNet', '{$page}?function='+sfunction, '3600', '/', '', '');\n\t\t\tLoadAjax('BodyContent','{$page}?function='+sfunction);\n\t\t}\n\t\t\n\t\tfunction QuickLinkMemory(){\n\t\t\tvar memorized=Get_Cookie('QuickLinkCacheNet');\n\t\t\tif(!memorized){QuickLinkSystems('section_mynic');return;}\n\t\t\tif(memorized.length>0){LoadAjax('BodyContent',memorized);}else{QuickLinkSystems('section_mynic');}\n\t\t\n\t\t}\n\t\t\n\t\tLoadQuickTaskBar();\n\t\tQuickLinkMemory();\n\t</script>\n\t"; $tpl = new templates(); echo $tpl->_ENGINE_parse_body($html); }
function start() { $page = CurrentPageName(); $tpl = new templates(); $sock = new sockets(); $users = new usersMenus(); $EnablePostfixMultiInstance = $sock->GET_INFO("EnablePostfixMultiInstance"); if (!is_numeric($EnablePostfixMultiInstance)) { $EnablePostfixMultiInstance = 0; } if ($users->cyrus_imapd_installed) { if ($users->AsMailBoxAdministrator) { $cyrus = $tpl->_ENGINE_parse_body(quicklinks_paragraphe("bg-cyrus-48.png", "APP_CYRUS", null, "QuickLinkSystems('section_cyrus')")); } } if ($users->roundcube_installed) { $roundcube = $tpl->_ENGINE_parse_body(quicklinks_paragraphe("roundcube-48.png", "webmail", null, "QuickLinkSystems('section_roundcube')")); } $fetchmail = $tpl->_ENGINE_parse_body(quicklinks_paragraphe("fetchmail-rule-48.png", "APP_FETCHMAIL_TINY", null, "QuickLinkSystems('section_fetchmail')")); $postfix = $tpl->_ENGINE_parse_body(quicklinks_paragraphe("mass-mailing-postfix-48.png", "APP_POSTFIX", null, "QuickLinkPostfix()")); $tr[] = $cyrus; $tr[] = $fetchmail; $tr[] = $roundcube; $tr[] = $postfix; $tr[] = $tpl->_ENGINE_parse_body(quicklinks_paragraphe("web-site-48.png", "main_interface", "main_interface_back_interface_text", "QuickLinksHide()")); $count = 1; while (list($key, $line) = each($tr)) { if ($line == null) { continue; } $f[] = "<li id='kwick1'>{$line}</li>"; $count++; } while (list($key, $line) = each($GLOBALS["QUICKLINKS-ITEMS"])) { $jsitems[] = "\tif(document.getElementById('{$line}')){document.getElementById('{$line}').className='QuickLinkTable';}"; } $html = "<div id='BodyContent' style='width:100%'></div>\n\t\n\t\n\t<script>\n\t\t\n\t\tfunction QuickLinkCyrusInternal(){\n\t\t\tLoadjs('quicklinks.postfix.multiple.php?js=yes');\n\t\t\n\t\t}\t\t\n\t\t\n\t\tfunction QuickLinkPostfix(){\n\t\t\tLoadjs('quicklinks.postfix.php?js=yes');\t\t\n\t\t}\t\t\n\t\t\n\t\n\t\tfunction QuickLinkSystems(sfunction){\n\t\t\tSet_Cookie('QuickLinkCacheCyrus', '{$page}?function='+sfunction, '3600', '/', '', '');\n\t\t\tLoadAjax('BodyContent','{$page}?function='+sfunction);\n\t\t}\n\t\t\n\t\tfunction QuickLinkMemory(){\n\t\t\tvar memorized=Get_Cookie('QuickLinkCacheCyrus');\n\t\t\tif(memorized=='section_instances'){QuickLinkSystems('section_cyrus');return;}\n\t\t\tif(!memorized){QuickLinkSystems('section_cyrus');return;}\n\t\t\tif(memorized.length>0){LoadAjax('BodyContent',memorized);}else{QuickLinkSystems('section_cyrus');}\n\t\t\n\t\t}\n\t\t\n\t\tfunction QuickLinkShow(id){\n\t\t\t" . @implode("\n", $jsitems) . "\n\t\t\tif(document.getElementById(id)){document.getElementById(id).className='QuickLinkOverTable';}\n\t\t\t}\t\t\n\t\t\n\t\tLoadQuickTaskBar();\n\t\tQuickLinkMemory();\n\t</script>\n\t"; $tpl = new templates(); echo $tpl->_ENGINE_parse_body($html); }
$tr2[] = $tpl->_ENGINE_parse_body(quicklinks_paragraphe("bigkav-48.png", "APP_KAV4PROXY", "softwares_mangement_text", "QuickLinkSystems('section_kav4proxy')")); } } if ($users->SQUID_APPLIANCE) { if (count($tr2) < 7) { if ($users->AsDansGuardianAdministrator) { if ($SQUIDEnable == 1) { $tr2[] = $tpl->_ENGINE_parse_body(quicklinks_paragraphe("web-filtering-48.png", "WEB_FILTERING", "softwares_mangement_text", "QuickLinkSystems('section_webfiltering_dansguardian')")); } } } } if ($users->SQUID_APPLIANCE or $users->WEBSTATS_APPLIANCE or $users->KASPERSKY_WEB_APPLIANCE) { if ($users->AsSquidAdministrator) { if ($SQUIDEnable == 1) { $tr2[] = $tpl->_ENGINE_parse_body(quicklinks_paragraphe("48-logs.png", "PROXY_EVENTS", "PROXY_EVENTS", "QuickLinkSystems('section_squid_rtmm')")); } } } } while (list($key, $line) = each($tr2)) { $CLEAN[$line] = $line; } $tr2 = array(); while (list($key, $line) = each($CLEAN)) { $tr2[] = $line; } if ($GLOBALS["VERBOSE"]) { echo "{$page}:ITEMS = " . count($tr2) . " " . __LINE__ . "\n"; } if (count($tr2) < 7) {
} if (!$users->AsPostfixAdministrator) { $postfix = null; } if ($users->ZARAFA_APPLIANCE) { $postfix = $tpl->_ENGINE_parse_body(quicklinks_paragraphe("zarafa-logo-48.png", "APP_ZARAFA", null, "QuickLinkPostfix()")); } if ($users->LOAD_BALANCE_APPLIANCE) { $postfix = null; $squid = null; $freewebs = null; $crossroads = $tpl->_ENGINE_parse_body(quicklinks_paragraphe("48-blance-servers.png", "load_balancing", null, "QuickLinkSystems('section_crossroads')")); } $tr[] = $tpl->_ENGINE_parse_body(quicklinks_paragraphe("server-48.png", "manage_your_server", "system_information_text", "QuickLinkSystems('section_start')")); $tr[] = $tpl->_ENGINE_parse_body(quicklinks_paragraphe("48-computer.png", "system_information", "system_information_text", "QuickLinkSystems('section_computers_infos')")); $tr[] = $tpl->_ENGINE_parse_body(quicklinks_paragraphe("48-bouclier.png", "security", "section_security_text", "QuickLinkSystems('section_security')")); $tr[] = $network; $tr[] = $samba; $tr[] = $squid; $tr[] = $postfix; $tr[] = $crossroads; while (list($key, $line) = each($tr)) { if ($line == null) { continue; } $tr2[] = $line; } if (count($tr2) < 7) { $tr2[] = $freewebs; } $count = 1;
$count=1; while (list ($key, $line) = each ($tr) ){if($line==null){continue;}$tr2[]=$line;} if(count($tr2)<6){ if($SQUIDEnable==1){ $tr2[]=$tpl->_ENGINE_parse_body(quicklinks_paragraphe("48-logs.png", "PROXY_EVENTS","PROXY_EVENTS", "QuickLinkSystems('section_squid_rtmm')")); } } $tr2[]=$tpl->_ENGINE_parse_body(quicklinks_paragraphe("web-site-48.png", "main_interface","main_interface_back_interface_text", "QuickLinksHide()")); while (list ($key, $line) = each ($tr2) ){ if($line==null){continue;} $f[]="<li id='kwick1'>$line</li>"; $count++; } while (list ($key, $line) = each ($GLOBALS["QUICKLINKS-ITEMS"]) ){ $jsitems[]="\tif(document.getElementById('$line')){document.getElementById('$line').className='QuickLinkTable';}"; }
function start() { $page = CurrentPageName(); $tpl = new templates(); $sock = new sockets(); $users = new usersMenus(); $EnablePostfixMultiInstance = $sock->GET_INFO("EnablePostfixMultiInstance"); $InnoDBFilePerTableAsk = $sock->GET_INFO("InnoDBFilePerTableAsk"); if (!is_numeric($EnablePostfixMultiInstance)) { $EnablePostfixMultiInstance = 0; } if (!is_numeric($InnoDBFilePerTableAsk)) { $InnoDBFilePerTableAsk = 0; } if (!$users->INNODB_FILE_PER_TABLE_INSTALL) { if ($users->ZARAFA_INSTALLED) { if ($InnoDBFilePerTableAsk == 0) { if (innodb_file_per_table_checks()) { return; } } } } $postfwd2 = $tpl->_ENGINE_parse_body(quicklinks_paragraphe("Firewall-Secure-48.png", "APP_POSTFWD2", null, "QuickLinkSystems('section_postfwd2')")); $zarafa = $tpl->_ENGINE_parse_body(quicklinks_paragraphe("zarafa-logo-48.png", "APP_ZARAFA", null, "QuickLinkSystems('section_zarafa')")); $postfix = $tpl->_ENGINE_parse_body(quicklinks_paragraphe("mass-mailing-postfix-48.png", "APP_POSTFIX", null, "QuickLinkSystems('section_postfix')")); $postfix_multiple = $tpl->_ENGINE_parse_body(quicklinks_paragraphe("postfix-multi-48.png", "multiple_instances", null, "QuickLinkPostfixMulti()")); $cyrus = $tpl->_ENGINE_parse_body(quicklinks_paragraphe("48-mailbox.png", "mailboxes", null, "QuickLinkCyrus()")); if (!$users->ZARAFA_INSTALLED) { $zarafa = null; } if ($EnablePostfixMultiInstance == 0) { $postfix_multiple = null; } $postfix_events = $tpl->_ENGINE_parse_body(quicklinks_paragraphe("48-mailevents.png", "POSTFIX_EVENTS", "POSTFIX_EVENTS_TEXT", "QuickLinkSystems('section_postfix_events')")); if (!$users->cyrus_imapd_installed) { $cyrus = null; } $tr[] = $postfix; $tr[] = $postfix_multiple; $tr[] = $tpl->_ENGINE_parse_body(quicklinks_paragraphe("48-bouclier.png", "security", "", "QuickLinkSystems('section_security')")); $tr[] = $tpl->_ENGINE_parse_body(quicklinks_paragraphe("folder-queue-48.png", "queue_management", "", "QuickLinkSystems('section_queue')")); $tr[] = $tpl->_ENGINE_parse_body(quicklinks_paragraphe("48-categories-white.png", "white list", "", "QuickLinkSystems('section_whitelist')")); $tr[] = $postfwd2; $tr[] = $postfix_events; $tr[] = $tpl->_ENGINE_parse_body(quicklinks_paragraphe("web-site-48.png", "main_interface", "main_interface_back_interface_text", "QuickLinksHide()")); $count = 1; while (list($key, $line) = each($tr)) { if ($line == null) { continue; } $f[] = "<li id='kwick1'>{$line}</li>"; $count++; } while (list($key, $line) = each($GLOBALS["QUICKLINKS-ITEMS"])) { $jsitems[] = "\tif(document.getElementById('{$line}')){document.getElementById('{$line}').className='QuickLinkTable';}"; } $html = "\n <div id='QuickLinksTop' class=mainHeaderContent>\n <ul class='kwicks'>\n\t\t\t\t\t" . @implode("\n", $f) . "\n \n </ul>\n </div>\n\t\n\t<div id='BodyContent' style='width:900px'></div>\n\t\n\t\n\t<script>\n\t\tfunction LoadQuickTaskBar(){\n\t\t\t\$(document).ready(function() {\n\t\t\t\t\$('#QuickLinksTop .kwicks').kwicks({max: 205,spacing: 5});\n\t\t\t});\n\t\t}\n\t\t\n\t\tfunction QuickLinkPostfixMulti(){\n\t\t\tLoadjs('quicklinks.postfix.multiple.php?js=yes');\n\t\t\n\t\t}\t\t\n\t\t\n\t\n\t\tfunction QuickLinkSystems(sfunction){\n\t\t\tSet_Cookie('QuickLinkCachePostfix', '{$page}?function='+sfunction, '3600', '/', '', '');\n\t\t\tLoadAjax('BodyContent','{$page}?function='+sfunction);\n\t\t}\n\t\t\n\t\tfunction QuickLinkMemory(){\n\t\t\tQuickLinkSystems('section_postfix');return;\n\t\t\n\t\t}\n\t\t\n\t\tfunction QuickLinkShow(id){\n\t\t\t" . @implode("\n", $jsitems) . "\n\t\t\tif(document.getElementById(id)){document.getElementById(id).className='QuickLinkOverTable';}\n\t\t\t}\t\t\t\n\t\t\n\t\tLoadQuickTaskBar();\n\t\tQuickLinkMemory();\n\t</script>\n\t"; $tpl = new templates(); echo $tpl->_ENGINE_parse_body($html); }
$page=CurrentPageName(); $tpl=new templates(); $account=$tpl->_ENGINE_parse_body(quicklinks_paragraphe("user-48.png", "myaccount",null, "QuickLinkSystems('section_myaccount')")); $webfiltering=$tpl->_ENGINE_parse_body(quicklinks_paragraphe("web-filtering-48.png", "WEB_FILTERING","softwares_mangement_text", "QuickLinkSystems('section_webfiltering_dansguardian')")); $squidStats=$tpl->_ENGINE_parse_body(quicklinks_paragraphe("statistics-48.png", "SQUID_STATS","proxyquicktext", "QuickLinkSystems('section_statistics')")); $tr[]=$account; $tr[]=$webfiltering; $tr[]=$squidStats; $tr[]=$squid; $tr[]=$tpl->_ENGINE_parse_body(quicklinks_paragraphe("48-parameters.png", "proxy_main_settings","proxy_main_settings", "QuickLinkSystems('section_browser_config')")); $tr[]=$tpl->_ENGINE_parse_body(quicklinks_paragraphe("48-logs.png", "realtime_events_squid","realtime_events_squid", "QuickLinkSystems('section_realtime_events')")); $tr[]=$tpl->_ENGINE_parse_body(quicklinks_paragraphe("web-site-48.png", "main_interface","main_interface_back_interface_text", "QuickLinksHideUsrProxy()")); $tr[]=$tpl->_ENGINE_parse_body(quicklinks_paragraphe("logoff-48.png", "logoff","logoff", "QuickLinksHideUsrLogoff()")); while (list ($key, $line) = each ($tr) ){if($line==null){continue;}$tr2[]=$line;} $count=1; while (list ($key, $line) = each ($tr2) ){ if($line==null){continue;} $f[]="<li id='kwick1'>$line</li>"; $count++;