示例#1
0
    exit;
}
if (isset($_GET["popup"])) {
    popup();
    exit;
}
if (isset($_GET["ftp_user"])) {
    Save();
    exit;
}
if (isset($_GET["main"])) {
    popup_main();
    exit;
}
if (isset($_GET["restrictions"])) {
    restrictions();
    exit;
}
if (isset($_GET["ftp_restriction_list"])) {
    ftp_restriction_list();
    exit;
}
if (isset($_GET["ftp_restriction_add"])) {
    ftp_restriction_add();
    exit;
}
if (isset($_GET["ftp_restriction_del"])) {
    ftp_restriction_del();
    exit;
}
if (isset($_GET["enable_ftp_restrictions"])) {
示例#2
0
	include_once('ressources/class.ini.inc');
	include_once('ressources/class.squid.inc');
	include_once('ressources/class.system.network.inc');
	
	
	$user=new usersMenus();
	if($user->AsSquidAdministrator==false){
		$tpl=new templates();
		echo "alert('". $tpl->javascript_parse_text("{ERROR_NO_PRIVS}")."');";
		die();exit();
	}

	if(isset($_GET["popup"])){popup();exit;}
	if(isset($_GET["ftp_user"])){Save();exit;}
	if(isset($_GET["main"])){popup_main();exit;}
	if(isset($_GET["restrictions"])){restrictions();exit;}
	if(isset($_GET["ftp_restriction_list"])){ftp_restriction_list();exit;}
	if(isset($_GET["ftp_restriction_add"])){ftp_restriction_add();exit;}
	if(isset($_GET["ftp_restriction_del"])){ftp_restriction_del();exit;}
	if(isset($_GET["enable_ftp_restrictions"])){enable_ftp_restrictions();exit;}
js();



function js(){
	
	$tpl=new templates();
	$title=$tpl->_ENGINE_parse_body("{squid_ftp_user}");
	$page=CurrentPageName();