diff --git a/editor.php b/editor.php index 1448d8b..7d1e578 100644 --- a/editor.php +++ b/editor.php @@ -166,7 +166,18 @@ h2 {color: rgba(0,198,255,0.7)} + diff --git a/index.php b/index.php index d6a5617..62413a5 100644 --- a/index.php +++ b/index.php @@ -40,6 +40,9 @@ $isMac = strpos($_SERVER['HTTP_USER_AGENT'], "Macintosh")>-1 ? true : false; ICEcoder v <?php echo $ICEcoder["versionNo"];?> + @@ -54,6 +57,7 @@ window.onbeforeunload = function() { return "."; } } + return ""; } t = { @@ -94,6 +98,7 @@ $t = $text['index']; "top.ICEcoder.codeAssist = ".($ICEcoder["codeAssist"] ? 'true' : 'false').";". "top.ICEcoder.lineWrapping = ".($ICEcoder["lineWrapping"] ? 'true' : 'false').";". "top.ICEcoder.indentWithTabs = ".($ICEcoder["indentWithTabs"] ? 'true' : 'false').";". + "top.ICEcoder.indentAuto = ".($ICEcoder["indentAuto"] ? 'true' : 'false').";". "top.ICEcoder.indentSize = ".$ICEcoder["indentSize"].";". "top.ICEcoder.demoMode = ".($ICEcoder["demoMode"] ? 'true' : 'false').";". "top.ICEcoder.tagWrapperCommand = '".$ICEcoder["tagWrapperCommand"]."';". @@ -261,7 +266,7 @@ $t = $text['index'];
- +
","",str_replace("&","&",$loadedFile)).'"; + echo ""; } ?> \ No newline at end of file diff --git a/lib/settings.php b/lib/settings.php index 495457a..9c206a2 100644 --- a/lib/settings.php +++ b/lib/settings.php @@ -106,6 +106,7 @@ if (!isset($_SESSION['username'])) {$_SESSION['username'] = false;}; if(isset($_POST['submit']) && $setPWorLogin=="login") { // On success, set username if multiUser, loggedIn to true and redirect if (generateHash(strClean($_POST['password']),$ICEcoder["password"])==$ICEcoder["password"]) { + session_regenerate_id(); if ($ICEcoder["multiUser"]) { $_SESSION['username'] = $_POST['username']; }