From 407e323c7ca8360e857aef68d92a3d116eb84581 Mon Sep 17 00:00:00 2001 From: vgalvoso Date: Mon, 13 Nov 2023 15:40:13 +0800 Subject: [PATCH] Preview --- View/admin.php | 26 -------------------------- View/admin/users_table.php | 13 ------------- View/index.php | 1 - api/addUser.php | 21 --------------------- api/getAllUser.php | 15 --------------- 5 files changed, 76 deletions(-) delete mode 100644 View/admin.php delete mode 100644 View/admin/users_table.php delete mode 100644 api/addUser.php delete mode 100644 api/getAllUser.php diff --git a/View/admin.php b/View/admin.php deleted file mode 100644 index 68bd0e1..0000000 --- a/View/admin.php +++ /dev/null @@ -1,26 +0,0 @@ - - - - - - Document - - - - - -
-
- - - - - -
- -
-
- -
- - \ No newline at end of file diff --git a/View/admin/users_table.php b/View/admin/users_table.php deleted file mode 100644 index 736c9cd..0000000 --- a/View/admin/users_table.php +++ /dev/null @@ -1,13 +0,0 @@ - - - - - - - - - - - - -
UsernameFirst NameLast Name
No Contents
\ No newline at end of file diff --git a/View/index.php b/View/index.php index 46d1265..7990ed7 100644 --- a/View/index.php +++ b/View/index.php @@ -11,7 +11,6 @@

PHPEasy

Monolithic API-centric PHP Framework

- To Admin
\ No newline at end of file diff --git a/api/addUser.php b/api/addUser.php deleted file mode 100644 index a02a594..0000000 --- a/api/addUser.php +++ /dev/null @@ -1,21 +0,0 @@ - "required|string", - "upass" => "required|string", - "firstName" => "required|string", - "lastName" => "required|string"]; -validate($_POST,$dataRules); - -extract(allowedVars($_POST,$dataRules)); - -$db = new DAL(); -$values = ["id" => uniqid(), - "username" => $uname, - "password" => password_hash($upass,PASSWORD_BCRYPT,['cost' => 12]), - "firstname" => $firstName, - "lastname" => $lastName]; -if(!$db->insert('users',$values)) - invalid("Add user failed!"); - -//to("/api/getAllUser"); \ No newline at end of file diff --git a/api/getAllUser.php b/api/getAllUser.php deleted file mode 100644 index 9714834..0000000 --- a/api/getAllUser.php +++ /dev/null @@ -1,15 +0,0 @@ -getAll(); -foreach($users as $user): -?> - - username?> - first_name?> - last_name?> - -