コミット
3d7e91433e
  1. 2
      app/Http/Controllers/User/MemberList.php
  2. 2
      app/Http/Controllers/User/Register.php
  3. 1
      resources/views/pages/site/memberlist.blade.php

2
app/Http/Controllers/User/MemberList.php

@ -24,7 +24,7 @@ class MemberList extends Engine {
$g->perm_id = DB::table('usr_perm_id')->select('perm_id')->where('user_id', $g->id)->first()->perm_id;
$p = DB::table('usr_profile')->select('country', 'ip_address', 'gender', 'avatar', 'name_style', 'display_name')->where('user_id', $g->id)->first();
$g->ip_address = $p->ip_address;
$g->ip_address = '';
$g->country = $p->country;
$g->gender = $p->gender;
$g->avatar = $p->avatar;

2
app/Http/Controllers/User/Register.php

@ -60,7 +60,7 @@ class Register {
$addUser = DB::table('users')->insertGetId(['username' => $r->username, 'email' => $r->email, 'password' => $passwd, 'salt' => $salt, 'remember_token' => '', 'kero_token' => makeToken()]);
DB::table('usr_details')->insert(['user_id' => $addUser, 'total_posts' => 0, 'total_threads' => 0, 'reg_date' => time(), 'last_post_date' => 0, 'last_post_location' => 0, 'ontime' => 0, 'strikes' => 0]);
DB::table('usr_contacts')->insert(['user_id' => $addUser, 'website_link' => '', 'website_name' => '', 'youtube_link' => '', 'youtube_name' => '', 'bitchute' => '', 'niconico' => '', 'pixiv' => '', 'discord' => '', 'mastodon' => '', 'twitter' => '', 'facebook' => '', 'instagram' => '']);
DB::table('usr_profile')->insert(['user_id' => $addUser, 'gender' => ($r->gender ? $r->gender : 0), 'member_title' => '', 'website_address' => '', 'website_name' => '', 'location' => '', 'birthday' => 0, 'bio' => '', 'ip_address' => $ip, 'avatar' => '', 'ostatus' => 1, 'header' => '', 'footer' => '', 'post_style' => '', 'signature' => '', 'name_style' => '', 'display_name' => '', 'yt_channel' => '', 'country' => ($r->country ? $r->country : 'Japan'), 'date_format' => '', 'isClock24' => 1, 'isShowSeconds' => 1, 'isShowTimezone' => 1]);
DB::table('usr_profile')->insert(['user_id' => $addUser, 'gender' => ($r->gender ? $r->gender : 0), 'member_title' => '', 'website_address' => '', 'website_name' => '', 'location' => '', 'birthday' => 0, 'bio' => '', 'ip_address' => '', 'avatar' => '', 'ostatus' => 1, 'header' => '', 'footer' => '', 'post_style' => '', 'signature' => '', 'name_style' => '', 'display_name' => '', 'yt_channel' => '', 'country' => ($r->country ? $r->country : 'Japan'), 'date_format' => '', 'isClock24' => 1, 'isShowSeconds' => 1, 'isShowTimezone' => 1]);
DB::table('usr_perm_id')->insert(['user_id' => $addUser, 'perm_id' => 4, 'usr_per_id' => 4, 'img_per_id' => 4, 'blg_per_id' => 4, 'for_per_id' => 4, 'sbx_per_id' => 4, 'str_per_id' => 4, 'doc_per_id' => 4, 'odb_per_id' => 4, 'inv_per_id' => 4]);
$checkName = DB::table('users')->select('kero_token')->where('id', $addUser)->first();

1
resources/views/pages/site/memberlist.blade.php

@ -29,7 +29,6 @@
</td>
<td scope="row">
{{ $r->email }}
{{ $r->ip_address }}
{{ $r->gender }}
<img src="/img/flag/{{ $r->country }}.png" alt="{{ $r->country }}" />
</td>

読み込み中…
キャンセル
保存