示例#1
0
    exit;
}
if (isset($_GET["form-edit"])) {
    disk_form();
    exit;
}
if (isset($_POST["loop-dir"])) {
    disk_form_save();
    exit;
}
if (isset($_POST["loop-del"])) {
    disk_del();
    exit;
}
if (isset($_POST["loopcheck"])) {
    disk_check();
    exit;
}
if (isset($_GET["js"])) {
    js();
    exit;
}
start();
function js()
{
    header("content-type: application/x-javascript");
    $page = CurrentPageName();
    $tpl = new templates();
    $virtual_disks = $tpl->_ENGINE_parse_body("{virtual_disks}");
    $html = "YahooWin3('895','{$page}','{$virtual_disks}');";
    echo $html;
示例#2
0
<?php
	include_once('ressources/class.templates.inc');
	include_once('ressources/class.users.menus.inc');
	include_once('ressources/class.ldap.inc');
	
	$user=new usersMenus();
	if(!$user->AsSystemAdministrator){echo "alert('no privileges');";die();}

	if(isset($_GET["disks-list"])){disks_list();exit;}
	if(isset($_GET["tools"])){tools();exit;}
	if(isset($_GET["form-edit"])){disk_form();exit;}
	if(isset($_POST["loop-dir"])){disk_form_save();exit;}
	if(isset($_POST["loop-del"])){disk_del();exit;}
	if(isset($_POST["loopcheck"])){disk_check();exit;}
	if(isset($_GET["js"])){js();exit;}
	start();
	
	
	function js(){
		header("content-type: application/x-javascript");
		$page=CurrentPageName();
		$tpl=new templates();
		$virtual_disks=$tpl->_ENGINE_parse_body("{virtual_disks}");
		$html="YahooWin3('895','$page','$virtual_disks');";
		echo $html;
	}	


function start(){
	$page=CurrentPageName();
	$tpl=new templates();