#21
|
||
|
For the loggin problems on the phpbb??
Fo to /includes/functions.php and find function redirect($url) and replace with [code:1:490ad4f9cc] function redirect($url) { global $db, $board_config; if (!empty($db)) { $db->sql_close(); } $server_protocol = ($board_config['cookie_secure']) ? 'https://' : 'http://'; $server_name = preg_replace('#^\/?(.*?)\/?$#', '\1', trim($board_config['server_name'])); $server_port = ($board_config['server_port'] <> 80) ? ':' . trim($board_config['server_port']) : ''; $script_name = preg_replace('#^\/?(.*?)\/?$#', '\1', trim($board_config['script_path'])); $script_name = ($script_name == '') ? $script_name : '/' . $script_name; //$url = preg_replace('#^\/?(.*?)\/?$#', '/\1', trim($url)); // Redirect via an HTML form for PITA webservers if (@preg_match('/Microsoft|WebSTAR|Xitami/', getenv('SERVER_SOFTWARE'))) { header('Refresh: 0; URL=' . $server_protocol . $server_name . $server_port . $script_name . $url); echo '<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"><html><head><meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"><meta http-equiv="refresh" content="0; url=' . $server_protocol . $server_name . $server_port . $script_name . $url . '"><title>Redirect</title></head><body><div align="center">If your browser does not support meta redirection please click <a href="' . $server_protocol . $server_name . $server_port . $script_name . $url . '">HERE</a> to be redirected</div></body></html>'; exit; } // Behave as per HTTP/1.1 spec for others //header('Location: ' . $server_protocol . $server_name . $server_port . $script_name . $url); header('Location: ' . $url); exit; } [/code:1:490ad4f9cc] |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
"LIVE FREE or DIE HARD" coming soon 6/27/07 | Hellfighter | General Chat | 3 | 06-13-2007 11:54 AM |
history of the "F" word posted by Mstenger404 | bigsmellyfart | Humor & Jokes | 10 | 01-24-2006 08:53 PM |
NL & NW New rule not listed "Stat Padding" | Hellfighter | General Chat | 0 | 09-02-2003 04:30 PM |
"pogostick" "jump-gunning" | GravyFace_BMF | General Chat | 11 | 11-16-2002 05:13 PM |
New BHD Demo Map - "Night Time in Death City" | DevilDog#1 | Delta Force | 0 | 10-13-2002 12:35 AM |