Exemplo n.º 1
0
}
$user = new usersMenus();
if (!$user->AsSystemAdministrator) {
    echo "alert('no privileges');";
    die;
}
if (isset($_GET["add"])) {
    add_js();
    exit;
}
if (isset($_GET["add-popup"])) {
    add_popup();
    exit;
}
if (isset($_GET["iscsi-search"])) {
    add_search();
    exit;
}
if (isset($_GET["add-select"])) {
    add_select_popup();
    exit;
}
if (isset($_POST["Params"])) {
    add_select_sql();
    exit;
}
if (isset($_GET["iScsiClientDelete"])) {
    delete_client();
    exit;
}
if (isset($_GET["iScsciReconnect"])) {
Exemplo n.º 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.os.system.inc");
	include_once("ressources/class.lvm.org.inc");
	if(isset($_GET["verbose"])){$GLOBALS["VERBOSE"]=true;ini_set('display_errors', 1);ini_set('error_reporting', E_ALL);ini_set('error_prepend_string',null);ini_set('error_append_string',null);}
	$user=new usersMenus();
	if(!$user->AsSystemAdministrator){echo "alert('no privileges');";die();}
	
	
	if(isset($_GET["add"])){add_js();exit;}
	if(isset($_GET["add-popup"])){add_popup();exit;}
	if(isset($_GET["iscsi-search"])){add_search();exit;}
	if(isset($_GET["add-select"])){add_select_popup();exit;}
	if(isset($_POST["Params"])){add_select_sql();exit;}
	if(isset($_GET["iScsiClientDelete"])){delete_client();exit;}
	if(isset($_GET["iScsciReconnect"])){iScsciReconnect();exit;}
	
function add_js(){
	
	$page=CurrentPageName();
	$tpl=new templates();
	$title=$tpl->_ENGINE_parse_body("{add_iscsi_disk}");
	
	$html="YahooWin2('850','$page?add-popup=yes','$title');";
	echo $html;
	
}

function add_popup(){