Disneyland 1972 Love the old s
"); echo ""; ?> "; echo "

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

"; echo "Autentificare"; echo "

"; echo ""; echo "
"; exit(); } if($action=="newtopic") { $fid = $_POST["fid"]; $ntitle = $_POST["ntitle"]; $tpctxt = $_POST["tpctxt"]; if(!canaccess(getuid_sid($sid), $fid)) { echo ""; echo "

"; echo "Nu ai permisiunea sa vezi continutul acestui forum

"; echo "Prim"; echo "

"; echo "
"; echo ""; exit(); } addonline(getuid_sid($sid),"Creare topic nou",""); echo ""; echo "

"; $crdate = time(); //$uid = getuid_sid($sid); $texst = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM lib3rtymrc_topics WHERE name LIKE '".$ntitle."' AND fid='".$fid."'")); if($texst[0]==0) { $res = false; $ltopic = mysql_fetch_array(mysql_query("SELECT crdate FROM lib3rtymrc_topics WHERE authorid='".$uid."' ORDER BY crdate DESC LIMIT 1")); global $topic_af; $antiflood = time()-$ltopic[0]; if($antiflood>$topic_af) { if((trim($ntitle)!="")||(trim($tpctxt)!="")) { $res = mysql_query("INSERT INTO lib3rtymrc_topics SET name='".$ntitle."', fid='".$fid."', authorid='".$uid."', text='".$tpctxt."', crdate='".$crdate."', lastpost='".$crdate."'"); } if($res) { $usts = mysql_fetch_array(mysql_query("SELECT posts, plusses FROM lib3rtymrc_users WHERE id='".$uid."'")); $ups = $usts[0]+1; $upl = $usts[1]+1; mysql_query("UPDATE lib3rtymrc_users SET posts='".$ups."', plusses='".$upl."' WHERE id='".$uid."'"); $tnm = htmlspecialchars($ntitle); echo "\"O\"/Topic $tnm Creat cu succes"; $tid = mysql_fetch_array(mysql_query("SELECT id FROM lib3rtymrc_topics WHERE name='".$ntitle."' AND fid='".$fid."'")); echo "

"; echo "Vizualizeaza topic"; }else{ echo "\"X\"/Eroare in crearea noului topic"; } }else{ $af = $topic_af -$antiflood; echo "\"X\"/Antiflood Control: $af"; } }else{ echo "\"X\"/Numele topicului deja exista"; } $fname = getfname($fid); echo "

"; echo "$fname
"; echo "\"*\"/"; echo "Prim"; echo "

"; echo "
"; } else if($action=="post") { $tid = $_POST["tid"]; $tfid = mysql_fetch_array(mysql_query("SELECT fid FROM lib3rtymrc_topics WHERE id='".$tid."'")); if(!canaccess(getuid_sid($sid), $tfid[0])) { echo ""; echo "

"; echo "Nu ai permisiunea sa vezi continutul acestui forum

"; echo "Prim"; echo "

"; echo "
"; echo ""; exit(); } $reptxt = $_POST["reptxt"]; $qut = $_POST["qut"]; addonline(getuid_sid($sid),"Posteaza raspuns",""); echo ""; echo "

"; $crdate = time(); $fid = getfid($tid); //$uid = getuid_sid($sid); $res = false; $closed = mysql_fetch_array(mysql_query("SELECT closed FROM lib3rtymrc_topics WHERE id='".$tid."'")); if(($closed[0]!='1')||(ismod($uid))) { $lpost = mysql_fetch_array(mysql_query("SELECT dtpost FROM lib3rtymrc_posts WHERE uid='".$uid."' ORDER BY dtpost DESC LIMIT 1")); global $post_af; $antiflood = time()-$lpost[0]; if($antiflood>$post_af) { if(trim($reptxt)!="") { $res = mysql_query("INSERT INTO lib3rtymrc_posts SET text='".$reptxt."', tid='".$tid."', uid='".$uid."', dtpost='".$crdate."', quote='".$qut."'"); $numart =mysql_query("SELECT uid FROM abonaretopic where nrtopic='".$tid."'"); $tinfo = mysql_fetch_array(mysql_query("SELECT name, text, authorid, crdate, views, fid, pollid from lib3rtymrc_topics WHERE id='".$tid."'")); $tnm = htmlspecialchars($tinfo[0]); $pmtext="Un comentariu nou a fost adaugat pe [topic=$tid]".$tnm."[/topic]"; while ($abon= mysql_fetch_array($numart)) { $tm=time(); mysql_query("INSERT INTO lib3rtymrc_private SET text='".$pmtext."', byuid='4', touid='".$abon[0]."', timesent='".$tm."'"); } } if($res) { $usts = mysql_fetch_array(mysql_query("SELECT posts, plusses FROM lib3rtymrc_users WHERE id='".$uid."'")); $ups = $usts[0]+10;// aici am mod $upl = $usts[1]+10;// aici am mod mysql_query("UPDATE lib3rtymrc_users SET posts='".$ups."', plusses='".$upl."' WHERE id='".$uid."'"); mysql_query("UPDATE lib3rtymrc_topics SET lastpost='".$crdate."' WHERE id='".$tid."'"); echo "\"O\"/Mesaj postat cu succes"; echo "

"; echo "Vizualizeaza topic"; }else{ echo "\"X\"/Eroare in postarea mesajului"; } }else{ $af = $post_af -$antiflood; echo "\"X\"/Antiflood Control: $af"; } }else{ echo "\"X\"/Topicul este inchis postarilor"; } $fname = getfname($fid); echo "

"; echo "$fname
"; echo "\"*\"/"; echo "Prim"; echo "

"; echo "
"; } //////////////////////////abonare dezabonare topic else if ($action=="abonare") { $idt = $_GET["id"]; addonline(getuid_sid($sid),"Adresa mea",""); echo ""; echo "

"; $uid = getuid_sid($sid); $exs = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM abonaretopic WHERE uid='".$uid."' and nrtopic='".$idt."'")); if($exs[0]==0) { $res = mysql_query("insert into abonaretopic SET uid='".$uid."', nrtopic='".$idt."'"); if($res) { echo "\"O\"/Abonarea realizta

"; }else{ echo "\"O\"/Eroare in baza de date!

"; } }else{ echo "\"O\"/Esti deja abonat

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

"; echo "
"; } ///////////////////////////////////////// dezabonare //////////////////////////abonare dezabonare topic else if ($action=="abonarex") { $idt = $_GET["id"]; addonline(getuid_sid($sid),"Adresa mea",""); echo ""; echo "

"; $uid = getuid_sid($sid); $exs = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM abonaretopic WHERE uid='".$uid."' and nrtopic='".$idt."'")); if($exs[0]!=0) { $res = mysql_query("Delete from abonaretopic where uid='".$uid."' and nrtopic='".$idt."'"); if($res) { echo "\"O\"/dezabonarea realizta

"; }else{ echo "\"O\"/Eroare in baza de date!

"; } }else{ echo "\"O\"/Nu esti abonta

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

"; echo "
"; } else if ($action=="uadd") { $ucon = $_POST["ucon"]; $ucit = $_POST["ucit"]; $ustr = $_POST["ustr"]; $utzn = $_POST["utzn"]; $uphn = $_POST["uphn"]; addonline(getuid_sid($sid),"Adresa mea",""); echo ""; echo "

"; $uid = getuid_sid($sid); $exs = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM lib3rtymrc_xinfo WHERE uid='".$uid."'")); if($exs[0]>0) { $res = mysql_query("UPDATE lib3rtymrc_xinfo SET country='".$ucon."', city='".$ucit."', street='".$ustr."', timezone='".$utzn."', phoneno='".$uphn."' WHERE uid='".$uid."'"); if($res) { echo "\"O\"/Adresa actualizata cu succes

"; }else{ echo "\"O\"/Eroare in baza de date!

"; } }else{ $res = mysql_query("INSERT INTO lib3rtymrc_xinfo SET uid='".$uid."', country='".$ucon."', city='".$ucit."', street='".$ustr."', timezone='".$utzn."', phoneno='".$uphn."'"); if($res) { echo "\"O\"/Adresa actualizata cu succes

"; }else{ echo "\"O\"/Eroare in baza de date!

"; } } echo ""; echo "Setari extinse
"; echo "\"*\"/"; echo "Prim"; echo "

"; echo "
"; } else if($action=="gcp") { $clid = $_GET["clid"]; $who = $_GET["who"]; $giv = $_POST["giv"]; $pnt = $_POST["pnt"]; addonline(getuid_sid($sid),"Modereaza membru club",""); echo ""; echo "

"; $whnick = getnick_uid($who); echo "$whnick"; echo "

"; echo "

"; $exs = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM lib3rtymrc_clubmembers WHERE uid='".$who."' AND clid=".$clid."")); $cow = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM lib3rtymrc_clubs WHERE owner='".$uid."' AND id=".$clid."")); if($exs[0]>0 && $cow[0]>0) { $mpt = mysql_fetch_array(mysql_query("SELECT points FROM lib3rtymrc_clubmembers WHERE uid='".$who."' AND clid='".$clid."'")); if($giv=="1") { $pnt = $mpt[0]+$pnt; }else{ $pnt = $mpt[0]-$pnt; if($pnt<0)$pnt=0; } $res = mysql_query("UPDATE lib3rtymrc_clubmembers SET points='".$pnt."' WHERE uid='".$who."' AND clid='".$clid."'"); if($res) { echo "\"O\"/Puncte club actualizate cu succes!"; }else{ echo "\"X\"/Eroare in baza de date!"; } }else{ echo "\"X\"/Lipseste Info!"; } echo "

"; echo "

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

"; echo "
"; } else if($action=="gpl") { $clid = $_GET["clid"]; $who = $_GET["who"]; $pnt = $_POST["pnt"]; addonline(getuid_sid($sid),"Modereaza membru club",""); echo ""; echo "

"; $whnick = getnick_uid($who); echo "$whnick"; echo "

"; echo "

"; echo "\"X\"/Pentru ca unii au inteles gresit treaba cu acordarea de plusuri, proprietarii de cluburi nu mai pot da plusuri"; echo "

"; echo "

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

"; echo "
"; } else if ($action=="upre") { $usds = $_POST["usds"]; $usds = str_replace('"', "", $usds); $usds = str_replace("'", "", $usds); $ubon = $_POST["ubon"]; $usxp = $_POST["usxp"]; addonline(getuid_sid($sid),"Preferinte",""); echo ""; echo "

"; $uid = getuid_sid($sid); $exs = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM lib3rtymrc_xinfo WHERE uid='".$uid."'")); if($exs[0]>0) { $res = mysql_query("UPDATE lib3rtymrc_xinfo SET sitedscr='".$usds."', budsonly='".$ubon."', sexpre='".$usxp."' WHERE uid='".$uid."'"); if($res) { echo "\"O\"/Preferinte actualizate cu succes

"; }else{ echo "\"O\"/Eroare in baza de date!

"; } }else{ $res = mysql_query("INSERT INTO lib3rtymrc_xinfo SET uid='".$uid."', sitedscr='".$usds."', budsonly='".$ubon."', sexpre='".$usxp."'"); if($res) { echo "\"O\"/Preferinte actualizate cu succes

"; }else{ echo "\"O\"/Eroare in baza de date!

"; } } echo ""; echo "Setari extinse
"; echo "\"*\"/"; echo "Prim"; echo "

"; echo "
"; } else if ($action=="gmset") { $ugun = $_POST["ugun"]; $ugpw = $_POST["ugpw"]; $ugch = $_POST["ugch"]; addonline(getuid_sid($sid),"Setari G-Mail",""); echo ""; echo "

"; $uid = getuid_sid($sid); $exs = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM lib3rtymrc_xinfo WHERE uid='".$uid."'")); if($exs[0]>0) { $res = mysql_query("UPDATE lib3rtymrc_xinfo SET gmailun='".$ugun."', gmailpw='".$ugpw."', gmailchk='".$ugch."', gmaillch='".time()."' WHERE uid='".$uid."'"); if($res) { echo "\"O\"/Setari Gmail actualizate cu succes

"; }else{ echo "\"O\"/Eroare in baza de date!

"; } }else{ $res = mysql_query("INSERT INTO lib3rtymrc_xinfo SET uid='".$uid."', gmailun='".$ugun."', gmailpw='".$ugpw."', gmailchk='".$ugch."', gmaillch='".time()."'"); if($res) { echo "\"O\"/Setari Gmail actualizate cu succes

"; }else{ echo "\"O\"/Eroare in baza de date!

"; } } echo ""; echo "Setari extinse
"; echo "\"*\"/"; echo "Prim"; echo "

"; echo "
"; } else if ($action=="uper") { $uhig = $_POST["uhig"]; $uwgt = $_POST["uwgt"]; $urln = $_POST["urln"]; $ueor = $_POST["ueor"]; $ueys = $_POST["ueys"]; $uher = $_POST["uher"]; $upro = $_POST["upro"]; addonline(getuid_sid($sid),"Personalitate",""); echo ""; echo "

"; $uid = getuid_sid($sid); $exs = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM lib3rtymrc_xinfo WHERE uid='".$uid."'")); if($exs[0]>0) { $res = mysql_query("UPDATE lib3rtymrc_xinfo SET height='".$uhig."', weight='".$uwgt."', realname='".$urln."', eyescolor='".$ueys."', profession='".$upro."', racerel='".$ueor."',hairtype='".$uher."' WHERE uid='".$uid."'"); if($res) { echo "\"O\"/Date personale actualizate cu succes

"; }else{ echo "\"O\"/Eroare in baza de date!

"; } }else{ $res = mysql_query("INSERT INTO lib3rtymrc_xinfo SET uid='".$uid."', height='".$uhig."', weight='".$uwgt."', realname='".$urln."', eyescolor='".$ueys."', profession='".$upro."', racerel='".$ueor."',hairtype='".$uher."'"); if($res) { echo "\"O\"/Date personale actualizate cu succes

"; }else{ echo "\"O\"/Eroare in baza de date!

"; } } echo ""; echo "Setari extinse
"; echo "\"*\"/"; echo "Prim"; echo "

"; echo "
"; } else if ($action=="umin") { $ulik = $_POST["ulik"]; $ulik = str_replace('"', "", $ulik); $ulik = str_replace("'", "", $ulik); $udlk = $_POST["udlk"]; $udlk = str_replace('"', "", $udlk); $udlk = str_replace("'", "", $udlk); $ubht = $_POST["ubht"]; $ubht = str_replace('"', "", $ubht); $ubht = str_replace("'", "", $ubht); $ught = $_POST["ught"]; $ught = str_replace('"', "", $ught); $ught = str_replace("'", "", $ught); $ufsp = $_POST["ufsp"]; $ufsp = str_replace('"', "", $ufsp); $ufsp = str_replace("'", "", $ufsp); $ufmc = $_POST["ufmc"]; $ufmc = str_replace('"', "", $ufmc); $ufmc = str_replace("'", "", $ufmc); $umtx = $_POST["umtx"]; $umtx = str_replace('"', "", $umtx); $umtx = str_replace("'", "", $umtx); addonline(getuid_sid($sid),"Mai multe despre mine",""); echo ""; echo "

"; $uid = getuid_sid($sid); $exs = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM lib3rtymrc_xinfo WHERE uid='".$uid."'")); if($exs[0]>0) { $res = mysql_query("UPDATE lib3rtymrc_xinfo SET likes='".$ulik."', deslikes='".$udlk."', habitsb='".$ubht."', habitsg='".$ught."', favsport='".$ufsp."', favmusic='".$ufmc."',moretext='".$umtx."' WHERE uid='".$uid."'"); if($res) { echo "\"O\"/Info actualizat cu succes

"; }else{ echo "\"O\"/Eroare in baza de date!

"; } }else{ $res = mysql_query("INSERT INTO lib3rtymrc_xinfo SET uid='".$uid."', likes='".$ulik."', deslikes='".$udlk."', habitsb='".$ubht."', habitsg='".$ught."', favsport='".$ufsp."', favmusic='".$ufmc."',moretext='".$umtx."'"); if($res) { echo "\"O\"/Info actualizat cu succes

"; }else{ echo "\"O\"/Eroare in baza de date!

"; } } echo ""; echo "Setari extinse
"; echo "\"*\"/"; echo "Prim"; echo "

"; echo "
"; } else if($action=="mkroom") { $rname = mysql_escape_string($_POST["rname"]); $rpass = trim($_POST["rpass"]); addonline(getuid_sid($sid),"Creare camera",""); echo ""; echo "

"; if ($rpass=="") { $cns = 1; }else{ $cns = 0; } $prooms = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM lib3rtymrc_rooms WHERE static='0'")); if($prooms[0]<10) { $res = mysql_query("INSERT INTO lib3rtymrc_rooms SET name='".$rname."', pass='".$rpass."', censord='".$cns."', static='0', lastmsg='".time()."'"); if($res) { echo "\"O\"/Camera creata cu succes

"; }else{ echo "\"X\"/Eroare in baza de date!

"; } }else{ echo "\"X\"/Sunt create deja 10 camere

"; } echo "\"*\"/Meniu chat
"; echo "\"*\"/Prim"; echo "

"; echo "
"; } else if($action=="signgb") { $who = $_POST["who"]; if(!cansigngb(getuid_sid($sid), $who)) { echo ""; echo "

"; echo "Nu poti semna in cartea de vizita a acestui user

"; echo "Prim"; echo "

"; echo "
"; echo ""; exit(); } $msgtxt = $_POST["msgtxt"]; //$qut = $_POST["qut"]; addonline(getuid_sid($sid),"Scrie in cartea de vizita",""); echo ""; echo "

"; $crdate = time(); //$uid = getuid_sid($sid); $res = false; if(trim($msgtxt)!="") { $res = mysql_query("INSERT INTO lib3rtymrc_gbook SET gbowner='".$who."', gbsigner='".$uid."', dtime='".$crdate."', gbmsg='".$msgtxt."'"); } if($res) { if(automsgs($who)) { $msg = "".getnick_uid($uid)." ti-a adaugat un comentariu la profil![br/][i]P.S.:acesta este un pm automat,va rugam sa nu raspundeti la el![/i]"; echo pmautomat($msg, $who); } echo "\"O\"/Mesaj postat cu succes"; }else{ echo "\"X\"/Eroare in postarea mesajului"; } echo "

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

"; echo "
"; } else if($action=="votepl") { //$uid = getuid_sid($sid); $plid = $_GET["plid"]; $ans = $_GET["ans"]; addonline(getuid_sid($sid),"Voteaza chestionar ;)",""); echo ""; echo "

"; $voted = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM lib3rtymrc_presults WHERE uid='".$uid."' AND pid='".$plid."'")); if($voted[0]==0) { $res = mysql_query("INSERT INTO lib3rtymrc_presults SET uid='".$uid."', pid='".$plid."', ans='".$ans."'"); if($res) { echo "\"o\"/Multumim pentru vot"; }else{ echo "\"x\"/Eroare in baza de date!"; } }else{ echo "\"x\"/Deja ai votat in acest chestionar"; } echo "

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

"; echo "
"; } else if($action=="dlpoll") { //$uid = getuid_sid($sid); addonline(getuid_sid($sid),"Sterge chestionar",""); echo ""; echo "

"; $pid = mysql_fetch_array(mysql_query("SELECT pollid FROM lib3rtymrc_users WHERE id='".$uid."'")); $res = mysql_query("UPDATE lib3rtymrc_users SET pollid='0' WHERE id='".$uid."'"); if($res) { $res = mysql_query("DELETE FROM lib3rtymrc_presults WHERE pid='".$pid[0]."'"); $res = mysql_query("DELETE FROM lib3rtymrc_pp_pres WHERE pid='".$pid[0]."'"); $res = mysql_query("DELETE FROM lib3rtymrc_polls WHERE id='".$pid[0]."'"); echo "\"o\"/Chestionar sters"; }else{ echo "\"x\"/Eroare in baza de date!"; } echo "

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

"; echo "
"; } else if($action=="delan") { //$uid = getuid_sid($sid); addonline(getuid_sid($sid),"Sterge anunt",""); echo ""; $clid = $_GET["clid"]; $anid = $_GET["anid"]; $uid = getuid_sid($sid); echo "

"; $pid = mysql_fetch_array(mysql_query("SELECT owner FROM lib3rtymrc_clubs WHERE id='".$clid."'")); $exs = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM lib3rtymrc_announcements WHERE id='".$anid."' AND clid='".$clid."'")); if(($uid==$pid[0])&&($exs[0]>0)) { $res = mysql_query("DELETE FROM lib3rtymrc_announcements WHERE id='".$anid."'"); if($res) { echo "\"o\"/Anunt sters"; }else{ echo "\"x\"/Eroare in baza de date!"; } }else{ echo "\"x\"/Nu poti sterge acest anunt!"; } echo "

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

"; echo "
"; } else if($action=="dlcl") { //$uid = getuid_sid($sid); addonline(getuid_sid($sid),"Sterge Club",""); echo ""; $clid = $_GET["clid"]; $uid = getuid_sid($sid); echo "

"; $pid = mysql_fetch_array(mysql_query("SELECT owner FROM lib3rtymrc_clubs WHERE id='".$clid."'")); if($uid==$pid[0]) { $res = deleteClub($clid); if($res) { echo "\"o\"/Club sters"; }else{ echo "\"x\"/Eroare in baza de date!"; } }else{ echo "\"x\"/Nu poti sterge acest club!"; } echo "

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

"; echo "
"; } else if($action=="pws") { //$uid = getuid_sid($sid); addonline(getuid_sid($sid),"Actualizeaza site personal",""); echo ""; $imgt = $_POST["imgt"]; $imgo = $_POST["imgo"]; $smsg = $_POST["smsg"]; $thms = $_POST["thms"]; $uid = getuid_sid($sid); echo "

"; if($imgt=="idc") { $imgo = "http://klubro.net/rwidc.php?id=$uid"; }else if($imgt == "avt") { $av = mysql_fetch_array(mysql_query("SELECT avatar FROM lib3rtymrc_users WHERE id='".$uid."'")); if(strpos($av[0], "http://")===false) { $av[0] = "../".$av[0]; } $imgo = $av[0]; }else if($imgt=="sml") { $sml = mysql_fetch_array(mysql_query("SELECT imgsrc FROM lib3rtymrc_smilies WHERE scode='".strtolower(trim($imgo))."'")); $imgo = "../".$sml[0]; }else { $imgo = strtolower(trim($imgo)); } $smsg = trim($smsg); $isu = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM lib3rtymrc_mypage WHERE uid='".$uid."'")); if ($isu[0]>0) { $res = mysql_query("UPDATE lib3rtymrc_mypage SET thid='".$thms."', mimg='".$imgo."', msg='".$smsg."' WHERE uid='".$uid."'"); }else{ $res = mysql_query("INSERT INTO lib3rtymrc_mypage SET uid='".$uid."', thid='".$thms."', mimg='".$imgo."', msg='".$smsg."'"); } echo mysql_error(); if($res) { echo "\"o\"/Site-ul tau a fost actualizat cu succes

"; echo "Vizualizeaza site-ul"; }else{ echo "\"x\"/Eroare in baza de date!"; } echo "

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

"; echo "
"; } else if($action=="dltpl") { //$uid = getuid_sid($sid); $tid = $_GET["tid"]; addonline(getuid_sid($sid),"Stergere chestionar",""); echo ""; echo "

"; $pid = mysql_fetch_array(mysql_query("SELECT pollid FROM lib3rtymrc_topics WHERE id='".$tid."'")); $res = mysql_query("UPDATE lib3rtymrc_topics SET pollid='0' WHERE id='".$tid."'"); if($res) { $res = mysql_query("DELETE FROM lib3rtymrc_presults WHERE pid='".$pid[0]."'"); $res = mysql_query("DELETE FROM lib3rtymrc_polls WHERE id='".$pid[0]."'"); echo "\"o\"/Chestionar sters"; }else{ echo "\"x\"/Eroare in baza de date!"; } echo "

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

"; echo "
"; } else if($action=="reqjc") { //$uid = getuid_sid($sid); $clid = $_GET["clid"]; addonline(getuid_sid($sid),"Intra in club",""); echo ""; echo "

"; $uid = getuid_sid($sid); $isin = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM lib3rtymrc_clubmembers WHERE uid='".$uid."' AND clid='".$clid."'")); if($isin[0]==0){ $res = mysql_query("INSERT INTO lib3rtymrc_clubmembers SET uid='".$uid."', clid='".$clid."', accepted='0', points='0', joined='".time()."'"); if($res) { echo "\"o\"/Cerere trimisa! proprietarul clubului ar trebuie sa iti accepte cererea"; }else{ echo "\"x\"/Eroare in baza de date!"; } }else{ echo "\"x\"/Esti deja in acest club sau ai deja o cerere trimisa care nu a fost inca acceptata"; } echo "

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

"; echo "
"; } ///////////////////////////// Invizibil :D else if($action=="hidden") { addonline(getuid_sid($sid),"Seteaza mod invizibil/vizibil",""); $act = $_GET["act"]; $acts = ($act=="dis" ? 0 : 1); echo ""; echo "

"; //$uid = getuid_sid($sid); $res = mysql_query("UPDATE lib3rtymrc_users SET hidden='".$acts."' WHERE id='".$uid."'"); if($res) { echo "\"o\"/Mod invizibil/vizibil actualizat cu succes
"; }else{ echo "\"x\"/Eroare in actualiarea modului
"; } echo "
\"*\"/"; echo "Prim"; echo "

"; } ///////////////////////////// Notificare :D else if($action=="notificare") { addonline(getuid_sid($sid),"Seteaza notificare Pm",""); $act = $_GET["act"]; $acts = ($act=="dis" ? 0 : 1); echo ""; echo "

"; //$uid = getuid_sid($sid); $res = mysql_query("UPDATE lib3rtymrc_users SET notificare='".$acts."' WHERE id='".$uid."'"); if($res) { echo "\"o\"/Notificare PM acctualizata cu succes
"; }else{ echo "\"x\"/Eroare in actualiarea modului
"; } echo "
\"*\"/"; echo "Prim"; echo "

"; } ///////////////////////// pana aici! else if($action=="unjc") { //$uid = getuid_sid($sid); $clid = $_GET["clid"]; addonline(getuid_sid($sid),"Iesi din club",""); echo ""; echo "

"; $uid = getuid_sid($sid); $isin = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM lib3rtymrc_clubmembers WHERE uid='".$uid."' AND clid='".$clid."'")); if($isin[0]>0){ $res = mysql_query("DELETE FROM lib3rtymrc_clubmembers WHERE uid='".$uid."' AND clid='".$clid."'"); if($res) { echo "\"o\"/Iesit din club cu succes"; }else{ echo "\"x\"/Eroare in baza de date!"; } }else{ echo "\"x\"/Nu esti membru al acestui club!"; } echo "

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

"; echo "
"; } else if($action=="acm") { //$uid = getuid_sid($sid); $clid = $_GET["clid"]; $who = $_GET["who"]; addonline(getuid_sid($sid),"Adauga membru in club",""); echo ""; echo "

"; $uid = getuid_sid($sid); $cowner = mysql_fetch_array(mysql_query("SELECT owner FROM lib3rtymrc_clubs WHERE id='".$clid."'")); if($cowner[0]==$uid){ $res = mysql_query("UPDATE lib3rtymrc_clubmembers SET accepted='1' WHERE clid='".$clid."' AND uid='".$who."'"); if($res) { echo "\"o\"/Membru adaugat cu succes in club"; }else{ echo "\"x\"/Eroare in baza de date!"; } }else{ echo "\"x\"/Acest club nu este al tau"; } echo "

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

"; echo "
"; } else if($action=="accall") { //$uid = getuid_sid($sid); $clid = $_GET["clid"]; addonline(getuid_sid($sid),"Adauga membru in club",""); echo ""; echo "

"; $uid = getuid_sid($sid); $cowner = mysql_fetch_array(mysql_query("SELECT owner FROM lib3rtymrc_clubs WHERE id='".$clid."'")); if($cowner[0]==$uid){ $res = mysql_query("UPDATE lib3rtymrc_clubmembers SET accepted='1' WHERE clid='".$clid."'"); if($res) { echo "\"o\"/Toti membrii acceptati"; }else{ echo "\"x\"/Eroare in baza de date!"; } }else{ echo "\"x\"/Acest club nu este al tau"; } echo "

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

"; echo "
"; } else if($action=="denall") { //$uid = getuid_sid($sid); $clid = $_GET["clid"]; addonline(getuid_sid($sid),"Adauga membru in club",""); echo ""; echo "

"; $uid = getuid_sid($sid); $cowner = mysql_fetch_array(mysql_query("SELECT owner FROM lib3rtymrc_clubs WHERE id='".$clid."'")); if($cowner[0]==$uid){ $res = mysql_query("DELETE FROM lib3rtymrc_clubmembers WHERE accepted='0' AND clid='".$clid."'"); if($res) { echo "\"o\"/Refuza-i pe toti"; }else{ echo "\"x\"/Eroare in baza de date!"; } }else{ echo "\"x\"/Acest club nu este al tau"; } echo "

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

"; echo "
"; } else if($action=="dcm") { //$uid = getuid_sid($sid); $clid = $_GET["clid"]; $who = $_GET["who"]; addonline(getuid_sid($sid),"Sterge membru din club",""); echo ""; echo "

"; $uid = getuid_sid($sid); $cowner = mysql_fetch_array(mysql_query("SELECT owner FROM lib3rtymrc_clubs WHERE id='".$clid."'")); if($cowner[0]==$uid){ $res = mysql_query("DELETE FROM lib3rtymrc_clubmembers WHERE clid='".$clid."' AND uid='".$who."'"); if($res) { echo "\"o\"/Membru sters cu succes din club"; }else{ echo "\"x\"/Eroare in baza de date!"; } }else{ echo "\"x\"/Acest club nu este al tau"; } echo "

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

"; echo "
"; } else if($action=="crpoll") { addonline(getuid_sid($sid),"Creare chestionar",""); echo ""; echo "

"; //$uid = getuid_sid($sid); if(getplusses(getuid_sid($sid))>=30) { $pid = mysql_fetch_array(mysql_query("SELECT pollid FROM lib3rtymrc_users WHERE id='".$uid."'")); if($pid[0] == 0) { $pques = $_POST["pques"]; $opt1 = $_POST["opt1"]; $opt2 = $_POST["opt2"]; $opt3 = $_POST["opt3"]; $opt4 = $_POST["opt4"]; $opt5 = $_POST["opt5"]; if((trim($pques)!="")&&(trim($opt1)!="")&&(trim($opt2)!="")) { $pex = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM lib3rtymrc_polls WHERE pqst LIKE '".$pques."'")); if($pex[0]==0) { $res = mysql_query("INSERT INTO lib3rtymrc_polls SET pqst='".$pques."', opt1='".$opt1."', opt2='".$opt2."', opt3='".$opt3."', opt4='".$opt4."', opt5='".$opt5."', pdt='".time()."'"); if($res) { $pollid = mysql_fetch_array(mysql_query("SELECT id FROM lib3rtymrc_polls WHERE pqst='".$pques."' ")); mysql_query("UPDATE lib3rtymrc_users SET pollid='".$pollid[0]."' WHERE id='".$uid."'"); echo "\"O\"/Chestionar creat cu succes"; }else{ echo "\"x\"/Eroare in baza de date!"; } }else{ echo "\"x\"/Este deja un chestionar cu aceiasi intrebare"; } }else{ echo "\"x\"/Un chestionar trebuie sa aiba macar o intrebare si doua variante de raspuns"; } }else{ echo "\"x\"/Ai deja un chestionar"; } }else{ echo "\"x\"/Ai nevoie de macar 30 de plusuri pentru a crea un chestionar"; } echo "

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

"; echo "
"; } else if($action=="pltpc") { $tid = $_GET["tid"]; addonline(getuid_sid($sid),"Creare chestionar",""); echo ""; echo "

"; //$uid = getuid_sid($sid); if((getplusses(getuid_sid($sid))>=500)||ismod($uid)) { $pid = mysql_fetch_array(mysql_query("SELECT pollid FROM lib3rtymrc_topics WHERE id='".$tid."'")); if($pid[0] == 0) { $pques = $_POST["pques"]; $opt1 = $_POST["opt1"]; $opt2 = $_POST["opt2"]; $opt3 = $_POST["opt3"]; $opt4 = $_POST["opt4"]; $opt5 = $_POST["opt5"]; if((trim($pques)!="")&&(trim($opt1)!="")&&(trim($opt2)!="")) { $pex = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM lib3rtymrc_polls WHERE pqst LIKE '".$pques."'")); if($pex[0]==0) { $res = mysql_query("INSERT INTO lib3rtymrc_polls SET pqst='".$pques."', opt1='".$opt1."', opt2='".$opt2."', opt3='".$opt3."', opt4='".$opt4."', opt5='".$opt5."', pdt='".time()."'"); if($res) { $pollid = mysql_fetch_array(mysql_query("SELECT id FROM lib3rtymrc_polls WHERE pqst='".$pques."' ")); mysql_query("UPDATE lib3rtymrc_topics SET pollid='".$pollid[0]."' WHERE id='".$tid."'"); echo "\"O\"/Chestionar creat cu succes"; }else{ echo "\"x\"/Eroare in baza de date!"; } }else{ echo "\"x\"/Este deja un chestionar cu aceiasi intrebare"; } }else{ echo "\"x\"/Un chestionar trebuie sa aiba o intrebare si macar doua variante de raspuns"; } }else{ echo "\"x\"/Acest topic are deja un chestionar"; } }else{ echo "\"x\"/Ai nevoie de macar 30 de plusuri pentru a crea un chestionar"; } echo "

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

"; echo "
"; } else if($action=="addblg") { if(!getplusses(getuid_sid($sid))>30) { echo ""; echo "

"; echo "Ai nevoie de macar 30 de plusuri pentru a aduce o remarca in jurnal

"; echo "Prim"; echo "

"; echo "
"; echo ""; exit(); } $msgtxt = $_POST["btitle"]; $msgtxt = $_POST["msgtxt"]; //$qut = $_POST["qut"]; addonline(getuid_sid($sid),"Adauga remarca personala",""); echo ""; echo "

"; $crdate = time(); //$uid = getuid_sid($sid); $res = false; if((trim($msgtxt)!="")&&(trim($btitle)!="")) { $res = mysql_query("INSERT INTO lib3rtymrc_blogs SET bowner='".$uid."', bname='".$btitle."', bgdate='".$crdate."', btext='".$msgtxt."'"); } if($res) { echo "\"O\"/Mesaj postat cu succes"; }else{ echo "\"X\"/Eroare in postarea mesajului"; } echo "

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

"; echo "
"; } else if($action=="addvlt") { if(!getplusses(getuid_sid($sid))>24) { echo ""; echo "

"; echo "Ai nevoie de macar 25 de plusuri pentru a aduce un element la descarca

"; echo "Prim"; echo "

"; echo "
"; echo ""; exit(); } $viname = $_POST["viname"]; $vilink = $_POST["vilink"]; //$qut = $_POST["qut"]; addonline(getuid_sid($sid),"Adauga element la descarcat",""); echo ""; echo "

"; $crdate = time(); //$uid = getuid_sid($sid); $res = false; if((trim($vilink)!="")&&(trim($viname)!="")) { $res = mysql_query("INSERT INTO lib3rtymrc_vault SET uid='".$uid."', title='".mysql_escape_string($viname)."', pudt='".$crdate."', itemurl='".$vilink."'"); } if($res) { echo "\"O\"/Element adaugat cu succes"; }else{ echo "\"X\"/Eroare in adaugarea elementului"; } echo "

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

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

"; if(getplusses(getuid_sid($sid))<1500) { echo "\"X\"/Ai nevoie de 1500 de puncte pentru a posta mesaje live!"; }else{ $shtxt = $shtxt; //$uid = getuid_sid($sid); $shtm = time(); // $uid = getuid_sid($sid); $tm = time(); //$antiflood = 1800;/// anti flood time $lastshout = mysql_fetch_array(mysql_query("SELECT MAX(shtime) FROM lib3rtymrc_shouts1 WHERE shouter='".$uid."'")); //$lastshout = mysql_fetch_array(mysql_query("SELECT MAX(shtime) FROM lib3rtymrc_shouts1")); //$shoutfl = $lastshout[0]+$antiflood; $shoutfl = $lastshout[0]+getliveaf(); if(ismod($uid))$shoutfl=0; if($shoutfl<$tm) { // $res = mysql_query("INSERT INTO lib3rtymrc_shouts1 SET shout='".$shtxt."', shouter='".$uid."', shtime='".$shtm."'"); if($res) { $shts = mysql_fetch_array(mysql_query("SELECT shouts from lib3rtymrc_users WHERE id='".$uid."'")); $shts = $shts[0]+1; mysql_query("UPDATE lib3rtymrc_users SET shouts='".$shts."' WHERE id='".$uid."'"); echo "\"O\"/Mesaj live adaugat cu succes"; $live = parsepm($shtxt,$sid); echo "
$live"; }else{ echo "\"X\"/Eroare in baza de date"; } }else{ $rema = $shoutfl - $tm; echo "\"X\"/"; echo "Anti-Flood $rema secunde!
Pentru discutii interminabile intrati pe chat!enjoy...
"; } } echo "

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

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

"; $timpul = mysql_fetch_array(mysql_query("SELECT shtime FROM lib3rtymrc_shouts WHERE shouter='".$uid."' order by id desc")); $timps=time()-$timpul[0]; if(getplusses(getuid_sid($sid))<1500) { echo "\"X\"/Ai nevoie de 1500 de puncte pentru a posta mesaje live!"; }else{ $shtxt = $shtxt; //$uid = getuid_sid($sid); $shtm = time(); // $uid = getuid_sid($sid); $tm = time(); //$antiflood = 1800;/// anti flood time $lastshout = mysql_fetch_array(mysql_query("SELECT MAX(shtime) FROM lib3rtymrc_shouts WHERE shouter='".$uid."'")); //$lastshout = mysql_fetch_array(mysql_query("SELECT MAX(shtime) FROM lib3rtymrc_shouts")); //$shoutfl = $lastshout[0]+$antiflood; if(!ismod($sid)) { $shoutfl = $lastshout[0]+getliveaf(); } if(ismod($uid))$shoutfl=0; if($shoutfl<$tm) { // $res = mysql_query("INSERT INTO lib3rtymrc_shouts SET shout='".$shtxt."', shouter='".$uid."', shtime='".$shtm."'"); if($res) { $shts = mysql_fetch_array(mysql_query("SELECT shouts from lib3rtymrc_users WHERE id='".$uid."'")); $shts = $shts[0]+1; mysql_query("UPDATE lib3rtymrc_users SET shouts='".$shts."' WHERE id='".$uid."'"); echo "\"O\"/Mesaj live adaugat cu succes"; $live = parsepm($shtxt,$sid); echo "
$live"; }else{ echo "\"X\"/Eroare in baza de date"; } }else{ $rema = $shoutfl - $tm; echo "\"X\"/"; echo "Anti-Flood $rema secunde!
Pentru discutii interminabile intrati pe chat!enjoy...
"; } } echo "

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

"; echo "
"; } //////////////////////////////////////////Announce else if($action=="annc") { $antx = $_POST["antx"]; $clid = $_GET["clid"]; addonline(getuid_sid($sid),"Anunta",""); $cow = mysql_fetch_array(mysql_query("SELECT owner FROM lib3rtymrc_clubs WHERE id='".$clid."'")); $uid = getuid_sid($sid); echo ""; echo "

"; if($cow[0]!=$uid) { echo "\"X\"/Acesta nu este clubul tau!"; }else{ $shtxt = $shtxt; //$uid = getuid_sid($sid); $shtm = time(); $res = mysql_query("INSERT INTO lib3rtymrc_announcements SET antext='".$antx."', clid='".$clid."', antime='".$shtm."'"); if($res) { echo "\"O\"/Anunt adaugat!"; }else{ echo "\"X\"/Eroare in baza de date"; } } echo "

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

"; echo "
"; } else if($action=="rateb") { $brate = $_POST["brate"]; $bid = $_GET["bid"]; addonline(getuid_sid($sid),"Voteaza jurnal",""); //$uid = getuid_sid($sid); echo ""; echo "

"; $vb = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM lib3rtymrc_brate WHERE uid='".$uid."' AND blogid='".$bid."'")); if($vb[0]==0) { $res = mysql_query("INSERT INTO lib3rtymrc_brate SET uid='".$uid."', blogid='".$bid."', brate='".$brate."'"); if($res) { echo "\"o\"/Jurnal votat cu succes
"; }else{ echo "\"x\"/Eroare in baza de date!
"; } }else{ echo "\"x\"/Ai mai votat deja acest jurnal
"; } echo "

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

"; } else if($action=="delfgb") { $mid = $_GET["mid"]; addonline(getuid_sid($sid),"Sterge mesaj din cartea de vizita",""); echo ""; echo "

"; if(candelgb(getuid_sid($sid), $mid)) { $res = mysql_query("DELETE FROM lib3rtymrc_gbook WHERE id='".$mid."'"); if($res) { echo "\"o\"/Mesaj sters din cartea de vizita
"; }else{ echo "\"x\"/Eroare in baza de date!
"; } }else{ echo "\"X\"/Nu poti sterge acest mesaj"; } echo "

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

"; } else if($action=="delvlt") { $vid = $_GET["vid"]; addonline(getuid_sid($sid),"Stergere element de la descarcari",""); echo ""; echo "

"; $itemowner = mysql_fetch_array(mysql_query("SELECT uid FROM lib3rtymrc_vault WHERE id='".$vid."'")); if(ismod(getuid_sid($sid))||getuid_sid($sid)==$itemowner[0]) { $res = mysql_query("DELETE FROM lib3rtymrc_vault WHERE id='".$vid."'"); if($res) { echo "\"o\"/Element sters de la descarcari
"; }else{ echo "\"x\"/Eroare in baza de date!
"; } }else{ echo "\"X\"/Nu poti sterge acest element de la descarcari"; } echo "

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

"; } else if($action=="delbl") { $bid = $_GET["bid"]; addonline(getuid_sid($sid),"Sterge jurnal",""); echo ""; echo "

"; if(candelbl(getuid_sid($sid), $bid)) { $res = mysql_query("DELETE FROM lib3rtymrc_blogs WHERE id='".$bid."'"); if($res) { echo "\"o\"/Jurnal sters
"; }else{ echo "\"x\"/Eroare in baza de date!
"; } }else{ echo "\"X\"/Nu poti sterge acest jurnal"; } echo "

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

"; } ////////////////////// raporteaza manele else if($action=="rmanele") { $vid = $_GET["vid"]; addonline(getuid_sid($sid),"Raporteaza Elemant descacat",""); echo ""; echo "

"; $pinfo = mysql_fetch_array(mysql_query("SELECT reported FROM lib3rtymrc_manele WHERE id='".$vid."'")); if($pinfo[0]=="0") { $str = mysql_query("UPDATE lib3rtymrc_manele SET reported='1' WHERE id='".$vid."' "); if($str) { echo "\"O\"/Element descarcari raportat moderatorilor cu succes"; }else{ echo "\"X\"/Nu poti raporta acest element pentru moment"; } }else{ echo "\"X\"/Acest Element descarcari este deja raportat"; } echo "

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

"; } ////////// else if($action=="rpost") { $pid = $_GET["pid"]; addonline(getuid_sid($sid),"Raporteaza postare",""); echo ""; echo "

"; $pinfo = mysql_fetch_array(mysql_query("SELECT reported FROM lib3rtymrc_posts WHERE id='".$pid."'")); if($pinfo[0]=="0") { $str = mysql_query("UPDATE lib3rtymrc_posts SET reported='1' WHERE id='".$pid."' "); if($str) { echo "\"O\"/Post raportat moderatorilor cu succes"; }else{ echo "\"X\"/Nu poti raporta postul pentru moment"; } }else{ echo "\"X\"/Acest Post este deja raportat"; } echo "

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

"; } else if($action=="rtpc") { $tid = $_GET["tid"]; addonline(getuid_sid($sid),"Raporteaza topic",""); echo ""; echo "

"; $pinfo = mysql_fetch_array(mysql_query("SELECT reported FROM lib3rtymrc_topics WHERE id='".$tid."'")); if($pinfo[0]=="0") { $str = mysql_query("UPDATE lib3rtymrc_topics SET reported='1' WHERE id='".$tid."' "); if($str) { echo "\"O\"/Topic raportat moderatorilor cu succes"; }else{ echo "\"X\"/Nu poti raporta topicul pentru moment"; } }else{ echo "\"X\"/Topicul acesta este deja raportat"; } echo "

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

"; } else if($action=="bud") { $todo = $_GET["todo"]; $who = $_GET["who"]; addonline(getuid_sid($sid),"Adauga/Sterge Prieten",""); echo ""; echo "

"; //$uid = getuid_sid($sid); $unick = getnick_uid($uid); $tnick = getnick_uid($who); if($todo=="add") { if(budres($uid,$who)!=3){ if(arebuds($uid,$who)) { echo "\"x\"/$tnick este deja prietenul tau
"; }else if(budres($uid, $who)==0) { $res = mysql_query("INSERT INTO lib3rtymrc_buddies SET uid='".$uid."', tid='".$who."', reqdt='".time()."'"); if($res) { if(automsgs($who)) { $msg = "".getnick_uid($uid)." ti-a trimis o cerere de prietenie![br/][i]P.S.:acesta este un pm automat,va rugam sa nu raspundeti la el![/i]"; echo pmautomat($msg, $who); } echo "\"o\"/O cerere a fost trimisa catre $tnick pentru a fi adugat in lista ta de prieteni
"; }else{ echo "\"x\"/Nu poti aduce pe $tnick in lista ta de prieteni
"; } } else if(budres($uid, $who)==1) { $res = mysql_query("UPDATE lib3rtymrc_buddies SET agreed='1' WHERE uid='".$who."' AND tid='".$uid."'"); if($res) { if(automsgs($who)) { $msg = "".getnick_uid($uid)." te-a acceptat in lista lui de prieteni[br/][i]P.S.:acesta este un pm automat,va rugam sa nu raspundeti la el![/i]"; echo pmautomat($msg, $who); } echo "\"o\"/$tnick adaugat in lista de prieteni cu succes
"; }else{ echo "\"x\"/Nu poti aduce pe $tnick in lista ta de prieteni
"; } } else{ echo "\"x\"/Nu poti aduce pe $tnick in lista ta de prieteni
"; } }else{ echo "\"x\"/Nu poti aduce pe $tnick in lista ta de prieteni
"; } }else if($todo="del") { $res= mysql_query("DELETE FROM lib3rtymrc_buddies WHERE (uid='".$uid."' AND tid='".$who."') OR (uid='".$who."' AND tid='".$uid."')"); if($res) { if(automsgs($who)) { $msg = "".getnick_uid($uid)." te-a sters din lista lui de prieteni[br/][i]P.S.:acesta este un pm automat,va rugam sa nu raspundeti la el![/i]"; echo pmautomat($msg, $who); } echo "\"o\"/$tnick sters din lista de prieteni
"; }else{ echo "\"x\"/Nu poti sterge pe $tnick din lista ta de prieteni
"; } } echo "\"*\"/"; echo "Prim"; echo "

"; } //////////////////////////////////////////Update buddy message else if($action=="upbmsg") { addonline(getuid_sid($sid),"Seteaza Status",""); $img = $_POST["img"]; $bmsg = $_POST["bmsg"]; $mesaj = "$img$bmsg"; echo ""; echo "

"; //$uid = getuid_sid($sid); $res = mysql_query("UPDATE lib3rtymrc_users SET budmsg='".$mesaj."' WHERE id='".$uid."'"); if($res) { echo "\"o\"/Status setat cu succes
"; }else{ echo "\"x\"/Nu poti actualiza Statustul
"; } echo "
"; echo "\"*\"/"; echo "Prim"; echo "

"; echo "
"; } //////////////////////////////////////////Select Avatar else if($action=="upav") { addonline(getuid_sid($sid),"Seteaza Avatar",""); $avid = $_GET["avid"]; echo ""; echo "

"; //$uid = getuid_sid($sid); $avlnk = mysql_fetch_array(mysql_query("SELECT avlink FROM lib3rtymrc_avatars WHERE id='".$avid."'")); $res = mysql_query("UPDATE lib3rtymrc_users SET avatar='".$avlnk[0]."' WHERE id='".$uid."'"); if($res) { echo "\"o\"/Avatar Selectat
"; }else{ echo "\"x\"/Eroare in baza de date!
"; } echo "
"; echo "\"*\"/"; echo "Prim"; echo "

"; echo "
"; } //////////////////////////////////////////Select Avatar else if($action=="upcm") { addonline(getuid_sid($sid),"Seteaza chef chat",""); $cmid = $_GET["cmid"]; echo ""; echo "

"; //$uid = getuid_sid($sid); $res = mysql_query("UPDATE lib3rtymrc_users SET chmood='".$cmid."' WHERE id='".$uid."'"); if($res) { echo "\"o\"/Chef selectat
"; }else{ echo "\"x\"/Eroare in baza de date!
"; } echo "
"; echo ""; echo "Camera chat
"; echo ""; echo "Meniu chat

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

"; echo "
"; } else if($action=="automsgson") { echo ""; echo "

"; $ncl = mysql_query("UPDATE lib3rtymrc_users SET automsgs='1' WHERE id='".$uid."'"); echo "\"O\"/Mesaje automate activate cu succes
"; echo "

"; echo "

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

"; echo "
"; } else if($action=="automsgsoff") { echo ""; echo "

"; $ncl = mysql_query("UPDATE lib3rtymrc_users SET automsgs='0' WHERE id='".$uid."'"); echo "\"O\"/Mesaje automate dezactivate cu succes
"; echo "

"; echo "

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

"; echo "
"; } /////////////////////////////////////////////////////// /// claudiawap.net /// /// Acest script este modificat de: /// /// RaZvy /// /// By SyrAng3l72 /// /// RaZvan_BoSS_2305@yahoo.com /// /// admin@lib3ty.com /// /////////////////////////////////////////////////////// //////////////////////////////////////////Give GPs else if($action=="givegp") { addonline(getuid_sid($sid),"Adauga plusuri joc",""); $who = $_GET["who"]; $ptg = $_POST["ptg"]; echo ""; echo "

"; //$uid = getuid_sid($sid); $gpsf = mysql_fetch_array(mysql_query("SELECT gplus FROM lib3rtymrc_users WHERE id='".$uid."'")); $gpst = mysql_fetch_array(mysql_query("SELECT gplus FROM lib3rtymrc_users WHERE id='".$who."'")); if($gpsf[0]>=$ptg){ $gpsf = $gpsf[0]-$ptg; $gpst = $gpst[0]+$ptg; $res = mysql_query("UPDATE lib3rtymrc_users SET gplus='".$gpst."' WHERE id='".$who."'"); if($res) { $res = mysql_query("UPDATE lib3rtymrc_users SET gplus='".$gpsf."' WHERE id='".$uid."'"); echo "\"o\"/Plusuri joc actualizate cu succes
"; }else{ echo "\"x\"/Eroare in baza de date!
"; } }else{ echo "\"x\"/Nu ai destule plusuri joc pentru a da altcuiva
"; } echo "
"; echo "\"*\"/"; echo "Prim"; echo "

"; echo "
"; } //////////////////// add club else if($action=="addcl") { addonline(getuid_sid($sid),"Adauga Club",""); $clnm = trim($_POST["clnm"]); $clnm = str_replace("$", "", $clnm); $clds = trim($_POST["clds"]); $clds = str_replace("$", "", $clds); $clrl = trim($_POST["clrl"]); $clrl = str_replace("$", "", $clrl); $cllg = trim($_POST["cllg"]); $cllg = str_replace("$", "", $cllg); echo ""; echo "

"; $uid = getuid_sid($sid); if(getplusses($uid)>=500) { $noi = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM lib3rtymrc_clubs WHERE owner='".$uid."'")); if($noi[0]<3) { if(($clnm=="")||($clds=="")||($clrl=="")) { echo "\"X\"/Verifica daca ai completat, nume club, descriere si reguli"; }else{ $nmex = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM lib3rtymrc_clubs WHERE name LIKE '".$clnm."'")); if($nmex[0]>0) { echo "\"X\"/Nume club deja exista"; }else{ $res = mysql_query("INSERT INTO lib3rtymrc_clubs SET name='".$clnm."', owner='".$uid."', description='".$clds."', rules='".$clrl."', logo='".$cllg."', plusses='0', created='".time()."'"); if($res) { $clid = mysql_fetch_array(mysql_query("SELECT id FROM lib3rtymrc_clubs WHERE owner='".$uid."' AND name='".$clnm."'")); echo "\"O\"/Felicitari, ai propriul club, propriile reguli, propriul mesaj de bun venit, camera de chat, anunturi, forum si 50 de puncte club"; mysql_query("INSERT INTO lib3rtymrc_clubmembers SET uid='".$uid."', clid='".$clid[0]."', accepted='1', points='50', joined='".time()."'"); //$ups = getplusses($uid); //$ups += 5; //mysql_query("UPDATE lib3rtymrc_users SET plusses='".$ups."' WHERE id='".$uid."'"); $fnm = $clnm; $cnm = $clnm; mysql_query("INSERT INTO lib3rtymrc_forums SET name='".$fnm."', position='0', cid='0', clubid='".$clid[0]."'"); mysql_query("INSERT INTO lib3rtymrc_rooms SET name='".$cnm."', pass='', static='1', mage='0', chposts='0', perms='0', censord='0', freaky='0', lastmsg='".time()."', clubid='".$clid[0]."'"); }else{ echo "\"X\"/Eroare in baza de date!"; } } } }else{ echo "\"X\"/Ai deja 3 cluburi"; } }else{ echo "\"X\"/Nu mai poti adauga alt club"; } echo "

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

"; echo "
"; } //////////////////////////////////////////Give GPs else if($action=="batp") { addonline(getuid_sid($sid),"Da plusuri joc",""); $who = $_GET["who"]; $ptg = $_POST["ptbp"]; $giv = $_POST["giv"]; echo ""; echo "

"; //$uid = getuid_sid($sid); $judg = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM lib3rtymrc_judges WHERE uid='".getuid_sid($sid)."'")); $gpst = mysql_fetch_array(mysql_query("SELECT battlep FROM lib3rtymrc_users WHERE id='".$who."'")); if(ismod(getuid_sid($sid))||$judg[0]>0) { if ($giv=="1") { $gpst = $gpst[0]+$ptg; }else{ $gpst = $gpst[0]-$ptg; if($gpst<0)$gpst=0; } $res = mysql_query("UPDATE lib3rtymrc_users SET battlep='".$gpst."' WHERE id='".$who."'"); if($res) { $vnick = getnick_uid($who); if ($giv=="1") { $ms1 = " Aduse $ptg puncte la "; }else{ $ms1 = " Retrase $ptg puncte de la "; } mysql_query("INSERT INTO lib3rtymrc_mlog SET action='bpoints', details='".getnick_uid(getuid_sid($sid))." $ms1 $vnick', actdt='".time()."'"); echo "\"o\"/Puncte batalie actualizate cu succes
"; }else{ echo "\"x\"/Eroare in baza de date!
"; } }else{ echo "\"x\"/Nu poti face asta
"; } echo "
"; echo "\"*\"/"; echo "Prim"; echo "

"; echo "
"; } /////////////////////////////Add remove from ignoire list else if($action=="ign") { addonline(getuid_sid($sid),"Actualizeaza lista de ignorati",""); $todo = $_GET["todo"]; $who = $_GET["who"]; echo ""; echo "

"; //$uid = getuid_sid($sid); $tnick = getnick_uid($who); if($todo=="add") { if(ignoreres($uid, $who)==1) { $res= mysql_query("INSERT INTO lib3rtymrc_ignore SET name='".$uid."', target='".$who."'"); if($res) { echo "\"o\"/$tnick a fost adaugat cu succes in lista de ignorati
"; }else{ echo "\"x\"/Eroare actualizand baza de date
"; } }else{ echo "\"x\"/Nu poti aduce pe $tnick in lista de ignorati
"; } }else if($todo="del") { if(ignoreres($uid, $who)==2) { $res= mysql_query("DELETE FROM lib3rtymrc_ignore WHERE name='".$uid."' AND target='".$who."'"); if($res) { echo "\"o\"/$tnick a fost sters din lista de ignorati
"; }else{ echo "\"x\"/Eroare actualizand baza de date
"; } }else{ echo "\"x\"/$tnick nu este ignorat de tine
"; } } echo "
"; echo "Lista ignorati
"; echo "\"*\"/"; echo "Prim"; echo "

"; echo "
"; } //////////////////////////////////////////Update profile else if($action=="uprof") { addonline(getuid_sid($sid),"Actualizeaza setari",""); $savat = $_POST["savat"]; $semail = $_POST["semail"]; $usite = $_POST["usite"]; $ubday = $_POST["ubday"]; $uloc = $_POST["uloc"]; $usig = $_POST["usig"]; $usex = $_POST["usex"]; echo ""; echo "

"; //$uid = getuid_sid($sid); $res = mysql_query("UPDATE lib3rtymrc_users SET avatar='".$savat."', email='".$semail."', site='".$usite."', birthday='".$ubday."', location='".$uloc."', signature='".$usig."', sex='".$usex."' WHERE id='".$uid."'"); if($res) { echo "\"o\"/Profilul tau a fost actualizat cu succes
"; }else{ echo "\"x\"/Eroare in actualiarea profilului
"; } echo "
\"*\"/"; echo "Prim"; echo "

"; } //////////////////////////////////////////Update profile else if($action=="shsml") { addonline(getuid_sid($sid),"Actualizare emotii",""); $act = $_GET["act"]; $acts = ($act=="dis" ? 0 : 1); echo ""; echo "

"; //$uid = getuid_sid($sid); $res = mysql_query("UPDATE lib3rtymrc_users SET hvia='".$acts."' WHERE id='".$uid."'"); if($res) { echo "\"o\"/Vizibilitate emotii actualizata cu succes
"; echo ""; echo "Setari
"; }else{ echo "\"x\"/Eroare in actualiarea profilului
"; } echo "
\"*\"/"; echo "Prim"; echo "

"; } //////////////////////////////////////////Chef la conectati else if($action=="chef") { addonline(getuid_sid($sid),"Actualizare Chef",""); $act = $_GET["act"]; $acts = ($act=="dis" ? 0 : 1); echo ""; echo "

"; //$uid = getuid_sid($sid); $res = mysql_query("UPDATE lib3rtymrc_users SET chef='".$acts."' WHERE id='".$uid."'"); if($res) { echo "\"o\"/Chef setat cu succes in lista de conectati
"; echo ""; echo "Setari
"; }else{ echo "\"x\"/Eroare in actualiarea profilului
"; } echo "
\"*\"/"; echo "Prim"; echo "

"; } //////////////////////////////////////////seteaza avatar else if($action=="avatar") { addonline(getuid_sid($sid),"Actualizare Avatar",""); $act = $_GET["act"]; $acts = ($act=="dis" ? 0 : 1); echo ""; echo "

"; $uid = getuid_sid($sid); $res = mysql_query("UPDATE lib3rtymrc_users SET setavatar='".$acts."' WHERE id='".$uid."'"); if($res) { echo "\"o\"/Avatar actualizat cu succes
"; echo ""; echo "Setari
"; }else{ echo "\"x\"/Eroare in actualiarea profilului
"; } echo "
\"*\"/"; echo "Prim"; echo "

"; } //////////////////////////////////////////seteaza alerte numai pentru prieteni else if($action=="alerteprieteni") { addonline(getuid_sid($sid),"Actualizare Alerte",""); $act = $_GET["act"]; $acts = ($act=="dis" ? 0 : 1); echo ""; echo "

"; $uid = getuid_sid($sid); $res = mysql_query("UPDATE lib3rtymrc_users SET alerte='".$acts."' WHERE id='".$uid."'"); if($res) { echo "\"o\"/Alerte activate doar pentru prieteni
"; echo ""; echo "Setari
"; }else{ echo "\"x\"/Eroare in actualiarea alertelor
"; } echo "
\"*\"/"; echo "Prim"; echo "

"; } //////////////////////////////////////////alerte else if($action=="alerte") { addonline(getuid_sid($sid),"Actualizare alerte",""); $popmsg = $_POST["popmsg"]; $uid = getuid_sid($sid); echo ""; echo "

"; //$uid = getuid_sid($sid); $alerte = mysql_query("UPDATE lib3rtymrc_users SET popmsg='".$popmsg."' WHERE id='".$uid."'"); if($alerte) { echo "\"o\"/Alerte setate cu succes
"; echo ""; echo "Setari
"; }else{ echo "\"x\"/Eroare in setarea alertelor
"; } echo "
\"*\"/"; echo "Prim"; echo "

"; } //////////////////////////////////////////set pm else if($action=="setpm") { addonline(getuid_sid($sid),"Actualizare PM-uri",""); $pmmsg = $_POST["pmmsg"]; $uid = getuid_sid($sid); echo ""; echo "

"; //$uid = getuid_sid($sid); $alerte = mysql_query("UPDATE lib3rtymrc_users SET pmmsg='".$pmmsg."' WHERE id='".$uid."'"); if($alerte) { echo "\"o\"/PM-uri setate cu succes
"; echo ""; echo "Setari
"; }else{ echo "\"x\"/Eroare in setarea Pm-urilor
"; } echo "
\"*\"/"; echo "Prim"; echo "

"; } //////////////////////////////////////////Change Password else if($action=="upwd") { addonline(getuid_sid($sid),"Schimba Parola",""); $opwd = $_POST["opwd"]; $npwd = $_POST["npwd"]; $cpwd = $_POST["cpwd"]; $pwd = mysql_fetch_array(mysql_query("SELECT pass FROM lib3rtymrc_users WHERE id='".$uid."'")); $epwd = md5($opwd); echo ""; echo "

"; //$uid = getuid_sid($sid); if($npwd!=$cpwd) { echo "\"x\"/Parolele nu coincid
"; }else if($epwd!=$pwd[0]){ echo "\"x\"/Vechea parola este incorecta
"; }else if((strlen($npwd)<4) || (strlen($npwd)>15)){ echo "\"x\"/Parola trebuie sa contina intre 4 si 15 caractere
"; }else{ $pwd = md5($npwd); $res = mysql_query("UPDATE lib3rtymrc_users SET pass='".$pwd."' WHERE id='".$uid."'"); if($res) { echo "\"o\"/Parola Schimbata cu succes
"; }else{ echo "\"x\"/Eroare in baza de date
"; } } echo "
\"\"/Prim"; echo "

"; } else{ echo ""; echo "

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

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

"; } ?>