Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 8 additions & 8 deletions app/Plugins/Manage/SpamManage/SpamManage.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
* @category スパム管理
* @package Controller
* @plugin_title スパム管理
* @plugin_desc スパムリストに関する機能が集まった管理機能です
* @plugin_desc ブロックリストに関する機能が集まった管理機能です
*/
class SpamManage extends ManagePluginBase
{
Expand All @@ -48,8 +48,8 @@ public function declareRole()
* スパムリスト一覧表示
*
* @return view
* @method_title スパムリスト一覧
* @method_desc スパムリストを一覧で確認できます
* @method_title ブロックリスト一覧
* @method_desc ブロックリストを一覧で確認できます
* @method_detail メールアドレス、ドメイン、IPアドレスを登録してスパムをブロックできます。
*/
public function index($request)
Expand Down Expand Up @@ -149,15 +149,15 @@ public function store($request)
]);

// スパムリスト一覧画面に戻る
return redirect("/manage/spam")->with('flash_message', 'スパムリストに追加しました。');
return redirect("/manage/spam")->with('flash_message', 'ブロックリストに追加しました。');
}

/**
* スパムリスト編集画面
*
* @return view
* @method_title スパムリスト編集
* @method_desc スパムリストを編集できます
* @method_title ブロックリスト編集
* @method_desc ブロックリストを編集できます
* @method_detail
*/
public function edit($request, $id)
Expand Down Expand Up @@ -232,7 +232,7 @@ public function update($request, $id)
$spam->save();

// スパムリスト一覧画面に戻る
return redirect("/manage/spam")->with('flash_message', 'スパムリストを更新しました。');
return redirect("/manage/spam")->with('flash_message', 'ブロックリストを更新しました。');
}

/**
Expand All @@ -249,7 +249,7 @@ public function destroy($request, $id)
SpamList::where('id', $id)->delete();

// スパムリスト一覧画面に戻る
return redirect("/manage/spam")->with('flash_message', 'スパムリストから削除しました。');
return redirect("/manage/spam")->with('flash_message', 'ブロックリストから削除しました。');
}

/**
Expand Down
10 changes: 5 additions & 5 deletions app/Plugins/User/Forms/FormsPlugin.php
Original file line number Diff line number Diff line change
Expand Up @@ -3648,7 +3648,7 @@ private function checkSpamFilter($request, $form): array
*
* @method_title スパムフィルタリング
* @method_desc スパムフィルタリングの設定ができます。
* @method_detail スパムリストの管理や、ブロック時のメッセージを設定できます。
* @method_detail ブロックリストの管理や、ブロック時のメッセージを設定できます。
*/
public function editSpamFilter($request, $page_id, $frame_id)
{
Expand Down Expand Up @@ -3742,7 +3742,7 @@ public function addSpamList($request, $page_id, $frame_id, $forms_id)

// リダイレクト
return redirect("/plugin/forms/editSpamFilter/{$page_id}/{$frame_id}#frame-{$frame_id}")
->with('flash_message', 'スパムリストに追加しました。');
->with('flash_message', 'ブロックリストに追加しました。');
}

/**
Expand All @@ -3760,7 +3760,7 @@ public function deleteSpamList($request, $page_id, $frame_id, $spam_id)

// リダイレクト
return redirect("/plugin/forms/editSpamFilter/{$page_id}/{$frame_id}#frame-{$frame_id}")
->with('flash_message', 'スパムリストから削除しました。');
->with('flash_message', 'ブロックリストから削除しました。');
}

/**
Expand Down Expand Up @@ -3894,7 +3894,7 @@ public function addToSpamListFromInput($request, $page_id, $frame_id, $inputs_id
// メッセージの組み立て
$messages = [];
if ($added_count > 0) {
$messages[] = "{$added_count}件をスパムリストに追加しました。";
$messages[] = "{$added_count}件をブロックリストに追加しました。";
}
if ($skipped_duplicate_count > 0) {
$messages[] = "{$skipped_duplicate_count}件は既に登録済みのためスキップしました。";
Expand All @@ -3903,7 +3903,7 @@ public function addToSpamListFromInput($request, $page_id, $frame_id, $inputs_id
$messages[] = "{$skipped_no_data_count}件は該当データがないためスキップしました。";
}
if (empty($messages)) {
$messages[] = 'スパムリストへの追加はありませんでした。';
$messages[] = 'ブロックリストへの追加はありませんでした。';
}

// リダイレクト
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ function submit_register_other_plugins(id) {
{{ csrf_field() }}
<input type="hidden" name="redirect_path" value="{{url('/')}}/plugin/forms/listInputs/{{$page->id}}/{{$frame_id}}/{{$form->id}}#frame-{{$frame_id}}">
<div class="px-3 py-2">
<div class="font-weight-bold mb-2">スパムリストに追加</div>
<div class="font-weight-bold mb-2">ブロックリストに追加</div>
<div class="custom-control custom-checkbox">
<input type="checkbox" name="add_ip_address" value="1" class="custom-control-input" id="add_ip_{{$input->id}}" @if($input->ip_address) checked @else disabled @endif>
<label class="custom-control-label @if(!$input->ip_address) text-muted @endif" for="add_ip_{{$input->id}}">IPアドレス @if(!$input->ip_address)<small>(データなし)</small>@endif</label>
Expand Down
Loading