*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as
* published by the Free Software Foundation, either version 3 of the
* License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see
Error 404: Not Found
' . _('The time limit of this file has expired. It has been deleted.') . '
Error 403: Forbidden
'; require(JYRAPHE_ROOT . 'lib/template/footer.php'); exit; } } } header('Content-Length: ' . $file_size); header('Content-Type: ' . $mime_type); if(!jyraphe_is_viewable($mime_type)) { header('Content-Disposition: attachment; filename="' . $file_name . '"'); } readfile(VAR_FILES . $file_name); if($link_name[0] == 'O') { unlink($link_file); $new_name = jyraphe_detect_collision($file_name, VAR_TRASH); rename(VAR_FILES . $file_name, VAR_TRASH . $new_name); } exit; } else { header("HTTP/1.0 404 Not Found"); require(JYRAPHE_ROOT . 'lib/template/header.php'); echo 'Error 404: Not Found