Пример #1
0
<?php
	include_once('ressources/class.templates.inc');
	include_once('ressources/class.ldap.inc');
	include_once('ressources/class.users.menus.inc');
	
$usersmenus=new usersMenus();
if($usersmenus->AsArticaAdministrator==true){}else{header('location:users.index.php');exit;}		
	
	if(isset($_GET["tab"])){main_switch();exit;}
	if(isset($_GET["ajaxmenu"])){echo popup();exit;}
	if(isset($_GET["js"])){main_ajax();exit;}
	if(isset($_GET["AdressBookPopup"])){echo AdressBookPopup();exit;}
	if(isset($_GET["EnableRemoteAddressBook"])){AdressBookPopup_save();exit;}

page();	
function page(){
$page=CurrentPageName();	
$usersmenus=new usersMenus();
if($usersmenus->AsArticaAdministrator==true){}else{header('location:users.index.php');exit;}	
$sys=new systeminfos();

$distri=$sys->ditribution_name;


$html="
<div class=caption>Distribution: <strong>$distri</strong>&nbsp;Kernel:&nbsp;$sys->kernel_version&nbsp;LIBC:&nbsp;$sys->libc_version</div>
<table style='width:600px' align=center>
<tr>
<td width=1% valign='top'>
	<table>
		<tr>
Пример #2
0
    exit;
}
if (isset($_GET["tab"])) {
    main_switch();
    exit;
}
if (isset($_GET["ajaxmenu"])) {
    echo popup();
    exit;
}
if (isset($_GET["js"])) {
    main_ajax();
    exit;
}
if (isset($_GET["AdressBookPopup"])) {
    echo AdressBookPopup();
    exit;
}
if (isset($_GET["EnableRemoteAddressBook"])) {
    AdressBookPopup_save();
    exit;
}
page();
function network_js()
{
    $page = CurrentPageName();
    $html = "LoadAjax('BodyContent','{$page}?tab=network&newinterface=yes');";
    echo $html;
}
function page()
{