CLEAN: changed pageRequiresLogin variable to secureAtLevel to more adequately self...
authorJustin J. Novack <jnovack@gmail.com>
Tue, 18 Sep 2012 02:00:37 +0000 (22:00 -0400)
committerJustin J. Novack <jnovack@gmail.com>
Tue, 18 Sep 2012 02:00:37 +0000 (22:00 -0400)
13 files changed:
www/delete.php
www/display.php
www/doap.php
www/edit.php
www/fork.php
www/index.php
www/list.php
www/new.php
www/raw.php
www/revision.php
www/search.php
www/user.php
www/www-security.php

index e4ee5e7d12738c34c879afe6e49d905443acfabd..d9ee2511f6ba2b0d37a24b228ef7e47f369e4144 100644 (file)
@@ -3,7 +3,7 @@ namespace phorkie;
 /**
  * Delete paste or ask for deletion
  */
-$pageRequiresLogin = '1';
+$secureAtLevel = '1';
 require_once 'www-header.php';
 
 $repo = new Repository();
index 94b2ef9518451a93e0f6edf24b5be93523fb4834..fc93b0dc3d174018f1e913db4f2a535a5dfa3df4 100644 (file)
@@ -3,7 +3,7 @@ namespace phorkie;
 /**
  * Display paste contents
  */
-$pageRequiresLogin = '0';
+$secureAtLevel = '0';
 require_once 'www-header.php';
 
 $repo = new Repository();
index cc618451969efed4ace18d013ba85db00054ee2d..377030b44f6fa1a829a88c1135923d06e20f63fd 100644 (file)
@@ -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();
index b925f0b0a95fb434175ff67e511d63a32818cd02..f83dfb3d2d4ca9b221a395a324e8ca2ec24157be 100644 (file)
@@ -3,7 +3,7 @@ namespace phorkie;
 /**
  * Edit paste contents
  */
-$pageRequiresLogin = '1';
+$secureAtLevel = '1';
 require_once 'www-header.php';
 $repo = new Repository();
 $repo->loadFromRequest();
index 2832fe4e60fa32c1d5c1f2f85f06e3c91cb4e858..10bd1e201d0dcc91a18612618e0f6bc0c2792ddb 100644 (file)
@@ -3,7 +3,7 @@
  * Fork a repository
  */
 namespace phorkie;
-$pageRequiresLogin = '1';
+$secureAtLevel = '1';
 require_once 'www-header.php';
 
 if ($_SERVER['REQUEST_METHOD'] !== 'POST') {
index 18018313aa3ce76b2770bbbd575b5367ff28fa09..7ff1814767cb6a619d3ad939d52714c4b19dac42 100644 (file)
@@ -3,7 +3,7 @@
  * Jump to the index as per the configuration
  */
 namespace phorkie;
-$pageRequiresLogin = false;
+$secureAtLevel = false;
 require_once 'www-header.php';
 
 header(
index cc8aa872c435e36c73cb4992d5861bc716aa24d5..8252f37b89f66c1924d2d18fb41bbcb493b7275b 100644 (file)
@@ -3,7 +3,7 @@
  * List a repository
  */
 namespace phorkie;
-$pageRequiresLogin = '0';
+$secureAtLevel = '0';
 require_once 'www-header.php';
 $rs = new Repositories();
 
index 505ca50f4ea04c9dc75a67cb262241fbf2bc94d7..e2611c0849b2707ea48a76dfc1e3f0fd13e1e102 100644 (file)
@@ -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();
index bedaa1b54e58b5f1e334944452459afa87d3c70e..612a6b86b9aa49c1b2ef664135fedb8b2e2591cb 100644 (file)
@@ -3,7 +3,7 @@ namespace phorkie;
 /**
  * Displays a file
  */
-$pageRequiresLogin = '0';
+$secureAtLevel = '0';
 require_once 'www-header.php';
 
 $repo = new Repository();
index 9c2735da0f2fb949564ffe367d471b70c0704c46..513ca678f6886b5a7cecb0f24713ec1e3b485a54 100644 (file)
@@ -3,7 +3,7 @@ namespace phorkie;
 /**
  * Display historic paste contents
  */
-$pageRequiresLogin = '0';
+$secureAtLevel = '0';
 require_once 'www-header.php';
 
 $repo = new Repository();
index 2621382e3d6c3a1d132b2918d2f94b4065db990e..82d5f767e4caad714b073669232af203be8c5572 100644 (file)
@@ -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'] == '') {
index 5bb2352ad60323a458a1f640940c778bc345a722..9e20f6a123ffcd690621915a5001507c0b055b30 100644 (file)
@@ -3,7 +3,7 @@
  * Edit user information
  */
 namespace phorkie;
-$pageRequiresLogin = '1';
+$secureAtLevel = '1';
 require_once 'www-header.php';
 
 if (isset($_POST['name'])) {
index 2f5f30b9dac7f6f0ef69b7f7c17cdbb3b0dcfdb6..9fae87bb1f0aeb86988f612dd680557022b3bfd9 100644 (file)
@@ -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;
     }