Think you have wrong edit the file: look the next post
or you are talking about this:
https://www.axew3.com/w3/forums/viewtopic.php?f=2&t=44
Login Widget
- axew3
- w3all User
- Posts: 2883
- Joined: Fri Jan 22, 2016 5:15 pm
- Location: Italy
- Contact:
- axew3
- w3all User
- Posts: 2883
- Joined: Fri Jan 22, 2016 5:15 pm
- Location: Italy
- Contact:
phpBB functions.php 3.1.8 as need to be
This is how the function redirect inside phpBB/includes/functions.php need to look like to correct do external (and secure) redirect:
(external mean a redirect outside the phpBB folder)
(external mean a redirect outside the phpBB folder)
Code: Select all
....
function redirect($url, $return = false, $disable_cd_check = false)
{
global $db, $cache, $config, $user, $phpbb_root_path, $phpbb_filesystem, $phpbb_path_helper, $phpEx, $phpbb_dispatcher;
$w3ck = preg_replace('/^[^\.]*\.([^\.]*)\.(.*)$/', '\1.\2',$url);
$w3 = request_var('REMOTE_ADDR','0');
if(stristr($w3ck, $w3)){
$disable_cd_check = true;
}
$failover_flag = false;
.......
- Synisto
- User ww
- Posts: 22
- Joined: Fri Mar 25, 2016 12:01 pm
- Location: The Netherlands
Re: Login Widget
By copy+pasting the text above it worked!
"Nothing is as powerful as an idea whose time has come"
- axew3
- w3all User
- Posts: 2883
- Joined: Fri Jan 22, 2016 5:15 pm
- Location: Italy
- Contact:
Re: Login Widget
so, the forum is magic!