aboutsummaryrefslogtreecommitdiffstats
path: root/admin/page
diff options
context:
space:
mode:
Diffstat (limited to 'admin/page')
-rw-r--r--admin/page/delete.php4
-rw-r--r--admin/page/index.php6
-rw-r--r--admin/page/insert.php10
-rw-r--r--admin/page/search.php4
-rw-r--r--admin/page/update.php10
5 files changed, 17 insertions, 17 deletions
diff --git a/admin/page/delete.php b/admin/page/delete.php
index 8542187..a0924c8 100644
--- a/admin/page/delete.php
+++ b/admin/page/delete.php
@@ -2,8 +2,8 @@
#===============================================================================
# DEFINE: Administration
#===============================================================================
-const ADMINISTRATION = TRUE;
-const AUTHENTICATION = TRUE;
+const ADMINISTRATION = true;
+const AUTHENTICATION = true;
#===============================================================================
# INCLUDE: Initialization
diff --git a/admin/page/index.php b/admin/page/index.php
index 7586d3c..b533cf3 100644
--- a/admin/page/index.php
+++ b/admin/page/index.php
@@ -2,8 +2,8 @@
#===============================================================================
# DEFINE: Administration
#===============================================================================
-const ADMINISTRATION = TRUE;
-const AUTHENTICATION = TRUE;
+const ADMINISTRATION = true;
+const AUTHENTICATION = true;
#===============================================================================
# INCLUDE: Initialization
@@ -35,7 +35,7 @@ if(!$count) {
HTTP::redirect(Application::getAdminURL('page/insert.php'));
}
-if($currentSite < 1 OR ($currentSite > $lastSite AND $lastSite > 0)) {
+if($currentSite < 1 or ($currentSite > $lastSite and $lastSite > 0)) {
Application::error404();
}
diff --git a/admin/page/insert.php b/admin/page/insert.php
index 915fee5..7577433 100644
--- a/admin/page/insert.php
+++ b/admin/page/insert.php
@@ -2,8 +2,8 @@
#===============================================================================
# DEFINE: Administration
#===============================================================================
-const ADMINISTRATION = TRUE;
-const AUTHENTICATION = TRUE;
+const ADMINISTRATION = true;
+const AUTHENTICATION = true;
#===============================================================================
# INCLUDE: Initialization
@@ -27,9 +27,9 @@ $Page = new ORM\Entities\Page;
if(HTTP::issetPOST('insert')) {
$Page->set('user', HTTP::POST('user'));
$Page->set('slug', HTTP::POST('slug') ?: generateSlug(HTTP::POST('name')));
- $Page->set('name', HTTP::POST('name') ?: NULL);
- $Page->set('body', HTTP::POST('body') ?: NULL);
- $Page->set('argv', HTTP::POST('argv') ?: NULL);
+ $Page->set('name', HTTP::POST('name') ?: null);
+ $Page->set('body', HTTP::POST('body') ?: null);
+ $Page->set('argv', HTTP::POST('argv') ?: null);
$Page->set('time_insert', HTTP::POST('time_insert') ?: date('Y-m-d H:i:s'));
$Page->set('time_update', HTTP::POST('time_update') ?: date('Y-m-d H:i:s'));
diff --git a/admin/page/search.php b/admin/page/search.php
index c9a39cf..7310e2a 100644
--- a/admin/page/search.php
+++ b/admin/page/search.php
@@ -2,8 +2,8 @@
#===============================================================================
# DEFINE: Administration
#===============================================================================
-const ADMINISTRATION = TRUE;
-const AUTHENTICATION = TRUE;
+const ADMINISTRATION = true;
+const AUTHENTICATION = true;
#===============================================================================
# INCLUDE: Initialization
diff --git a/admin/page/update.php b/admin/page/update.php
index 8f6cb0e..e123205 100644
--- a/admin/page/update.php
+++ b/admin/page/update.php
@@ -2,8 +2,8 @@
#===============================================================================
# DEFINE: Administration
#===============================================================================
-const ADMINISTRATION = TRUE;
-const AUTHENTICATION = TRUE;
+const ADMINISTRATION = true;
+const AUTHENTICATION = true;
#===============================================================================
# INCLUDE: Initialization
@@ -29,9 +29,9 @@ if(!$Page = $PageRepository->find(HTTP::GET('id'))) {
if(HTTP::issetPOST('update')) {
$Page->set('user', HTTP::POST('user'));
$Page->set('slug', HTTP::POST('slug') ?: generateSlug(HTTP::POST('name')));
- $Page->set('name', HTTP::POST('name') ?: NULL);
- $Page->set('body', HTTP::POST('body') ?: NULL);
- $Page->set('argv', HTTP::POST('argv') ?: NULL);
+ $Page->set('name', HTTP::POST('name') ?: null);
+ $Page->set('body', HTTP::POST('body') ?: null);
+ $Page->set('argv', HTTP::POST('argv') ?: null);
$Page->set('time_insert', HTTP::POST('time_insert') ?: date('Y-m-d H:i:s'));
$Page->set('time_update', HTTP::POST('time_update') ?: date('Y-m-d H:i:s'));