aboutsummaryrefslogtreecommitdiffstats
path: root/admin
diff options
context:
space:
mode:
authorrub <rub@piwigo.org>2006-04-13 22:25:40 +0000
committerrub <rub@piwigo.org>2006-04-13 22:25:40 +0000
commit5acf1716620f432aa25cde0b50aa0490fe87f7f1 (patch)
treec60fc9c81d1fbf70a8ac94e1f4dab27cdca851bd /admin
parentd7393a5980269e0ddfe114f5a3559158f1784d81 (diff)
Issue ID 330:
o Remove Apache functions o Show redirect message on 2 lines git-svn-id: http://piwigo.org/svn/trunk@1160 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to 'admin')
-rw-r--r--admin/notification_by_mail.php26
1 files changed, 16 insertions, 10 deletions
diff --git a/admin/notification_by_mail.php b/admin/notification_by_mail.php
index 9d700b45b..95e939bed 100644
--- a/admin/notification_by_mail.php
+++ b/admin/notification_by_mail.php
@@ -117,6 +117,18 @@ function insert_new_data_user_mail_notification()
{
global $conf, $page, $env_nbm;
+ // Treatment of simulate post
+ if (isset($_POST['insert_new_user_nbm']))
+ {
+ $check_key_treated = do_subscribe_unsubcribe_notification_by_mail
+ (
+ true,
+ $conf['nbm_default_value_user_enabled'],
+ $_POST['insert_new_user_nbm']
+ );
+ do_background_treatment('insert_new_user_nbm', $check_key_treated);
+ }
+
// Set null mail_address empty
$query = '
update
@@ -186,15 +198,9 @@ order by
{
if ($conf['nbm_default_value_user_enabled'])
{
- $_POST['trueify'] = 'trueify';
- $_POST['cat_false'] = $check_key_list;
- do_background_treatment('cat_false', $check_key_treated);
- }
- else
- {
- $_POST['falsify'] = 'falsify';
- $_POST['cat_true'] = $check_key_list;
- do_background_treatment('cat_true', $check_key_treated);
+ // Simulate Post
+ $_POST['insert_new_user_nbm'] = $check_key_list;
+ do_background_treatment('insert_new_user_nbm', $check_key_treated);
}
}
}
@@ -572,7 +578,7 @@ switch ($page['mode'])
$template->assign_block_vars(
$page['mode'].'.send_data',
array(
- 'CUSTOMIZE_MAIL_CONTENT' => isset($_POST['send_customize_mail_content']) ? $_POST['send_customize_mail_content'] : $conf['nbm_complementary_mail_content']
+ 'CUSTOMIZE_MAIL_CONTENT' => isset($_POST['send_customize_mail_content']) ? stripslashes($_POST['send_customize_mail_content']) : $conf['nbm_complementary_mail_content']
));
foreach ($data_users as $num => $nbm_user)