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

"; echo "Nu esti Proprietar
"; echo "
"; echo "Prim"; echo "

"; echo ""; echo ""; exit(); } if(islogged($sid)==false) { echo ""; echo "

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

"; echo "Autentificare"; 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, 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."'"); } /// addonline(getuid_sid($sid),"Comenzi Proprietar",""); if($action=="general") { $xtm = $_POST["sesp"]; $fmsg = $_POST["fmsg"]; $areg = $_POST["areg"]; $vldtn = $_POST["vldtn"]; $pmaf = $_POST["pmaf"]; $liveaf = $_POST["liveaf"]; $mlive = $_POST["mlive"]; $fvw = $_POST["fvw"]; if($areg=="d") { $arv = 0; }else{ $arv = 1; } if($vldtn=="d") { $valid = 0; }else{ $valid = 1; } if($mlive=="d") { $liveon = 0; }else{ $liveon = 1; } echo ""; echo "$sitte"; echo ""; echo ""; echo ""; echo "

"; $res = mysql_query("UPDATE lib3rtymrc_settings SET value='".$fmsg."' WHERE name='4ummsg'"); if($res) { echo "\"O\"/Mesaj Prim actualizat
"; }else{ echo "\"X\"/Eroare in actualizarea mesajului Prim
"; } $res = mysql_query("UPDATE lib3rtymrc_settings SET value='".$xtm."' WHERE name='sesxp'"); if($res) { echo "\"O\"/Perioada sesiune actualizata cu succes
"; }else{ echo "\"X\"/Eroare in actualizarea perioadei sesiunii
"; } $res = mysql_query("UPDATE lib3rtymrc_settings SET value='".$pmaf."' WHERE name='pmaf'"); if($res) { echo "\"O\"/PM antiflood este de $pmaf secunde
"; }else{ echo "\"X\"/Eroare in actualizarea valorii PM antiflood
"; } $res = mysql_query("UPDATE lib3rtymrc_settings SET value='".$liveaf."' WHERE name='liveaf'"); if($res) { echo "\"O\"/Mesaj live antiflood este de $liveaf secunde
"; }else{ echo "\"X\"/Eroare in actualizarea valorii Mesaj Live antiflood
"; } $res = mysql_query("UPDATE lib3rtymrc_settings SET value='".$arv."' WHERE name='reg'"); if($res) { echo "\"O\"/Inregistrari setate cu succes
"; }else{ echo "\"X\"/Eroare actualizand inregistrarile
"; } $res = mysql_query("UPDATE lib3rtymrc_settings SET value='".$fvw."' WHERE name='fview'"); if($res) { echo "\"O\"/Vizualizare forumuri actualizate cu succes
"; }else{ echo "\"X\"/Eroare actualizand vizualizarea forumurilor
"; } $res = mysql_query("UPDATE lib3rtymrc_settings SET value='".$valid."' WHERE name='vldtn'"); if($res) { echo "\"O\"/Validari setate cu succes
"; }else{ echo "\"X\"/Eroare in actualizarea validarilor
"; } $res = mysql_query("UPDATE lib3rtymrc_settings SET value='".$liveon."' WHERE name='mlive'"); if($res) { echo "\"O\"/Mesaje live setate cu succes
"; }else{ echo "\"X\"/Eroare in actualizarea Mesajelor Live
"; } echo "
"; echo ""; echo "Editare setari generale
"; echo "\"*\"/"; echo "Administrare
"; echo "\"*\"/"; echo "Prim"; echo "

"; } ////////////////////////// parole user else if($action=="parole") { $moderator = $_POST["moderator"]; $admin = $_POST["admin"]; $adminsef = $_POST["adminsef"]; echo ""; echo "$sitte"; echo ""; echo ""; echo ""; echo "

"; $res = mysql_query("UPDATE lib3rtymrc_settings SET value='".$moderator."' WHERE name='moderator'"); if($res) { echo "\"O\"/Parola moderatori actualizata cu succes
"; }else{ echo "\"X\"/Eroare in Baza de date
"; } $res = mysql_query("UPDATE lib3rtymrc_settings SET value='".$admin."' WHERE name='admin'"); if($res) { echo "\"O\"/Parola admini actualizata cu succes
"; }else{ echo "\"X\"/Eroare in Baza de date
"; } $res = mysql_query("UPDATE lib3rtymrc_settings SET value='".$adminsef."' WHERE name='adminsef'"); if($res) { echo "\"O\"/Parola admini sefi actualizata cu succes
"; }else{ echo "\"X\"/Eroare in Baza de date
"; } echo "
"; echo ""; echo "Scimba Parole
"; echo "\"*\"/"; echo "Administrare
"; echo "\"*\"/"; echo "Prim"; echo "

"; } ///////////////////////////// alerte on else if($action=="popenable") { $who = $_GET["who"]; echo ""; echo "$sitte"; echo ""; echo ""; echo ""; echo "

"; $ncl = mysql_query("UPDATE lib3rtymrc_users SET popmsg='1' WHERE id='".$who."'"); echo "\"o\"/Alerte Activate cu succes
"; echo "

"; echo "

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

"; echo ""; } /////// sterge pm-uri else if($action=="stergepm") { $who = $_GET["who"]; $unick = getnick_uid($who); echo ""; echo "$sitte"; echo ""; echo ""; echo ""; echo "

"; $del = mysql_query("DELETE FROM lib3rtymrc_private WHERE byuid='".$who."'"); if($del) { echo "Toate PM-urile trimise de $unick au fost sterse"; }else{ echo "Nu poti sterge PM-ul pentru moment"; } echo "

"; echo "

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

"; echo ""; } ////////////////////////////// alerte off else if($action=="popdisable") { $who = $_GET["who"]; echo ""; echo "$sitte"; echo ""; echo ""; echo ""; echo "

"; $ncl = mysql_query("UPDATE lib3rtymrc_users SET popmsg='0' WHERE id='".$who."'"); echo "\"o\"/Alerte dezactivate cu succes.
"; echo "

"; echo "

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

"; echo ""; } //////////////////////////delete categorile download////////////////////////// else if($action=="deldownload") { addonline(getuid_sid($sid),"Comenzi proprietar",""); echo ""; echo "$sitte"; echo ""; echo ""; echo ""; echo "

"; $id=$_GET["id"]; $sitena = mysql_query("SELECT name FROM lib3rtymrc_descarcari WHERE id='".$id."'"); $site = mysql_fetch_array($sitena); $site=$site[0]; $res = mysql_query("DELETE FROM lib3rtymrc_descarcari WHERE id='".$id."'"); if($res) { echo "$site
\"O\"/Categorie download stearsa cu succes
"; }else{ echo "\"X\"/Nu poti $site
"; } echo "
"; echo "

"; echo "Categorii descarcari
"; echo "\"*\"/"; echo "Comenzi proprietar
"; echo "\"\"/Prim"; echo "

"; } else if($action=="deldownload1") { addonline(getuid_sid($sid),"Comenzi proprietar",""); echo ""; echo "$sitte"; echo ""; echo ""; echo ""; echo "

"; $id=$_GET["id"]; $sitena = mysql_query("SELECT name FROM lib3rtymrc_descarcari1 WHERE id='".$id."'"); $site = mysql_fetch_array($sitena); $site=$site[0]; $res = mysql_query("DELETE FROM lib3rtymrc_descarcari1 WHERE id='".$id."'"); if($res) { echo "$site
\"O\"/Categorie download stearsa cu succes
"; }else{ echo "\"X\"/Nu poti $site
"; } echo "
"; echo "

"; echo "Categorii descarcari
"; echo "\"*\"/"; echo "Comenzi proprietar
"; echo "\"\"/Prim"; echo "

"; } else if($action=="deldownload2") { addonline(getuid_sid($sid),"Comenzi proprietar",""); echo ""; echo "$sitte"; echo ""; echo ""; echo ""; echo "

"; $id=$_GET["id"]; $sitena = mysql_query("SELECT name FROM lib3rtymrc_descarcari2 WHERE id='".$id."'"); $site = mysql_fetch_array($sitena); $site=$site[0]; $res = mysql_query("DELETE FROM lib3rtymrc_descarcari2 WHERE id='".$id."'"); if($res) { echo "$site
\"O\"/Categorie download stearsa cu succes
"; }else{ echo "\"X\"/Nu poti $site
"; } echo "
"; echo "

"; echo "Categorii descarcari
"; echo "\"*\"/"; echo "Comenzi proprietar
"; echo "\"\"/Prim"; echo "

"; } else if($action=="deldownload3") { addonline(getuid_sid($sid),"Comenzi proprietar",""); echo ""; echo "$sitte"; echo ""; echo ""; echo ""; echo "

"; $id=$_GET["id"]; $sitena = mysql_query("SELECT name FROM lib3rtymrc_descarcari3 WHERE id='".$id."'"); $site = mysql_fetch_array($sitena); $site=$site[0]; $res = mysql_query("DELETE FROM lib3rtymrc_descarcari3 WHERE id='".$id."'"); if($res) { echo "$site
\"O\"/Categorie download stearsa cu succes
"; }else{ echo "\"X\"/Nu poti $site
"; } echo "
"; echo "

"; echo "Categorii descarcari
"; echo "\"*\"/"; echo "Comenzi proprietar
"; echo "\"\"/Prim"; echo "

"; } ////////////////////////////// manage nicks else if($action=="addnick") { echo ""; echo "$sitte"; echo ""; echo ""; echo ""; echo "

"; $nick = $_POST["nick"]; $level = $_POST["level"]; if($level=='1') { $status ="Rezervat"; }else{ $status = "Blocat"; } echo "$nick - $status"; echo "
"; $res = mysql_query("INSERT INTO lib3rtymrc_nicks SET name='".$nick."', nicklvl='".$level."'"); if($res) { echo mysql_error(); echo "\"O\"/$nick adaugat cu succes in lista $status
"; }else{ echo "\"X\"/Eroare nu poti sterge $nick din $status
"; } echo "
"; echo "Optiuni nume
"; echo "\"*\"/"; echo "Comenzi proprietar
"; echo "\"*\"/"; echo "Prim"; echo "

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

"; $id=$_GET["id"]; $sitena = mysql_query("SELECT name, nicklvl FROM lib3rtymrc_nicks WHERE id='".$id."'"); $site = mysql_fetch_array($sitena); $nick=$site[0]; if($site[1]=='1') { $status ="Rezervat"; }else{ $status = "Blocat"; } $res = mysql_query("DELETE FROM lib3rtymrc_nicks WHERE id='".$id."'"); if($res) { echo "\"O\"/ $nick Sters cu succes din lista $status
"; }else{ echo "\"X\"/Eroare din baza de datenu poti sterge $nick
"; } echo "
"; echo "
"; echo "Optiuni nume
"; echo "\"*\"/"; echo "Comenzi proprietar
"; echo "\"*\"/"; echo "Prim"; echo "

"; echo ""; } //////////////////////////add blocked site////////////////////////// else if($action=="addsite") { addonline(getuid_sid($sid),"Comenzi proprietar",""); echo ""; echo "$sitte"; echo ""; echo ""; echo ""; echo "

"; $site = $_POST["site"]; echo $site; $res = mysql_query("INSERT INTO lib3rtymrc_blockedsite SET site='".$site."'"); if($res) { echo mysql_error(); echo "
\"O\"/Adaugat cu succes la siteuri blocate
"; }else{ echo "\"X\"/Eroare in adaugarea siteului
"; } echo "
"; echo "Siteuri blocate
"; echo "\"*\"/"; echo "Comenzi proprietar
"; echo "\"\"/Prim"; echo "

"; } //////////////////////////delete blocked site////////////////////////// else if($action=="delsite") { addonline(getuid_sid($sid),"Comenzi proprietar",""); echo ""; echo "$sitte"; echo ""; echo ""; echo ""; echo "

"; $id=$_GET["id"]; $sitena = mysql_query("SELECT site FROM lib3rtymrc_blockedsite WHERE id='".$id."'"); $site = mysql_fetch_array($sitena); $site=$site[0]; $res = mysql_query("DELETE FROM lib3rtymrc_blockedsite WHERE id='".$id."'"); if($res) { echo "$site
\"O\"/Sters de la siteuri blocate
"; }else{ echo "\"X\"/Nu poti sterge $site
"; } echo "
"; echo "Siteuri blocate
"; echo "\"*\"/"; echo "Comenzi proprietar
"; echo "\"\"/Prim"; echo "

"; } //////////////////////////add blocked spam////////////////////////// else if($action=="addspam") { addonline(getuid_sid($sid),"Comenzi proprietar",""); echo ""; echo "$sitte"; echo ""; echo ""; echo ""; echo "

"; $site = $_POST["site"]; echo $site; $res = mysql_query("INSERT INTO lib3rtymrc_blockedspam SET spam='".$site."'"); if($res) { echo mysql_error(); echo "
\"O\"/Cuvant adaugat cu succes in lista de filtre anti-spam
"; }else{ echo "\"X\"/Eroare in baza de date
"; } echo "
"; echo "Filtre anti-spam
"; echo "\"*\"/"; echo "Comenzi proprietar
"; echo "\"\"/Prim"; echo "

"; } //////////////////////////delete blocked site////////////////////////// else if($action=="delspam") { addonline(getuid_sid($sid),"Comenzi proprietar",""); echo ""; echo "$sitte"; echo ""; echo ""; echo ""; echo "

"; $id=$_GET["id"]; $sitena = mysql_query("SELECT spam FROM lib3rtymrc_blockedspam WHERE id='".$id."'"); $site = mysql_fetch_array($sitena); $site=$site[0]; $res = mysql_query("DELETE FROM lib3rtymrc_blockedspam WHERE id='".$id."'"); if($res) { echo "$site
\"O\"/Sters de la filtre spam
"; }else{ echo "\"X\"/Nu poti sterge $site
"; } echo "
"; echo "Filtre anti-spam
"; echo "\"*\"/"; echo "Comenzi proprietar
"; echo "\"\"/Prim"; echo "

"; } //////////////////////////add blocked browser////////////////////////// else if($action=="addbrowser") { addonline(getuid_sid($sid),"Comenzi proprietar",""); echo ""; echo "$sitte"; echo ""; echo ""; echo ""; echo "

"; $site = $_POST["site"]; echo $site; $res = mysql_query("INSERT INTO lib3rtymrc_blockbrowser SET browser='".$site."'"); if($res) { echo mysql_error(); echo "
\"O\"/Browser blocat
"; }else{ echo "
\"X\"/Eroare in adaugarea browserului
"; } echo "
"; echo "Browsere blocate
"; echo "\"*\"/"; echo "Comenzi proprietar
"; echo "\"\"/Prim"; echo "

"; } //////////////////////////delete blocked browser////////////////////////// else if($action=="delbrowser") { addonline(getuid_sid($sid),"Comenzi proprietar",""); echo ""; echo "$sitte"; echo ""; echo ""; echo ""; echo "

"; $id=$_GET["id"]; $sitena = mysql_query("SELECT browser FROM lib3rtymrc_blockbrowser WHERE id='".$id."'"); $site = mysql_fetch_array($sitena); $site=$site[0]; $res = mysql_query("DELETE FROM lib3rtymrc_blockbrowser WHERE id='".$id."'"); if($res) { echo "$site
\"O\"/Sters de la browsere blocate
"; }else{ echo "\"X\"/Nu poti sterge $site
"; } echo "
"; echo "Browsere blocate
"; echo "\"*\"/"; echo "Comenzi proprietar
"; echo "\"\"/Prim"; echo "

"; } //////////////////////////add blocked browser trivia////////////////////////// else if($action=="addtrivia") { addonline(getuid_sid($sid),"Comenzi proprietar",""); echo ""; echo "$sitte"; echo ""; echo ""; echo ""; echo "

"; $site = $_POST["site"]; echo $site; $res = mysql_query("INSERT INTO lib3rtymrc_pc SET browser='".$site."'"); if($res) { echo mysql_error(); echo "
\"O\"/Browser blocat pe trivia
"; }else{ echo "
\"X\"/Eroare in baza de date
"; } echo "
"; echo "Browsere blocate pe trivia
"; echo "\"*\"/"; echo "Comenzi proprietar
"; echo "\"\"/Prim"; echo "

"; } //////////////////////////delete blocked browser trivia////////////////////////// else if($action=="deltrivia") { addonline(getuid_sid($sid),"Comenzi proprietar",""); echo ""; echo "$sitte"; echo ""; echo ""; echo ""; echo "

"; $id=$_GET["id"]; $sitena = mysql_query("SELECT browser FROM lib3rtymrc_pc WHERE id='".$id."'"); $site = mysql_fetch_array($sitena); $site=$site[0]; $res = mysql_query("DELETE FROM lib3rtymrc_pc WHERE id='".$id."'"); if($res) { echo "$site
\"O\"/Sters de la browsere blocate pe trivia
"; }else{ echo "\"X\"/Nu poti sterge $site
"; } echo "
"; echo "Browsere blocate pe trivia
"; echo "\"*\"/"; echo "Comenzi proprietar
"; echo "\"\"/Prim"; echo "

"; } //////////////////////////add blocked ip////////////////////////// else if($action=="addip") { addonline(getuid_sid($sid),"Comenzi proprietar",""); echo ""; echo "$sitte"; echo ""; echo ""; echo ""; echo "

"; $site = $_POST["site"]; echo $site; $res = mysql_query("INSERT INTO lib3rtymrc_blockedip SET ip='".$site."'"); if($res) { echo mysql_error(); echo "
\"O\"/IP blocat
"; }else{ echo "
\"X\"/Eroare in baza de date
"; } echo "
"; echo "IP-uri blocate
"; echo "\"*\"/"; echo "Comenzi proprietar
"; echo "\"\"/Prim"; echo "

"; } //////////////////////////adauga animal in magazin////////////////////////// else if($action=="addanimal") { addonline(getuid_sid($sid),"Comenzi proprietar",""); echo ""; echo "$sitte"; echo ""; echo ""; echo ""; echo "

"; $logo = $_POST["logo"]; $nume = $_POST["nume"]; $pret = $_POST["pret"]; echo "\"$nume\"/$nume
"; echo "Pret:$pret ++"; $res = mysql_query("INSERT INTO lib3rtymrc_magazin SET logo='".$logo."', nume='".$nume."', cost='".$pret."'"); if($res) { echo mysql_error(); echo "
\"O\"/Animal Adaugat cu succes in PetShop
"; }else{ echo "
\"X\"/Eroare in baza de date
"; } echo "
"; echo "Administrare Magazin
"; echo "\"*\"/"; echo "Comenzi proprietar
"; echo "\"\"/Prim"; echo "

"; } //////////////////////////delete animale////////////////////////// else if($action=="stergeanimale") { addonline(getuid_sid($sid),"Comenzi proprietar",""); echo ""; echo "$sitte"; echo ""; echo ""; echo ""; echo "

"; $id=$_GET["id"]; $res = mysql_query("DELETE FROM lib3rtymrc_magazin WHERE id='".$id."'"); if($res) { echo "$site
\"O\"/Animal sters
"; }else{ echo "\"X\"/Eroare in baza de date
"; } echo "
"; echo "Administrare Magazin
"; echo "\"*\"/"; echo "Comenzi proprietar
"; echo "\"\"/Prim"; echo "

"; } //////////////////////////delete blocked ip////////////////////////// else if($action=="delip") { addonline(getuid_sid($sid),"Comenzi proprietar",""); echo ""; echo "$sitte"; echo ""; echo ""; echo ""; echo "

"; $id=$_GET["id"]; $sitena = mysql_query("SELECT browser FROM lib3rtymrc_blockedip WHERE id='".$id."'"); $site = mysql_fetch_array($sitena); $site=$site[0]; $res = mysql_query("DELETE FROM lib3rtymrc_blockedip WHERE id='".$id."'"); if($res) { echo "$site
\"O\"/Sters de la ip-uri blocate
"; }else{ echo "\"X\"/Nu poti sterge $site
"; } echo "
"; echo "IP-uri blocate
"; echo "\"*\"/"; echo "Comenzi proprietar
"; echo "\"\"/Prim"; echo "

"; } //////////////////////////Add moderating else if($action=="addfmod") { $mid = $_POST["mid"]; $fid = $_POST["fid"]; echo ""; echo "$sitte"; echo ""; echo ""; echo ""; echo "

"; $res = mysql_query("INSERT INTO lib3rtymrc_modr SET name='".$mid."', forum='".$fid."'"); if($res) { echo "\"O\"/Privilegii moderator actualizate
"; }else{ echo "\"X\"/Eroare in baza de date
"; } echo "

"; echo "Configureaza moderatori
"; echo "\"*\"/"; echo "Administrare
"; echo "\"*\"/"; echo "Prim"; echo "

"; } else if($action=="delclub") { $clid = $_GET["clid"]; echo ""; echo "$sitte"; echo ""; echo ""; echo ""; echo "

"; $res = deleteClub($clid); if($res) { echo "\"O\"/Club sters
"; }else{ echo "\"X\"/Eroare in baza de date
"; } echo "

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

"; } else if($action=="gccp") { $clid = $_GET["clid"]; $plss = $_POST["plss"]; echo ""; echo "$sitte"; echo ""; echo ""; echo ""; echo "

"; $nop = mysql_fetch_array(mysql_query("SELECT plusses FROM lib3rtymrc_clubs WHERE id='".$clid."'")); $newpl = $nop[0] + $plss; $res = mysql_query("UPDATE lib3rtymrc_clubs SET plusses='".$newpl."' WHERE id='".$clid."'"); if($res) { echo "\"O\"/Plusuri club actualizate
"; }else{ echo "\"X\"/Eroare in baza de date
"; } echo "

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

"; } else if($action=="delfmod") { $mid = $_POST["mid"]; $fid = $_POST["fid"]; echo ""; echo "$sitte"; echo ""; echo ""; echo ""; echo "

"; $res = mysql_query("DELETE FROM lib3rtymrc_modr WHERE name='".$mid."' AND forum='".$fid."'"); if($res) { echo "\"O\"/Privilegii moderator sterse
"; }else{ echo "\"X\"/Eroare in baza de date
"; } echo "

"; echo "Configureaza moderatori
"; echo "\"*\"/"; echo "Administrare
"; echo "\"*\"/"; echo "Prim"; echo "

"; } /////////////////////////////////////// else if($action=="addcat") { $fcname = $_POST["fcname"]; $fcpos = $_POST["fcpos"]; echo ""; echo "$sitte"; echo ""; echo ""; echo ""; echo "

"; echo $fcname; echo "
"; $res = mysql_query("INSERT INTO lib3rtymrc_fcats SET name='".$fcname."', position='".$fcpos."'"); if($res) { echo "\"O\"/Categorie forum adaugata cu succes"; }else{ echo "\"X\"/Eroare in adugarea categoriei de forum"; } echo "

"; echo "Categorii forum
"; echo "\"*\"/"; echo "Administrare
"; echo "\"*\"/"; echo "Prim"; echo "

"; } /////////////////////////////////////// else if($action=="adddescarcari") { $fcname = $_POST["fcname"]; echo ""; echo "$sitte"; echo ""; echo ""; echo ""; echo "

"; echo $fcname; echo "
"; $res = mysql_query("INSERT INTO lib3rtymrc_descarcari SET name='".$fcname."'"); if($res) { echo "\"O\"/Categorie descarcari adaugata cu succes"; }else{ echo "\"X\"/Eroare in baza de date"; } echo "

"; echo "Categorii descarcari
"; echo "\"*\"/"; echo "Administrare
"; echo "\"*\"/"; echo "Prim"; echo "

"; } else if($action=="adddescarcari1") { $fcname = $_POST["fcname"]; echo ""; echo "$sitte"; echo ""; echo ""; echo ""; echo "

"; echo $fcname; echo "
"; $res = mysql_query("INSERT INTO lib3rtymrc_descarcari1 SET name='".$fcname."'"); if($res) { echo "\"O\"/Categorie descarcari adaugata cu succes"; }else{ echo "\"X\"/Eroare in baza de date"; } echo "

"; echo "Categorii descarcari
"; echo "\"*\"/"; echo "Administrare
"; echo "\"*\"/"; echo "Prim"; echo "

"; } else if($action=="adddescarcari2") { $fcname = $_POST["fcname"]; echo ""; echo "$sitte"; echo ""; echo ""; echo ""; echo "

"; echo $fcname; echo "
"; $res = mysql_query("INSERT INTO lib3rtymrc_descarcari2 SET name='".$fcname."'"); if($res) { echo "\"O\"/Categorie descarcari adaugata cu succes"; }else{ echo "\"X\"/Eroare in baza de date"; } echo "

"; echo "Categorii descarcari
"; echo "\"*\"/"; echo "Administrare
"; echo "\"*\"/"; echo "Prim"; echo "

"; } else if($action=="adddescarcari3") { $fcname = $_POST["fcname"]; echo ""; echo "$sitte"; echo ""; echo ""; echo ""; echo "

"; echo $fcname; echo "
"; $res = mysql_query("INSERT INTO lib3rtymrc_descarcari3 SET name='".$fcname."'"); if($res) { echo "\"O\"/Categorie descarcari adaugata cu succes"; }else{ echo "\"X\"/Eroare in baza de date"; } echo "

"; echo "Categorii descarcari
"; echo "\"*\"/"; echo "Administrare
"; echo "\"*\"/"; echo "Prim"; echo "

"; } else if($action=="addfrm") { $frname = $_POST["frname"]; $frpos = $_POST["frpos"]; $fcid = $_POST["fcid"]; echo ""; echo "$sitte"; echo ""; echo ""; echo ""; echo "

"; echo $frname; echo "
"; $res = mysql_query("INSERT INTO lib3rtymrc_forums SET name='".$frname."', position='".$frpos."', cid='".$fcid."'"); if($res) { echo "\"O\"/Forum adaugat cu succes"; }else{ echo "\"X\"/Eroare in adaugarea forumului "; } echo "

"; echo "Forumuri
"; echo "\"*\"/"; echo "Administrare
"; echo "\"*\"/"; echo "Prim"; echo "

"; } else if($action=="addsml") { $smlcde = $_POST["smlcde"]; $smlsrc = $_POST["smlsrc"]; echo ""; echo "$sitte"; echo ""; echo ""; echo ""; echo "

"; echo "
"; $res = mysql_query("INSERT INTO lib3rtymrc_smilies SET scode='".$smlcde."', imgsrc='".$smlsrc."', hidden='0'"); if($res) { echo "\"O\"/Emotie adaugata cu succes"; }else{ echo "\"X\"/Eroare in adaugarea emotiei"; } echo "

"; echo "Adauga alta emotie
"; echo "\"*\"/"; echo "Administrare
"; echo "\"*\"/"; echo "Prim"; echo "

"; } else if($action=="addavt") { $avtsrc = $_POST["avtsrc"]; echo ""; echo "$sitte"; echo ""; echo ""; echo ""; echo "

"; echo "
"; $res = mysql_query("INSERT INTO lib3rtymrc_avatars SET avlink='".$avtsrc."'"); if($res) { echo "\"O\"/Avatar adaugat cu succes"; }else{ echo "\"X\"/Eroare in adaugarea avatarului "; } echo "

"; echo "Adauga alt avatar
"; echo "\"*\"/"; echo "Administrare
"; echo "\"*\"/"; echo "Prim"; echo "

"; } else if($action=="addjdg") { $who = $_GET["who"]; echo ""; echo "$sitte"; echo ""; echo ""; echo ""; echo "

"; echo "
"; $res = mysql_query("INSERT INTO lib3rtymrc_judges SET uid='".$who."'"); if($res) { echo "\"O\"/Judecator adaugat cu succes"; }else{ echo "\"X\"/Eroare in adaugarea judecatorului "; } echo "

"; echo "Info utilizatori
"; echo "\"*\"/"; echo "Administrare
"; echo "\"*\"/"; echo "Prim"; echo "

"; } else if($action=="deljdg") { $who = $_GET["who"]; echo ""; echo "$sitte"; echo ""; echo ""; echo ""; echo "

"; echo "
"; $res = mysql_query("DELETE FROM lib3rtymrc_judges WHERE uid='".$who."'"); if($res) { echo "\"O\"/Judecator sters cu succes"; }else{ echo "\"X\"/Eroare in stergerea judecatorului "; } echo "

"; echo "Info utilizatori
"; echo "\"*\"/"; echo "Administrare
"; echo "\"*\"/"; echo "Prim"; echo "

"; } else if($action=="delsm") { $smid = $_GET["smid"]; echo ""; echo "$sitte"; echo ""; echo ""; echo ""; echo "

"; echo "
"; $scode = mysql_fetch_array(mysql_query("SELECT scode FROM lib3rtymrc_smilies WHERE id='".$smid."'")); $site = 'http://'. strtolower($sitte) .'/'; $itemowner = mysql_fetch_array(mysql_query("SELECT imgsrc FROM lib3rtymrc_smilies WHERE id='".$smid."'")); if (stristr($itemowner['imgsrc'], $site)) { $fname = str_replace($site, '../', $itemowner['imgsrc']); if (file_exists($fname) && is_file($fname)) { if(unlink($fname)){ mysql_query("INSERT INTO lib3rtymrc_mlog SET action='Emotie', details='".getnick_uid(getuid_sid($sid))." a sters emotia $scode[0] !', actdt='".time()."'"); mysql_query("DELETE FROM lib3rtymrc_smilies WHERE id='".$smid."'"); echo "\"O\"/Emotie stersa cu succes"; }else{ echo "\"X\"/Eroare in stergerea emotiei "; } } else{ echo "Emotie stearsa cu succes din database"; mysql_query("DELETE FROM lib3rtymrc_smilies WHERE id='".$smid."'"); mysql_query("INSERT INTO lib3rtymrc_mlog SET action='Emotie', details='".getnick_uid(getuid_sid($sid))." a sters emotia $scode[0] !', actdt='".time()."'"); } } echo "

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

"; } else if($action=="addchr") { $chrnm = $_POST["chrnm"]; $chrage = $_POST["chrage"]; $chrpst = $_POST["chrpst"]; $chrprm = $_POST["chrprm"]; $chrcns = $_POST["chrcns"]; $chrfun = $_POST["chrfun"]; echo ""; echo "$sitte"; echo ""; echo ""; echo ""; echo "

"; echo $chrnm; echo "
"; $res = mysql_query("INSERT INTO lib3rtymrc_rooms SET name='".$chrnm."', static='1', pass='', mage='".$chrage."', chposts='".$chrpst."', perms='".$chrprm."', censord='".$chrcns."' , freaky='".$chrfun."'"); echo mysql_error(); if($res) { echo "\"O\"/Camera chat adaugata cu succes"; }else{ echo "\"X\"/Eroare in adaugarea camerei de chat"; } echo "

"; echo "Chat
"; echo "\"*\"/"; echo "Administrare
"; echo "\"*\"/"; echo "Prim"; echo "

"; } else if($action=="addperm") { $fid = $_POST["fid"]; $gid = $_POST["gid"]; echo ""; echo "$sitte"; echo ""; echo ""; echo ""; echo "

"; echo "
"; $res = mysql_query("INSERT INTO lib3rtymrc_acc SET fid='".$fid."', gid='".$gid."'"); if($res) { echo "\"O\"/Permisiune adaugata cu succes"; }else{ echo "\"X\"/Eroare in adaugarea permisiunii "; } echo "

"; echo "Adauga Permisiune
"; echo "\"*\"/"; echo "Administrare
"; echo "\"*\"/"; echo "Prim"; echo "

"; } //////////////////////////////////////////Update profile else if($action=="uprof") { $who = $_GET["who"]; $unick = $_POST["unick"]; $perm = $_POST["perm"]; $savat = $_POST["savat"]; $semail = $_POST["semail"]; $usite = $_POST["usite"]; $ubday = $_POST["ubday"]; $uloc = $_POST["uloc"]; $usig = $_POST["usig"]; $usex = $_POST["usex"]; echo ""; $ceface = $_POST["ceface"]; echo ""; echo "$sitte"; echo ""; echo ""; echo ""; echo "

"; $onk = mysql_fetch_array(mysql_query("SELECT name FROM lib3rtymrc_users WHERE id='".$who."'")); $exs = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM lib3rtymrc_users WHERE name='".$unick."'")); if($onk[0]!=$unick) { if($exs[0]>0) { echo "\"x\"/Noul nick ales deja exista, alege altul
"; }else { $res = mysql_query("UPDATE lib3rtymrc_users SET avatar='".$savat."', email='".$semail."', site='".$usite."', birthday='".$ubday."', location='".$uloc."', signature='".$usig."', sex='".$usex."', name='".$unick."', perm='".$perm."' WHERE id='".$who."'"); if($res) { echo "\"o\"/$unick profil actualizat cu succes
"; }else{ echo "\"x\"/Eroare in actualizarea profilului userului $unick's profile
"; } } }else { $res = mysql_query("UPDATE lib3rtymrc_users SET avatar='".$savat."', email='".$semail."', site='".$usite."', birthday='".$ubday."', location='".$uloc."', signature='".$usig."', sex='".$usex."', name='".$unick."', perm='".$perm."' WHERE id='".$who."'"); if($res) { echo "\"o\"/$unick profil actualizat cu succes
"; }else{ echo "\"x\"/Eroare in actualizarea profilului userului $unick
"; } } echo "
"; echo "Info utilizatori
"; echo "\"*\"/"; echo "Administrare
"; echo "\"*\"/"; echo "Prim"; echo "

"; } //////////////////////////////////////////Optiuni moder/admin/admin sef else if($action=="extra") { $who = $_GET["who"]; $ban = $_POST["ban"]; $banip = $_POST["banip"]; $banchatforum = $_POST["banchatforum"]; $arunca = $_POST["arunca"]; $validari = $_POST["validari"]; $debaneaza = $_POST["debaneaza"]; $actiunir = $_POST["actiunir"]; $dforum = $_POST["dforum"]; $user = getnick_uid($who); echo ""; echo "$sitte"; echo ""; echo ""; echo ""; echo "

"; $res = mysql_query("UPDATE lib3rtymrc_users SET ban='".$ban."', banip='".$banip."', banchatforum='".$banchatforum."', arunca='".$arunca."', validari='".$validari."', debaneaza='".$debaneaza."', actiunir='".$actiunir."', dforum='".$dforum."' WHERE id='".$who."'"); if($res) { echo "\"o\"/Optiuni setate cu succes pentru $user
"; }else{ echo "\"x\"/Eroare in actualizarea optiunilor de moderare pentru $user
"; } echo "
"; echo "Info utilizatori
"; echo "\"*\"/"; echo "Administrare
"; echo "\"*\"/"; echo "Prim"; echo "

"; } /////////////statut else if($action=="statut") { $statut = $_POST["statut"]; $who = $_GET["who"]; echo ""; echo "$sitte"; echo ""; echo ""; echo ""; echo "

"; $res = mysql_query("UPDATE lib3rtymrc_users SET budmsg='".$statut."' WHERE id='".$who."'"); if($res) { echo "\"o\"/Statut actualizata cu succes
"; }else{ echo "\"x\"/Eroare in actualizarea parolei
"; } echo "
"; echo "Info utilizatori
"; echo "\"*\"/"; echo "Administrare
"; echo "\"*\"/"; echo "Prim"; echo "

"; } /////////////user password else if($action=="upwd") { $npwd = $_POST["npwd"]; $who = $_GET["who"]; echo ""; echo "$sitte"; echo ""; echo ""; echo ""; echo "

"; 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='".$who."'"); if($res) { echo "\"o\"/Parola actualizata cu succes
"; }else{ echo "\"x\"/Eroare in actualizarea parolei
"; } } echo "
"; echo "Info utilizatori
"; echo "\"*\"/"; echo "Administrare
"; echo "\"*\"/"; echo "Prim"; echo "

"; } ///////////////add group else if($action=="addgrp") { $frname = $_POST["ugname"]; $ugaa = $_POST["ugaa"]; $allus = $_POST["allus"]; $mage = $_POST["mage"]; $mpst = $_POST["mpst"]; $mpls = $_POST["mpls"]; echo ""; echo "$sitte"; echo ""; echo ""; echo ""; echo "

"; echo $ugname; echo "
"; $res = mysql_query("INSERT INTO lib3rtymrc_groups SET name='".$ugname."', autoass='".$ugaa."', userst='".$allus."', mage='".$mage."', posts='".$mpst."', plusses='".$mpls."'"); if($res) { echo "\"O\"/Grup utilizator adaugat cu succes"; }else{ echo "\"X\"/Eroare in adaugarea grupului de utilizatori"; } echo "

"; echo "Grup de utilizatori
"; echo "\"*\"/"; echo "Administrare
"; echo "\"*\"/"; echo "Prim"; echo "

"; } else if($action=="edtfrm") { $fid = $_POST["fid"]; $frname = $_POST["frname"]; $frpos = $_POST["frpos"]; $fcid = $_POST["fcid"]; echo ""; echo "$sitte"; echo ""; echo ""; echo ""; echo "

"; echo $frname; echo "
"; $res = mysql_query("UPDATE lib3rtymrc_forums SET name='".$frname."', position='".$frpos."', cid='".$fcid."' WHERE id='".$fid."'"); if($res) { echo "\"O\"/Forum actualizat cu succes"; }else{ echo "\"X\"/Eroare in actualizarea forumului "; } echo "

"; echo "Forumuri
"; echo "\"*\"/"; echo "Administrare
"; echo "\"*\"/"; echo "Prim"; echo "

"; } else if($action=="edtcat") { $fcid = $_POST["fcid"]; $fcname = $_POST["fcname"]; $fcpos = $_POST["fcpos"]; echo ""; echo "$sitte"; echo ""; echo ""; echo ""; echo "

"; echo $fcname; echo "
"; $res = mysql_query("UPDATE lib3rtymrc_fcats SET name='".$fcname."', position='".$fcpos."' WHERE id='".$fcid."'"); if($res) { echo "\"O\"/Categorie forum actualizata cu succes"; }else{ echo "\"X\"/Eroare in actualizarea categoriei de forum"; } echo "

"; echo "Categorii forum
"; echo "\"*\"/"; echo "Administrare
"; echo "\"*\"/"; echo "Prim"; echo "

"; } else if($action=="delfrm") { $fid = $_POST["fid"]; echo ""; echo "$sitte"; echo ""; echo ""; echo ""; echo "

"; echo "
"; $res = mysql_query("DELETE FROM lib3rtymrc_forums WHERE id='".$fid."'"); if($res) { echo "\"O\"/Forum sters cu succes"; }else{ echo "\"X\"/Eroare in stergerea forumului "; } echo "

"; echo "Forumuri
"; echo "\"*\"/"; echo "Administrare
"; echo "\"*\"/"; echo "Prim"; echo "

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

"; echo "
"; $res = mysql_query("DELETE FROM lib3rtymrc_private WHERE reported!='1' AND starred='0' AND unread='0'"); if($res) { echo "\"O\"/Toate PM-urile marcate, raportate si citite au fost sterse"; }else{ echo "\"X\"/Eroare in baza de date!"; } echo "

"; echo "Sterge Data
"; echo "\"*\"/"; echo "Administrare
"; echo "\"*\"/"; echo "Prim"; echo "

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

"; echo "
"; $res = mysql_query("DELETE FROM lib3rtymrc_private WHERE byuid='4' AND starred='0'"); if($res) { echo "\"O\"/Toate PM-urile automate au fost sterse"; }else{ echo "\"X\"/Eroare in baza de date!"; } echo "

"; echo "Sterge Data
"; echo "\"*\"/"; echo "Administrare
"; echo "\"*\"/"; echo "Prim"; echo "

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

"; echo "
"; $res = mysql_query("DELETE FROM lib3rtymrc_private WHERE reported ='1'"); if($res) { echo "\"O\"/Toate PM-urile raportate au fost sterse"; }else{ echo "\"X\"/Eroare in baza de date!"; } echo "

"; echo "Sterge Data
"; echo "\"*\"/"; echo "Administrare
"; echo "\"*\"/"; echo "Prim"; echo "

"; } /// alerte else if($action=="delpop") { echo ""; echo "$sitte"; echo ""; echo ""; echo ""; echo "

"; echo "
"; $res = mysql_query("DELETE FROM lib3rtymrc_popups WHERE reported!='1' AND unread='0'"); if($res) { echo "\"O\"/Toate Alertele au fost sterse"; }else{ echo "\"X\"/Eroare in baza de date!"; } echo "

"; echo "Sterge Data
"; echo "\"*\"/"; echo "Administrare
"; echo "\"*\"/"; echo "Prim"; echo "

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

"; echo "
"; $res = mysql_query("DELETE FROM lib3rtymrc_mlog"); echo mysql_error(); if($res) { echo "\"O\"/Actiuni sterse cu succes"; }else{ echo "\"X\"/Eroare in baza de date!"; } echo "

"; echo "Sterge Data
"; echo "\"*\"/"; echo "Administrare
"; echo "\"*\"/"; echo "Prim"; echo "

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

"; $altm = time()-(1*24*60*60); echo "
"; $res = mysql_query("DELETE FROM lib3rtymrc_shouts WHERE shtime<'".$altm."'"); if($res) { echo "\"O\"/Mesajele live mai vechi de 1 zi au fost sterse"; }else{ echo "\"X\"/Eroare in baza de date!"; } echo "

"; echo "Sterge Data
"; echo "\"*\"/"; echo "Administrare
"; echo "\"*\"/"; echo "Prim"; echo "

"; } else if($action=="delgrp") { $ugid = $_POST["ugid"]; echo ""; echo "$sitte"; echo ""; echo ""; echo ""; echo "

"; echo "
"; $res = mysql_query("DELETE FROM lib3rtymrc_groups WHERE id='".$ugid."'"); if($res) { echo "\"O\"/Grup utilizator sters cu succes"; }else{ echo "\"X\"/Eroare in stergerea grupului de utilizator"; } echo "

"; echo "Grup de utilizatori
"; echo "\"*\"/"; echo "Administrare
"; echo "\"*\"/"; echo "Prim"; echo "

"; } else if($action=="delchr") { $chrid = $_POST["chrid"]; echo ""; echo "$sitte"; echo ""; echo ""; echo ""; echo "

"; echo "
"; $res = mysql_query("DELETE FROM lib3rtymrc_rooms WHERE id='".$chrid."'"); if($res) { echo "\"O\"/Camera stearsa cu succes"; }else{ echo "\"X\"/Eroare in baza de date"; } echo "

"; echo "Chat
"; echo "\"*\"/"; echo "Administrare
"; echo "\"*\"/"; echo "Prim"; echo "

"; } else if($action=="delu") { $who = $_GET["who"]; echo ""; echo "$sitte"; echo ""; echo ""; echo ""; echo "

"; echo "
"; $res = mysql_query("DELETE FROM lib3rtymrc_buddies WHERE tid='".$who."' OR uid='".$who."'"); $res = mysql_query("DELETE FROM lib3rtymrc_gbook WHERE gbowner='".$who."' OR gbsigner='".$who."'"); $res = mysql_query("DELETE FROM lib3rtymrc_ignore WHERE name='".$who."' OR target='".$who."'"); $res = mysql_query("DELETE FROM lib3rtymrc_mangr WHERE uid='".$who."'"); $res = mysql_query("DELETE FROM lib3rtymrc_modr WHERE name='".$who."'"); $res = mysql_query("DELETE FROM lib3rtymrc_penalties WHERE uid='".$who."' OR exid='".$who."'"); $res = mysql_query("DELETE FROM lib3rtymrc_posts WHERE uid='".$who."'"); $res = mysql_query("DELETE FROM lib3rtymrc_private WHERE byuid='".$who."' OR touid='".$who."'"); $res = mysql_query("DELETE FROM lib3rtymrc_shouts WHERE shouter='".$who."'"); $res = mysql_query("DELETE FROM lib3rtymrc_topics WHERE authorid='".$who."'"); $res = mysql_query("DELETE FROM lib3rtymrc_brate WHERE uid='".$who."'"); $res = mysql_query("DELETE FROM lib3rtymrc_games WHERE uid='".$who."'"); $res = mysql_query("DELETE FROM lib3rtymrc_presults WHERE uid='".$who."'"); $res = mysql_query("DELETE FROM lib3rtymrc_vault WHERE uid='".$who."'"); $res = mysql_query("DELETE FROM lib3rtymrc_blogs WHERE bowner='".$who."'"); $res = mysql_query("DELETE FROM lib3rtymrc_chat WHERE chatter='".$who."'"); $res = mysql_query("DELETE FROM lib3rtymrc_chat WHERE who='".$who."'"); $res = mysql_query("DELETE FROM lib3rtymrc_chonline WHERE uid='".$who."'"); $res = mysql_query("DELETE FROM lib3rtymrc_online WHERE userid='".$who."'"); $res = mysql_query("DELETE FROM lib3rtymrc_ses WHERE uid='".$who."'"); $res = mysql_query("DELETE FROM lib3rtymrc_xinfo WHERE uid='".$who."'"); $res = mysql_query("DELETE FROM lib3rtymrc_popups WHERE byuid='".$who."' OR touid='".$who."'"); $res = mysql_query("DELETE FROM lib3rtymrc_galcomments WHERE pid='".$who."'"); $res = mysql_query("DELETE FROM lib3rtymrc_gallery WHERE uid='".$who."'"); deleteMClubs($who); $res = mysql_query("DELETE FROM lib3rtymrc_users WHERE id='".$who."'"); if($res) { echo "\"O\"/User sters cu succes"; }else{ echo "\"X\"/Eroare in stergerea grupului de utilizatori"; } echo "

"; echo "Info utilizator
"; echo "\"*\"/"; echo "Administrare
"; echo "\"*\"/"; echo "Prim"; echo "

"; } //////////// Delete users posts else if($action=="delxp") { $who = $_GET["who"]; echo ""; echo "

"; echo "
"; $res = mysql_query("DELETE FROM lib3rtymrc_posts WHERE uid='".$who."'"); $res = mysql_query("DELETE FROM lib3rtymrc_topics WHERE authorid='".$who."'"); if($res) { mysql_query("UPDATE lib3rtymrc_users SET plusses='0' where id='".$who."'"); echo "\"O\"/Postari user sterse cu succes"; }else{ echo "\"X\"/Eroare in stergerea postarilor userului"; } echo "

"; echo "Info utilizator
"; echo "\"*\"/"; echo "Administrare
"; echo "\"*\"/"; echo "Prim"; echo "

"; } else if($action=="delcat") { $fcid = $_POST["fcid"]; echo ""; echo "$sitte"; echo ""; echo ""; echo ""; echo "

"; echo $fcname; echo "
"; $res = mysql_query("DELETE FROM lib3rtymrc_fcats WHERE id='".$fcid."'"); if($res) { echo "\"O\"/Categorie forum stearsa"; }else{ echo "\"X\"/Eroare in stergerea categoriei de forum"; } echo "

"; echo "Categorii forum
"; echo "\"*\"/"; echo "Administrare
"; echo "\"*\"/"; echo "Prim"; echo "

"; } else{ echo ""; echo "$sitte"; echo ""; echo ""; echo ""; echo "

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

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

"; } ?>

Teya Salat