From 5b589f6213337eb1c88ed983f54552f2bafefd80 Mon Sep 17 00:00:00 2001 From: "Justin J. Novack" Date: Tue, 18 Sep 2012 06:43:46 -0400 Subject: [PATCH] CLEAN: How about changing the rest of the files with your variable? :p --- www/delete.php | 2 +- www/display.php | 2 +- www/doap.php | 2 +- www/edit.php | 2 +- www/fork.php | 2 +- www/index.php | 2 +- www/list.php | 2 +- www/new.php | 2 +- www/raw.php | 2 +- www/revision.php | 2 +- www/search.php | 2 +- www/user.php | 2 +- www/www-security.php | 2 +- 13 files changed, 13 insertions(+), 13 deletions(-) diff --git a/www/delete.php b/www/delete.php index d9ee251..2271b21 100644 --- a/www/delete.php +++ b/www/delete.php @@ -3,7 +3,7 @@ namespace phorkie; /** * Delete paste or ask for deletion */ -$secureAtLevel = '1'; +$securityLevel = '1'; require_once 'www-header.php'; $repo = new Repository(); diff --git a/www/display.php b/www/display.php index fc93b0d..91a7321 100644 --- a/www/display.php +++ b/www/display.php @@ -3,7 +3,7 @@ namespace phorkie; /** * Display paste contents */ -$secureAtLevel = '0'; +$securityLevel = '0'; require_once 'www-header.php'; $repo = new Repository(); diff --git a/www/doap.php b/www/doap.php index 377030b..e605f15 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. */ -$secureAtLevel = '0'; +$securityLevel = '0'; require_once 'www-header.php'; $repo = new Repository(); diff --git a/www/edit.php b/www/edit.php index f83dfb3..2525056 100644 --- a/www/edit.php +++ b/www/edit.php @@ -3,7 +3,7 @@ namespace phorkie; /** * Edit paste contents */ -$secureAtLevel = '1'; +$securityLevel = '1'; require_once 'www-header.php'; $repo = new Repository(); $repo->loadFromRequest(); diff --git a/www/fork.php b/www/fork.php index 10bd1e2..0366938 100644 --- a/www/fork.php +++ b/www/fork.php @@ -3,7 +3,7 @@ * Fork a repository */ namespace phorkie; -$secureAtLevel = '1'; +$securityLevel = '1'; require_once 'www-header.php'; if ($_SERVER['REQUEST_METHOD'] !== 'POST') { diff --git a/www/index.php b/www/index.php index 7ff1814..9bbb29f 100644 --- a/www/index.php +++ b/www/index.php @@ -3,7 +3,7 @@ * Jump to the index as per the configuration */ namespace phorkie; -$secureAtLevel = false; +$securityLevel = false; require_once 'www-header.php'; header( diff --git a/www/list.php b/www/list.php index 8252f37..c9cd81a 100644 --- a/www/list.php +++ b/www/list.php @@ -3,7 +3,7 @@ * List a repository */ namespace phorkie; -$secureAtLevel = '0'; +$securityLevel = '0'; require_once 'www-header.php'; $rs = new Repositories(); diff --git a/www/new.php b/www/new.php index e2611c0..10c5ab3 100644 --- a/www/new.php +++ b/www/new.php @@ -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(); diff --git a/www/raw.php b/www/raw.php index 612a6b8..8e60241 100644 --- a/www/raw.php +++ b/www/raw.php @@ -3,7 +3,7 @@ namespace phorkie; /** * Displays a file */ -$secureAtLevel = '0'; +$securityLevel = '0'; require_once 'www-header.php'; $repo = new Repository(); diff --git a/www/revision.php b/www/revision.php index 513ca67..8c0bf6b 100644 --- a/www/revision.php +++ b/www/revision.php @@ -3,7 +3,7 @@ namespace phorkie; /** * Display historic paste contents */ -$secureAtLevel = '0'; +$securityLevel = '0'; require_once 'www-header.php'; $repo = new Repository(); diff --git a/www/search.php b/www/search.php index 82d5f76..d7fb669 100644 --- a/www/search.php +++ b/www/search.php @@ -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'] == '') { diff --git a/www/user.php b/www/user.php index 9e20f6a..dc79459 100644 --- a/www/user.php +++ b/www/user.php @@ -3,7 +3,7 @@ * Edit user information */ namespace phorkie; -$secureAtLevel = '1'; +$securityLevel = '1'; require_once 'www-header.php'; if (isset($_POST['name'])) { diff --git a/www/www-security.php b/www/www-security.php index ccbdb97..3fe6f20 100644 --- a/www/www-security.php +++ b/www/www-security.php @@ -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; } -- 2.30.2