Exemple #1
0
    exit;
}
if (isset($_GET["details-week"])) {
    details_today("week");
    exit;
}
if (isset($_GET["details-month"])) {
    details_today("month");
    exit;
}
if (isset($_GET["details-table"])) {
    details_table();
    exit;
}
if (isset($_GET["details-tablerows"])) {
    details_tablerows();
    exit;
}
page();
function details_js()
{
    $page = CurrentPageName();
    $tpl = new templates();
    $array["IP_TO"] = "{ipaddr} {to}";
    $array["IP_FROM"] = "{ipaddr} {from}";
    $title = $tpl->_ENGINE_parse_body($array[$_GET["field"]]);
    $html = "YahooWin3('750','{$page}?details-tabs=yes&field={$_GET["field"]}&value={$_GET["value"]}','{$title}::{$_GET["value"]}::{$_GET["host"]}')";
    echo $html;
}
function details_tab()
{
Exemple #2
0
	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');
	include_once('ressources/class.mysql.squid.builder.php');
	
	$user=new usersMenus();

	if($user->AsSquidAdministrator==false){
		$tpl=new templates();
		echo "<p class=text-error>". $tpl->javascript_parse_text("{ERROR_NO_PRIVS}")."</p>";
		die();exit();
	}	
	
	if(isset($_GET["details-tablerows"])){details_tablerows();exit;}
	if(isset($_POST["nameserver"])){dns_add();exit;}
	if(isset($_POST["DnsDelete"])){dns_del();exit;}
	if(isset($_POST["SquidDNSUpDown"])){SquidDNSUpDown();exit;}
	
table();

function dns_add(){
	$_POST["nameserver"]=trim($_POST["nameserver"]);
	$IPClass=new IP();
	if(!$IPClass->isValid($_POST["nameserver"])){
		echo "{$_POST["nameserver"]} invalid\n";
		return;
	}
	$nameserver[$_POST["nameserver"]]=true;