From 8af8e9d3acd4112e8f1e0f7c26df403501dc9820 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EC=B5=9C=EC=A4=80=ED=9D=A0?= Date: Sat, 5 Oct 2024 16:06:22 +0900 Subject: [PATCH] cfmgrv4 init...1 --- app/Controllers/MVController.php | 14 ++++++++------ app/Views/admin/cloudflare/account/index.php | 4 ++-- app/Views/admin/cloudflare/auth/index.php | 4 ++-- app/Views/admin/cloudflare/record/index.php | 4 ++-- app/Views/admin/cloudflare/zone/index.php | 4 ++-- app/Views/admin/mapurl/index.php | 4 ++-- app/Views/admin/user/index.php | 4 ++-- 7 files changed, 20 insertions(+), 18 deletions(-) diff --git a/app/Controllers/MVController.php b/app/Controllers/MVController.php index 69cd136..8e890c5 100644 --- a/app/Controllers/MVController.php +++ b/app/Controllers/MVController.php @@ -234,17 +234,16 @@ abstract class MVController extends CommonController try { //변경할 UIDS $uids = $this->request->getVar('batchjob_uids[]'); - if (!count($uids)) { + if ($uids === null || !count($uids)) { throw new \Exception("지정된 정보가 없습니다."); } - $this->entitys = []; foreach ($uids as $uid) { $this->modify_process($uid); - $this->entitys = $this->entity; } $this->getModel()->transCommit(); - log_message("notice", __FUNCTION__ . "=> 작업을 완료하였습니다."); - $this->session->setFlashdata(SESSION_NAMES['RETURN_MSG'], __FUNCTION__ . " => 작업을 완료하였습니다.\n"); + $message = "일괄처리 작업을 완료하였습니다."; + log_message("notice", $message); + $this->session->setFlashdata(SESSION_NAMES['RETURN_MSG'], $message); return redirect()->to($this->session->getFlashdata(SESSION_NAMES['RETURN_URL']) ?: "/"); } catch (\Exception $e) { //Transaction Rollback @@ -348,7 +347,10 @@ abstract class MVController extends CommonController //Sorting 처리 $this->order_field = $this->request->getVar('order_field') ?: DEFAULTS['EMPTY']; $this->order_value = $this->request->getVar('order_value') ?: DEFAULTS['EMPTY']; - $this->getModel()->setList_OrderBy($this->order_field !== DEFAULTS['EMPTY'] && $this->order_value !== DEFAULTS['EMPTY'] ? "{$this->order_field} {$this->order_value}" : ""); + $this->getModel()->setList_OrderBy( + $this->order_field !== DEFAULTS['EMPTY'] && + $this->order_value !== DEFAULTS['EMPTY'] ? "{$this->order_field} {$this->order_value}" : "" + ); if ($this->page) { $this->getModel()->limit( $this->per_page, diff --git a/app/Views/admin/cloudflare/account/index.php b/app/Views/admin/cloudflare/account/index.php index da04a29..e74bdf3 100644 --- a/app/Views/admin/cloudflare/account/index.php +++ b/app/Views/admin/cloudflare/account/index.php @@ -3,7 +3,7 @@ include('templates/' . $viewDatas['layout'] . '/index_top'); ?> - + @@ -43,7 +43,7 @@ - + diff --git a/app/Views/admin/cloudflare/auth/index.php b/app/Views/admin/cloudflare/auth/index.php index 23fd24e..7a33ef9 100644 --- a/app/Views/admin/cloudflare/auth/index.php +++ b/app/Views/admin/cloudflare/auth/index.php @@ -3,7 +3,7 @@ include('templates/' . $viewDatas['layout'] . '/index_top'); ?> - +
@@ -40,7 +40,7 @@ - + diff --git a/app/Views/admin/cloudflare/record/index.php b/app/Views/admin/cloudflare/record/index.php index f11d4cb..63b3737 100644 --- a/app/Views/admin/cloudflare/record/index.php +++ b/app/Views/admin/cloudflare/record/index.php @@ -3,7 +3,7 @@ include('templates/' . $viewDatas['layout'] . '/index_top'); ?> - +
@@ -43,7 +43,7 @@ - + diff --git a/app/Views/admin/cloudflare/zone/index.php b/app/Views/admin/cloudflare/zone/index.php index 243eeb2..5d5887e 100644 --- a/app/Views/admin/cloudflare/zone/index.php +++ b/app/Views/admin/cloudflare/zone/index.php @@ -3,7 +3,7 @@ include('templates/' . $viewDatas['layout'] . '/index_top'); ?> - +
@@ -43,7 +43,7 @@ - + diff --git a/app/Views/admin/mapurl/index.php b/app/Views/admin/mapurl/index.php index 0765c8d..d92ecb5 100644 --- a/app/Views/admin/mapurl/index.php +++ b/app/Views/admin/mapurl/index.php @@ -3,7 +3,7 @@ include('templates/' . $viewDatas['layout'] . '/index_top'); ?> - +
@@ -40,7 +40,7 @@ - + diff --git a/app/Views/admin/user/index.php b/app/Views/admin/user/index.php index 6999fc1..c2a3755 100644 --- a/app/Views/admin/user/index.php +++ b/app/Views/admin/user/index.php @@ -3,7 +3,7 @@ include('templates/' . $viewDatas['layout'] . '/index_top'); ?> - +
@@ -40,7 +40,7 @@ - +