Login Widget

User avatar
axew3
w3all User
w3all User
Posts: 2883
Joined: Fri Jan 22, 2016 5:15 pm
Location: Italy
Contact:

Re: Login Widget

Post 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
User avatar
axew3
w3all User
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

Post 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;
.......
User avatar
Synisto
User ww
User ww
Posts: 22
Joined: Fri Mar 25, 2016 12:01 pm
Location: The Netherlands

Re: Login Widget

Post by Synisto »

By copy+pasting the text above it worked! :) :D
"Nothing is as powerful as an idea whose time has come"
User avatar
axew3
w3all User
w3all User
Posts: 2883
Joined: Fri Jan 22, 2016 5:15 pm
Location: Italy
Contact:

Re: Login Widget

Post by axew3 »

so, the forum is magic!
Post Reply