diff --git a/index.php b/index.php
index 63718e9..b59eb40 100644
--- a/index.php
+++ b/index.php
@@ -1,14 +1,16 @@
$icv,
1 => substr($icvInfo, strlen($matches[0]))
];
- $icvI = str_replace('"','\\\'',$icvInfo[1]);
+ $icvI = str_replace('"', '\\\'', $icvInfo[1]);
$thisV = $ICEcoder["versionNo"];
- if (strpos($thisV,"beta")>-1 && !strpos($icv,"beta") && str_replace(" beta","",$thisV) == $icv) {$thisV-=0.1;};
- if ($thisV<$icv) {
- $updateMsg = ";ICEcoder.dataMessage('".$t['UPDATE INFO'].": ICEcoder v ".$icv." ".$t['now available'].". (".$t['Your version is']." v ".$ICEcoder["versionNo"].").
".$t['Update now']."
".$icvI."');";
+ if (-1 < strpos($thisV, "beta") && false === strpos($icv, "beta") && str_replace(" beta", "", $thisV) === $icv) {
+ $thisV-=0.1;
+ };
+ if ($thisV < $icv) {
+ $updateMsg =
+ ";ICEcoder.dataMessage('" . $t['UPDATE INFO'] .
+ ": ICEcoder v " . $icv." " . $t['now available'] . ". (" . $t['Your version is'] . " v " . $ICEcoder["versionNo"] .
+ ").
" .
+ $t['Update now'] . "
" . $icvI ."');";
}
}
-$isMac = strpos($_SERVER['HTTP_USER_AGENT'], "Macintosh")>-1 ? true : false;
+$isMac = false === strpos($_SERVER['HTTP_USER_AGENT'], "Macintosh") ? true : false;
?>
-
+
ICEcoder v
@@ -39,9 +47,12 @@ $isMac = strpos($_SERVER['HTTP_USER_AGENT'], "Macintosh")>-1 ? true : false;
+
">
@@ -49,9 +60,9 @@ echo "?microtime=".microtime(true);
iceRoot = "";
window.onbeforeunload = function() {
- if(ICEcoder.autoLogoutTimer < ICEcoder.autoLogoutMins*60) {
- for(var i=1;i<=ICEcoder.savedPoints.length;i++) {
- if (ICEcoder.savedPoints[i-1]!=ICEcoder.getcMInstance(i).changeGeneration()) {
+ if(ICEcoder.autoLogoutTimer < ICEcoder.autoLogoutMins * 60) {
+ for(var i = 1; i <= ICEcoder.savedPoints.length; i++) {
+ if (ICEcoder.savedPoints[i - 1] != ICEcoder.getcMInstance(i).changeGeneration()) {
return ".";
}
}
@@ -65,9 +76,9 @@ t = {
$t = $text['icecoder'];
$tOutput = "";
foreach ($t as $key => $value) {
- $tOutput .= '"'.$key.'" : "'.$value.'",'.PHP_EOL;
+ $tOutput .= '"' . $key . '" : "' . $value . '",' . PHP_EOL;
}
-echo rtrim($tOutput,",".PHP_EOL).PHP_EOL;
+echo rtrim($tOutput, "," . PHP_EOL) . PHP_EOL;
// Back to the lang array for index
$t = $text['index'];
@@ -81,55 +92,57 @@ $t = $text['index'];
-ICEcoder.init();ICEcoder.content.style.visibility='visible';ICEcoder.filesFrame.contentWindow.frames['processControl'].location.href = iceLoc+'/processes/on-load.php';" onResize="ICEcoder.setLayout()" onKeyDown="return ICEcoder.interceptKeys('coder',event);" onKeyUp="if('visible' === get('blackMask').style.visibility) {ICEcoder.handleModalKeyUp(event, 'modalGeneralCatch')}; ICEcoder.resetKeys(event);" onBlur="ICEcoder.resetKeys(event);">
+ $extraProcesses = new ExtraProcesses();
+ $onLoad = $extraProcesses->onLoad();
+?>ICEcoder.init();ICEcoder.content.style.visibility = 'visible';" onresize="ICEcoder.setLayout()" onkeydown="return ICEcoder.interceptKeys('coder', event);" onkeyup="if('visible' === get('blackMask').style.visibility) {ICEcoder.handleModalKeyUp(event, 'modalGeneralCatch')}; ICEcoder.resetKeys(event);" onblur="ICEcoder.resetKeys(event);">
-