From 33a354688ae2d87a18f8f5d2ec6d9830ec63bf0e Mon Sep 17 00:00:00 2001 From: Matt Pass Date: Tue, 28 May 2013 19:07:51 +0100 Subject: [PATCH] Begin setting up multiUser For now tho this is hidden from view until the rest is set up --- lib/ice-coder.css | 1 + lib/settings.php | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/lib/ice-coder.css b/lib/ice-coder.css index d2dadf1..7dfdbc5 100644 --- a/lib/ice-coder.css +++ b/lib/ice-coder.css @@ -170,6 +170,7 @@ h2 {font-size: 18px; font-weight: normal; color: #fff} .screenCenter .version {position: relative; display: block; margin: 5px 0 15px 0; font-size: 10px; color: #bbb} .screenCenter .text {position: relative; display: block; margin-top: 15px; font-size: 10px; color: #888} .screenCenter .text input {margin-top: 1px} +.screenCenter .text a {position: relative; display: block; margin-top: 15px; font-size: 10px; color: #888; text-decoration: none} .screenCenter .accountPassword {border: 0; background-color: #333; color: #fff; height: 20px} .screenCenter .button {border: 0; background: #444; color: #eee; height: 22px; cursor: pointer} .screenCenter .button:hover {background: #2187e7; color: #eee} \ No newline at end of file diff --git a/lib/settings.php b/lib/settings.php index 2a07574..911d849 100644 --- a/lib/settings.php +++ b/lib/settings.php @@ -21,6 +21,7 @@ if(!isset($_SESSION)) {session_start();} // Logout if that's the action we're taking if (isset($_GET['logout'])) { $_SESSION['loggedIn']=false; + $_SESSION['accountUsername']=false; session_destroy(); header("Location: dirname(__FILE__)./?loggedOut"); } @@ -94,6 +95,7 @@ $ICEcoder = array( "codeMirrorDir" => "CodeMirror-3.13", "demoMode" => false, "devMode" => false, + "multiUser" => false, "lineEnding" => "\n" )+$ICEcoder; @@ -341,12 +343,14 @@ echo $ICEcoder["accountPassword"] == "" ? "Setup" : "Login";
v
+

';};?> Password" class="accountPassword">

" class="button"> auto-check for updates'; } + if (!$ICEcoder["multiUser"] && 1==2) { echo '';}; ?>