aboutsummaryrefslogtreecommitdiffstats
path: root/admin
diff options
context:
space:
mode:
Diffstat (limited to 'admin')
-rw-r--r--admin/page/delete.php7
-rw-r--r--admin/page/insert.php11
-rw-r--r--admin/page/update.php11
-rw-r--r--admin/post/delete.php7
-rw-r--r--admin/post/insert.php11
-rw-r--r--admin/post/update.php11
-rw-r--r--admin/user/delete.php7
-rw-r--r--admin/user/insert.php13
-rw-r--r--admin/user/update.php13
9 files changed, 9 insertions, 82 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()
]);
diff --git a/admin/post/delete.php b/admin/post/delete.php
index a5151ff..80f3a70 100644
--- a/admin/post/delete.php
+++ b/admin/post/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/post/insert.php b/admin/post/insert.php
index 4587a87..8e08fb3 100644
--- a/admin/post/insert.php
+++ b/admin/post/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/post/update.php b/admin/post/update.php
index 7e3610f..af26835 100644
--- a/admin/post/update.php
+++ b/admin/post/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()
]);
diff --git a/admin/user/delete.php b/admin/user/delete.php
index 7023246..28d1b2a 100644
--- a/admin/user/delete.php
+++ b/admin/user/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(['password']), CASE_UPPER),
'TOKEN' => Application::getSecurityToken()
]);
diff --git a/admin/user/insert.php b/admin/user/insert.php
index 81daf98..2d49322 100644
--- a/admin/user/insert.php
+++ b/admin/user/insert.php
@@ -47,18 +47,7 @@ try {
$FormTemplate->set('FORM', [
'TYPE' => 'INSERT',
'INFO' => $messages ?? [],
- 'DATA' => [
- 'ID' => $Attribute->get('id'),
- 'SLUG' => $Attribute->get('slug'),
- 'USERNAME' => $Attribute->get('username'),
- 'PASSWORD' => NULL,
- 'FULLNAME' => $Attribute->get('fullname'),
- 'MAILADDR' => $Attribute->get('mailaddr'),
- '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(['password']), CASE_UPPER),
'TOKEN' => Application::getSecurityToken()
]);
diff --git a/admin/user/update.php b/admin/user/update.php
index cdacfa0..3ba6df8 100644
--- a/admin/user/update.php
+++ b/admin/user/update.php
@@ -50,18 +50,7 @@ try {
$FormTemplate->set('FORM', [
'TYPE' => 'UPDATE',
'INFO' => $messages ?? [],
- 'DATA' => [
- 'ID' => $Attribute->get('id'),
- 'SLUG' => $Attribute->get('slug'),
- 'USERNAME' => $Attribute->get('username'),
- 'PASSWORD' => NULL,
- 'FULLNAME' => $Attribute->get('fullname'),
- 'MAILADDR' => $Attribute->get('mailaddr'),
- '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(['password']), CASE_UPPER),
'TOKEN' => Application::getSecurityToken()
]);