Como usar SSI.php para que retorne un logeo en un WEB que no es el foro

Started by ^SoporteGSM^, November 14, 2018, 09:27:08 PM

Previous topic - Next topic

^SoporteGSM^

hola amigos, tengo ya insertado el SSI.php con el sistema de logueo en esta web:

https://www.gsmarena.com.mx/ftp/

Pero cuando un usuario se loguea se hace el retorno al foro, mi pregunta como logro el retorno pero en la WEB en cuestion??



Y una mas duda, como logro que al hacer el login solo ciertos usuarios accedan a mi web??

MorderBR

para lo primero tienes que modificar el archivo de LogInOut.php en Sources
Modificas esta parte

elseif (isset($_GET['sa']) && $_GET['sa'] == 'check')
{
// Strike!  You're outta there!
if ($_GET['member'] != $user_info['id'])
fatal_lang_error('login_cookie_error', false);

// Some whitelisting for login_url...
if (empty($_SESSION['login_url']))
redirectexit();
else
{
// Best not to clutter the session data too much...
$temp = $_SESSION['login_url'];
unset($_SESSION['login_url']);

redirectexit($temp);
}
}


y modificas algo así

elseif (isset($_GET['sa']) && $_GET['sa'] == 'check')
{
// Strike!  You're outta there!
if ($_GET['member'] != $user_info['id'])
fatal_lang_error('login_cookie_error', false);
// Some whitelisting for login_url...
if (empty($_SESSION['login_url'])){
 
if ($_SERVER['HTTP_REFERER']==substr($scripturl,0,-9).'action=login' || $_SERVER['HTTP_REFERER']==substr($scripturl,0,-9).'login/'  || $_SERVER['HTTP_REFERER']==substr($scripturl,0,-9).'login')
{
redirectexit($scripturl);
}
elseif($_SERVER['HTTP_REFERER']=='https://www.gsmarena.com.mx/ftp/'||$_SERVER['HTTP_REFERER']=='https://www.gsmarena.com.mx/ftp'||)
{
redirectexit('https://www.gsmarena.com.mx/ftp/');
}
else
{
redirectexit($_SERVER['HTTP_REFERER']);
}
  }
else
{
// Best not to clutter the session data too much...
$temp = $_SESSION['login_url'];
unset($_SESSION['login_url']);
redirectexit($temp);
}
}

Advertisement: