diff options
author | rub <rub@piwigo.org> | 2006-04-13 22:28:26 +0000 |
---|---|---|
committer | rub <rub@piwigo.org> | 2006-04-13 22:28:26 +0000 |
commit | 48a8c24fa59e391a318847b368d51408d147dd29 (patch) | |
tree | 6ab8420c0c77c4fe18d669979aefafcecd0aed87 /admin | |
parent | 6ecf85fc7a5e5bf1c6c80c778da2dd65efbf636b (diff) |
Issue ID 330:
o Remove Apache functions
o Show redirect message on 2 lines
Report of svn:1160
git-svn-id: http://piwigo.org/svn/branches/branch-1_6@1161 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to 'admin')
-rw-r--r-- | admin/notification_by_mail.php | 26 |
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) |