From d89cd59c8b8bd6082f8ec1ba8073804aa0896397 Mon Sep 17 00:00:00 2001 From: Matt Pass Date: Thu, 20 Sep 2012 00:13:08 +0100 Subject: [PATCH] Title tag alts, code condensing & tweaks Version number now in title tag text Tidied up some comment text re whats included in codemirror-compressed.js No longer relying on PHP to echo HTML as much Code folding vars renamed to codeFoldTag and codeFoldBrace A new var also set up to define the style of the + that appears in the gutter Also some fixes to the + symbol which was overlapping numbers & wrapping badly This var is used by both codeFoldTag and codeFoldBrace to set + styling Formatting of code in creating CM instances Pulling thisCM through on onCursorActivity and onKeyEvent This is so we have an object which we can use instead of much more code, doing it the easier way --- editor.php | 286 ++++++++++++++++++++++++++--------------------------- 1 file changed, 142 insertions(+), 144 deletions(-) diff --git a/editor.php b/editor.php index 379f60b..55080b7 100644 --- a/editor.php +++ b/editor.php @@ -3,17 +3,14 @@ -ICEcoder editor +ICEcoder v <?php echo $ICEcoder["versionNo"];?> editor /lib/codemirror.css">
-'.PHP_EOL; -echo '

server

'.PHP_EOL; -echo 'Server name, OS & IP:
'.PHP_EOL; -echo $_SERVER['SERVER_NAME'].'    '.$_SERVER['SERVER_SOFTWARE'].'    '.$_SERVER['SERVER_ADDR'].'

'.PHP_EOL; -echo 'Root:
'.PHP_EOL; -echo $docRoot.'

'.PHP_EOL; -echo 'ICEcoder root:
'.PHP_EOL; -echo $docRoot.$ICEcoder['root'].'

'.PHP_EOL; -echo 'PHP version:
'.PHP_EOL; -echo phpversion().'

'.PHP_EOL; -echo 'Date & time:
'.PHP_EOL; -echo '


'.PHP_EOL; -echo '
'.PHP_EOL; +
+

server

+ Server name, OS & IP:
+      

+ Root:
+

+ ICEcoder root:
+

+ PHP version:
+

+ Date & time:
+


+
-echo '
'.PHP_EOL; -echo '

files

'.PHP_EOL; -echo 'Last 10 files opened:
'.PHP_EOL; -$last10FilesArray = explode(",",$ICEcoder["last10Files"]); -for ($i=0;$i
'; - } else { - echo ''; - echo str_replace($docRoot,"",str_replace("|","/",$last10FilesArray[$i])); - echo '
'.PHP_EOL; - if ($i==count($last10FilesArray)-1) {echo '
'.PHP_EOL;}; - } -} -echo 'File & folder count:
'.PHP_EOL; -echo '



'.PHP_EOL; -echo '
'.PHP_EOL; +
+

files

+ Last 10 files opened:
+
'; + } else { + echo ''; + echo str_replace($docRoot,"",str_replace("|","/",$last10FilesArray[$i])); + echo '
'.PHP_EOL; + if ($i==count($last10FilesArray)-1) {echo '
'.PHP_EOL;}; + } + } + ;?> + File & folder count:
+



+
-echo '
'.PHP_EOL; -echo '

your device

'.PHP_EOL; -echo 'Browser:
'.PHP_EOL; -echo $_SERVER['HTTP_USER_AGENT'].'

'.PHP_EOL; -echo 'Your IP:
'.PHP_EOL; -echo $_SERVER['REMOTE_ADDR'].PHP_EOL; -echo '
'.PHP_EOL; -?> - +
+

your device

+ Browser:
+

+ Your IP:
+ +
+