"); echo ""; ?> "; echo "

"; echo "Nu esti autentificat
"; echo "Sau sesiunea ta a expirat

"; echo "Autentificare"; echo "

"; echo ""; echo "
"; exit(); } $uid = getuid_sid($sid); 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(); } ///////////////////////////////////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 FROM lib3rtymrc_users where id='".$uid."'")); $otime = $res[0] + $atime; $res = mysql_query("UPDATE lib3rtymrc_users SET otime='".$otime."' where id='".$uid."'"); } ////////////////meniu if($action=="meniu") { addonline(getuid_sid($sid),"Meniu Notificari",""); echo ""; echo "

"; echo "Sterge notificari
---
"; echo "

"; //////ALL LISTS SCRIPT << if($page=="" || $page<=0)$page=1; $myid = getuid_sid($sid); $doit=false; //$num_items = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM lib3rtymrc_notificare WHERE touid='1'")); $xuid = getuid_sid($sid); $notificare = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM lib3rtymrc_notificare WHERE touid=$xuid")); echo mysql_error(); $num_items = $notificare[0]; //changable $items_per_page= 7; $num_pages = ceil($num_items/$items_per_page); if($page>$num_pages)$page= $num_pages; $limit_start = ($page-1)*$items_per_page; if($num_items>0) { if($doit) { $exp = "&rwho=$myid"; }else { $exp = ""; } //changable sql $sql = "SELECT a.name, b.id, b.byuid, b.unread FROM lib3rtymrc_users a INNER JOIN lib3rtymrc_notificare b ON a.id = b.byuid WHERE b.touid='".$myid."' ORDER BY b.timesent DESC LIMIT $limit_start, $items_per_page"; echo "

"; $items = mysql_query($sql); echo mysql_error(); while ($item = mysql_fetch_array($items)) { if($item[3]=="1") { $iml = "\"+\"/"; }else{ $iml = "\"-\"/"; } /// pm extra /// $pminfo = mysql_fetch_array(mysql_query("SELECT text FROM lib3rtymrc_notificare WHERE id='".$item[1]."'")); //$titlu = mysql_fetch_array(mysql_query("SELECT titlu FROM lib3rtymrc_notificare WHERE id='".$item[1]."'")); $pmtext = htmlspecialchars($pminfo[0]); $pmdet = substr($pmtext,0,15); //////////////// pana aici //// pm necitit $neciti = mysql_fetch_array(mysql_query("SELECT unread FROM lib3rtymrc_notificare WHERE id='".$item[1]."'")); if($neciti[0]==1){ $pmex = ""; }else{ $pmex = "
$pmdet"; } //////////////// pana aici $lnk = "$iml".$pmr."Notificare
"; echo "$lnk"; } echo "-----
"; echo "

"; echo "

"; $npage = $page+1; ///echo "Trimite PM nou la
"; if($page>1) { $ppage = $page-1; echo "«inapoi
"; } if($page<$num_pages) { $npage = $page+1; echo "inainte»"; } if($num_pages>1){ echo "
Pagina $page din $num_pages
"; } if($num_pages>2) { $rets = "pagina:"; $rets .= "Du-te"; $rets .= ""; $rets .= ""; $rets .= ""; $rets .= ""; $rets .= ""; echo $rets; echo "
"; } echo "

"; }else{ echo "

"; echo "(cutia de notificar goala)"; echo "

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

"; echo "Meniu Posta
"; echo "Acasa"; echo "

"; echo "
"; } /////////////// citeste pm else if($action=="citeste") { addonline(getuid_sid($sid),"Citeste PM notificare",""); echo ""; echo "

"; $pminfo = mysql_fetch_array(mysql_query("SELECT text, byuid, timesent, touid FROM lib3rtymrc_notificare WHERE id='".$pmid."'")); if(getuid_sid($sid)==$pminfo[3]) { $chread = mysql_query("UPDATE lib3rtymrc_notificare SET unread='0' WHERE id='".$pmid."'"); } if(($pminfo[3]==getuid_sid($sid))||($pminfo[1]==getuid_sid($sid))) { if(isonline($pminfo[1])) { $iml = "\"conectat\"/"; }else{ $iml = "\"neconectat\"/"; } $ptxt = "NOTIFICARE MagicWorld"; //$bylnk = "".getsimbol($pminfo[1])."".getnick_uid($pminfo[1]).""; //// $tmstamp = $pminfo[2]; // zilele saptamanii echo "

$ptxt


"; //echo "$tmdt

"; $pmtext = parsepm($pminfo[0], $sid); $pmtext = str_replace("/faq","Intrebari fregvente", $pmtext); $pmtext = str_replace("/help","Meniul nostru de ajutor", $pmtext); $pmtext = str_replace("/reader",getnick_uid($pminfo[3]), $pmtext); echo "$pmtext"; $cat = time()-$pminfo[2]; $cata = gettimemsg($cat); echo "

notificare primita acum $cata
"; echo "Sterge notificare
"; }else{ echo "
Aceasta notificare nu este a dumneavoastra
"; } echo "

"; echo "

"; echo "

Meniu Notificari
"; echo ""; echo "Acasa"; echo "

"; echo "
"; } else{ addonline(getuid_sid($sid),"Pierdut in notificare lol",""); echo ""; echo "

"; echo "Nu stiu cum ai ajuns aici, dar nu ai ce vedea

"; echo ""; echo "Prim"; echo "

"; } ?>

Teya Salat