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

Merge branch 'development' into 'master'

Development

See merge request !1790
parents 8d6a8053 96015067
No related branches found
No related tags found
1 merge request!1790Development
...@@ -77,4 +77,5 @@ CMD cp /root/.env .env && \ ...@@ -77,4 +77,5 @@ CMD cp /root/.env .env && \
chown -R root:nginx storage/logs/metager bootstrap/cache && \ chown -R root:nginx storage/logs/metager bootstrap/cache && \
chmod -R g+w storage/logs/metager bootstrap/cache && \ chmod -R g+w storage/logs/metager bootstrap/cache && \
crond -L /dev/stdout && \ crond -L /dev/stdout && \
php artisan spam:load && \
php-fpm7 php-fpm7
...@@ -19,7 +19,8 @@ class AdminSpamController extends Controller ...@@ -19,7 +19,8 @@ class AdminSpamController extends Controller
->with('title', "Spam Konfiguration - MetaGer") ->with('title', "Spam Konfiguration - MetaGer")
->with('queries', $queries) ->with('queries', $queries)
->with('bans', $currentBans) ->with('bans', $currentBans)
->with('loadedBans', $loadedBans); ->with('loadedBans', $loadedBans)
->with('darkcss', [mix('/css/spam.css')]);
} }
public function ban(Request $request) public function ban(Request $request)
...@@ -111,18 +112,17 @@ class AdminSpamController extends Controller ...@@ -111,18 +112,17 @@ class AdminSpamController extends Controller
if (file_exists($file)) { if (file_exists($file)) {
$tmpBans = json_decode(file_get_contents($file), true); $tmpBans = json_decode(file_get_contents($file), true);
if(!empty($tmpBans) && is_array($tmpBans)){
foreach ($tmpBans as $ban) { foreach ($tmpBans as $ban) {
#dd($ban["banned-until"]); #dd($ban["banned-until"]);
$bannedUntil = Carbon::createFromFormat('Y-m-d H:i:s', $ban["banned-until"]); $bannedUntil = Carbon::createFromFormat('Y-m-d H:i:s', $ban["banned-until"]);
if ($bannedUntil->isAfter(Carbon::now())) { if ($bannedUntil->isAfter(Carbon::now())) {
$bans[] = $ban; $bans[] = $ban;
}
} }
} }
} }
file_put_contents($file, json_encode($bans));
return $bans; return $bans;
} }
......
#queries > div.matches {
color: #777
}
\ No newline at end of file
...@@ -28,6 +28,9 @@ mix ...@@ -28,6 +28,9 @@ mix
.less("resources/less/metager/startpage-only-dark.less", "public/css/themes/startpage-only-dark.css", { .less("resources/less/metager/startpage-only-dark.less", "public/css/themes/startpage-only-dark.css", {
strictMath: true strictMath: true
}) })
.less("resources/less/metager/pages/spam.less", "public/css/spam.css", {
strictMath: true
})
.less("resources/less/metager/metager-dark.less", "public/css/themes/metager-dark.css", { .less("resources/less/metager/metager-dark.less", "public/css/themes/metager-dark.css", {
strictMath: true strictMath: true
}) })
......
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