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';
include_once 'ressources/class.mysql.inc';
$users = new usersMenus();
if (!$users->AsSystemAdministrator) {
    die("alert('no access');");
}
if (isset($_GET["popup"])) {
    popup();
    exit;
}
if (isset($_GET["remote-site"])) {
    remote_site_edit();
    exit;
}
if (isset($_GET["siteid"])) {
    remote_site_save();
    exit;
}
if (isset($_GET["remotesiteslist"])) {
    echo remote_sitelist();
    exit;
}
if (isset($_GET["delete-siteid"])) {
    remote_site_delete();
    exit;
}
if (isset($_GET["config-site"])) {
Beispiel #2
0
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');
include_once('ressources/class.mysql.inc');
$users=new usersMenus();
if(!$users->AsSystemAdministrator){die("alert('no access');");}


if(isset($_GET["js-inline"])){js_inline();exit;}
if(isset($_GET["popup"])){popup();exit;}

if(isset($_GET["remote-site-js"])){remote_site_js();exit;}
if(isset($_GET["remote-site"])){remote_site_tabs();exit;}
if(isset($_GET["remotesite-config"])){remote_site_edit();exit;}
if(isset($_GET["remotesite-routes"])){remote_site_routes();exit;}
if(isset($_GET["remotesite-routes-list"])){remote_site_routes_list();exit;}


if(isset($_POST["remote-site-route-add"])){remote_site_routes_add();exit;}
if(isset($_POST["remote-site-route-del"])){remote_site_routes_del();exit;}


if(isset($_POST["siteid"])){remote_site_save();exit;}
if(isset($_GET["remotesiteslist"])){echo remote_sitelist();exit;}
if(isset($_GET["delete-siteid"])){remote_site_delete();exit;}
if(isset($_GET["config-site"])){remote_site_config();exit;}
js();