示例#1
0
	if(isset($_GET["lvm-disk-add-form"])){disks_add_form();exit;}
	if(isset($_GET["groups-infos"])){group_info();exit;}
	if(isset($_GET["vg-content"])){group_content();exit;}
	if(isset($_GET["lvm-tools"])){tools();exit;}
	
	if(isset($_GET["vgservice"])){vgservice_popup();exit;}
	if(isset($_POST["vgservice-save"])){vgservice_save();exit;}
	
	//lvcreate-popup
	if(isset($_GET["lvcreate-popup"])){lvcreate_popup();exit;}
	if(isset($_POST["lvcreate-perform"])){ACTION_LVM_CREATE_LV();exit;}
	if(isset($_POST["lvs-remove"])){ACTION_LVS_REMOVE();exit;}
	
	//actions
	if(isset($_GET["LVM_CONVERT_DEV"])){ACTION_LVM_CONVERT_DEV();exit;}
	if(isset($_GET["LVM_CREATE_GROUP"])){ACTION_LVM_CREATE_GROUP();exit;}
	
	
	
	start();
	
	
	
function start(){
	$page=CurrentPageName();
	$html="<table style='width:720px'>
	<tr>
		<td valign='top' width=1%><div id='lvm-tools'></div>
		<td valign='top' width=99%><div id='lvm-disks-list'></div>
	</tr>
	</table>
示例#2
0
}
if (isset($_POST["lvcreate-perform"])) {
    ACTION_LVM_CREATE_LV();
    exit;
}
if (isset($_POST["lvs-remove"])) {
    ACTION_LVS_REMOVE();
    exit;
}
//actions
if (isset($_GET["LVM_CONVERT_DEV"])) {
    ACTION_LVM_CONVERT_DEV();
    exit;
}
if (isset($_GET["LVM_CREATE_GROUP"])) {
    ACTION_LVM_CREATE_GROUP();
    exit;
}
start();
function start()
{
    $page = CurrentPageName();
    $html = "<table style='width:720px'>\n\t<tr>\n\t\t<td valign='top' width=1%><div id='lvm-tools'></div>\n\t\t<td valign='top' width=99%><div id='lvm-disks-list'></div>\n\t</tr>\n\t</table>\n\t\n\t\n\t<script>\n\t\tfunction refreshLVMList(){\n\t\t\tLoadAjax('lvm-disks-list','{$page}?lvm-disks-list=yes');\n\t\t}\n\trefreshLVMList();\n\t</script>\n\t\n\t";
    echo $html;
}
function disks_list()
{
    $page = CurrentPageName();
    $tpl = new templates();
    $sock = new sockets();
    $lvmdiskscan_datas = base64_decode($sock->getFrameWork("cmd.php?lvmdiskscan=yes"));