Create assetproxy.php

This commit is contained in:
Namhyeon Go 2018-06-22 11:14:03 +09:00 committed by GitHub
parent 1bb50afa69
commit d75986f6ee
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

11
route/assetproxy.php Normal file
View 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'];
}