include_once('ressources/class.ldap.inc'); include_once('ressources/class.users.menus.inc'); include_once('ressources/class.samba.inc'); include_once('ressources/class.nfs.inc'); include_once("ressources/class.harddrive.inc"); $users=new usersMenus(); if(!IsPriv()){ $tpl=new templates(); $error=$tpl->javascript_parse_text("{ERROR_NO_PRIVS}"); echo "alert('$error')"; die(); } if(isset($_GET["jdisk"])){echo jdisk();exit;} if(isset($_GET["main_disks_discover"])){echo main_disks_discover();exit;} if(isset($_GET["browsedisk_start"])){echo browsedisk_start();exit;} if(isset($_POST["dir"])){json_root();exit;} if(isset($_GET["TreeRightInfos"])){TreeRightInfos();exit;} if(isset($_GET["rmdirp"])){rmdirp();exit;} if(isset($_GET["null"])){exit;} if(isset($_GET["hidden-add"])){hidden_disk_js();exit;} if(isset($_GET["hidden-disk-popup"])){hidden_disk_popup();exit;} if(isset($_GET["add-disk-save"])){hidden_disk_save();exit;} if(isset($_GET["del-disk-save"])){hidden_disk_delete();exit;} $page=CurrentPageName(); $tpl=new templates(); $start="Browse();"; if(isset($_GET["in-front-ajax"])){$start="Browse2();";}
header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT"); header("Cache-Control: no-cache, must-revalidate"); include_once 'ressources/class.templates.inc'; include_once 'ressources/class.ldap.inc'; include_once 'ressources/class.users.menus.inc'; $user = new usersMenus(); if ($user->AsArticaAdministrator == false) { die; exit; } if (isset($_GET["jdisk"])) { echo jdisk(); exit; } if (isset($_GET["main_disks_discover"])) { echo main_disks_discover(); exit; } if (isset($_GET["browsedisk_start"])) { echo browsedisk_start(); exit; } if (isset($_POST["branch_id"])) { json_root(); exit; } if (isset($_GET["TreeRightInfos"])) { TreeRightInfos(); exit; } $page = CurrentPageName();
function main_disk_retranslation() { $html = main_tabs() . "<H5>{disk_retranslation}</h5>\n<table style='width:100%'>\n<tr>\n<td valign='top' width=70%>\n<p class=caption>{disk_retranslation_text}</p>\n</td>\n<td valign='top' width=30%>\n<div id='dar_status'>" . dar_status() . "</div>\n</td>\n</table>\n\n<table style='width:100%'>\n<tr>\n<td valign='top' width=50%' style='padding:9px'>\n\t<H5>{available_disks}</h5>\n\t<div id='target_disks_list'>" . main_disks_discover() . "</div>\n\t<br>\n\t<H5>{personal_folders}</h5>\n\t<table style='width:100%'>\n\t<tr>\n\t\t<td style='width:99%' width=99%><input type='text' id='TreeSelectedFolder' value='' style='font-size:9px;'></td>\n\t\t<td style='width:1%' width=1%>\n\t\t\t<div style='width:100%;text-align:right'><input type='button' OnClick=\"javascript:Loadjs('TreeBrowse.php');\" value='{browse}... »'></div>\n\t\t</td>\n\t</tr>\n\t<tr>\n\t\t<td colspan=2 align='right' style='border-top:1px solid #CCCCCC'>\n\t\t\t<input type='button' OnClick=\"javascript:AddPersonalizeFolder();\" value='{add} »'>\n\t\t</td>\n\t</tr>\n\t</table>\n\t<div id='persopath'>" . main_disk_persopath_list() . "</div>\n\t\n\t\n</td>\n<td valign='top' width=50%' style='padding:9px'>\n\t<H5>{selected_disks}</h5>\n\t<div id='target_selected_list'>" . selected_disk_list() . "</div>\n</td>\n</tr>\n</table>\n"; $tpl = new templates(); echo $tpl->_ENGINE_parse_body($html); }