From c7eb890ffe69bfe7f8046d3c7ecc763d25be1428 Mon Sep 17 00:00:00 2001 From: Matt Pass Date: Sat, 2 Mar 2013 11:27:06 +0000 Subject: [PATCH] Indent tabs setting removed, deleting config fix Indent tabs removed as a setting If you are logged in, but have no password set, log user out (they end up on set password screen then) --- lib/settings.php | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/lib/settings.php b/lib/settings.php index e0361e3..d1f0452 100644 --- a/lib/settings.php +++ b/lib/settings.php @@ -71,7 +71,6 @@ if (!$demoMode && isset($_SESSION['loggedIn']) && $_SESSION['loggedIn'] && isset // Prepare all our vars $ICEcoder["root"] = strClean($_POST['root']); - $ICEcoder["tabsIndent"] = isset($_POST['tabsIndent']) && $_POST['tabsIndent'] ? "true" : "false"; $ICEcoder["checkUpdates"] = isset($_POST['checkUpdates']) && $_POST['checkUpdates'] ? "true" : "false"; $ICEcoder["openLastFiles"] = isset($_POST['openLastFiles']) && $_POST['openLastFiles'] ? "true" : "false"; $ICEcoder["findFilesExclude"] = 'array("'.str_replace(',','","',str_replace(" ","",strClean($_POST['findFilesExclude']))).'")'; @@ -87,7 +86,7 @@ if (!$demoMode && isset($_SESSION['loggedIn']) && $_SESSION['loggedIn'] && isset $ICEcoder["lineWrapping"] = strClean($_POST['lineWrapping']); $ICEcoder["tabWidth"] = numClean($_POST['tabWidth']); - $settingsArray = array("root","tabsIndent","checkUpdates","openLastFiles","findFilesExclude","codeAssist","visibleTabs","lockedNav","accountPassword","bannedFiles","bannedPaths","allowedIPs","plugins","theme","lineWrapping","tabWidth"); + $settingsArray = array("root","checkUpdates","openLastFiles","findFilesExclude","codeAssist","visibleTabs","lockedNav","accountPassword","bannedFiles","bannedPaths","allowedIPs","plugins","theme","lineWrapping","tabWidth"); $settingsNew = ""; for ($i=0;$i '; @@ -112,7 +111,7 @@ if (!$demoMode && isset($_SESSION['loggedIn']) && $_SESSION['loggedIn'] && isset // Do we need a file manager refresh? $refreshFM = $_POST['changedFileSettings']=="true" ? "true" : "false"; // With all that worked out, we can now hide the settings screen and apply the new settings - echo ""; + echo ""; } // Establish our user level @@ -292,5 +291,7 @@ echo $ICEcoder["accountPassword"] == "" ? "Setup" : "Login"; \ No newline at end of file