Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
open-source
MetaGer
Commits
ac0a48a0
Commit
ac0a48a0
authored
Apr 25, 2019
by
Dominik Hebeler
Browse files
enabled referer check and added redirect for settings page
parent
20d7b0f7
Changes
2
Pipelines
1
Show whitespace changes
Inline
Side-by-side
app/Http/Controllers/StartpageController.php
View file @
ac0a48a0
...
...
@@ -101,17 +101,6 @@ class StartpageController extends Controller
return
$response
;
}
public
function
loadSettings
(
Request
$request
)
{
return
view
(
'settings'
)
->
with
(
'title'
,
'Einstellungen'
)
->
with
(
'js'
,
[
'settings.js'
])
->
with
(
'navbarFocus'
,
'suche'
);
die
(
var_dump
(
$foki
));
return
$xml
->
saveXML
();
}
public
function
berlin
(
Request
$request
)
{
$link
=
""
;
...
...
routes/web.php
View file @
ac0a48a0
...
...
@@ -167,14 +167,16 @@ Route::group(
->
with
(
'request'
,
$this
->
input
(
'request'
,
'GET'
));
});
Route
::
group
([
/*
'middleware' => ['referer.check'],
*/
'prefix'
=>
'admin'
],
function
()
{
Route
::
group
([
'middleware'
=>
[
'referer.check'
],
'prefix'
=>
'admin'
],
function
()
{
Route
::
get
(
'/'
,
'AdminInterface@index'
);
Route
::
match
([
'get'
,
'post'
],
'count'
,
'AdminInterface@count'
);
Route
::
get
(
'check'
,
'AdminInterface@check'
);
Route
::
get
(
'engines'
,
'AdminInterface@engines'
);
});
Route
::
get
(
'settings'
,
'StartpageController@loadSettings'
);
Route
::
get
(
'settings'
,
function
()
{
return
redirect
(
LaravelLocalization
::
getLocalizedURL
(
LaravelLocalization
::
getCurrentLocale
(),
'/'
));
});
Route
::
match
([
'get'
,
'post'
],
'meta/meta.ger3'
,
'MetaGerSearch@search'
)
->
middleware
(
'humanverification'
);
Route
::
get
(
'meta/loadMore'
,
'MetaGerSearch@loadMore'
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment