From 49ca9d75f9bbe7e525312176dbb9fce6252a8eea Mon Sep 17 00:00:00 2001 From: Matt Pass Date: Mon, 11 Jun 2012 07:43:46 +0100 Subject: [PATCH] testcMVersion var now checkUpdates Repurposed this var to both check for newer ICEcoder and CodeMirror versions Renamed to checkUpdates --- lib/config.php | 2 +- lib/settings-screen.php | 2 +- lib/settings.php | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/config.php b/lib/config.php index 64049ea..b5fb503 100644 --- a/lib/config.php +++ b/lib/config.php @@ -3,7 +3,7 @@ $versionNo = "v 0.7.2"; $codeMirrorDir = "CodeMirror-2.25"; $cMThisVer = 2.25; $tabsIndent = true; -$testcMVersion = false; +$checkUpdates = false; $openLastFiles = true; $findFilesExclude = array("_coder",".doc",".gif",".jpg",".jpeg",".pdf",".png",".swf",".xml",".zip"); $codeAssist = true; diff --git a/lib/settings-screen.php b/lib/settings-screen.php index 073bf3c..938537f 100644 --- a/lib/settings-screen.php +++ b/lib/settings-screen.php @@ -79,7 +79,7 @@ for ($i=0;$isettings

functionality

> tab indents selection
-> test codemirror version on load
+> check for updates on load
> auto open last files on login

when finding in files, exclude:
diff --git a/lib/settings.php b/lib/settings.php index 8f985c0..b32b5f2 100644 --- a/lib/settings.php +++ b/lib/settings.php @@ -25,7 +25,7 @@ if (isset($_POST["theme"]) && $_POST["theme"] && $_SESSION['userLevel'] == 10) { // Prepare all our vars if ($_POST['tabsIndent']) {$tabsIndent = "true";} else {$tabsIndent = "false";}; - if ($_POST['testcMVersion']) {$testcMVersion = "true";} else {$testcMVersion = "false";}; + if ($_POST['checkUpdates']) {$checkUpdates = "true";} else {$checkUpdates = "false";}; if ($_POST['openLastFiles']) {$openLastFiles = "true";} else {$openLastFiles = "false";}; $findFilesExclude = 'array("'.str_replace(', ','","',$_POST['findFilesExclude']).'")'; if ($_POST['codeAssist']) {$codeAssist = "true";} else {$codeAssist = "false";}; @@ -39,7 +39,7 @@ if (isset($_POST["theme"]) && $_POST["theme"] && $_SESSION['userLevel'] == 10) { $theme = $_POST['theme']; $settingsNew = '$tabsIndent = '.$tabsIndent.';'.PHP_EOL; - $settingsNew .= '$testcMVersion = '.$testcMVersion.';'.PHP_EOL; + $settingsNew .= '$checkUpdates = '.$checkUpdates.';'.PHP_EOL; $settingsNew .= '$openLastFiles = '.$openLastFiles.';'.PHP_EOL; $settingsNew .= '$findFilesExclude = '.$findFilesExclude.';'.PHP_EOL; $settingsNew .= '$codeAssist = '.$codeAssist.';'.PHP_EOL;