Beispiel #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.system.network.inc';
//info=proc
$usersmenus = new usersMenus();
if ($usersmenus->AsSystemAdministrator == false) {
    exit;
}
if (isset($_GET["popup"])) {
    popup();
    exit;
}
if (isset($_GET["proc"])) {
    popup_proc();
    exit;
}
js();
function js()
{
    $page = CurrentPageName();
    $tpl = new templates();
    $tile = $tpl->_ENGINE_parse_body('{network_hardware_infos}');
    $start = "NicinfosStart()";
    if ($_GET["info"] == 'proc') {
        $start = "ProcinfosStart()";
    }
    $html = "\n\t\n\t\tfunction NicinfosStart(){\n\t\t\tYahooWin2('600','{$page}?popup=yes','{$tile}');\n\t\t}\n\t\t\n\t\tfunction ProcinfosStart(){\n\t\t\tYahooWin2('600','{$page}?proc=yes','{$tile}');\n\t\t}\t\t\n\t\t\n\t\t{$start};\n\t\n\t";
    echo $html;
}
<?php

	include_once('ressources/class.templates.inc');
	include_once('ressources/class.ldap.inc');
	include_once('ressources/class.users.menus.inc');
	include_once('ressources/class.system.network.inc');
	
	
//info=proc	
$usersmenus=new usersMenus();
if($usersmenus->AsSystemAdministrator==false){exit;}

if(isset($_GET["popup"])){popup();exit;}
if(isset($_GET["proc"])){popup_proc();exit;}

js();

function js(){
	$page=CurrentPageName();
	$tpl=new templates();
	$tile=$tpl->_ENGINE_parse_body('{network_hardware_infos}');
	$start="NicinfosStart()";
	
	if($_GET["info"]=='proc'){$start="ProcinfosStart()";}
	$html="
	
		function NicinfosStart(){
			YahooWin2('600','$page?popup=yes','$tile');
		}
		
		function ProcinfosStart(){