- Check regularly what is added
- Clean everything what you do not know
- You provide the service by hosting it. Your are responsible for it!
- - Change your secret often
\ No newline at end of file
+ - Change your secret often
+
+Make sure DEBUG is false for production.
\ No newline at end of file
if(!empty($_short)) {
$contentType = 'Content-type: text/plain; charset=UTF-8';
$contentView = 'view';
+ $httpResponseCode = 404;
+ $contentBody = 'File not found.';
$_requestFile = Summoner::createStoragePath($_short);
$_requestFile .= $_short;
if(is_readable($_requestFile)) {
$contentBody = $_requestFile;
+ $httpResponseCode = 200;
}
}
elseif ($_create === true) {