<?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 == false) {
    header('location:users.index.php');
    exit;
}
if (isset($_GET["clocks"])) {
    echo GetSysDate();
    exit;
}
if (isset($_GET["hard"])) {
    echo HARD();
    exit;
}
if (isset($_GET["disk"])) {
    echo disk();
    exit;
}
if (isset($_GET["env"])) {
    echo env();
    exit;
}
if (isset($_GET["changeClock"])) {
    changeClock();
    exit;
}
if (isset($_GET["ConvertSystemToHard"])) {
Beispiel #2
0
<?php
	include_once('ressources/class.templates.inc');
	include_once('ressources/class.ldap.inc');
	include_once('ressources/class.users.menus.inc');
	include_once('ressources/class.main_cf.inc');
	$usersmenus=new usersMenus();
if($usersmenus->AsArticaAdministrator==false){header('location:users.index.php');exit;}
if(isset($_GET["clocks"])){echo GetSysDate();exit;}
if(isset($_GET["hard"])){echo HARD();exit;}
if(isset($_GET["disk"])){echo disk();exit;}
if(isset($_GET["env"])){echo env();exit;}
if(isset($_GET["changeClock"])){changeClock();exit;}
if(isset($_GET["ConvertSystemToHard"])){ConvertSystemToHard();exit;}
if(isset($_GET["popup-index"])){popup();exit;}


js();


function js(){

$page=CurrentPageName();
$prefix=str_replace(".","_",$page);
$tpl=new templates();
$title=$tpl->_ENGINE_parse_body('{hardware_info}');
	
	$users=new usersMenus();
	if(!$users->AsAnAdministratorGeneric){
		$error=$tpl->_ENGINE_parse_body("{ERROR_NO_PRIVS}");
		echo "alert('$error')";
		die();