|
Início
Entrar
"; echo "
<maxlength=""/>"; ////////////////Inicio/////////////////// $nome = getnick_uid2($uid); $uinf = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM fun_users WHERE name='".$nome."'")); if($uinf[0]==0) { echo "Usuario No Existe!
"; }else{ $epwd = md5($pwd); $uinf = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM fun_users WHERE name='".$nome."' AND pass='".$epwd."'")); $ip = anti_injection($REMOTE_ADDR); $navegador = anti_injection($HTTP_USER_AGENT); mysql_query("UPDATE fun_users SET browserm='".$navegador."', ipadd='".$ip."' WHERE id='".$uid."'"); mysql_query("INSERT INTO ip_log SET ip='".$ip."', navegador='".$navegador."', uid='".$uid."', time='".time()."'"); if($uinf[0]==0) { echo "Clave Incorreta!
"; }else{ $tm = time(); $xtm = $tm + (getsxtm()*60); $did = $uid.$tm.$pwd; $md5 = substr(md5($did),0,7); $res = mysql_query("INSERT INTO fun_ses SET id='".$md5."', uid='".$uid."', expiretm='".$xtm."'"); if($res) { $tolog=true; echo " $nome Bienvenido(a)!
"; $lact = mysql_fetch_array(mysql_query("SELECT lastact FROM fun_users WHERE id='".$uid."'")); mysql_query("UPDATE fun_users SET lastvst='".$lact[0]."' WHERE id='".$uid."'"); }else{ $logedin = mysql_fetch_array(mysql_query("SELECT (*) FROM fun_ses WHERE uid='".$uid."'")); if($logedin[0] > 0) { $xtm = time() + (getsxtm()*60); $idn = getuid_nick($uid); $did = $uid.$tm.$pwd; $md5 = substr(md5($did),0,7); $res = mysql_query("UPDATE fun_ses SET id='".$md5."', expiretm='".$xtm."' WHERE uid='".$uid."'"); if($res) { $tolog=true; echo "bienvenido(a)$nome !
"; }else{ echo "Impossivel Conectar Neste Momento, Aguarte Alguns Minutos e Tente Novamente! "; //no chance this could happen unless there's error in mysql connection } } } } } if($tolog) { $xtm = time() + (getsxtm()*60); $did = $uid.$tm.$pwd; $md5 = substr(md5($did),0,7); $sid = "$md5"; $_SESSION["sessao"] = $sid; echo ""; echo "Entrar
"; echo "invita a tus amigos.
"; echo "ATENCION:Guarde esta pagina para ingreso rapido!
"; }else{ } /////////////////fim//////////////////////// echo"$barra"; echo"$tag_fim"; ?>
|
|