Skip to content
Snippets Groups Projects
Commit 3e228727 authored by Dominik Hebeler's avatar Dominik Hebeler
Browse files

fixed static Request calls

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