} if (isset($_GET["restart-apache-no-timeout"])) { RestartApacheNow(); exit; } //network if (isset($_GET["SaveNic"])) { Reconfigure_nic(); exit; } if (isset($_GET["dnslist"])) { DNS_LIST(); exit; } if (isset($_GET["ChangeHostName"])) { ChangeHostName(); exit; } //WIFI if (isset($_GET["iwlist"])) { iwlist(); exit; } if (isset($_GET["start-wifi"])) { start_wifi(); exit; } //imapSYnc if (isset($_GET["imapsync-events"])) { imapsync_events(); exit;
if(isset($_POST["CheckIpV4ToIp26"])){CheckIpV4ToIp26();exit;} if(isset($_GET["virtuals-list"])){virtuals_list();exit;} if(isset($_GET["virt-ipaddr"])){virtuals_add();exit;} if(isset($_POST["virt-ipv6"])){virtuals_addv6();exit;} if(isset($_GET["virt-del"])){virtuals_del();exit;} if(isset($_GET["script"])){switch_script();exit;} if(isset($_GET["netconfig"])){netconfig_popup();exit;} if(isset($_GET["change-hostname-js"])){ChangeHostName_js();exit;} if(isset($_GET["hostname"])){hostname();exit;} if(isset($_GET["ChangeHostName"])){ChangeHostName();exit;} if(isset($_GET["AddDNSServer"])){AddDNSServer();exit;} if(isset($_GET["DeleteDNS"])){DeleteDNS();exit;} if(isset($_GET["DNSServers"])){DNS_SERVERS_POPUP();} if(isset($_GET["DNSServers-list"])){DNS_SERVERS_POPUP_LIST();} if(isset($_GET["js"])){js();exit;} if(isset($_GET["popup"])){popup();exit;} if(isset($_GET["popup2"])){popup2();exit;} if(isset($_GET["popup-tabs"])){tabs();exit;} if(isset($_GET["popup-hostname"])){tabs_hostname();exit;} if(isset($_GET["virtual-popup-add"])){virtual_add_form();exit;}
<?php if(isset($_GET["verbose"])){$GLOBALS["VERBOSE"]=true;ini_set('display_errors', 1);ini_set('error_reporting', E_ALL);ini_set('error_prepend_string',null);ini_set('error_append_string',null);} include_once('ressources/class.templates.inc'); include_once('ressources/class.html.pages.inc'); include_once('ressources/class.system.network.inc'); include_once('ressources/class.os.system.inc'); $users=new usersMenus(); if(!$users->AsSystemAdministrator){die();} if(isset($_GET["popup"])){popup();exit;} if(isset($_POST["netbiosname"])){ChangeHostName();exit;} js(); function js(){ $tpl=new templates(); $page=CurrentPageName(); $users=new usersMenus(); $sock=new sockets(); $hostname=trim($sock->GET_INFO("myhostname")); if($hostname==null){$hostname=$users->fqdn;} $title=$tpl->_ENGINE_parse_body("{change_server_hostname} » $hostname"); $html="YahooWinBrowse(470,'$page?popup=yes','$title')"; echo $html; } function popup(){