Create assetproxy.php
This commit is contained in:
parent
1bb50afa69
commit
d75986f6ee
11
route/assetproxy.php
Normal file
11
route/assetproxy.php
Normal file
|
@ -0,0 +1,11 @@
|
||||||
|
<?php
|
||||||
|
loadHelper("webpagetool");
|
||||||
|
|
||||||
|
$path = str_replace("../", "", get_requested_value("path"));
|
||||||
|
$server_path = "./" . $path;
|
||||||
|
$client_path = base_url() . $path;
|
||||||
|
|
||||||
|
if(file_exists($server_path)) {
|
||||||
|
$response = get_web_page($client_path, "get");
|
||||||
|
echo $response['content'];
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user