Provide View Unsafe Images link on viewing a text/html attachment.
[squirrelmail.git] / src / about.php
index 90873ae00d85994e773ac3364efd68444499e983..cd20c2633260dc67837899ecdbf16ac81cb6984c 100644 (file)
  */
 
 /**
- * Path for SquirrelMail required files.
- * @ignore
+ * Include the SquirrelMail initialization file.
  */
-define('SM_PATH','../');
-
-/* SquirrelMail required files. */
-include_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) {