XtGem Forum catalog
"); 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."'"); } /// if($action=="delgal") { $gid = $_GET["gid"]; $who = $_GET["who"]; addonline(getuid_sid($sid),"Sterge galerie foto",""); echo ""; echo "

"; $itemowner = mysql_fetch_array(mysql_query("SELECT uid FROM lib3rty_justme WHERE id='".$gid."'")); if(ismod(getuid_sid($sid))||getuid_sid($sid)==$itemowner[0]) { $res = mysql_query("DELETE FROM lib3rty_justme WHERE id='".$gid."'"); if($res) { $unick = getnick_uid($who); mysql_query("INSERT INTO lib3rtymrc_mlog SET action='poza', details='".getnick_uid(getuid_sid($sid))." Sterge candidat ".$unick."', actdt='".time()."'"); echo "\"o\"/candidat sters cu succes
"; }else{ echo "\"x\"/Eroare in baza de date!
"; } }else{ echo "\"X\"/Nu poti sterge aceasta poza"; } echo "

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

"; } else if($action=="addgal") { $itemurl = $_POST["itemurl"]; $uid = getuid_sid($sid); $nopl = mysql_fetch_array(mysql_query("SELECT sex FROM lib3rtymrc_users WHERE id='".$uid."'")); if($nopl[0]=='M') { $usex = "M"; }else if($nopl[0]=='F'){ $usex = "F"; }else{ $usex = "M"; } echo ""; echo "

"; $res = mysql_query("INSERT INTO lib3rty_justme SET uid='".$uid."', itemurl='".$itemurl."', sex='".$usex."'"); if($res) { echo "\"O\"/Poza adaugata cu succes!
"; }else{ echo "\"X\"/Eroare in baza de date!
"; } echo "Album foto
"; echo "\"*\"/"; echo "Meniu prim"; echo "

"; } else if($action=="adaugacom") { $who = $_GET["who"]; $gid = $_GET["gid"]; $text = $_POST["text"]; $uid = getuid_sid($sid); echo ""; echo "

"; $res = mysql_query("Update lib3rty_justme SET comentariu='".$text."' WHERE id='".$gid."'"); if($res) { echo "\"O\"/ Descriere poza adaugata cu succes!
"; }else{ echo "\"X\"/Eroare in baza de date!
"; } echo "Just Me
"; echo "\"*\"/"; echo "Meniu prim"; echo "

"; }else if($action=="commentadd") { $prate = $_POST["prate"]; $who = $_GET["who"]; $gid = $_GET["gid"]; addonline(getuid_sid($sid),"Adauga comentariu poza",""); echo ""; echo "

"; $crdate = time(); $uid = getuid_sid($sid); $res = false; if($prate!="") { $res2 = mysql_query("INSERT INTO lib3rtymrc_justme SET uid='".$uid."', pid='".$gid."', prate='".$prate."'"); if($res2) { echo "\"o\"/Candidat Votat cu succes
"; $msg = "".getnick_uid($uid)." tia adaugat un vot la concursul JUST ME![br/][i]P.S.:acesta este un pm automat,va rugam sa nu raspundeti la el![/i]"; mysql_query("INSERT INTO lib3rtymrc_private SET text='".$msg."', byuid='1', touid='".$who."', timesent='".time()."'"); }else{ echo "\"x\"/Eroare in baza de date!
"; } } echo "

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

"; echo "
"; }else{ echo ""; echo "

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

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

"; } ?>