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