From 871dab6a8071694884cc03e4612739ad1b34a7be Mon Sep 17 00:00:00 2001 From: Thomas Lange Date: Sat, 26 Jun 2021 15:22:45 +0200 Subject: Use const to define expressionless admin constants --- admin/auth.php | 2 +- admin/database.php | 4 ++-- admin/index.php | 4 ++-- admin/page/delete.php | 4 ++-- admin/page/index.php | 4 ++-- admin/page/insert.php | 4 ++-- admin/page/search.php | 4 ++-- admin/page/update.php | 4 ++-- admin/post/delete.php | 4 ++-- admin/post/index.php | 4 ++-- admin/post/insert.php | 4 ++-- admin/post/search.php | 4 ++-- admin/post/update.php | 4 ++-- admin/user/delete.php | 4 ++-- admin/user/index.php | 4 ++-- admin/user/insert.php | 4 ++-- admin/user/update.php | 4 ++-- 17 files changed, 33 insertions(+), 33 deletions(-) diff --git a/admin/auth.php b/admin/auth.php index 03460ba..5a3cc5f 100644 --- a/admin/auth.php +++ b/admin/auth.php @@ -2,7 +2,7 @@ #=============================================================================== # DEFINE: Administration #=============================================================================== -define('ADMINISTRATION', TRUE); +const ADMINISTRATION = TRUE; #=============================================================================== # INCLUDE: Initialization diff --git a/admin/database.php b/admin/database.php index 78d47c1..a257071 100644 --- a/admin/database.php +++ b/admin/database.php @@ -2,8 +2,8 @@ #=============================================================================== # DEFINE: Administration #=============================================================================== -define('ADMINISTRATION', TRUE); -define('AUTHENTICATION', TRUE); +const ADMINISTRATION = TRUE; +const AUTHENTICATION = TRUE; #=============================================================================== # INCLUDE: Initialization diff --git a/admin/index.php b/admin/index.php index c0383c4..09c126d 100644 --- a/admin/index.php +++ b/admin/index.php @@ -2,8 +2,8 @@ #=============================================================================== # DEFINE: Administration #=============================================================================== -define('ADMINISTRATION', TRUE); -define('AUTHENTICATION', TRUE); +const ADMINISTRATION = TRUE; +const AUTHENTICATION = TRUE; #=============================================================================== # INCLUDE: Initialization diff --git a/admin/page/delete.php b/admin/page/delete.php index 2465f62..d815023 100644 --- a/admin/page/delete.php +++ b/admin/page/delete.php @@ -2,8 +2,8 @@ #=============================================================================== # DEFINE: Administration #=============================================================================== -define('ADMINISTRATION', TRUE); -define('AUTHENTICATION', TRUE); +const ADMINISTRATION = TRUE; +const AUTHENTICATION = TRUE; #=============================================================================== # INCLUDE: Initialization diff --git a/admin/page/index.php b/admin/page/index.php index 63839a9..5a2a931 100644 --- a/admin/page/index.php +++ b/admin/page/index.php @@ -2,8 +2,8 @@ #=============================================================================== # DEFINE: Administration #=============================================================================== -define('ADMINISTRATION', TRUE); -define('AUTHENTICATION', TRUE); +const ADMINISTRATION = TRUE; +const AUTHENTICATION = TRUE; #=============================================================================== # INCLUDE: Initialization diff --git a/admin/page/insert.php b/admin/page/insert.php index e1e2412..76e9fb4 100644 --- a/admin/page/insert.php +++ b/admin/page/insert.php @@ -2,8 +2,8 @@ #=============================================================================== # DEFINE: Administration #=============================================================================== -define('ADMINISTRATION', TRUE); -define('AUTHENTICATION', TRUE); +const ADMINISTRATION = TRUE; +const AUTHENTICATION = TRUE; #=============================================================================== # INCLUDE: Initialization diff --git a/admin/page/search.php b/admin/page/search.php index b74615f..8135b91 100644 --- a/admin/page/search.php +++ b/admin/page/search.php @@ -2,8 +2,8 @@ #=============================================================================== # DEFINE: Administration #=============================================================================== -define('ADMINISTRATION', TRUE); -define('AUTHENTICATION', TRUE); +const ADMINISTRATION = TRUE; +const AUTHENTICATION = TRUE; #=============================================================================== # INCLUDE: Initialization diff --git a/admin/page/update.php b/admin/page/update.php index 4afb5fb..2ea5156 100644 --- a/admin/page/update.php +++ b/admin/page/update.php @@ -2,8 +2,8 @@ #=============================================================================== # DEFINE: Administration #=============================================================================== -define('ADMINISTRATION', TRUE); -define('AUTHENTICATION', TRUE); +const ADMINISTRATION = TRUE; +const AUTHENTICATION = TRUE; #=============================================================================== # INCLUDE: Initialization diff --git a/admin/post/delete.php b/admin/post/delete.php index 1f398e1..519ba9e 100644 --- a/admin/post/delete.php +++ b/admin/post/delete.php @@ -2,8 +2,8 @@ #=============================================================================== # DEFINE: Administration #=============================================================================== -define('ADMINISTRATION', TRUE); -define('AUTHENTICATION', TRUE); +const ADMINISTRATION = TRUE; +const AUTHENTICATION = TRUE; #=============================================================================== # INCLUDE: Initialization diff --git a/admin/post/index.php b/admin/post/index.php index f6fcfb6..e66d3b2 100644 --- a/admin/post/index.php +++ b/admin/post/index.php @@ -2,8 +2,8 @@ #=============================================================================== # DEFINE: Administration #=============================================================================== -define('ADMINISTRATION', TRUE); -define('AUTHENTICATION', TRUE); +const ADMINISTRATION = TRUE; +const AUTHENTICATION = TRUE; #=============================================================================== # INCLUDE: Initialization diff --git a/admin/post/insert.php b/admin/post/insert.php index 70435cc..b4404fa 100644 --- a/admin/post/insert.php +++ b/admin/post/insert.php @@ -2,8 +2,8 @@ #=============================================================================== # DEFINE: Administration #=============================================================================== -define('ADMINISTRATION', TRUE); -define('AUTHENTICATION', TRUE); +const ADMINISTRATION = TRUE; +const AUTHENTICATION = TRUE; #=============================================================================== # INCLUDE: Initialization diff --git a/admin/post/search.php b/admin/post/search.php index cfa2159..b438201 100644 --- a/admin/post/search.php +++ b/admin/post/search.php @@ -2,8 +2,8 @@ #=============================================================================== # DEFINE: Administration #=============================================================================== -define('ADMINISTRATION', TRUE); -define('AUTHENTICATION', TRUE); +const ADMINISTRATION = TRUE; +const AUTHENTICATION = TRUE; #=============================================================================== # INCLUDE: Initialization diff --git a/admin/post/update.php b/admin/post/update.php index 9091e59..3e4d0ab 100644 --- a/admin/post/update.php +++ b/admin/post/update.php @@ -2,8 +2,8 @@ #=============================================================================== # DEFINE: Administration #=============================================================================== -define('ADMINISTRATION', TRUE); -define('AUTHENTICATION', TRUE); +const ADMINISTRATION = TRUE; +const AUTHENTICATION = TRUE; #=============================================================================== # INCLUDE: Initialization diff --git a/admin/user/delete.php b/admin/user/delete.php index 758e536..5a38b53 100644 --- a/admin/user/delete.php +++ b/admin/user/delete.php @@ -2,8 +2,8 @@ #=============================================================================== # DEFINE: Administration #=============================================================================== -define('ADMINISTRATION', TRUE); -define('AUTHENTICATION', TRUE); +const ADMINISTRATION = TRUE; +const AUTHENTICATION = TRUE; #=============================================================================== # INCLUDE: Initialization diff --git a/admin/user/index.php b/admin/user/index.php index 78219f3..6513311 100644 --- a/admin/user/index.php +++ b/admin/user/index.php @@ -2,8 +2,8 @@ #=============================================================================== # DEFINE: Administration #=============================================================================== -define('ADMINISTRATION', TRUE); -define('AUTHENTICATION', TRUE); +const ADMINISTRATION = TRUE; +const AUTHENTICATION = TRUE; #=============================================================================== # INCLUDE: Initialization diff --git a/admin/user/insert.php b/admin/user/insert.php index 4a49492..2d9e09f 100644 --- a/admin/user/insert.php +++ b/admin/user/insert.php @@ -2,8 +2,8 @@ #=============================================================================== # DEFINE: Administration #=============================================================================== -define('ADMINISTRATION', TRUE); -define('AUTHENTICATION', TRUE); +const ADMINISTRATION = TRUE; +const AUTHENTICATION = TRUE; #=============================================================================== # INCLUDE: Initialization diff --git a/admin/user/update.php b/admin/user/update.php index 5a90ec3..bff21b3 100644 --- a/admin/user/update.php +++ b/admin/user/update.php @@ -2,8 +2,8 @@ #=============================================================================== # DEFINE: Administration #=============================================================================== -define('ADMINISTRATION', TRUE); -define('AUTHENTICATION', TRUE); +const ADMINISTRATION = TRUE; +const AUTHENTICATION = TRUE; #=============================================================================== # INCLUDE: Initialization -- cgit v1.2.3