Пример #1
0
    exit;
}
if (isset($_GET["BRIDGE_ETH_SHOW"])) {
    echo ShowIPConfig($_GET["BRIDGE_ETH_SHOW"]);
    exit;
}
if (isset($_GET["index"])) {
    index_page();
    exit;
}
if (isset($_GET["rebuild-certificate"])) {
    rebuild_certificate();
    exit;
}
if (isset($_GET["build-server-events"])) {
    events_content();
    exit;
}
if (isset($_GET["events-sessions-details"])) {
    events_sessions_details();
    exit;
}
if (isset($_GET["openvpn-status"])) {
    status();
    exit;
}
js();
function events_sessions_js()
{
    $page = CurrentPageName();
    echo "\$('#BodyContent').load('{$page}?events-session=yes');";
Пример #2
0
if(isset($_GET["ROUTE_SHOULD_BE"])){routes_shouldbe();exit;}
if(isset($_GET["ROUTE_FROM"])){routes_add();exit;}
if(isset($_GET["routes-list"])){routes_list();exit;}
if(isset($_GET["DELETE_ROUTE_FROM"])){routes_delete();exit;}

if(isset($_GET["events-js"])){events_js();exit;}
if(isset($_GET["events"])){events();exit;}
if(isset($_GET["events-session"])){events_sessions();exit;}
if(isset($_GET["session-js"])){events_sessions_js();exit;}
if(isset($_GET["clients-settings"])){Clients_settings();exit;}
if(isset($_GET["ncc"])){ncc();exit;}
if(isset($_GET["OpenVPNChangeServerMode"])){OpenVPNChangeServerMode();exit;}
if(isset($_GET["BRIDGE_ETH_SHOW"])){echo ShowIPConfig($_GET["BRIDGE_ETH_SHOW"]);exit;}
if(isset($_GET["index"])){index_page();exit;}
if(isset($_GET["rebuild-certificate"])){rebuild_certificate();exit;}
if(isset($_GET["build-server-events"])){events_content();exit;}
if(isset($_GET["events-sessions-details"])){events_sessions_details();exit;}
if(isset($_GET["openvpn-status"])){status();exit;}

js();


function events_sessions_js(){
	$page=CurrentPageName();
	echo "$('#BodyContent').load('$page?events-session=yes');";
	
}
function server_settings_js(){
	$page=CurrentPageName();
	echo "$('#BodyContent').load('$page?server-settings=yes');";
}