diff --git a/.env.example b/.env.example
index d382bdf..51348d7 100644
--- a/.env.example
+++ b/.env.example
@@ -2,6 +2,7 @@ APP_NAME=076Server
APP_ENV=local
APP_KEY=
APP_DEBUG=false
+APP_LOG_LEVEL=debug
APP_URL=http://localhost
ONION_HOST=jkdasfhfdhndsfnklhjfdsknjfdgsjk.onion
SESSION_SECURE_COOKIE=false
@@ -10,7 +11,15 @@ THEME="techsuwa"
CSSENGINE="lolita"
CSSMINIFY=true
+ENABLE_REGISTER=false
+HAS_ADMIN=false
+OWNER_NAME=""
+OWNER_PASS=""
+ADMIN_NAME=""
+ADMIN_PASS=""
+
LOG_CHANNEL=stack
+LOG_LEVEL=debug
DB_CONNECTION=mysql
DB_HOST=127.0.0.1
@@ -25,6 +34,8 @@ QUEUE_CONNECTION=sync
SESSION_DRIVER=file
SESSION_LIFETIME=120
+MEMCACHED_HOST=127.0.0.1
+
REDIS_HOST=127.0.0.1
REDIS_PASSWORD=null
REDIS_PORT=6379
@@ -35,6 +46,8 @@ MAIL_PORT=2525
MAIL_USERNAME=null
MAIL_PASSWORD=null
MAIL_ENCRYPTION=null
+MAIL_OWNER_ADDRESS=null
+MAIL_OWNER_NAME="${APP_NAME}"
MAIL_FROM_ADDRESS=null
MAIL_FROM_NAME="${APP_NAME}"
@@ -44,4 +57,10 @@ GMO_SECRET=""
CONOHA_DENANT_ID=""
CONOHA_DENANT_NAME=""
CONOHA_USER_NAME=""
-CONOHA_USER_PASS=""
\ No newline at end of file
+CONOHA_USER_PASS=""
+
+YOUTUBE_API=""
+LBRY_URI=""
+PEER_URI=""
+PEER_USER=""
+PEER_PASS=""
\ No newline at end of file
diff --git a/app/Http/Controllers/BashController.php b/app/Http/Controllers/BashController.php
index 09ff50d..5356ae8 100644
--- a/app/Http/Controllers/BashController.php
+++ b/app/Http/Controllers/BashController.php
@@ -28,11 +28,11 @@ class BashController extends Controller {
if (mb_substr($args[$i], 0, 1, 'utf-8')) $opt = $args[$i];
}
- if (strpos($opt, 'l') !== false) {
+ if (str_contains($opt, 'l')) {
$ps = null;
$pg = null;
- if (strpos($opt, 't') !== false) {
+ if (str_contains($opt, 't')) {
$pg = DB::table('blg_content')->select('publish_date')->where('isPost', 0)->orderBy('title', 'asc')->first();
$ps = DB::table('blg_content')->select('publish_date')->where('isPost', 1)->orderBy('title', 'asc')->first();
}
@@ -42,8 +42,8 @@ class BashController extends Controller {
}
return "合計 2
-drwxr-xr-x 2 suwako suwako ".(strpos($opt, 'h') !== false ? '4.0K' : '4096')." ".date('m', $ps->publish_date)."月 ".date('d', $ps->publish_date)." ".date('H:i', $ps->publish_date)." post
-drwxr-xr-x 2 suwako suwako ".(strpos($opt, 'h') !== false ? '4.0K' : '4096')." ".date('m', $pg->publish_date)."月 ".date('d', $pg->publish_date)." ".date('H:i', $pg->publish_date)." page";
+drwxr-xr-x 2 suwako suwako ".(str_contains($opt, 'h') ? '4.0K' : '4096')." ".date('m', $ps->publish_date)."月 ".date('d', $ps->publish_date)." ".date('H:i', $ps->publish_date)." post
+drwxr-xr-x 2 suwako suwako ".(str_contains($opt, 'h') ? '4.0K' : '4096')." ".date('m', $pg->publish_date)."月 ".date('d', $pg->publish_date)." ".date('H:i', $pg->publish_date)." page";
}
return 'post page';
@@ -57,7 +57,7 @@ drwxr-xr-x 2 suwako suwako ".(strpos($opt, 'h') !== false ? '4.0K' : '4096')."
$slug = '';
for ($i = 1; $i < count($cat); $i++) {
- if (strpos($cat[$i], 'post') !== false) $mode = 1;
+ if (str_contains($cat[$i], 'post')) $mode = 1;
$slug = $cat[$i];
}
diff --git a/app/Http/Controllers/Home/Comment.php b/app/Http/Controllers/Home/Comment.php
index a4af3dc..bdd970b 100644
--- a/app/Http/Controllers/Home/Comment.php
+++ b/app/Http/Controllers/Home/Comment.php
@@ -13,7 +13,7 @@ class Comment {
$user = null;
if (isset($_COOKIE['kero_token'])) $user = DB::table('users')->select('id')->where('kero_token', $_COOKIE['kero_token'])->first()->id;
- if ($user == 0 && (strpos($r->newmessage, 'http://') !== false || strpos($r->newmessage, 'https://') !== false)) return redirect('/');
+ if ($user == 0 && (str_contains($r->newmessage, 'http://') || str_contains($r->newmessage, 'https://'))) return redirect('/');
$add = DB::table('blg_comments')->insertGetId([
'user_id' => $user,
diff --git a/resources/views/pages/site/index.blade.php b/resources/views/pages/site/index.blade.php
index 822d41e..d86df4c 100644
--- a/resources/views/pages/site/index.blade.php
+++ b/resources/views/pages/site/index.blade.php
@@ -4,11 +4,11 @@