diff --git a/index.php b/index.php
index a9535c8..408df07 100644
--- a/index.php
+++ b/index.php
@@ -37,7 +37,7 @@ if ($ICEcoder["checkUpdates"]) {
$isMac = strpos($_SERVER['HTTP_USER_AGENT'], "Macintosh")>-1 ? true : false;
?>
-
+
ICEcoder v
@@ -53,12 +53,14 @@ $isMac = strpos($_SERVER['HTTP_USER_AGENT'], "Macintosh")>-1 ? true : false;
iceRoot = "";
window.onbeforeunload = function() {
- for(var i=1;i<=ICEcoder.savedPoints.length;i++) {
- if (ICEcoder.savedPoints[i-1]!=top.ICEcoder.getcMInstance(i).changeGeneration()) {
- return ".";
+ if(top.ICEcoder.autoLogoutTimer < top.ICEcoder.autoLogoutMins*60) {
+ for(var i=1;i<=ICEcoder.savedPoints.length;i++) {
+ if (ICEcoder.savedPoints[i-1]!=top.ICEcoder.getcMInstance(i).changeGeneration()) {
+ return ".";
+ }
}
+ return "";
}
- return "";
}
t = {
@@ -92,6 +94,7 @@ $t = $text['index'];
}
echo "];";
echo "top.ICEcoder.theme = '".($ICEcoder["theme"]=="default" ? 'icecoder' : $ICEcoder["theme"])."';".
+ "top.ICEcoder.autoLogoutMins = ".$ICEcoder["autoLogoutMins"].";".
"top.ICEcoder.fontSize = '".$ICEcoder["fontSize"]."';".
"top.ICEcoder.openLastFiles = ".($ICEcoder["openLastFiles"] ? 'true' : 'false').";".
"top.ICEcoder.updateDiffOnSave = ".($ICEcoder["updateDiffOnSave"] ? 'true' : 'false').";".