Changeset 1160


Ignore:
Timestamp:
Apr 14, 2006, 12:25:40 AM (18 years ago)
Author:
rub
Message:

Issue ID 330:

o Remove Apache functions
o Show redirect message on 2 lines

Location:
trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/admin/notification_by_mail.php

    r1156 r1160  
    118118  global $conf, $page, $env_nbm;
    119119
     120  // Treatment of simulate post
     121  if (isset($_POST['insert_new_user_nbm']))
     122  {
     123     $check_key_treated = do_subscribe_unsubcribe_notification_by_mail
     124    (
     125      true,
     126      $conf['nbm_default_value_user_enabled'],
     127      $_POST['insert_new_user_nbm']
     128    );
     129    do_background_treatment('insert_new_user_nbm', $check_key_treated);
     130  }
     131
    120132  // Set null mail_address empty
    121133  $query = '
     
    187199      if ($conf['nbm_default_value_user_enabled'])
    188200      {
    189         $_POST['trueify'] = 'trueify';
    190         $_POST['cat_false'] = $check_key_list;
    191         do_background_treatment('cat_false', $check_key_treated);
    192       }
    193       else
    194       {
    195         $_POST['falsify'] = 'falsify';
    196         $_POST['cat_true'] = $check_key_list;
    197         do_background_treatment('cat_true', $check_key_treated);
     201        // Simulate Post
     202        $_POST['insert_new_user_nbm'] = $check_key_list;
     203        do_background_treatment('insert_new_user_nbm', $check_key_treated);
    198204      }
    199205    }
     
    573579        $page['mode'].'.send_data',
    574580        array(
    575           'CUSTOMIZE_MAIL_CONTENT' => isset($_POST['send_customize_mail_content']) ? $_POST['send_customize_mail_content'] : $conf['nbm_complementary_mail_content']
     581          'CUSTOMIZE_MAIL_CONTENT' => isset($_POST['send_customize_mail_content']) ? stripslashes($_POST['send_customize_mail_content']) : $conf['nbm_complementary_mail_content']
    576582          ));
    577583
  • trunk/include/functions.inc.php

    r1156 r1160  
    537537    $redirect_msg = $msg;
    538538  }
     539  $redirect_msg = nl2br($redirect_msg);
    539540  $refresh = $refreh_time;
    540541  $url_link = $url;
     
    921922  $message_post  = "POST ".$_SERVER['PHP_SELF'].html_entity_decode(get_query_string_diff(array()))." HTTP/1.1\r\n";
    922923
    923   foreach (array_flip(array_diff(array_flip(apache_request_headers()), array('Content-Type', 'Content-Length'))) as $header_name => $header_value)
     924/*  foreach (array_flip(array_diff(array_flip(apache_request_headers()), array('Content-Type', 'Content-Length'))) as $header_name => $header_value)
    924925  {
    925926    $message_post .= $header_name.": ".$header_value."\r\n";
    926   }
    927 
    928 
    929 //  $message_post .= "Host: ".$_SERVER['HTTP_HOST']."\r\n";
    930 //  $message_post .= "Cookie: ".$conf['session_name']."=".$_COOKIE[$conf['session_name']]."\r\n";
     927  }*/
     928  $message_post .= "Host: ".$_SERVER['HTTP_HOST']."\r\n";
     929  $message_post .= "Cookie: ".$conf['session_name']."=".$_COOKIE[$conf['session_name']]."\r\n";
     930
     931
    931932  $message_post .= "Content-Type: application/x-www-form-urlencoded\r\n";
    932933  $message_post .= "Content-Length: ".strlen($data_post)."\r\n";
  • trunk/language/en_UK.iso-8859-1/admin.lang.php

    r1156 r1160  
    254254$lang['metadata_iptc'] = 'IPTC';
    255255$lang['name'] = 'name';
    256 $lang['nbm_background_treatment_redirect'] = 'Execution time is out, treatment continue on background. Re-display on %d secondes...';
     256$lang['nbm_background_treatment_redirect'] = 'Execution time is out, treatment continue on background.'."\n".'Re-display on %d secondes...';
    257257$lang['nbm_break_timeout_list_user'] = 'Prepared time for list of users to send mail is limited. Others users are not listed.';
    258258$lang['nbm_col_check_user_send_mail'] = 'To send ?';
  • trunk/language/fr_FR.iso-8859-1/admin.lang.php

    r1156 r1160  
    257257$lang['metadata_iptc'] = 'IPTC';
    258258$lang['name'] = 'nom';
    259 $lang['nbm_background_treatment_redirect'] = 'Le temps d\'éxécution étant dépassé, le traitement continue en arrière plan. Ré-affichage dans %d secondes...';
     259$lang['nbm_background_treatment_redirect'] = 'Le temps d\'éxécution étant dépassé, le traitement continue en arrière plan.'."\n".'Ré-affichage dans %d secondes...';
    260260$lang['nbm_break_timeout_list_user'] = 'Le temps de préparation de la liste des utilisateurs pour l\'envoi est limité. Les autres utilisateurs ne sont pas listés.';
    261261$lang['nbm_col_check_user_send_mail'] = 'A envoyer ?';
Note: See TracChangeset for help on using the changeset viewer.