exit; } if (isset($_GET["clients"])) { clients(); exit; } if (isset($_POST["ENABLE_SERVER"])) { SAVE_SERVER(); exit; } if (isset($_POST["IP_START"])) { SAVE_SERVER(); exit; } if (isset($_POST["EnableOpenVPNEndUserPage"])) { EnableOpenVPNEndUserPageSave(); exit; } js(); function js() { $tpl = new templates(); $page = CurrentPageName(); $title = $tpl->_ENGINE_parse_body("{OPENVPN_SERVER_SETTINGS}"); $html = "YahooWin4('600','{$page}?popup=yes','{$title}')"; echo $html; } function tabs() { $page = CurrentPageName(); if ($html != null) {
include_once('ressources/class.templates.inc'); include_once('ressources/class.users.menus.inc'); include_once('ressources/class.openvpn.inc'); include_once('ressources/class.system.network.inc'); include_once('ressources/class.tcpip.inc'); $users=new usersMenus(); if(!$users->AsSystemAdministrator){die("alert('no access');");} if(isset($_GET["popup"])){tabs();exit();} if(isset($_GET["server"])){server();exit();} if(isset($_GET["clients"])){clients();exit();} if(isset($_POST["ENABLE_SERVER"])){SAVE_SERVER();exit;} if(isset($_POST["IP_START"])){SAVE_SERVER();exit;} if(isset($_POST["EnableOpenVPNEndUserPage"])){EnableOpenVPNEndUserPageSave();exit;} js(); function js(){ $tpl=new templates(); $page=CurrentPageName(); $title=$tpl->_ENGINE_parse_body("{OPENVPN_SERVER_SETTINGS}"); $html="YahooWin4('600','$page?popup=yes','$title')"; echo $html; }