*
* Displays all options relating to new mail sounds
*
- * @copyright © 1999-2007 The SquirrelMail Project Team
+ * @copyright 1999-2010 The SquirrelMail Project Team
* @license http://opensource.org/licenses/gpl-license.php GNU Public License
* @version $Id$
* @package plugins
*/
require('../../include/init.php');
-/**
+/**
* Make sure plugin is activated!
*/
global $plugins;
html_tag( 'td', '', 'center', $color[4] ) . "\n" . '<hr style="width: 25%; height: 1px;" />' . "\n";
echo '<form action="'.sqm_baseuri().'src/options.php" method="post" enctype="multipart/form-data">' . "\n" .
+ '<input type="hidden" name="smtoken" value="' . sm_generate_security_token() . '">' . "\n" .
html_tag( 'table', '', '', '', 'width="100%" cellpadding="5" cellspacing="0" border="0"' ) . "\n";
/* newmail_unseen_notify */
. html_tag('td',_("Uploaded Media File:"),'right','','style="white-space: nowrap;"')
. html_tag('td',($newmail_userfile_name!='' ? htmlspecialchars($newmail_userfile_name) : _("unavailable")))
."</tr>\n";
-
+
if ($newmail_userfile_name!='') {
echo '<tr>'
.'<td colspan="2" align="center">'
html_tag( 'td',
'<input type="hidden" name="optmode" value="submit" />' .
'<input type="hidden" name="optpage" value="newmail" />' .
+ '<input type="hidden" name="smtoken" value="' . sm_generate_security_token() . '" />' .
'<input type="submit" value="' . _("Submit") . '" name="submit_newmail" />',
'left' )
) . "\n";