improvements to 1.244 suggested by Tomas
[squirrelmail.git] / src / about.php
index 76f85ffae4eb4b4990eb92fcf63d77adcf93b594..cd20c2633260dc67837899ecdbf16ac81cb6984c 100644 (file)
  */
 
 /**
- * Path for SquirrelMail required files.
- * @ignore
+ * Include the SquirrelMail initialization file.
  */
-define('SM_PATH','../');
-
-/* SquirrelMail required files. */
-require_once(SM_PATH . 'include/validate.php');
+require('../include/init.php');
 
 displayPageHeader($color, 'None' );
 
@@ -32,9 +28,9 @@ displayPageHeader($color, 'None' );
 <img src="../images/sm_logo.png" width="308" height="111"
     alt="SquirrelMail Logo" /><br />
 <table align="center" width="80%" cellpadding="1" cellspacing="2" border="0">
-<tr><td bgcolor="#dcdcdc" align="center"><center><b>
+<tr><td bgcolor="#dcdcdc" align="center"><div style="text-align: center;"><b>
 <?php echo sprintf(_("About SquirrelMail %s"),$version); ?>
-</b></center></td></tr>
+</b></div></td></tr>
 <tr><td>
 <br />
 <?php echo _("SquirrelMail is the name of the program that provides access to your email via the web."); ?>
@@ -72,7 +68,7 @@ echo sprintf(_("You are using SquirrelMail version: %s"),$version);
 echo "<br />\n";
 echo _("The administrator installed the following plugins:");
 echo "<br />\n";
-if ( count ($plugins) > 0 ) {
+if ( isset($plugins) && count ($plugins) > 0 ) {
     sort($plugins);
     echo "<ul>\n";
     foreach($plugins as $plugin) {
@@ -89,4 +85,6 @@ if ( count ($plugins) > 0 ) {
 </td></tr>
 <tr><td align="center">&copy; 1999 - 2006 The SquirrelMail Project Team</td></tr>
 </table></p>
-</body></html>
\ No newline at end of file
+<?php
+$oTemplate->display('footer.tpl');
+?>
\ No newline at end of file