aboutsummaryrefslogtreecommitdiffstats
path: root/admin
diff options
context:
space:
mode:
Diffstat (limited to 'admin')
-rw-r--r--admin/page/insert.php3
-rw-r--r--admin/post/insert.php3
-rw-r--r--admin/user/insert.php3
3 files changed, 3 insertions, 6 deletions
diff --git a/admin/page/insert.php b/admin/page/insert.php
index 5d4339a..979dbd9 100644
--- a/admin/page/insert.php
+++ b/admin/page/insert.php
@@ -12,8 +12,7 @@ require '../../core/application.php';
$Attribute = new Page\Attribute();
-if(HTTP::issetPOST('id', 'user', 'slug', 'name', 'body', 'argv', 'time_insert', 'time_update', 'insert')) {
- $Attribute->set('id', HTTP::POST('id') ? HTTP::POST('id') : FALSE);
+if(HTTP::issetPOST('user', 'slug', 'name', 'body', 'argv', 'time_insert', 'time_update', 'insert')) {
$Attribute->set('user', HTTP::POST('user'));
$Attribute->set('slug', HTTP::POST('slug') ? HTTP::POST('slug') : generateSlug(HTTP::POST('name')));
$Attribute->set('name', HTTP::POST('name') ? HTTP::POST('name') : NULL);
diff --git a/admin/post/insert.php b/admin/post/insert.php
index 5b2ec52..6b1876e 100644
--- a/admin/post/insert.php
+++ b/admin/post/insert.php
@@ -12,8 +12,7 @@ require '../../core/application.php';
$Attribute = new Post\Attribute();
-if(HTTP::issetPOST('id', 'user', 'slug', 'name', 'body', 'argv', 'time_insert', 'time_update', 'insert')) {
- $Attribute->set('id', HTTP::POST('id') ? HTTP::POST('id') : FALSE);
+if(HTTP::issetPOST('user', 'slug', 'name', 'body', 'argv', 'time_insert', 'time_update', 'insert')) {
$Attribute->set('user', HTTP::POST('user'));
$Attribute->set('slug', HTTP::POST('slug') ? HTTP::POST('slug') : generateSlug(HTTP::POST('name')));
$Attribute->set('name', HTTP::POST('name') ? HTTP::POST('name') : NULL);
diff --git a/admin/user/insert.php b/admin/user/insert.php
index 9a84fa9..acb49ad 100644
--- a/admin/user/insert.php
+++ b/admin/user/insert.php
@@ -12,8 +12,7 @@ require '../../core/application.php';
$Attribute = new User\Attribute();
-if(HTTP::issetPOST('id', 'slug', 'username', 'password', 'fullname', 'mailaddr', 'body', 'argv', 'time_insert', 'time_update', 'insert')) {
- $Attribute->set('id', HTTP::POST('id') ? HTTP::POST('id') : FALSE);
+if(HTTP::issetPOST('slug', 'username', 'password', 'fullname', 'mailaddr', 'body', 'argv', 'time_insert', 'time_update', 'insert')) {
$Attribute->set('slug', HTTP::POST('slug') ? HTTP::POST('slug') : generateSlug(HTTP::POST('username')));
$Attribute->set('username', HTTP::POST('username') ? HTTP::POST('username') : NULL);
$Attribute->set('password', HTTP::POST('password') ? password_hash(HTTP::POST('password'), PASSWORD_BCRYPT, ['cost' => 10]) : FALSE);