XtGem Forum catalog
"); echo ""; ?> "; echo "

"; echo "\"*\"/
"; echo "Eroare, nu se poate conecta la baza d date!

"; echo "Aceasta eroare apare de obicei cand care serverul isi va reveni in cateva secunde!Daca problema persista va rugam sa luati legatura cat mai curand posibil cu EDDY

"; echo "Va multumim foarte mult pentru intelegere!"; echo "

"; echo ""; echo "
"; exit(); } $brws = explode(" / ",$HTTP_USER_AGENT); $ubr = $brws[0]; $uip = getip(); $action = $_GET["action"]; $vezi = $_GET["vezi"]; $sid = $_GET["sid"]; $page = $_GET["page"]; $who = $_GET["who"]; $uid = getuid_sid($sid); cleardata(); if(isipbanned($uip,$ubr)) { if(!isshield(getuid_sid($sid))) { echo ""; echo "

"; echo "\"x\"/
"; echo "Acest IP este blocat!
"; echo "
"; echo "Acest browser a fost banat!Daca ai scutul actiat incearca sa te loghezi!

"; $banto = mysql_fetch_array(mysql_query("SELECT timeto FROM lib3rtymrc_penalties WHERE penalty='2' AND ipadd='".$uip."' AND browserm='".$ubr."' LIMIT 1 ")); //echo mysql_error(); $remain = $banto[0] - time(); $rmsg = gettimemsg($remain); echo "Timp ramas pana la debanarea IP-ului: $rmsg

"; echo "

"; echo "

"; echo "Numele:
"; echo "Parola:
"; echo "Autentificare"; echo ""; echo ""; echo ""; echo "

"; echo "
"; echo ""; exit(); } } $uid = getuid_sid($sid); if((islogged($sid)==FALSE)||($uid==0)) { echo ""; echo "

"; echo "\"X\"/Nu esti logat
"; echo "Sau sesiunea ta a expirat

"; echo "»LOGARE«"; echo "

"; echo "
"; echo ""; exit(); } if(!ismod(getuid_sid($sid))) { echo ""; echo "

"; echo "Doar echipa are voie aici!"; echo "
"; echo "Acasa"; echo "

"; echo "
"; echo ""; exit(); } //echo isbanned($uid); if(isbanned($uid)) { echo ""; echo "

"; echo "\"x\"/
"; echo "Esti Banat(a)
"; $banto = mysql_fetch_array(mysql_query("SELECT timeto, pnreas, exid FROM lib3rtymrc_penalties WHERE uid='".$uid."' AND penalty='1' OR uid='".$uid."' AND penalty='2'")); $banres = mysql_fetch_array(mysql_query("SELECT lastpnreas FROM lib3rtymrc_users WHERE id='".$uid."'")); $remain = $banto[0]- time(); $rmsg = gettimemsg($remain); echo "Timp ramas pana la debanare: $rmsg
"; $nick = getnick_uid($banto[2]); echo "By: $nick
"; echo "Motiv ban: $banres[0]"; //echo "Login"; echo "

"; echo "
"; echo ""; exit(); } $res = mysql_query("UPDATE lib3rtymrc_users SET browserm='".$ubr."', ipadd='".$uip."' WHERE id='".getuid_sid($sid)."'"); ///////////////////////////////////time $res = mysql_fetch_array(mysql_query("SELECT lastact FROM lib3rtymrc_users WHERE id='".$uid."'")); $lastact = $res[0]; $atime = time() - $lastact; if($atime<1800){ $res = mysql_fetch_array(mysql_query("SELECT otime, mtime FROM lib3rtymrc_users where id='".$uid."'")); $otime = $res[0] + $atime; $mtime = $res[1] + $atime; $res = mysql_query("UPDATE lib3rtymrc_users SET otime='".$otime."', mtime='".$mtime."' where id='".$uid."'"); } /// ////////////////////////////////////////MAIN PAGE if($vezi=="toate") { addvisitor(); addonline(getuid_sid($sid),"Vizualizeaza Mesaje Live","livechipa.php?action=$action"); echo ""; $who = $_GET["who"]; //////ALL LISTS SCRIPT << if($page=="" || $page<=0)$page=1; if($who=="") { $noi = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ice_echipa")); }else{ $noi = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ice_echipa WHERE shouter='".$who."'")); } $num_items = $noi[0]; //changable $items_per_page= 10; $num_pages = ceil($num_items/$items_per_page); if(($page>$num_pages)&&$page!=1)$page= $num_pages; $limit_start = ($page-1)*$items_per_page; //changable sql if($who =="") { $sql = "SELECT id, shout, shouter, shtime FROM ice_echipa ORDER BY shtime DESC LIMIT $limit_start, $items_per_page"; }else{ $sql = "SELECT id, shout, shouter, shtime FROM ice_echipa WHERE shouter='".$who."'ORDER BY shtime DESC LIMIT $limit_start, $items_per_page"; } echo "

"; $uid = getuid_sid($sid); $unreadpopup=mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM lib3rtymrc_popups WHERE unread='1' AND touid='".$uid."'")); if ($unreadpopup[0]>0) { echo popup($sid); echo "

"; echo "
"; echo ""; exit(); } echo "scrie"; echo "

"; echo "

"; $items = mysql_query($sql); echo mysql_error(); if(mysql_num_rows($items)>0) { while ($item = mysql_fetch_array($items)) { $shnick = getnick_uid($item[2]); $sht = parsepm($item[1],$sid); $shdt = date("d m y-H:i", $item[3]); $lnk = "$shnick: $sht
$shdt"; if(ismod(getuid_sid($sid))) { if(isdforums(getuid_sid($sid))) { $dlsh = "[sterge]"; } }else{ $dlsh = ""; } echo "$lnk $dlsh
"; } } echo "

"; echo "

"; if($page>1) { $ppage = $page-1; echo "Inapoi "; } if($page<$num_pages) { $npage = $page+1; echo "Inainte"; } echo "
$page/$num_pages
"; if($num_pages>2) { $rets = "Du-te la pagina"; $rets .= "[Du-te]"; $rets .= ""; $rets .= ""; $rets .= ""; $rets .= ""; $rets .= ""; $rets .= ""; echo $rets; } echo "

"; ////// UNTILL HERE >> echo "

"; echo ""; echo "Acasa"; echo "

"; echo ""; } ////////////////////////////////////////// scrie if ($action=="scrie") { addonline(getuid_sid($sid),"Scrie Mesaj Live","livechipa.php?action=$action"); echo ""; print ''; print ''; print ''; print ''; print ''; echo "

"; $uid = getuid_sid($sid); $unreadpopup=mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM lib3rtymrc_popups WHERE unread='1' AND touid='".$uid."'")); if ($unreadpopup[0]>0) { echo popup($sid); echo "

"; echo "
"; echo ""; exit(); } $unreadinbox=mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM lib3rtymrc_private WHERE unread='1' AND touid='".$uid."'")); $pmtotl=mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM lib3rtymrc_private WHERE touid='".$uid."'")); $unrd="".$unreadinbox[0].""; if ($unreadinbox[0]==1) { echo "ai un pm

====
"; } if ($unreadinbox[0]>1) { echo "ai $unrd pm-uri
====
"; } if(mliveon()) { if(ismod($uid)) { echo "(*)Text:
"; echo "-Scrie"; echo " "; echo "-"; }else{ echo "\"X\"/Mesajele live sunt activate doar pentru echipa"; } }else{ if(getplusses(getuid_sid($sid))<100) { echo "\"X\"/Ai nevoie de macar 100 de plusuri pentru a posta un mesaj live!enjoy..."; }else{ if(istrashed(getuid_sid($sid))) { echo "\"X\"/Ai fost aruncat la gunoi nu poti da mesaje live!enjoy..."; }else{ $uid = getuid_sid($sid); $tm = time(); $tm = time(); $antiflood = 180;/// anti flood time $lastshout = mysql_fetch_array(mysql_query("SELECT MAX(shtime) FROM ice_echipa")); $shoutfl = $lastshout[0]+$antiflood; //if(ismod($uid))$shoutfl=0; if($shoutfl<$tm) { $shtm = time(); echo "Regulament

"; echo "Maxim trei emotii pe live
"; echo "Sunt permise doar linkuri interne
"; echo "Fara injurii,limbaj obscen,emotii de tip adult
"; //echo "Vei fi taxat cu 5 plusuri pe mesaj

"; print ''; print ''; print ''; print ''; print ''; echo "Text:
"; echo "Scrie"; echo " "; echo ""; }else{ $rema1 = $shoutfl - $tm; $rema = gettimemsg($rema1); echo "Fiecare mesaj va fi afisat minim 3 minute
Vei putea scrie mesaj live peste $rema!

"; } } } } echo "

"; echo "Acasa"; echo "

"; echo ""; } else if($action=="scrielive") { $shtxt = $_POST["shtxt"]; addonline(getuid_sid($sid),"Mesaje live",""); echo ""; echo "

"; if(getplusses(getuid_sid($sid))<100) { echo "Ai nevoie de 100 de puncte pentru a posta mesaje live!"; }else{ $shtxt = $shtxt; //$uid = getuid_sid($sid); $shtm = time(); // $uid = getuid_sid($sid); $tm = time(); $antiflood = 180;/// anti flood time $lastshout = mysql_fetch_array(mysql_query("SELECT MAX(shtime) FROM ice_echipa")); $shoutfl = $lastshout[0]+$antiflood; //$shoutfl = $lastshout[0]+ $tm; //if(ismod($uid))$shoutfl=0; if($shoutfl<$tm) { $shtm = time(); //echo "-----
"; if(!isblocked($shtxt,$uid)) { // $res = mysql_query("INSERT INTO ice_echipa SET shout='".$shtxt."', shouter='".$uid."', shtime='".$shtm."'"); if($res) { echo ""; $shts = mysql_fetch_array(mysql_query("SELECT shouts from lib3rtymrc_users WHERE id='".$uid."'")); $shts = $shts[0]+1; #taxa // $plus = mysql_fetch_array(mysql_query("SELECT plusses from lib3rtymrc_users WHERE id='".$uid."'")); // $plus1 = $plus[0]-5; // mysql_query("UPDATE lib3rtymrc_users SET plusses='".$plus1."' WHERE id='".$uid."'"); /// mysql_query("UPDATE lib3rtymrc_users SET shouts='".$shts."' WHERE id='".$uid."'"); echo "Mesaj Adaugat cu succes!
"; // echo "5 plusuri au fost sustrase din contul tau!
"; $live = parsepm($shtxt,$sid); echo "
$live"; echo "

"; echo "Acasa"; }else{ echo "Eroare in baza de date"; } }else{ $live= "Te iubesc Wapv3sT.NeT!"; $res = mysql_query("INSERT INTO ice_echipa SET shout='".$live."', shouter='".$uid."', shtime='".$shtm."'"); if($res) { echo ""; $shts = mysql_fetch_array(mysql_query("SELECT shouts from lib3rtymrc_users WHERE id='".$uid."'")); $shts = $shts[0]+1; $user = getnick_sid($sid); mysql_query("UPDATE lib3rtymrc_users SET shouts='".$shts."' WHERE id='".$uid."'"); $sql = mysql_query("SELECT id, name FROM lib3rtymrc_users WHERE perm>'0'"); while ($id = mysql_fetch_array($sql)){ mysql_query("INSERT INTO lib3rtymrc_private SET text='[b](!)Tentativa de spam pe live![/b][br/]".$shtxt."', byuid='".$uid."', touid = '".$id[0]."', timesent='".$tm."'"); } echo "Mesaj Adaugat cu succes!
"; $live = parsepm($shtxt,$sid); echo "
$live"; echo "

"; echo "Acasa"; }else{ echo "Eroare in baza de date"; } echo "

"; echo ""; exit(); } }else{ $rema1 = $shoutfl - $tm; $rema = gettimemsg($rema1); echo "Fiecare mesaj va fi afisat minim 3 minute
Vei putea scrie mesaj live peste $rema!

"; } } //echo "

"; //echo "Acasa"; echo "

"; echo ""; } else if($action=="sterge") { $shid = $_GET["shid"]; echo ""; echo "

"; $sht = mysql_fetch_array(mysql_query("SELECT shouter, shout FROM ice_echipa WHERE id='".$shid."'")); $msg = getnick_uid($sht[0]); $msg .= ": ".htmlspecialchars((strlen($sht[1])<30?$sht[1]:substr($sht[1], 0, 30))); $res = mysql_query("DELETE FROM ice_echipa WHERE id ='".$shid."'"); if($res) { mysql_query("INSERT INTO lib3rtymrc_mlog SET action='Live Echipa', details='".getnick_uid(getuid_sid($sid))." Sterge Mesaj live ".$shid." - $msg', actdt='".time()."'"); echo "Mesaj live sters"; }else{ echo "Eroare in baza de date"; } echo "

"; echo ""; echo "Acasa"; echo "

"; } else{ /////////////////////////Main Page Here echo ""; echo "

"; echo "\"*\"/
"; //echo "welcome: guest

"; echo "Numele:

"; echo "Parola:

"; echo "LOGARE"; echo ""; echo ""; echo ""; echo "

"; echo "
"; } ?>