Exemplo n.º 1
0
<?php

include_once dirname(__FILE__) . '/ressources/class.main_cf.inc';
include_once dirname(__FILE__) . '/ressources/class.ldap.inc';
include_once dirname(__FILE__) . "/ressources/class.sockets.inc";
include_once dirname(__FILE__) . "/ressources/class.mysql.inc";
if (isset($_GET["popup"])) {
    popup();
    exit;
}
if (isset($_GET["statusof"])) {
    statusof();
    exit;
}
if (isset($_GET["logsof"])) {
    logsof();
    exit;
}
if (isset($_GET["launch"])) {
    install_app();
    exit;
}
$user = new usersMenus();
if (!$user->AsSystemAdministrator) {
    $tpl = new templates();
    echo $tpl->javascript_parse_text("alert('{ERROR_NO_PRIVS}');");
    exit;
}
js();
function js()
{
Exemplo n.º 2
0
<?php
include_once(dirname(__FILE__) . '/ressources/class.main_cf.inc');
include_once(dirname(__FILE__) . '/ressources/class.ldap.inc');
include_once(dirname(__FILE__) . "/ressources/class.sockets.inc");
include_once(dirname(__FILE__) . "/ressources/class.mysql.inc");

if(isset($_GET["popup"])){popup();exit;}
if(isset($_GET["statusof"])){statusof();exit;}
if(isset($_GET["logsof"])){logsof();exit;}
if(isset($_GET["launch"])){install_app();exit;}



	$user=new usersMenus();
	if(!$user->AsSystemAdministrator){
		$tpl=new templates();
		echo $tpl->javascript_parse_text("alert('{ERROR_NO_PRIVS}');");
		exit();
	}


js();
	
	

function js(){
	
	
	$page=CurrentPageName();
	$prefix=str_replace('.','_',$page);