<?php include_once dirname(__FILE__) . "/ressources/class.templates.inc"; include_once dirname(__FILE__) . "/ressources/class.crypt.php"; include_once dirname(__FILE__) . "/ressources/class.user.inc"; include_once dirname(__FILE__) . "/ressources/class.samba.inc"; include_once dirname(__FILE__) . "/ressources/class.ldap.inc"; include_once dirname(__FILE__) . "/ressources/class.user.inc"; include_once dirname(__FILE__) . "/ressources/class.squid.inc"; if (isset($_GET["file"])) { C_ICAP_FILE(); exit; } if (isset($_GET["download-file"])) { DOWNLOAD(); exit; } function C_ICAP_FILE() { $file = $_GET["file"]; if ($file != null) { $ci = new cicap(); $quarantinef = $ci->main_array["CONF"]["VirSaveDir"] . "/{$file}"; writelogs("{$file} -> {$quarantinef}", __FUNCTION__, __FILE__, __LINE__); $infos = FileInfo($quarantinef); } else { $infos = "ERROR! No file!"; } $tpl = new template_users("{$_GET["file"]}", $infos, 1, 0, 0, 0); $tpl->web_page = str_replace('LeftMenushide();', '', $tpl->web_page); echo $tpl->web_page;
case "expandall": for ($I = 1; $I <= $_SESSION['Numfile']; $I++) { $_SESSION['Opened_Folder'][$I] = 1; } break; case "collapse": COLLAPSE($_SESSION['Node']); break; case "collapseall": for ($I = 1; $I <= $_SESSION['Numfile']; $I++) { $_SESSION['Opened_Folder'][$I] = 0; } break; case "downloadfile": $ACTION = ""; DOWNLOAD($_SESSION['Node']); break; case "downloadfile1": $ACTION = ""; DOWNLOAD1($_SESSION['Node']); break; case "dirfunction": $ACTION = ""; DIR_FUNCTIONS($_SESSION['Node']); break; //select a Dir Function to process //select a Dir Function to process case "filefunction": $ACTION = ""; FILE_FUNCTIONS($_SESSION['Node']); break;