hippopotato/public/index.php

22 lines
381 B
PHP

<?php
$limit_rate = Null;
$url = $_SERVER['REQUEST_URI'];
$file_directory_alias = '/files/';
$file_directory = '../'. $file_directory_alias;
if ( file_exists($file_directory . $url) )
{
if ( !is_null($limit_rate) )
{
header("X-Accel-Limit-Rate: {$limite_rate}");
}
header("X-Accel-Redirect: {$file_directory_alis}{$url}");
exit(0);
}
http_response_code(404);
exit(4);