removed * from list prefix
authortokul <tokul@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Sun, 8 Jan 2006 10:28:22 +0000 (10:28 +0000)
committertokul <tokul@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Sun, 8 Jan 2006 10:28:22 +0000 (10:28 +0000)
added script execution time
updated plugin maintainer information

git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@10526 7612ce4b-ef26-0410-bec9-ea0150e637f0

plugins/info/README
plugins/info/options.php

index dd3aeedb0b7626693a9203ba43c4b1edbf4fecad..d85a37b636d48598e4a12214db2bdb8790066fb7 100644 (file)
@@ -34,8 +34,5 @@ to the defaults. You can manually reset the commands using the
 'default' button, or clear the contents of all the commands with
 the 'clear' button.
 
-Questions, problems, comments welcome at
-
-jason@stdbev.com
-Jason Munro
-
+This plugin has been originally developed by Jason Munro and is now
+maintained by the SquirrelMail Project Team.
index fcd0257120c90e3c040f88e7e0fb821ae995ac94..2c0a64b08d48fc7d9dede9279970b2ac260523b2 100644 (file)
@@ -124,7 +124,7 @@ elseif (!$submit || $submit == 'default')  {
         'TEST_5' => "SORT (DATE) $default_charset ALL",
         'TEST_6' => "FETCH 1:* (FLAGS BODY[HEADER.FIELDS (FROM DATE TO)])",
         'TEST_7' => "LSUB \"$folder_prefix\" \"*%\"",
-        'TEST_8' => "LIST \"$folder_prefix*\" \"*\"",
+        'TEST_8' => "LIST \"$folder_prefix\" \"*\"",
         'TEST_9' => "");
 }
 
@@ -166,6 +166,12 @@ if ($submit == 'submit') {
         }
     }
     for ($i=0;$i<count($tests);$i++) {
+        // make sure that microtime function is available before it is called
+        if (function_exists('microtime')) {
+            list($usec, $sec) = explode(" ", microtime());
+            $starttime = (float)$sec + (float)$usec;
+        }
+
         echo '<center><table width="95%" border="0" bgcolor="'.$color[4]."\">\n".
              '<tr><td><b>'.$tests[$i]."</b></td></tr>\n".
              '<tr><td><small><b><font color="'.$color[7].'">'.
@@ -176,7 +182,19 @@ if ($submit == 'submit') {
              _("Response:")."</font></b></small></td></tr>\n".
              '<tr><td>';
         print_response($response);
-        echo "</td></tr></table></center><br />\n";
+        echo "</td></tr>\n";
+
+        if (function_exists('microtime')) {
+            // get script execution time
+            list($usec, $sec) = explode(" ", microtime());
+            $endtime = (float)$sec + (float)$usec;
+            // i18n: ms = short for miliseconds
+            echo '<tr><td><small><b><font color="'.$color[7].'">'.
+                _("Execution time:")."</font></b></small></td></tr>\n".
+                '<tr><td>'.sprintf(_("%s ms"),round((($endtime - $starttime)*1000),3))."</td></tr>\n";
+        }
+
+        echo "</table></center><br />\n";
     }
 }
 echo '</td></tr></table></center>';