Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
MetaGer
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
open-source
MetaGer
Merge requests
!1948
Resolve "Implement Parser for Infotiger results"
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Resolve "Implement Parser for Infotiger results"
1174-implement-parser-for-infotiger-results
into
development
Overview
0
Commits
7
Pipelines
8
Changes
65
Merged
Dominik Hebeler
requested to merge
1174-implement-parser-for-infotiger-results
into
development
3 years ago
Overview
0
Commits
7
Pipelines
8
Changes
65
Expand
Closes
#1174 (closed)
Edited
3 years ago
by
Dominik Hebeler
0
0
Merge request reports
Compare
development
version 5
f0dd36e4
3 years ago
version 4
656980b7
3 years ago
version 3
78417dca
3 years ago
version 2
69f9c588
3 years ago
version 1
7bd79417
3 years ago
development (base)
and
latest version
latest version
02db40f4
7 commits,
3 years ago
version 5
f0dd36e4
6 commits,
3 years ago
version 4
656980b7
5 commits,
3 years ago
version 3
78417dca
3 commits,
3 years ago
version 2
69f9c588
2 commits,
3 years ago
version 1
7bd79417
1 commit,
3 years ago
65 files
+
369
−
327
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
65
Search (e.g. *.vue) (Ctrl+P)
app/Http/Controllers/SearchEngineList.php
0 → 100644
+
45
−
0
Options
<?php
namespace
App\Http\Controllers
;
use
Illuminate\Http\Request
;
use
Illuminate\Support\Facades\App
;
class
SearchEngineList
extends
Controller
{
function
index
()
{
$suma_file
=
""
;
if
(
App
::
isLocale
(
"en"
))
{
$suma_file
=
config_path
()
.
"/sumasEn.json"
;
}
else
{
$suma_file
=
config_path
()
.
"/sumas.json"
;
}
if
(
empty
(
$suma_file
))
{
abort
(
404
);
}
$suma_file
=
json_decode
(
file_get_contents
(
$suma_file
));
if
(
$suma_file
===
null
)
{
abort
(
404
);
}
$sumas
=
[];
foreach
(
$suma_file
->
foki
as
$fokus_name
=>
$fokus
)
{
foreach
(
$fokus
->
sumas
as
$suma_name
)
{
$sumas
[
$fokus_name
][]
=
$suma_name
;
}
}
$suma_infos
=
[];
foreach
(
$sumas
as
$fokus_name
=>
$suma_list
)
{
foreach
(
$suma_list
as
$index
=>
$suma_name
)
{
if
(
!
$suma_file
->
sumas
->
{
$suma_name
}
->
disabled
)
{
$infos
=
$suma_file
->
sumas
->
{
$suma_name
}
->
infos
;
$suma_infos
[
$fokus_name
][
$suma_name
]
=
clone
$infos
;
}
}
}
return
view
(
'search-engine'
)
->
with
(
'title'
,
trans
(
'titles.search-engine'
))
->
with
(
'navbarFocus'
,
'info'
)
->
with
(
'suma_infos'
,
$suma_infos
);
}
}
Loading