added new radius module
This commit is contained in:
@@ -19,4 +19,21 @@ class RadiusController extends mfBaseController {
|
||||
}
|
||||
|
||||
|
||||
protected function proxyUnsecureHTTPRequestToRadiusAction() {
|
||||
$url = "http://radius.xinon.at/api.php?" . http_build_query($_GET);
|
||||
$url = str_replace("proxyUnsecureHTTPRequestToRadius", "", $url);
|
||||
$opts = [
|
||||
"http" => [
|
||||
"method" => "GET",
|
||||
"header" => "Authorization: Basic " . base64_encode("admin:saveman"),
|
||||
]
|
||||
];
|
||||
|
||||
header("Content-Type: application/json");
|
||||
$context = stream_context_create($opts);
|
||||
$response = file_get_contents($url, false, $context);
|
||||
echo $response;
|
||||
die();
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user