No changes
This commit is contained in:
parent
8680a02b13
commit
b6b398f5bf
17374 changed files with 2475441 additions and 0 deletions
55
modules/ftp/modules/downloadzip/downloadzip.inc.php
Normal file
55
modules/ftp/modules/downloadzip/downloadzip.inc.php
Normal file
|
|
@ -0,0 +1,55 @@
|
|||
<?php
|
||||
|
||||
// -------------------------------------------------------------------------------
|
||||
// | net2ftp: a web based FTP client |
|
||||
// | Copyright (c) 2003-2013 by David Gartner |
|
||||
// | |
|
||||
// | This program is free software; you can redistribute it and/or |
|
||||
// | modify it under the terms of the GNU General Public License |
|
||||
// | as published by the Free Software Foundation; either version 2 |
|
||||
// | of the License, or (at your option) any later version. |
|
||||
// | |
|
||||
// -------------------------------------------------------------------------------
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
// **************************************************************************************
|
||||
// **************************************************************************************
|
||||
// ** **
|
||||
// ** **
|
||||
|
||||
function net2ftp_module_sendHttpHeaders() {
|
||||
|
||||
// --------------
|
||||
// This function sends HTTP headers
|
||||
// --------------
|
||||
|
||||
global $net2ftp_globals, $net2ftp_settings;
|
||||
|
||||
if (isset($_POST["list"]) == true) { $list = getSelectedEntries($_POST["list"]); }
|
||||
elseif (isset($_GET["list"]) == true) { $list = getSelectedEntries($_GET["list"]); }
|
||||
else { $list = ""; }
|
||||
|
||||
if ($net2ftp_settings["functionuse_downloadzip"] == "yes") {
|
||||
$zipactions["download"] = "yes";
|
||||
$zipactions["email"] = "no";
|
||||
$zipactions["save"] = "no";
|
||||
ftp_zip("", $net2ftp_globals["directory"], $list, $zipactions, "", 0);
|
||||
}
|
||||
else {
|
||||
$errormessage = __("This function has been disabled by the Administrator of this website.");
|
||||
setErrorVars(false, $errormessage, debug_backtrace(), __FILE__, __LINE__);
|
||||
return false;
|
||||
}
|
||||
|
||||
} // end net2ftp_sendHttpHeaders
|
||||
|
||||
// ** **
|
||||
// ** **
|
||||
// **************************************************************************************
|
||||
// **************************************************************************************
|
||||
|
||||
|
||||
?>
|
||||
Loading…
Add table
Add a link
Reference in a new issue