if (!$usersmenus->AsSystemAdministrator) {
    $tpl = new templates();
    $alert = $tpl->_ENGINE_parse_body('{ERROR_NO_PRIVS}');
    echo "alert('{$alert}');";
    die;
}
if (isset($_GET["table"])) {
    table();
    exit;
}
if (isset($_GET["icap-search"])) {
    search();
    exit;
}
if (isset($_GET["route-js"])) {
    route_js();
    exit;
}
if (isset($_GET["route-popup"])) {
    route_popup();
    exit;
}
if (isset($_GET["test-route-js"])) {
    route_test_js();
    exit;
}
if (isset($_GET["test-route-popup"])) {
    route_test_popup();
    exit;
}
if (isset($_POST["test-route"])) {
Пример #2
0
include_once('ressources/class.groups.inc');
include_once('ressources/class.squid.inc');
include_once('ressources/class.ActiveDirectory.inc');
include_once('ressources/class.external.ldap.inc');

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

if(isset($_GET["table"])){table();exit;}
if(isset($_GET["icap-search"])){search();exit;}
if(isset($_GET["route-js"])){route_js();exit;}
if(isset($_GET["route-popup"])){route_popup();exit;}
if(isset($_GET["test-route-js"])){route_test_js();exit;}
if(isset($_GET["test-route-popup"])){route_test_popup();exit;}
if(isset($_POST["test-route"])){route_test_perform();exit;}
if(isset($_GET["route-move-js"])){route_move_js();exit;}
if(isset($_POST["move"])){route_move();exit;}
if(isset($_POST["zmd5"])){route_save();exit;}
if(isset($_GET["route-delete-js"])){route_delete_js();exit;}
if(isset($_POST["route-delete"])){route_delete();exit;}
tabs();

function route_move_js(){
	header("content-type: application/x-javascript");
	$page=CurrentPageName();
	$tpl=new templates();