"; echo ""; ?> "; //echo ""; echo ""; echo "

"; $uinf = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM lib3rtymrc_users WHERE name='".$uid."'")); if(empty($uid) || empty($pwd)) { //Check for user ID echo "Nu ai voie sa lasi campuri goale
"; echo "-----
"; echo "porecla:"; echo "
"; echo "parola : "; echo "
"; echo "parola comenzi : "; echo "
"; echo "

»LOGARE«"; echo ""; echo ""; echo ""; echo ""; echo "
"; echo "-----
"; } else if($uinf[0]==0) { //Check for user ID echo "Acest nume de utilizator nu exista pe $numesite
"; echo "-----
"; echo "
"; echo "porecla:"; echo "
"; echo "parola : "; echo "
"; echo "parola comenzi : "; echo "
"; echo ""; echo "

"; echo "-----
"; }else{ //check for pwd $epwd = md5($pwd); $uinf = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM lib3rtymrc_users WHERE id='".getuid_nick($uid)."' AND pass='".$epwd."'")); if($uinf[0]==0) { echo "Parola introdusa acelui membru nu coincide cu parola din baza de date $numesite
"; echo "Acasa"; echo "

"; echo ""; echo ""; exit(); } $uiddd = mysql_fetch_array(mysql_query("SELECT id FROM lib3rtymrc_users WHERE name='".$uid."'")); if(isbanned($uiddd[0])) { echo "Acest cont este banat!
"; if(ismod($uiddd[0])) { mysql_query("DELETE FROM lib3rtymrc_penalties WHERE uid='".$uiddd[0]."'"); echo "Reincarca pagina si vei fi debanat!
"; } $banto = mysql_fetch_array(mysql_query("SELECT timeto FROM lib3rtymrc_penalties WHERE uid='".$uiddd[0]."' AND penalty='1'")); $banres = mysql_fetch_array(mysql_query("SELECT lastpnreas FROM lib3rtymrc_users WHERE id='".$uiddd[0]."'")); $banner = mysql_fetch_array(mysql_query("SELECT uid, penalty, pnreas, exid FROM lib3rtymrc_penalties WHERE penalty='1'")); $remain = $banto[0]- time(); $rmsg = gettimemsg($remain); echo "Banul expira in: $rmsg
"; echo "Mesaj din partea echipei: $banres[0]"; echo "
Acasa"; echo "

"; echo ""; echo ""; exit(); } $perm = mysql_fetch_array(mysql_query("SELECT permxmagic FROM lib3rtymrc_users WHERE id='".getuid_nick($uid)."'")); if($perm[0]<1){ echo "Nu faci parte din echipa $numesite
"; echo "Acasa"; echo "

"; echo ""; echo ""; exit(); } $mod = mysql_fetch_array(mysql_query("SELECT value FROM lib3rtymrc_settings WHERE name='moderator'")); $adm = mysql_fetch_array(mysql_query("SELECT value FROM lib3rtymrc_settings WHERE name='admin'")); $adms = mysql_fetch_array(mysql_query("SELECT value FROM lib3rtymrc_settings WHERE name='adminsef'")); $prop = mysql_fetch_array(mysql_query("SELECT value FROM lib3rtymrc_settings WHERE name='proprietar'")); $perm = mysql_fetch_array(mysql_query("SELECT permxmagic FROM lib3rtymrc_users WHERE id='".getuid_nick($uid)."'")); if($perm[0]==1){ $cond = "$mod[0]"; } else if($perm[0]==2){ $cond = "$adm[0]"; } else if($perm[0]==3){ $cond = "$adms[0]"; } else if($perm[0]==4){ $cond = "$prop[0]"; } else if($perm[0]==11){ $cond = "$prop[0]"; } if($pc!==$cond){ echo "Parola de la comenzile panoului tau nu corespunde cu cea din baza de date
"; echo "Acasa"; echo "

"; echo ""; echo ""; exit(); } ////////////////////////////////////////////////////////////////////////////// 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()."', vizite='".$views."' WHERE id='".getuid_nick($uid)."'"); $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 $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 $numesite
"; } echo "\"*\"/
"; $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."'"); } } $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])); mysql_query("UPDATE lib3rtymrc_users SET OK_TEAM='1' WHERE id='".$idn."'"); echo "
Intra pe Site
"; } echo ""; echo "

"; echo ""; }else{ echo ""; //echo ""; echo ""; echo "

"; // lunile anului if(date("M")=="Jan")$luna="Ianuarie"; if(date("M")=="Feb")$luna="Februarie"; if(date("M")=="Mar")$luna="Martie"; if(date("M")=="Apr")$luna="Aprilie"; if(date("M")=="May")$luna="Mai"; if(date("M")=="Jun")$luna="Iunie"; if(date("M")=="Jul")$luna="Iulie"; if(date("M")=="Aug")$luna="August"; if(date("M")=="Sep")$luna="Septembrie"; if(date("M")=="Oct")$luna="Octombrie"; if(date("M")=="Nov")$luna="Noiembrie"; if(date("M")=="Dec")$luna="Decembrie"; // zilele saptamanii if(date("D")=="Mon")$ziua="Luni"; if(date("D")=="Tue")$ziua="Marti"; if(date("D")=="Wed")$ziua="Miercuri"; if(date("D")=="Thu")$ziua="Joi"; if(date("D")=="Fri")$ziua="Vineri"; if(date("D")=="Sat")$ziua="Sambata"; if(date("D")=="Sun")$ziua="Duminica"; ///////////// echo "".date("H:i:s")."
$ziua,".date("d")."-$luna-".date("Y")."

"; /////mesaj live $TimeZone="0"; ////Fus orar $New_Time = time() + ($TimeZone * 60 * 60); $time=date("H:i"); $Hour=date("G",$New_Time); if ($Hour <= 4) { echo 'Noapte Buna!
'; } else if ($Hour <= 10) { echo 'Buna Dimineata!
'; } else if ($Hour <= 14) { echo 'Buna Ziua!
'; } else if ($Hour <= 16) { echo 'O dupa amiaza Placuta!
'; } else if ($Hour <= 22) { echo 'Buna Seara!
'; } echo "\"*\"/
"; echo "\"*\"/
"; echo "-----
"; echo "

"; echo "porecla:"; echo "
"; echo "parola : "; echo "
"; echo "parola comenzi : "; echo "
"; echo ""; echo "

"; echo "-----
"; echo "© toate drepturile rezervate
$numesite
"; echo "

"; echo ""; } ?>

Snack's 1967