diff options
author | Karl 'vollmerk' Vollmer <vollmer@ampache.org> | 2007-12-17 03:56:58 +0000 |
---|---|---|
committer | Karl 'vollmerk' Vollmer <vollmer@ampache.org> | 2007-12-17 03:56:58 +0000 |
commit | d23122dffafa40415b1496c240ebd0b27619ef0f (patch) | |
tree | f165a28f175f4abbe756c58aec9b579b76fdcbe7 /templates | |
parent | a5d4acd8469d571c39f004431836f13d0ef1a5b6 (diff) | |
download | ampache-d23122dffafa40415b1496c240ebd0b27619ef0f.tar.gz ampache-d23122dffafa40415b1496c240ebd0b27619ef0f.tar.bz2 ampache-d23122dffafa40415b1496c240ebd0b27619ef0f.zip |
fixed mailing functions
Diffstat (limited to 'templates')
-rw-r--r-- | templates/show_login_form.inc.php | 4 | ||||
-rw-r--r-- | templates/show_mail_users.inc.php | 24 | ||||
-rw-r--r-- | templates/sidebar_admin.inc.php | 1 |
3 files changed, 14 insertions, 15 deletions
diff --git a/templates/show_login_form.inc.php b/templates/show_login_form.inc.php index 36b38ef0..7f564e9f 100644 --- a/templates/show_login_form.inc.php +++ b/templates/show_login_form.inc.php @@ -35,7 +35,7 @@ $htmllang = str_replace("_","-",Config::get('lang')); <link rel="stylesheet" href="<?php echo Config::get('web_path'); ?>/templates/print.css" type="text/css" media="print" /> <link rel="stylesheet" href="<?php echo Config::get('web_path'); ?>/templates/handheld.css" type="text/css" media="handheld" /> <link rel="stylesheet" href="<?php echo Config::get('web_path'); ?><?php echo Config::get('theme_path'); ?>/templates/default.css" type="text/css" media="screen" /> -<title> <?php echo Config::get('site_title'); ?> </title> +<title> <?php echo scrub_out(Config::get('site_title')); ?> </title> <script type="text/javascript" language="javascript"> function focus(){ document.login.username.focus(); } </script> @@ -51,7 +51,7 @@ function focus(){ document.login.username.focus(); } </h1> </div> <div id="loginbox"> - <h2><?php echo Config::get('site_title'); ?></h2> + <h2><?php echo scrub_out(Config::get('site_title')); ?></h2> <form name="login" method="post" enctype="multipart/form-data" action="<?php echo Config::get('web_path'); ?>/login.php"> <div class="loginfield" id="usernamefield"> diff --git a/templates/show_mail_users.inc.php b/templates/show_mail_users.inc.php index a98128a1..b8fcf5ce 100644 --- a/templates/show_mail_users.inc.php +++ b/templates/show_mail_users.inc.php @@ -1,13 +1,12 @@ <?php /* - Copyright (c) 2001 - 2006 Ampache.org + Copyright (c) 2001 - 2007 Ampache.org All rights reserved. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License - as published by the Free Software Foundation; either version 2 - of the License, or (at your option) any later version. + as published by the Free Software Foundation; version 2 of the License. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of @@ -22,20 +21,20 @@ ?> <?php show_box_top(_('Send E-mail to Users')); ?> -<form name="mail" method="post" action="<?php echo conf('web_path'); ?>/admin/mail.php" enctype="multipart/form-data"> +<form name="mail" method="post" action="<?php echo Config::get('web_path'); ?>/admin/mail.php?action=send_mail" enctype="multipart/form-data"> <table> <tr> <td><?php echo _('Mail to'); ?>:</td> <td> <select name="to"> - <option value="all" title="Mail Everyone" <?php if ($to == 'all') { echo "selected=\"selected\""; } ?>>All</option> - <option value="users" title="Mail Users" <?php if ($to == 'user') { echo "selected=\"selected\""; } ?>>Users</option> - <option value="admins" title="Mail Admins" <?php if ($to == 'admin') { echo "selected=\"selected\""; } ?>>Admins</option> - <option value="inactive" title="Mail Inactive Users" <?php if ($to == 'inactive') { echo "selected=\"selected\""; } ?>>Inactive</option> + <option value="all" title="Mail Everyone"><?php echo _('All'); ?></option> + <option value="users" title="Mail Users"><?php echo _('User'); ?></option> + <option value="admins" title="Mail Admins"><?php echo _('Admin'); ?></option> + <option value="inactive" title="Mail Inactive Users"><?php echo _('Inactive Users'); ?> </option> </select> - users that are inactive for more than <input type="text" title="This value is only used when mailing to inactive users" size="3" name="inactive" value="30" /> days</title> </td> </tr> +<!-- <tr> <td colspan="2"> <table> @@ -86,14 +85,14 @@ <tr> <td colspan = "2"><?php echo _('Most Popular Threshold in days'); ?>:</td> <td> - <input type="text" name="threshold" size="3" value="<?php echo conf('popular_threshold'); ?>" /> + <input type="text" name="threshold" size="3" value="<?php echo Config::get('popular_threshold'); ?>" /> </td> </tr> </table> </td> </tr> - +--> <tr> <td><?php echo _('Subject'); ?>:</td> <td colspan="3"> @@ -104,13 +103,12 @@ <tr> <td valign="top"><?php echo _('Message'); ?>:</td> <td> - <textarea class="input" name="message" rows="20" cols="70"><?php echo scrub_out($message); ?></textarea> + <textarea class="input" name="message" rows="10" cols="70"></textarea> </td> </tr> </table> <div class="formValidation"> - <input type="hidden" name="action" value="send_mail" /> <input class="button" type="submit" value="<?php echo _('Send Mail'); ?>" /> </div> </form> diff --git a/templates/sidebar_admin.inc.php b/templates/sidebar_admin.inc.php index bc35e000..af1be577 100644 --- a/templates/sidebar_admin.inc.php +++ b/templates/sidebar_admin.inc.php @@ -21,6 +21,7 @@ <li><h4><?php echo _('Other Tools'); ?></h4> <ul class="sb3" id="sb_admin_ot"> <li id="sb_admin_ot_Duplicates"><a href="<?php echo $web_path; ?>/admin/duplicates.php"><?php echo _('Find Duplicates'); ?></a></li> + <li id="sb_admin_ot_Mail"><a href="<?php echo $web_path; ?>/admin/mail.php"><?php echo _('Mail Users'); ?></a></li> <li id="sb_admin_ot_ClearNowPlaying"><a href="<?php echo $web_path; ?>/admin/catalog.php?action=clear_now_playing"><?php echo _('Clear Now Playing'); ?></a></li> <li id="sb_admin_ot_ClearCatStats"><a href="<?php echo $web_path; ?>/admin/catalog.php?action=clear_stats"><?php echo _('Clear Catalog Stats'); ?></a></li> </ul> |