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
9e116674
Commit
9e116674
authored
Feb 17, 2020
by
Dominik Hebeler
Browse files
Switching image to alpine
parent
87d857f9
Changes
31
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
app/Models/parserSkripte/Opencrawlregengergie.php
View file @
9e116674
...
...
@@ -18,22 +18,22 @@ class Opencrawlregengergie extends Searchengine
{
$result
=
preg_replace
(
"/
\r\n
/si"
,
""
,
$result
);
try
{
$content
=
simplexml_load_string
(
$result
);
$content
=
\
simplexml_load_string
(
$result
);
if
(
!
$content
)
{
return
;
}
$results
=
$content
->
xpath
(
'//rss/channel/item'
);
$count
=
0
;
$count
=
0
;
foreach
(
$results
as
$result
)
{
if
(
$count
>
10
)
{
break
;
}
$title
=
$result
->
{
"title"
}
->
__toString
();
$link
=
$result
->
{
"link"
}
->
__toString
();
$title
=
$result
->
{
"title"
}
->
__toString
();
$link
=
$result
->
{
"link"
}
->
__toString
();
$anzeigeLink
=
$link
;
$descr
=
strip_tags
(
$result
->
{
"description"
}
->
__toString
());
$descr
=
strip_tags
(
$result
->
{
"description"
}
->
__toString
());
$this
->
counter
++
;
$this
->
results
[]
=
new
\
App\Models\Result
(
$this
->
engine
,
...
...
@@ -41,7 +41,7 @@ class Opencrawlregengergie extends Searchengine
$link
,
$anzeigeLink
,
$descr
,
$this
->
engine
->
{
"display-name"
},
$this
->
engine
->
homepage
,
$this
->
engine
->
{
"display-name"
},
$this
->
engine
->
homepage
,
$this
->
counter
);
$count
++
;
...
...
app/Models/parserSkripte/Overture.php
View file @
9e116674
...
...
@@ -21,7 +21,7 @@ class Overture extends Searchengine
{
$result
=
preg_replace
(
"/
\r\n
/si"
,
""
,
$result
);
try
{
$content
=
simplexml_load_string
(
$result
);
$content
=
\
simplexml_load_string
(
$result
);
if
(
!
$content
)
{
return
;
}
...
...
@@ -84,7 +84,7 @@ class Overture extends Searchengine
{
$result
=
preg_replace
(
"/
\r\n
/si"
,
""
,
$result
);
try
{
$content
=
simplexml_load_string
(
$result
);
$content
=
\
simplexml_load_string
(
$result
);
if
(
!
$content
)
{
return
;
}
...
...
app/Models/parserSkripte/OvertureAds.php
View file @
9e116674
...
...
@@ -20,7 +20,7 @@ class OvertureAds extends Searchengine
{
$result
=
preg_replace
(
"/
\r\n
/si"
,
""
,
$result
);
try
{
$content
=
simplexml_load_string
(
$result
);
$content
=
\
simplexml_load_string
(
$result
);
if
(
!
$content
)
{
return
;
}
...
...
@@ -55,7 +55,7 @@ class OvertureAds extends Searchengine
{
$result
=
preg_replace
(
"/
\r\n
/si"
,
""
,
$result
);
try
{
$content
=
simplexml_load_string
(
$result
);
$content
=
\
simplexml_load_string
(
$result
);
if
(
!
$content
)
{
return
;
}
...
...
app/Models/parserSkripte/Qip.php
View file @
9e116674
...
...
@@ -18,17 +18,17 @@ class Qip extends Searchengine
{
$result
=
preg_replace
(
"/
\r\n
/si"
,
""
,
$result
);
try
{
$content
=
simplexml_load_string
(
$result
);
$content
=
\
simplexml_load_string
(
$result
);
if
(
!
$content
)
{
return
;
}
$results
=
$content
->
xpath
(
'//channel/item'
);
foreach
(
$results
as
$result
)
{
$title
=
$result
->
{
"title"
}
->
__toString
();
$link
=
$result
->
{
"link"
}
->
__toString
();
$title
=
$result
->
{
"title"
}
->
__toString
();
$link
=
$result
->
{
"link"
}
->
__toString
();
$anzeigeLink
=
$link
;
$descr
=
$result
->
{
"description"
}
->
__toString
();
$descr
=
$result
->
{
"description"
}
->
__toString
();
$this
->
counter
++
;
$this
->
results
[]
=
new
\
App\Models\Result
(
$this
->
engine
,
...
...
@@ -36,7 +36,7 @@ class Qip extends Searchengine
$link
,
$anzeigeLink
,
$descr
,
$this
->
engine
->
{
"display-name"
},
$this
->
engine
->
homepage
,
$this
->
engine
->
{
"display-name"
},
$this
->
engine
->
homepage
,
$this
->
counter
);
}
...
...
app/Models/parserSkripte/Scopia.php
View file @
9e116674
...
...
@@ -23,7 +23,7 @@ class Scopia extends Searchengine
try
{
$content
=
simplexml_load_string
(
$result
);
$content
=
\
simplexml_load_string
(
$result
);
if
(
!
$content
)
{
return
;
}
...
...
@@ -59,7 +59,7 @@ class Scopia extends Searchengine
$result
=
html_entity_decode
(
$result
);
$result
=
str_replace
(
"&"
,
"&"
,
$result
);
try
{
$content
=
simplexml_load_string
(
$result
);
$content
=
\
simplexml_load_string
(
$result
);
}
catch
(
\
Exception
$e
)
{
Log
::
error
(
"A problem occurred parsing results from
$this->name
:"
);
...
...
app/Models/parserSkripte/Shopzilla.php
View file @
9e116674
...
...
@@ -18,7 +18,7 @@ class Shopzilla extends Searchengine
{
$result
=
preg_replace
(
"/
\r\n
/si"
,
""
,
$result
);
try
{
$content
=
simplexml_load_string
(
$result
);
$content
=
\
simplexml_load_string
(
$result
);
if
(
!
$content
)
{
return
;
}
...
...
@@ -66,7 +66,7 @@ class Shopzilla extends Searchengine
{
$result
=
preg_replace
(
"/
\r\n
/si"
,
""
,
$result
);
try
{
$content
=
simplexml_load_string
(
$result
);
$content
=
\
simplexml_load_string
(
$result
);
if
(
!
$content
)
{
return
;
}
...
...
app/Models/parserSkripte/Tuhh.php
View file @
9e116674
...
...
@@ -18,7 +18,7 @@ class Tuhh extends Searchengine
{
$result
=
preg_replace
(
"/
\r\n
/si"
,
""
,
$result
);
try
{
$content
=
simplexml_load_string
(
$result
);
$content
=
\
simplexml_load_string
(
$result
);
if
(
!
$content
)
{
return
;
}
...
...
@@ -29,10 +29,10 @@ class Tuhh extends Searchengine
break
;
}
$title
=
$result
->
{
"title"
}
->
__toString
();
$link
=
$result
->
{
"link"
}[
"href"
]
->
__toString
();
$title
=
$result
->
{
"title"
}
->
__toString
();
$link
=
$result
->
{
"link"
}[
"href"
]
->
__toString
();
$anzeigeLink
=
$link
;
$descr
=
strip_tags
(
$result
->
{
"summary"
}
->
__toString
());
$descr
=
strip_tags
(
$result
->
{
"summary"
}
->
__toString
());
$this
->
counter
++
;
$this
->
results
[]
=
new
\
App\Models\Result
(
$this
->
engine
,
...
...
@@ -40,7 +40,7 @@ class Tuhh extends Searchengine
$link
,
$anzeigeLink
,
$descr
,
$this
->
engine
->
{
"display-name"
},
$this
->
engine
->
homepage
,
$this
->
engine
->
{
"display-name"
},
$this
->
engine
->
homepage
,
$this
->
counter
);
$count
++
;
...
...
app/Models/parserSkripte/Yacyunih.php
View file @
9e116674
...
...
@@ -18,7 +18,7 @@ class Yacyunih extends Searchengine
{
$result
=
preg_replace
(
"/
\r\n
/si"
,
""
,
$result
);
try
{
$content
=
simplexml_load_string
(
$result
);
$content
=
\
simplexml_load_string
(
$result
);
if
(
!
$content
)
{
return
;
}
...
...
@@ -32,10 +32,10 @@ class Yacyunih extends Searchengine
if
(
$count
>
10
)
{
break
;
}
$title
=
$result
->
{
"title"
}
->
__toString
();
$link
=
$result
->
{
"link"
}
->
__toString
();
$title
=
$result
->
{
"title"
}
->
__toString
();
$link
=
$result
->
{
"link"
}
->
__toString
();
$anzeigeLink
=
$link
;
$descr
=
strip_tags
(
$result
->
{
"description"
}
->
__toString
());
$descr
=
strip_tags
(
$result
->
{
"description"
}
->
__toString
());
$this
->
counter
++
;
$this
->
results
[]
=
new
\
App\Models\Result
(
$this
->
engine
,
...
...
@@ -43,7 +43,7 @@ class Yacyunih extends Searchengine
$link
,
$anzeigeLink
,
$descr
,
$this
->
engine
->
{
"display-name"
},
$this
->
engine
->
homepage
,
$this
->
engine
->
{
"display-name"
},
$this
->
engine
->
homepage
,
$this
->
counter
);
$count
++
;
...
...
app/Models/parserSkripte/Yandex.php
View file @
9e116674
...
...
@@ -18,7 +18,7 @@ class Yandex extends Searchengine
{
$result
=
preg_replace
(
"/
\r\n
/si"
,
""
,
$result
);
try
{
$content
=
simplexml_load_string
(
$result
);
$content
=
\
simplexml_load_string
(
$result
);
if
(
!
$content
)
{
return
;
}
...
...
@@ -61,7 +61,7 @@ class Yandex extends Searchengine
{
$result
=
preg_replace
(
"/
\r\n
/si"
,
""
,
$result
);
try
{
$content
=
simplexml_load_string
(
$result
);
$content
=
\
simplexml_load_string
(
$result
);
if
(
!
$content
)
{
return
;
}
...
...
config/nginx-default.conf
View file @
9e116674
...
...
@@ -14,7 +14,7 @@ server {
location
~ \.
php
$ {
try_files
$
uri
/
index
.
php
=
404
;
fastcgi_split_path_info
^(.+\.
php
)(/.+)$;
fastcgi_pass
unix
:/
var
/
run
/
php
/
php7
.
3
-
fpm
.
sock
;
fastcgi_pass
127
.
0
.
0
.
1
:
9000
;
fastcgi_index
index
.
php
;
fastcgi_param
SCRIPT_FILENAME
$
document_root
$
fastcgi_script_name
;
include
fastcgi_params
;
...
...
docker-compose.yml
View file @
9e116674
...
...
@@ -20,7 +20,7 @@ services:
working_dir
:
/data
command
:
/data/init.sh
mgdb
:
restart
:
unless-stopped
restart
:
on-failure
image
:
mariadb:latest
command
:
--default-authentication-plugin=mysql_native_password
environment
:
...
...
@@ -34,10 +34,14 @@ services:
-
"
dependencies"
-
"
phpdeps"
-
"
assets"
restart
:
unless-stopped
build
:
.
restart
:
on-failure
build
:
context
:
.
dockerfile
:
Dockerfile.dev
working_dir
:
/html
volumes
:
-
.:/html
-
./config/nginx.conf:/etc/nginx/nginx.conf
-
./config/nginx-default.conf:/etc/nginx/conf.d/default.conf
ports
:
-
"
8080:80"
Prev
1
2
Next
Write
Preview
Markdown
is supported
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