Commit 3e228727 authored by Dominik Hebeler's avatar Dominik Hebeler
Browse files

fixed static Request calls

parent 7f11029b
......@@ -201,8 +201,8 @@ Route::group(
Route::get('engine/stats.json', 'AdminInterface@engineStats');
Route::get('check', 'AdminInterface@check');
Route::get('engines', 'AdminInterface@engines');
Route::get('ip', function () {
dd(Request::ip(), $_SERVER["AGENT"]);
Route::get('ip', function (Request $request) {
dd($request->ip(), $_SERVER["AGENT"]);
});
Route::get('bot', 'HumanVerification@botOverview');
Route::post('bot', 'HumanVerification@botOverviewChange');
......@@ -233,8 +233,8 @@ Route::group(
Route::get('r/metager/{mm}/{pw}/{url}', ['as' => 'humanverification', 'uses' => 'HumanVerification@removeGet']);
Route::post('img/dog.jpg', 'HumanVerification@whitelist');
Route::get('index.css', 'HumanVerification@browserVerification');
Route::get('index.js', function () {
$key = Request::input("id", "");
Route::get('index.js', function (Request $request) {
$key = $request->input("id", "");
// Verify that key is a md5 checksum
if (!preg_match("/^[a-f0-9]{32}$/", $key)) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment