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 SyrAng3l72

"; //echo "Soon, we will offer services that doesn't depend on MySQL databse to let you enjoy our site, while the database is not connected
"; echo "Va multumim foarte mult pentru intelegere!"; echo "

"; echo ""; echo "
"; exit(); } $brws = explode(" / ",$HTTP_USER_AGENT); $ubr = $brws[0]; $uip = getip(); $action = $_GET["action"]; $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(); } } if(($action != "") && ($action!="main")) { $uid = getuid_sid($sid); if((islogged($sid)==FALSE)||($uid==0)) { echo ""; echo "

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

"; echo "»Autentificare«"; 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($action=="main") { addvisitor(); $whonick = getnick_uid($who); $who = $_GET["who"]; addonline(getuid_sid($sid),"Comentarii $whonick","comentarii.php?action=$action&who=$who"); echo ""; $uid = getuid_sid($sid); //////ALL LISTS SCRIPT << if($page=="" || $page<=0)$page=1; $noi = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM lib3rtymrc_gbook WHERE gbowner='".$who."'")); $num_items = $noi[0]; //changable $items_per_page= 5; $num_pages = ceil($num_items/$items_per_page); if(($page>$num_pages)&&$page!=1)$page= $num_pages; $limit_start = ($page-1)*$items_per_page; $sql = "SELECT gbowner, gbsigner, gbmsg, dtime, id FROM lib3rtymrc_gbook WHERE gbowner='".$who."' ORDER BY dtime 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(); } $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]>0) { echo "Ai:$unrdPMs
-----
"; } $items = mysql_query($sql); echo mysql_error(); if(mysql_num_rows($items)>0) { while ($item = mysql_fetch_array($items)) { if(isonline($item[1])) { $iml = "\"+\"/"; }else{ $iml = "\"-\"/"; } $snick = getnick_uid($item[1]); $lnk = "$iml$snick"; $bs = date("d m y-H:i:s",$item[3]); echo "$lnk
"; if(candelgb($uid, $item[4])) { $delnk = "[x]"; }else{ $delnk = ""; } $text = parsepm($item[2], $sid); echo "$text
$bs $delnk
"; echo "
"; } } 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 = "Dute la pagina"; $rets .= "[Dute]"; $rets .= ""; $rets .= ""; $rets .= ""; $rets .= ""; $rets .= ""; $rets .= ""; echo $rets; } echo "

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

"; if(cansigngb($uid, $who)) { echo ""; echo "Adauga comentariu
"; } echo "\"*\"/"; echo "Prim"; echo "

"; echo ""; } ////////////////////////////////////////// scrie else if ($action=="scrie") { $whonick = getnick_uid($who); $who=$_GET["who"]; addonline(getuid_sid($sid),"Scrie comantariu $whonick","comentarii.php?action=$action&who=$who"); if(!cansigngb(getuid_sid($sid), $who)) { echo ""; echo "

"; echo "Nu poti scrie in guestbook-ul acestui user

"; echo "Prim"; echo "

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

"; if(getplusses(getuid_sid($sid))<25) { echo "\"X\"/Ai nevoie de 25 de plusuri pentru a semna in guestbook!enjoy...
"; }else{ echo "Text:
"; echo "Adauga"; echo " "; echo ""; } echo "

\"*\"/"; echo "Prim"; echo "

"; echo "
"; } ?>