Example #1
0
    exit;
}
if (isset($_GET["MainParams-js"])) {
    MainParams_js();
    exit;
}
if (isset($_GET["MainParams-tab"])) {
    MainParams_tab();
    exit;
}
if (isset($_GET["MainParams-popup"])) {
    MainParams_popup();
    exit;
}
if (isset($_GET["port-js"])) {
    port_js();
    exit;
}
if (isset($_GET["port-tab"])) {
    port_tab();
    exit;
}
if (isset($_GET["port-popup"])) {
    port_popup();
    exit;
}
if (isset($_GET["delete-virtual-js"])) {
    delete_virtual_js();
    exit;
}
if (isset($_POST["delete-virtual-perform"])) {
Example #2
0
include_once(dirname(__FILE__).'/ressources/class.templates.inc');
include_once(dirname(__FILE__).'/ressources/class.ldap.inc');
include_once(dirname(__FILE__).'/ressources/class.users.menus.inc');
include_once(dirname(__FILE__).'/ressources/class.squid.inc');
include_once('ressources/class.system.network.inc');

$usersmenus=new usersMenus();
if(!$usersmenus->AsSquidAdministrator){
	$tpl=new templates();
	$alert=$tpl->_ENGINE_parse_body('{ERROR_NO_PRIVS}');
	echo "alert('$alert');";
	die();
}

if(isset($_GET["search"])){page_search();exit;}
if(isset($_GET["port-js"])){port_js();exit;}
if(isset($_GET["delete-port-js"])){delete_port_js();exit;}
if(isset($_GET["port-popup"])){port_popup();exit;}
if(isset($_POST["ipaddr"])){port_save();exit;}
if(isset($_POST["delete-port"])){port_delete();exit;}
page();


function port_js(){
	$page=CurrentPageName();
	header("content-type: application/x-javascript");
	$ID=intval($_GET["ID"]);
	$tpl=new templates();
	$q=new mysql_squid_builder();
	$title=$tpl->javascript_parse_text("{new_port}");