Ejemplo n.º 1
0
	
	
$usersmenus=new usersMenus();
if(!$usersmenus->AsAnAdministratorGeneric){
	$tpl=new templates();
	$alert=$tpl->_ENGINE_parse_body('{ERROR_NO_PRIVS}');
	echo "alert('$alert');";
	die();	
}

if(isset($_GET["popup"])){popup();exit;}
if(isset($_GET["config"])){config();exit;}
if(isset($_GET["EnableDropBox"])){save();exit;}
if(isset($_GET["index"])){status();exit;}
if(isset($_GET["status"])){service_status();exit;}
if(isset($_GET["files"])){files_status();exit;}
if(isset($_GET["service-cmds-peform"])){service_cmds_perform();exit;}
if(isset($_GET["service-cmds"])){service_cmds_js();exit;}

js();
function service_cmds_js(){
	$page=CurrentPageName();
	$tpl=new templates();
	$cmd=$_GET["service-cmds"];
	$mailman=$tpl->_ENGINE_parse_body("{APP_DROPBOX}");
	$html="YahooWin6('650','$page?service-cmds-peform=$cmd','$mailman::$cmd');";
	echo $html;	
}

function js(){
	$tpl=new templates();
Ejemplo n.º 2
0
    exit;
}
if (isset($_GET["EnableDropBox"])) {
    save();
    exit;
}
if (isset($_GET["index"])) {
    status();
    exit;
}
if (isset($_GET["status"])) {
    service_status();
    exit;
}
if (isset($_GET["files"])) {
    files_status();
    exit;
}
js();
function js()
{
    $tpl = new templates();
    $title = $tpl->_ENGINE_parse_body("{APP_DROPBOX}");
    $page = CurrentPageName();
    $html = "YahooWin5('600','{$page}?popup=yes','{$title}');";
    echo $html;
}
function popup()
{
    $page = CurrentPageName();
    $users = new usersMenus();