include_once 'ressources/class.groups.inc'; include_once 'ressources/class.artica.inc'; include_once 'ressources/class.ini.inc'; include_once 'ressources/class.squid.inc'; include_once 'ressources/class.system.network.inc'; include_once 'ressources/class.squid.reverse.inc'; include_once 'ressources/class.nginx.interface-tools.php'; $user = new usersMenus(); if ($user->AsSquidAdministrator == false) { $tpl = new templates(); echo "<p class=text-error>" . $tpl->_ENGINE_parse_body("{ERROR_NO_PRIVS}") . "</p>"; die; exit; } if (isset($_GET["unlink-websites-js"])) { unlink_js(); exit; } if (isset($_POST["unlink-websites"])) { unlink_perform(); exit; } if (isset($_GET["list"])) { list_items(); exit; } table(); function unlink_js() { $page = CurrentPageName(); $tpl = new templates();
if(isset($_POST["second_ipaddr"])){step0_save();exit;} if(isset($_POST["SLAVE"])){step0_save();exit;} if(isset($_GET["tabs"])){tabs();exit;} if(isset($_GET["status"])){status();exit;} if(isset($_GET["step1"])){step1();exit;} if(isset($_GET["step2"])){step2();exit;} if(isset($_GET["step3"])){step3();exit;} if(isset($_GET["step4"])){step4();exit;} if(isset($_GET["step5"])){step5();exit;} if(isset($_GET["step6"])){step6();exit;} if(isset($_GET["step7"])){step7();exit;} if(isset($_GET["step8"])){step8();exit;} if(isset($_GET["unlink-js"])){unlink_js();exit;} if(isset($_GET["unlink-step1"])){unlink_setp1();exit;} if(isset($_GET["unlink-step2"])){unlink_setp2();exit;} if(isset($_GET["unlink-notify-slave"])){unlink_notify_slave();exit;} if(isset($_GET["unlink-reconfigure"])){unlink_reconfigure();exit;} if(isset($_GET["unlink-step3"])){unlink_setp3();exit;} if(isset($_POST["StepR1"])){die();} js(); function js(){ header("content-type: application/x-javascript"); $page=CurrentPageName(); $tpl=new templates(); $title=$tpl->_ENGINE_parse_body("{failover}");