REVERT: variable name change
authorJustin J. Novack <jnovack@gmail.com>
Tue, 18 Sep 2012 11:43:52 +0000 (07:43 -0400)
committerJustin J. Novack <jnovack@gmail.com>
Tue, 18 Sep 2012 11:43:52 +0000 (07:43 -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 2271b211d40ad4877ce8d51c9f00735ed141cb75..d9ee2511f6ba2b0d37a24b228ef7e47f369e4144 100644 (file)
@@ -3,7 +3,7 @@ namespace phorkie;
 /**
  * Delete paste or ask for deletion
  */
-$securityLevel = '1';
+$secureAtLevel = '1';
 require_once 'www-header.php';
 
 $repo = new Repository();
index 91a73218e2dbbf4b77f43a3920ba5e151bfb37ae..fc93b0dc3d174018f1e913db4f2a535a5dfa3df4 100644 (file)
@@ -3,7 +3,7 @@ namespace phorkie;
 /**
  * Display paste contents
  */
-$securityLevel = '0';
+$secureAtLevel = '0';
 require_once 'www-header.php';
 
 $repo = new Repository();
index e605f15bd3eb6235053cac06f2449556a8269aeb..377030b44f6fa1a829a88c1135923d06e20f63fd 100644 (file)
@@ -4,7 +4,7 @@ namespace phorkie;
  * Display DOAP of the paste.
  * Contains a machine-readable project description with Git URL.
  */
-$securityLevel = '0';
+$secureAtLevel = '0';
 require_once 'www-header.php';
 
 $repo = new Repository();
index 2525056767f25e2d3f23bd860dc113ef419004ac..f83dfb3d2d4ca9b221a395a324e8ca2ec24157be 100644 (file)
@@ -3,7 +3,7 @@ namespace phorkie;
 /**
  * Edit paste contents
  */
-$securityLevel = '1';
+$secureAtLevel = '1';
 require_once 'www-header.php';
 $repo = new Repository();
 $repo->loadFromRequest();
index 03669380cdb0a53eb6f7479676e7f47eb4b86be1..10bd1e201d0dcc91a18612618e0f6bc0c2792ddb 100644 (file)
@@ -3,7 +3,7 @@
  * Fork a repository
  */
 namespace phorkie;
-$securityLevel = '1';
+$secureAtLevel = '1';
 require_once 'www-header.php';
 
 if ($_SERVER['REQUEST_METHOD'] !== 'POST') {
index 9bbb29f4bc622709dd0460f9a5325fec95b57377..7ff1814767cb6a619d3ad939d52714c4b19dac42 100644 (file)
@@ -3,7 +3,7 @@
  * Jump to the index as per the configuration
  */
 namespace phorkie;
-$securityLevel = false;
+$secureAtLevel = false;
 require_once 'www-header.php';
 
 header(
index c9cd81aa9ef4019a72e344885f38c3b4ee24cd2b..8252f37b89f66c1924d2d18fb41bbcb493b7275b 100644 (file)
@@ -3,7 +3,7 @@
  * List a repository
  */
 namespace phorkie;
-$securityLevel = '0';
+$secureAtLevel = '0';
 require_once 'www-header.php';
 $rs = new Repositories();
 
index 10c5ab3a359413d93a3633842ce9e214f688f32f..e2611c0849b2707ea48a76dfc1e3f0fd13e1e102 100644 (file)
@@ -10,7 +10,7 @@ namespace phorkie;
  *
  * Creates and redirects to display page
  */
-$securityLevel = '1';
+$secureAtLevel = '1';
 require_once 'www-header.php';
 
 $repopo = new Repository_Post();
index 8e6024142766cc3c96e6d461b53ed42c077348ad..612a6b86b9aa49c1b2ef664135fedb8b2e2591cb 100644 (file)
@@ -3,7 +3,7 @@ namespace phorkie;
 /**
  * Displays a file
  */
-$securityLevel = '0';
+$secureAtLevel = '0';
 require_once 'www-header.php';
 
 $repo = new Repository();
index 8c0bf6bee02313bc13c32c9e33432b0614842302..513ca678f6886b5a7cecb0f24713ec1e3b485a54 100644 (file)
@@ -3,7 +3,7 @@ namespace phorkie;
 /**
  * Display historic paste contents
  */
-$securityLevel = '0';
+$secureAtLevel = '0';
 require_once 'www-header.php';
 
 $repo = new Repository();
index d7fb6696cd883d17d3dca0d0f7e0b68f6539bf40..82d5f767e4caad714b073669232af203be8c5572 100644 (file)
@@ -3,7 +3,7 @@ namespace phorkie;
 /**
  * Search for a search term
  */
-$securityLevel = '0';
+$secureAtLevel = '0';
 require_once 'www-header.php';
 
 if (!isset($_GET['q']) || $_GET['q'] == '') {
index dc79459723d9042086c04eae2015dcbf70a38080..9e20f6a123ffcd690621915a5001507c0b055b30 100644 (file)
@@ -3,7 +3,7 @@
  * Edit user information
  */
 namespace phorkie;
-$securityLevel = '1';
+$secureAtLevel = '1';
 require_once 'www-header.php';
 
 if (isset($_POST['name'])) {
index 3fe6f20b2ef002c1890f5136aa2d52a1a98f865a..ccbdb9784c6b3e78f1d154363310a7f99591a642 100644 (file)
@@ -26,7 +26,7 @@ if (!isset($_SESSION['identity'])) {
     $logged_in = true;
 }
 
-if ($securityLevel >= $GLOBALS['phorkie']['auth']['securityLevel']) {
+if ($secureAtLevel >= $GLOBALS['phorkie']['auth']['securityLevel']) {
     if ($logged_in) {
         return;
     }