aboutsummaryrefslogtreecommitdiffstats
path: root/include/functions.inc.php
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 /include/functions.inc.php
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 'include/functions.inc.php')
-rw-r--r--include/functions.inc.php9
1 files changed, 5 insertions, 4 deletions
diff --git a/include/functions.inc.php b/include/functions.inc.php
index 2b53b5c26..2fb4e3cba 100644
--- a/include/functions.inc.php
+++ b/include/functions.inc.php
@@ -536,6 +536,7 @@ function redirect( $url , $msg = '', $refreh_time = 0)
{
$redirect_msg = $msg;
}
+ $redirect_msg = nl2br($redirect_msg);
$refresh = $refreh_time;
$url_link = $url;
$title = 'redirection';
@@ -920,14 +921,14 @@ function re_post_http($url_redirect, $redirect_message, $redirect_refreh_time)
$message_post = "POST ".$_SERVER['PHP_SELF'].html_entity_decode(get_query_string_diff(array()))." HTTP/1.1\r\n";
- foreach (array_flip(array_diff(array_flip(apache_request_headers()), array('Content-Type', 'Content-Length'))) as $header_name => $header_value)
+/* foreach (array_flip(array_diff(array_flip(apache_request_headers()), array('Content-Type', 'Content-Length'))) as $header_name => $header_value)
{
$message_post .= $header_name.": ".$header_value."\r\n";
- }
+ }*/
+ $message_post .= "Host: ".$_SERVER['HTTP_HOST']."\r\n";
+ $message_post .= "Cookie: ".$conf['session_name']."=".$_COOKIE[$conf['session_name']]."\r\n";
-// $message_post .= "Host: ".$_SERVER['HTTP_HOST']."\r\n";
-// $message_post .= "Cookie: ".$conf['session_name']."=".$_COOKIE[$conf['session_name']]."\r\n";
$message_post .= "Content-Type: application/x-www-form-urlencoded\r\n";
$message_post .= "Content-Length: ".strlen($data_post)."\r\n";
$message_post .= "\r\n";