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
This commit is contained in:
rub
2006-04-13 22:25:40 +00:00
parent d7393a5980
commit 5acf171662
4 changed files with 23 additions and 16 deletions
+16 -10
View File
@@ -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)