From 745903d133c766805c6bbeb976579b542bdfb592 Mon Sep 17 00:00:00 2001 From: Matt Pass Date: Sun, 10 Jun 2012 11:46:22 +0100 Subject: [PATCH] Move file/folder count & last 10 files clickable File & folder count moved into files section Last 10 files is now clickable to open file Also shows [none] if there aren't any files to display Couple of bytes saved in server DT display process Will also only update server DT if it's visible --- editor.php | 24 ++++++++++++++++++------ 1 file changed, 18 insertions(+), 6 deletions(-) diff --git a/editor.php b/editor.php index ec3c0f9..0a8ea3f 100644 --- a/editor.php +++ b/editor.php @@ -48,8 +48,6 @@ span.CodeMirror-matchhighlight {background: #555} echo $_SERVER['DOCUMENT_ROOT'].'

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

'.PHP_EOL; - echo 'File & folder count:
'.PHP_EOL; - echo '

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


'.PHP_EOL; echo ''.PHP_EOL; @@ -57,7 +55,19 @@ span.CodeMirror-matchhighlight {background: #555} echo '
'.PHP_EOL; echo '

files

'.PHP_EOL; echo 'Last 10 files opened:
'.PHP_EOL; - echo str_replace("|","/",str_replace(",","
",$last10Files)).'


'.PHP_EOL; + $last10FilesArray = explode(",",$last10Files); + for ($i=0;$i
'; + } else { + echo ''; + echo 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; echo '
'.PHP_EOL; @@ -71,13 +81,15 @@ span.CodeMirror-matchhighlight {background: #555}