<?php
+
/**
* Fortune plugin functions
*
- * @copyright (c) 2004-2005 The SquirrelMail Project Team
+ * @copyright © 2004-2006 The SquirrelMail Project Team
* @license http://opensource.org/licenses/gpl-license.php GNU Public License
* @version $Id$
* @package plugins
$fortune_command=$fortune_location;
}
- echo "<center><table cellpadding=\"0\" cellspacing=\"0\" border=\"0\" bgcolor=\"$color[10]\">\n".
+ echo "<div style=\"text-align: center;\"><table cellpadding=\"0\" cellspacing=\"0\" border=\"0\" bgcolor=\"$color[10]\">\n".
"<tr><td><table width=\"100%\" cellpadding=\"2\" cellspacing=\"1\" border=\"0\" bgcolor=\"$color[5]\">\n".
"<tr><td align=\"center\">\n";
echo '<table><tr><td>';
if (!$exist) {
printf(_("%s is not found."),$fortune_location);
} else {
- echo "<center><em>" . _("Today's Fortune") . "</em></center><pre>\n";
- htmlspecialchars(system($fortune_command));
- echo "</pre>\n";
+ echo "<div style=\"text-align: center;\"><em>" . _("Today's Fortune") . "</em></div><pre>\n" .
+ htmlspecialchars(shell_exec($fortune_command)) .
+ "</pre>\n";
}
- echo '</td></tr></table></td></tr></table></td></tr></table></center>';
+ echo '</td></tr></table></td></tr></table></td></tr></table></div>';
}
/**