Hello,
Since three days ago I have the next problem.
When I access to a url from Google for example, I am redirected to http://tinyurl4.info/xxxxxx, only the first time, if I go back and click in the same link I access to the web without problems.
This is affecting to entire website because I have a code to use the login of the forum in entire website, this is the code:
I've detected that the problem is in the forum because I disable this code and the problem dissapears.
$curdir = getcwd ();//Saca directorio actual
chdir('/home/mujerde/public_html/Foro');//Cambia de directorio
require_once('/home/mujerde/public_html/Foro/global.php');
chdir ($curdir);//Vuelve al directorio en el que estaba
$forumpath = "http://www.domain.com/Foro";
if ($vbulletin->userinfo['userid']!=0) {//Si el usuario está conectado
$login=1;//Logueado
$_SESSION['usuario']=$vbulletin->userinfo['username'];
$_SESSION['usuario_conectado']=$vbulletin->userinfo['username'];
$_SESSION['usuario_id']=$vbulletin->userinfo['userid'];
$_SESSION['usergroup']=$vbulletin->userinfo['usergroupid'];
}else $login=0;
Thank you,
Carlos
Since three days ago I have the next problem.
When I access to a url from Google for example, I am redirected to http://tinyurl4.info/xxxxxx, only the first time, if I go back and click in the same link I access to the web without problems.
This is affecting to entire website because I have a code to use the login of the forum in entire website, this is the code:
I've detected that the problem is in the forum because I disable this code and the problem dissapears.
$curdir = getcwd ();//Saca directorio actual
chdir('/home/mujerde/public_html/Foro');//Cambia de directorio
require_once('/home/mujerde/public_html/Foro/global.php');
chdir ($curdir);//Vuelve al directorio en el que estaba
$forumpath = "http://www.domain.com/Foro";
if ($vbulletin->userinfo['userid']!=0) {//Si el usuario está conectado
$login=1;//Logueado
$_SESSION['usuario']=$vbulletin->userinfo['username'];
$_SESSION['usuario_conectado']=$vbulletin->userinfo['username'];
$_SESSION['usuario_id']=$vbulletin->userinfo['userid'];
$_SESSION['usergroup']=$vbulletin->userinfo['usergroupid'];
}else $login=0;
Thank you,
Carlos
Comment