示例#1
0
include_once 'ressources/class.templates.inc';
include_once 'ressources/class.ldap.inc';
include_once 'ressources/class.users.menus.inc';
include_once 'ressources/class.artica.inc';
include_once 'ressources/class.ini.inc';
include_once 'ressources/class.squid.inc';
include_once 'ressources/class.tcpip.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["proxies-list"])) {
    proxies_list();
    exit;
}
if (isset($_GET["add-proxy"])) {
    proxies_add_popup();
    exit;
}
if (isset($_POST["authip-add"])) {
    proxies_add();
    exit;
}
if (isset($_POST["proxy-delete"])) {
    proxies_delete();
    exit;
}
if (isset($_POST["proxy-enable"])) {
示例#2
0
	include_once('ressources/class.ini.inc');
	include_once('ressources/class.squid.inc');
	include_once('ressources/class.tcpip.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["proxies-list"])){proxies_list();exit;}
	if(isset($_GET["add-proxy"])){proxies_add_popup();exit;}
	if(isset($_POST["ipsrc"])){proxies_add();exit;}
	if(isset($_POST["proxy-delete"])){proxies_delete();exit;}
	if(isset($_POST["proxy-enable"])){proxies_enabled();exit;}
		js();
	
function js(){
	$t=time();
	$tpl=new templates();
	$page=CurrentPageName();
	$title=$tpl->_ENGINE_parse_body("{proxy_child}");
	$html="YahooWin4(600,'$page?popup=yes','$title')";
	echo $html;
}