21 lines
486 B
PHP
21 lines
486 B
PHP
<?php
|
|
if(!defined("_DEF_RSF_")) set_error_exit("do not allow access");
|
|
|
|
loadHelper("webpagetool");
|
|
|
|
$method = get_requested_value("method");
|
|
$url = get_requested_value("url");
|
|
|
|
$res_method = "get.cache";
|
|
$res_methods = explode(".", $method);
|
|
if(in_array("nocache", $res_methods)) {
|
|
$res_method = "get";
|
|
}
|
|
|
|
if(!empty($url)) {
|
|
$response = get_web_page($url, $res_method);
|
|
echo $response['content'];
|
|
}
|
|
|
|
write_common_log(sprintf("%s\t%s\t%s", get_current_datetime(), "webproxy", $url));
|