From 98e8be566e7b704ea447c48f66f063b0202126ef Mon Sep 17 00:00:00 2001 From: Tan Nguyen Date: Wed, 19 Apr 2023 21:52:23 +0700 Subject: [PATCH 1/2] remove redundant code --- 404.php | 5 ----- admin/controllers/home/login.php | 2 +- admin/controllers/order/complete.php | 7 +------ admin/controllers/order/delete.php | 5 ----- admin/controllers/order/index.php | 5 ----- admin/controllers/order/inprocess.php | 5 ----- admin/controllers/order/order-cancell.php | 5 ----- admin/controllers/order/order-complete.php | 5 ----- admin/controllers/order/order-inprocess.php | 5 ----- admin/controllers/order/order-noprocess.php | 5 ----- admin/controllers/order/view.php | 5 ----- admin/controllers/page/add.php | 5 ----- admin/controllers/page/delete.php | 5 ----- admin/controllers/page/draft.php | 5 ----- admin/controllers/page/edit.php | 5 ----- admin/controllers/page/index.php | 5 ----- admin/controllers/page/public.php | 5 ----- admin/controllers/page/restore.php | 5 ----- admin/controllers/page/trash.php | 5 ----- admin/controllers/page/viewdraft.php | 5 ----- admin/controllers/page/viewtrash.php | 5 ----- admin/controllers/post/add.php | 5 ----- admin/controllers/post/delete.php | 5 ----- admin/controllers/post/draft.php | 5 ----- admin/controllers/post/edit.php | 5 ----- admin/controllers/post/index.php | 5 ----- admin/controllers/post/public.php | 5 ----- admin/controllers/post/restore.php | 5 ----- admin/controllers/post/trash.php | 5 ----- admin/controllers/post/viewdraft.php | 5 ----- admin/controllers/post/viewtrash.php | 5 ----- admin/controllers/product/delete.php | 5 ----- admin/controllers/product/edit.php | 5 ----- admin/controllers/product/hotproduct.php | 5 ----- admin/controllers/product/index.php | 5 ----- admin/controllers/product/newproduct.php | 5 ----- admin/controllers/product/saleproduct.php | 5 ----- admin/controllers/product/update.php | 5 ----- admin/controllers/purchase/cancell-action.php | 5 ----- admin/controllers/purchase/cancelled.php | 5 ----- admin/controllers/purchase/confirmed.php | 5 ----- admin/controllers/purchase/delivery.php | 5 ----- admin/controllers/purchase/view.php | 5 ----- admin/controllers/role/admin.php | 5 ----- admin/controllers/role/delete.php | 5 ----- admin/controllers/role/deleteAdmin.php | 5 ----- admin/controllers/role/edit.php | 5 ----- admin/controllers/role/index.php | 5 ----- admin/controllers/shared/statistics.php | 5 ----- admin/controllers/shop/delete.php | 5 ----- admin/controllers/shop/edit.php | 5 ----- admin/controllers/shop/index.php | 5 ----- admin/controllers/slide/delete.php | 5 ----- admin/controllers/slide/edit.php | 5 ----- admin/controllers/slide/index.php | 5 ----- admin/controllers/user/add.php | 5 ----- admin/controllers/user/change-password.php | 5 ----- admin/controllers/user/delete.php | 5 ----- admin/controllers/user/edit.php | 5 ----- admin/controllers/user/info.php | 5 ----- admin/controllers/user/listall.php | 5 ----- admin/controllers/user/result.php | 5 ----- admin/models/backupDB.php | 5 ----- admin/models/category.php | 5 ----- admin/models/comments.php | 5 ----- admin/models/feedbacks.php | 5 ----- admin/models/header-footer.php | 5 ----- admin/models/media.php | 5 ----- admin/models/order.php | 5 ----- admin/models/posts.php | 5 ----- admin/models/products.php | 5 ----- admin/models/purchase.php | 5 ----- admin/models/roles.php | 5 ----- admin/models/shop.php | 5 ----- admin/models/slides.php | 5 ----- admin/models/users.php | 5 ----- admin/views/backupdb/index.php | 5 ----- admin/views/backupdb/list.php | 5 ----- admin/views/backupdb/resultBackupdb.php | 5 ----- admin/views/category/edit.php | 5 ----- admin/views/category/formEdit.php | 5 ----- admin/views/category/index.php | 5 ----- admin/views/comment/spam.php | 5 ----- admin/views/feedback/order.php | 5 ----- admin/views/header-footer/index.php | 5 ----- admin/views/home/index.php | 5 ----- admin/views/home/login.php | 5 ----- admin/views/media/add.php | 5 ----- admin/views/order/index.php | 5 ----- admin/views/page/edit.php | 5 ----- admin/views/post/formAdd.php | 5 ----- admin/views/product/hotproduct.php | 5 ----- admin/views/product/newproduct.php | 5 ----- admin/views/purchase/cancelled.php | 5 ----- admin/views/purchase/delivery.php | 5 ----- admin/views/role/admin.php | 5 ----- admin/views/role/index.php | 5 ----- admin/views/shared/header.php | 5 ----- admin/views/shared/leftnavbar.php | 5 ----- admin/views/shared/loader.php | 5 ----- admin/views/shared/rightnavbar.php | 5 ----- admin/views/shop/edit.php | 5 ----- admin/views/slide/edit.php | 5 ----- admin/views/user/addresult.php | 5 ----- admin/views/user/formInfo.php | 5 ----- admin/views/user/listall.php | 5 ----- content/controllers/cart/add.php | 5 ----- content/controllers/cart/checkout.php | 5 ----- content/controllers/cart/delete.php | 5 ----- content/controllers/cart/destroy.php | 5 ----- content/controllers/cart/index.php | 5 ----- content/controllers/cart/order.php | 5 ----- content/controllers/category/index.php | 5 ----- content/controllers/comment/index.php | 5 ----- content/controllers/feedback/index.php | 5 ----- content/controllers/forgot-password/request.php | 5 ----- .../controllers/forgot-password/result-change-password.php | 5 ----- content/controllers/forgot-password/resultcode.php | 5 ----- content/controllers/home/index.php | 5 ----- content/controllers/page/index.php | 5 ----- content/controllers/post/all.php | 5 ----- content/controllers/post/index.php | 5 ----- content/controllers/product/all.php | 5 ----- content/controllers/product/index.php | 5 ----- content/controllers/register/activate.php | 5 ----- content/controllers/register/index.php | 5 ----- content/controllers/register/reactivate.php | 5 ----- content/controllers/register/resend.php | 5 ----- content/controllers/search/index.php | 5 ----- content/controllers/shop/index.php | 5 ----- content/controllers/type/index.php | 5 ----- content/models/cart.php | 7 +------ content/models/feedbacks.php | 5 ----- content/models/posts.php | 5 ----- content/models/products.php | 5 ----- content/views/cart/checkout.php | 5 ----- content/views/cart/list.php | 5 ----- content/views/cart/order.php | 5 ----- content/views/category/index.php | 5 ----- content/views/comment/index.php | 5 ----- content/views/feedback/index.php | 5 ----- content/views/feedback/result.php | 5 ----- content/views/forgot-password/change-password.php | 5 ----- content/views/forgot-password/index.php | 5 ----- content/views/forgot-password/result.php | 5 ----- content/views/home/index.php | 5 ----- content/views/page/index.php | 5 ----- content/views/post/index.php | 5 ----- content/views/product/all.php | 5 ----- content/views/product/index.php | 5 ----- content/views/register/result.php | 5 ----- content/views/search/index.php | 5 ----- content/views/shared/footer.php | 5 ----- content/views/shared/header.php | 5 ----- content/views/shared/sidebar.php | 5 ----- content/views/shop/index.php | 5 ----- content/views/type/index.php | 5 ----- lib/counter.php | 5 ----- lib/functions.php | 5 ----- lib/model.php | 5 ----- lib/statistics.php | 5 ----- register.php | 5 ----- 162 files changed, 3 insertions(+), 808 deletions(-) diff --git a/404.php b/404.php index 381be089..36bc53da 100644 --- a/404.php +++ b/404.php @@ -1,8 +1,3 @@ - - diff --git a/admin/views/backupdb/list.php b/admin/views/backupdb/list.php index 1d3602f3..e391dcba 100644 --- a/admin/views/backupdb/list.php +++ b/admin/views/backupdb/list.php @@ -1,8 +1,3 @@ - diff --git a/admin/views/backupdb/resultBackupdb.php b/admin/views/backupdb/resultBackupdb.php index dda82c9c..a88ac691 100644 --- a/admin/views/backupdb/resultBackupdb.php +++ b/admin/views/backupdb/resultBackupdb.php @@ -1,8 +1,3 @@ - diff --git a/admin/views/category/edit.php b/admin/views/category/edit.php index b033693a..e256585f 100644 --- a/admin/views/category/edit.php +++ b/admin/views/category/edit.php @@ -1,8 +1,3 @@ - diff --git a/admin/views/category/formEdit.php b/admin/views/category/formEdit.php index a096d50c..559a6742 100644 --- a/admin/views/category/formEdit.php +++ b/admin/views/category/formEdit.php @@ -1,8 +1,3 @@ -
diff --git a/admin/views/category/index.php b/admin/views/category/index.php index be89f80e..f8ad0dd3 100644 --- a/admin/views/category/index.php +++ b/admin/views/category/index.php @@ -1,8 +1,3 @@ - diff --git a/admin/views/comment/spam.php b/admin/views/comment/spam.php index 29d6b330..b7fe9bf9 100644 --- a/admin/views/comment/spam.php +++ b/admin/views/comment/spam.php @@ -1,8 +1,3 @@ - diff --git a/admin/views/feedback/order.php b/admin/views/feedback/order.php index 0fe5ae8c..5fb562f0 100644 --- a/admin/views/feedback/order.php +++ b/admin/views/feedback/order.php @@ -1,8 +1,3 @@ - diff --git a/admin/views/header-footer/index.php b/admin/views/header-footer/index.php index 271aaa40..466d0189 100644 --- a/admin/views/header-footer/index.php +++ b/admin/views/header-footer/index.php @@ -1,8 +1,3 @@ - diff --git a/admin/views/home/index.php b/admin/views/home/index.php index 1a19ad4c..76cba356 100644 --- a/admin/views/home/index.php +++ b/admin/views/home/index.php @@ -1,8 +1,3 @@ - diff --git a/admin/views/home/login.php b/admin/views/home/login.php index 5aa6fecd..393be9cb 100644 --- a/admin/views/home/login.php +++ b/admin/views/home/login.php @@ -1,8 +1,3 @@ - diff --git a/admin/views/media/add.php b/admin/views/media/add.php index 031bf5f5..ca5bdb5d 100644 --- a/admin/views/media/add.php +++ b/admin/views/media/add.php @@ -1,8 +1,3 @@ - diff --git a/admin/views/order/index.php b/admin/views/order/index.php index 6fac6302..3925b42b 100644 --- a/admin/views/order/index.php +++ b/admin/views/order/index.php @@ -1,8 +1,3 @@ - diff --git a/admin/views/page/edit.php b/admin/views/page/edit.php index 51c267d7..7085a6e6 100644 --- a/admin/views/page/edit.php +++ b/admin/views/page/edit.php @@ -1,8 +1,3 @@ - diff --git a/admin/views/post/formAdd.php b/admin/views/post/formAdd.php index 3813c715..0e1735a9 100644 --- a/admin/views/post/formAdd.php +++ b/admin/views/post/formAdd.php @@ -1,8 +1,3 @@ -
diff --git a/admin/views/product/hotproduct.php b/admin/views/product/hotproduct.php index 4ff8c2ec..f8af590a 100644 --- a/admin/views/product/hotproduct.php +++ b/admin/views/product/hotproduct.php @@ -1,8 +1,3 @@ - diff --git a/admin/views/product/newproduct.php b/admin/views/product/newproduct.php index ee033f55..7d809027 100644 --- a/admin/views/product/newproduct.php +++ b/admin/views/product/newproduct.php @@ -1,8 +1,3 @@ - diff --git a/admin/views/purchase/cancelled.php b/admin/views/purchase/cancelled.php index 2e2751c0..e804e3f3 100644 --- a/admin/views/purchase/cancelled.php +++ b/admin/views/purchase/cancelled.php @@ -1,8 +1,3 @@ - diff --git a/admin/views/purchase/delivery.php b/admin/views/purchase/delivery.php index 2fd524d3..abc8617c 100644 --- a/admin/views/purchase/delivery.php +++ b/admin/views/purchase/delivery.php @@ -1,8 +1,3 @@ - diff --git a/admin/views/role/admin.php b/admin/views/role/admin.php index 8dc28ac8..78186bf9 100644 --- a/admin/views/role/admin.php +++ b/admin/views/role/admin.php @@ -1,8 +1,3 @@ - diff --git a/admin/views/role/index.php b/admin/views/role/index.php index da67f75d..977cc03c 100644 --- a/admin/views/role/index.php +++ b/admin/views/role/index.php @@ -1,8 +1,3 @@ - diff --git a/admin/views/shared/header.php b/admin/views/shared/header.php index 470a6484..9325230b 100644 --- a/admin/views/shared/header.php +++ b/admin/views/shared/header.php @@ -1,8 +1,3 @@ -