Skip to content
GitLab
Menu
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
bbe2d647
Commit
bbe2d647
authored
Sep 19, 2016
by
Dominik Hebeler
Browse files
Produkte können nun auch per AJAX nachgeladen werden.
Produkte für die Uni Mainz deaktiviert
parent
11f8c638
Changes
2
Show whitespace changes
Inline
Side-by-side
app/MetaGer.php
View file @
bbe2d647
...
@@ -252,6 +252,7 @@ class MetaGer
...
@@ -252,6 +252,7 @@ class MetaGer
$password
=
md5
(
$eingabe
.
$password
);
$password
=
md5
(
$eingabe
.
$password
);
if
(
$this
->
password
===
$password
)
{
if
(
$this
->
password
===
$password
)
{
$this
->
ads
=
[];
$this
->
ads
=
[];
$this
->
products
=
[];
$this
->
validated
=
true
;
$this
->
validated
=
true
;
}
}
}
}
...
...
resources/views/metager3results.blade.php
View file @
bbe2d647
...
@@ -17,10 +17,14 @@
...
@@ -17,10 +17,14 @@
</
div
>
</
div
>
@
endif
@
endif
<
div
class
=
"col-xs-12 col-md-8"
>
<
div
class
=
"col-xs-12 col-md-8"
>
@
if
(
$metager
->
hasProducts
())
@
include
(
'layouts.products'
,
[
'products'
=>
$metager
->
getProducts
()])
@
else
{{
--
3
-
Mal
Werbung
--
}}
{{
--
3
-
Mal
Werbung
--
}}
@
for
(
$i
=
0
;
$i
<=
2
;
$i
++
)
@
for
(
$i
=
0
;
$i
<=
2
;
$i
++
)
@
include
(
'layouts.ad'
,
[
'ad'
=>
$metager
->
popAd
()])
@
include
(
'layouts.ad'
,
[
'ad'
=>
$metager
->
popAd
()])
@
endfor
@
endfor
@
endif
@
foreach
(
$metager
->
getResults
()
as
$result
)
@
foreach
(
$metager
->
getResults
()
as
$result
)
@
if
(
$result
->
number
%
7
===
0
)
@
if
(
$result
->
number
%
7
===
0
)
@
include
(
'layouts.ad'
,
[
'ad'
=>
$metager
->
popAd
()])
@
include
(
'layouts.ad'
,
[
'ad'
=>
$metager
->
popAd
()])
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a 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