コード例 #1
0
ファイル: usb.index.php プロジェクト: BillTheBest/1.6.x
    exit;
}
if (isset($_GET["automount-add"])) {
    automount_add();
    exit;
}
if (isset($_GET["automount-del"])) {
    automount_del();
    exit;
}
if (isset($_GET["automount-table"])) {
    automount_list();
    exit;
}
if (isset($_GET["automount-list"])) {
    automount_table_list();
    exit;
}
main_page();
function change_label_js()
{
    $page = CurrentPageName();
    $tpl = new templates();
    $title = $tpl->_ENGINE_parse_body('{change_label}');
    $html = "\n\t\nfunction LoadMainLabel(){\n\tYahooWin6('320','{$page}?change-label-popup={$_GET["uuid"]}','{$title} {$_GET["uuid"]}');\n\t}\t\n\t\nvar x_ChangeUsbLabelEdit=function (obj) {\n\tvar results=obj.responseText;\n\tif (results.length>0){\n\t\talert(results);\n\t\t\n\t}\n\tLoadMainLabel();\n\tif(document.getElementById('usblistbrowse')){\n\t\tLoadAjax('usblistbrowse','usb.browse.php?usblist=yes');\n\t}\t\n\tif(document.getElementById('NewusbForm2009')){\n\t\tLoadjs('usb.index.php?uuid-infos={$_GET["uuid"]}');\n\t}\t\t\n}\n\t\n\nfunction ChangeUsbLabelEdit(){\n\t\tvar XHR = new XHRConnection();\n\t\tXHR.appendData('change-label-perform','{$_GET["uuid"]}');\n\t\tXHR.appendData('uuid',document.getElementById('uusb_label').value);\n\t\tdocument.getElementById('change_label_popup').innerHTML='<center style=\"width:100%\"><img src=img/wait_verybig.gif></center>';\n\t\tXHR.sendAndLoad('{$page}', 'GET',x_ChangeUsbLabelEdit);\n\t}\n\n\tLoadMainLabel();\n\t\n";
    echo $html;
}
function automount_js()
{
    //s&uuid=$uuid&dev=$usb->path&type=$usb->TYPE
    $usersmenus = new usersMenus();
コード例 #2
0
ファイル: usb.index.php プロジェクト: brucewu16899/1.6.x
	//umount=yes&uuid=$UUID
	if(isset($_GET["umount"])){umount_js();exit;}
	if(isset($_GET["umount-index-popup"])){umount_popup();exit;}
	if(isset($_GET["umount-mounted"])){umount_mounted();exit;}
	
	//mount=yes&uuid=$UUID&mounted=$path&type=$TYPE
	if(isset($_GET["mount"])){mount_js();exit;}
	if(isset($_GET["mount-index-popup"])){mount_popup();exit;}
	if(isset($_GET["mount-mounted"])){mount_mounted();exit;}
	
	if(isset($_GET["automount-js"])){automount_js();exit;}
	if(isset($_GET["automount-popup"])){automount_popup();exit;}
	if(isset($_GET["automount-add"])){automount_add();exit;}
	if(isset($_GET["automount-del"])){automount_del();exit;}
	if(isset($_GET["automount-table"])){automount_list();exit;}
	if(isset($_GET["automount-list"])){automount_table_list();exit;}
	
	
	
		main_page();
		
		
		
function change_label_js(){
	$page=CurrentPageName();
	$tpl=new templates();
	$title=$tpl->_ENGINE_parse_body('{change_label}');
	
	$html="
	
function LoadMainLabel(){