diff options
Diffstat (limited to 'admin/page')
-rw-r--r-- | admin/page/delete.php | 7 | ||||
-rw-r--r-- | admin/page/insert.php | 11 | ||||
-rw-r--r-- | admin/page/update.php | 11 |
3 files changed, 3 insertions, 26 deletions
diff --git a/admin/page/delete.php b/admin/page/delete.php index de9ac21..890188e 100644 --- a/admin/page/delete.php +++ b/admin/page/delete.php @@ -36,12 +36,7 @@ try { $FormTemplate->set('FORM', [ 'TYPE' => 'DELETE', 'INFO' => $messages ?? [], - 'DATA' => [ - 'ID' => $Attribute->get('id'), - 'BODY' => $Attribute->get('body'), - 'TIME_INSERT' => $Attribute->get('time_insert'), - 'TIME_UPDATE' => $Attribute->get('time_update'), - ], + 'DATA' => array_change_key_case($Attribute->getAll(), CASE_UPPER), 'TOKEN' => Application::getSecurityToken() ]); diff --git a/admin/page/insert.php b/admin/page/insert.php index 5731b6f..a360c1b 100644 --- a/admin/page/insert.php +++ b/admin/page/insert.php @@ -56,16 +56,7 @@ try { $FormTemplate->set('FORM', [ 'TYPE' => 'INSERT', 'INFO' => $messages ?? [], - 'DATA' => [ - 'ID' => $Attribute->get('id'), - 'USER' => $Attribute->get('user'), - 'SLUG' => $Attribute->get('slug'), - 'NAME' => $Attribute->get('name'), - 'BODY' => $Attribute->get('body'), - 'ARGV' => $Attribute->get('argv'), - 'TIME_INSERT' => $Attribute->get('time_insert'), - 'TIME_UPDATE' => $Attribute->get('time_update'), - ], + 'DATA' => array_change_key_case($Attribute->getAll(), CASE_UPPER), 'USER_LIST' => $userAttributes ?? [], 'TOKEN' => Application::getSecurityToken() ]); diff --git a/admin/page/update.php b/admin/page/update.php index dc92073..18c9785 100644 --- a/admin/page/update.php +++ b/admin/page/update.php @@ -58,16 +58,7 @@ try { $FormTemplate->set('FORM', [ 'TYPE' => 'UPDATE', 'INFO' => $messages ?? [], - 'DATA' => [ - 'ID' => $Attribute->get('id'), - 'USER' => $Attribute->get('user'), - 'SLUG' => $Attribute->get('slug'), - 'NAME' => $Attribute->get('name'), - 'BODY' => $Attribute->get('body'), - 'ARGV' => $Attribute->get('argv'), - 'TIME_INSERT' => $Attribute->get('time_insert'), - 'TIME_UPDATE' => $Attribute->get('time_update'), - ], + 'DATA' => array_change_key_case($Attribute->getAll(), CASE_UPPER), 'USER_LIST' => $userAttributes ?? [], 'TOKEN' => Application::getSecurityToken() ]); |