aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJustin J. Novack <jnovack@gmail.com>2012-09-17 22:00:37 -0400
committerJustin J. Novack <jnovack@gmail.com>2012-09-17 22:00:37 -0400
commitc630697fa2d4679eed006ae37aa594cbf7b99ae8 (patch)
tree05bdb936043961292dfc0ec98801261d3711eb9d
parent802794fcc585bbb6533c52b6a4c646829bd07b4d (diff)
downloadphorkie-c630697fa2d4679eed006ae37aa594cbf7b99ae8.tar.gz
phorkie-c630697fa2d4679eed006ae37aa594cbf7b99ae8.zip
CLEAN: changed pageRequiresLogin variable to secureAtLevel to more adequately self-describe
-rw-r--r--www/delete.php2
-rw-r--r--www/display.php2
-rw-r--r--www/doap.php2
-rw-r--r--www/edit.php2
-rw-r--r--www/fork.php2
-rw-r--r--www/index.php2
-rw-r--r--www/list.php2
-rw-r--r--www/new.php2
-rw-r--r--www/raw.php2
-rw-r--r--www/revision.php2
-rw-r--r--www/search.php2
-rw-r--r--www/user.php2
-rw-r--r--www/www-security.php2
13 files changed, 13 insertions, 13 deletions
diff --git a/www/delete.php b/www/delete.php
index e4ee5e7..d9ee251 100644
--- a/www/delete.php
+++ b/www/delete.php
@@ -3,7 +3,7 @@ namespace phorkie;
/**
* Delete paste or ask for deletion
*/
-$pageRequiresLogin = '1';
+$secureAtLevel = '1';
require_once 'www-header.php';
$repo = new Repository();
diff --git a/www/display.php b/www/display.php
index 94b2ef9..fc93b0d 100644
--- a/www/display.php
+++ b/www/display.php
@@ -3,7 +3,7 @@ namespace phorkie;
/**
* Display paste contents
*/
-$pageRequiresLogin = '0';
+$secureAtLevel = '0';
require_once 'www-header.php';
$repo = new Repository();
diff --git a/www/doap.php b/www/doap.php
index cc61845..377030b 100644
--- a/www/doap.php
+++ b/www/doap.php
@@ -4,7 +4,7 @@ namespace phorkie;
* Display DOAP of the paste.
* Contains a machine-readable project description with Git URL.
*/
-$pageRequiresLogin = '0';
+$secureAtLevel = '0';
require_once 'www-header.php';
$repo = new Repository();
diff --git a/www/edit.php b/www/edit.php
index b925f0b..f83dfb3 100644
--- a/www/edit.php
+++ b/www/edit.php
@@ -3,7 +3,7 @@ namespace phorkie;
/**
* Edit paste contents
*/
-$pageRequiresLogin = '1';
+$secureAtLevel = '1';
require_once 'www-header.php';
$repo = new Repository();
$repo->loadFromRequest();
diff --git a/www/fork.php b/www/fork.php
index 2832fe4..10bd1e2 100644
--- a/www/fork.php
+++ b/www/fork.php
@@ -3,7 +3,7 @@
* Fork a repository
*/
namespace phorkie;
-$pageRequiresLogin = '1';
+$secureAtLevel = '1';
require_once 'www-header.php';
if ($_SERVER['REQUEST_METHOD'] !== 'POST') {
diff --git a/www/index.php b/www/index.php
index 1801831..7ff1814 100644
--- a/www/index.php
+++ b/www/index.php
@@ -3,7 +3,7 @@
* Jump to the index as per the configuration
*/
namespace phorkie;
-$pageRequiresLogin = false;
+$secureAtLevel = false;
require_once 'www-header.php';
header(
diff --git a/www/list.php b/www/list.php
index cc8aa87..8252f37 100644
--- a/www/list.php
+++ b/www/list.php
@@ -3,7 +3,7 @@
* List a repository
*/
namespace phorkie;
-$pageRequiresLogin = '0';
+$secureAtLevel = '0';
require_once 'www-header.php';
$rs = new Repositories();
diff --git a/www/new.php b/www/new.php
index 505ca50..e2611c0 100644
--- a/www/new.php
+++ b/www/new.php
@@ -10,7 +10,7 @@ namespace phorkie;
*
* Creates and redirects to display page
*/
-$pageRequiresLogin = '1';
+$secureAtLevel = '1';
require_once 'www-header.php';
$repopo = new Repository_Post();
diff --git a/www/raw.php b/www/raw.php
index bedaa1b..612a6b8 100644
--- a/www/raw.php
+++ b/www/raw.php
@@ -3,7 +3,7 @@ namespace phorkie;
/**
* Displays a file
*/
-$pageRequiresLogin = '0';
+$secureAtLevel = '0';
require_once 'www-header.php';
$repo = new Repository();
diff --git a/www/revision.php b/www/revision.php
index 9c2735d..513ca67 100644
--- a/www/revision.php
+++ b/www/revision.php
@@ -3,7 +3,7 @@ namespace phorkie;
/**
* Display historic paste contents
*/
-$pageRequiresLogin = '0';
+$secureAtLevel = '0';
require_once 'www-header.php';
$repo = new Repository();
diff --git a/www/search.php b/www/search.php
index 2621382..82d5f76 100644
--- a/www/search.php
+++ b/www/search.php
@@ -3,7 +3,7 @@ namespace phorkie;
/**
* Search for a search term
*/
-$pageRequiresLogin = '0';
+$secureAtLevel = '0';
require_once 'www-header.php';
if (!isset($_GET['q']) || $_GET['q'] == '') {
diff --git a/www/user.php b/www/user.php
index 5bb2352..9e20f6a 100644
--- a/www/user.php
+++ b/www/user.php
@@ -3,7 +3,7 @@
* Edit user information
*/
namespace phorkie;
-$pageRequiresLogin = '1';
+$secureAtLevel = '1';
require_once 'www-header.php';
if (isset($_POST['name'])) {
diff --git a/www/www-security.php b/www/www-security.php
index 2f5f30b..9fae87b 100644
--- a/www/www-security.php
+++ b/www/www-security.php
@@ -26,7 +26,7 @@ if (!isset($_SESSION['identity'])) {
$logged_in = true;
}
-if ($pageRequiresLogin >= $GLOBALS['phorkie']['auth']['secure']) {
+if ($secureAtLevel >= $GLOBALS['phorkie']['auth']['secure']) {
if ($logged_in) {
return;
}