<?php header("Pragma: no-cache"); header("Expires: 0"); 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"])) {
include_once('ressources/class.templates.inc'); 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();";}