Page 2 of 2
Re: Login Widget
Posted: Tue Mar 29, 2016 2:07 pm
by axew3
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
phpBB functions.php 3.1.8 as need to be
Posted: Tue Mar 29, 2016 2:22 pm
by axew3
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)
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;
.......
Re: Login Widget
Posted: Tue Mar 29, 2016 7:58 pm
by Synisto
By copy+pasting the text above it worked!
Re: Login Widget
Posted: Thu Mar 31, 2016 12:27 pm
by axew3
so, the forum is magic!