You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
13 lines
360 B
13 lines
360 B
<?php
|
|
|
|
if (preg_match('/\\/(?:js|css)/', $_SERVER["REQUEST_URI"])) {
|
|
$path = pathinfo($_SERVER["REQUEST_URI"]);
|
|
if ($path["extension"] == "js") {
|
|
header("Content-Type: application/javascript");
|
|
} else if ($path["extension"] == "css") {
|
|
header("Content-Type: text/css");
|
|
}
|
|
readfile("out" . $_SERVER["REQUEST_URI"]);
|
|
} else {
|
|
return false;
|
|
}
|
|
|