123456789101112131415161718192021 |
- <?php
- /**
- * This program is free software: you can redistribute it and/or modify
- * it under the terms of the COMMON DEVELOPMENT AND DISTRIBUTION LICENSE
- *
- * You should have received a copy of the
- * COMMON DEVELOPMENT AND DISTRIBUTION LICENSE (CDDL) Version 1.0
- * along with this program. If not, see http://www.sun.com/cddl/cddl.html
- *
- * 2019 - 2020 https://://www.bananas-playground.net/projekt/selfpaste
- */
- if (file_exists($contentBody)) {
- header('Expires: 0');
- header('Cache-Control: must-revalidate');
- header('Pragma: public');
- readfile($contentBody);
- exit;
- }
- else {
- echo $contentBody;
- }
|