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

Issue ID 330:

o Remove Apache functions
o Show redirect message on 2 lines

Report of svn:1160

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/branch-1_6/include/functions.inc.php

    r1157 r1161  
    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";
Note: See TracChangeset for help on using the changeset viewer.