XtGem Forum catalog
'; ?> "; echo "$sitte"; //echo ""; echo ""; echo ""; echo "

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

"; echo "Autentificare
"; echo "

"; echo ""; echo ""; exit(); } if(validare(getuid_sid($sid)) < 1) { echo ""; echo "$sitename"; //echo ""; echo ""; echo ""; echo "

"; echo "\"*\"/Contul tau nu a fost validat
Este necesar sa-ti completezi corect profilul
Si sa astepti validarea contului tau
"; echo "Verificarea si activarea contului dumneavoastra poate dura pana la 2 de ore, va rugam asteptati.
Va multumim!


"; echo ""; echo "Daca nu vreti sa asteptati dati add la id-ul de messenger ice_chat@ymail.com
"; echo "
"; echo ""; echo "+Setari profil
"; echo "------
"; echo "\"*\"/ Prima Pagina

"; echo "
"; echo "© $sitte
"; echo "

"; echo ""; echo ""; exit(); } // Test if the user is banned if(isbanned($uid)) { echo ""; echo "$sitte"; //echo ""; echo ""; echo ""; echo "

"; echo "\"x\"/
"; echo "Esti Banat(a)
"; $banto = mysql_fetch_array(mysql_query("SELECT timeto FROM lib3rtymrc_penalties WHERE uid='".$uid."' AND penalty='1'")); $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

"; echo "Motiv Ban: $banres[0]"; //echo "Login"; echo "

"; echo ""; echo ""; exit(); } if ($action == "main") { addonline(getuid_sid($sid), "(Web) Vizualizeaza cele mai noi poze", ""); echo ""; echo "Vizualizare poze noi"; //echo ""; echo ""; echo ''; echo 'Album Foto
'; // check PM $unreadinbox = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM lib3rtymrc_private WHERE unread='1' AND touid='".$uid."'")); $unrd="[".$unreadinbox[0]."]"; if ($unreadinbox[0]>0) { echo '-----
'; echo "Ai: $unrd PMs
-----
"; } echo ' Prima Pagina'; echo '  |  Upload Poza'; echo '  |  Adauga prin Link'; echo '
'; if($sex == 'M'){ echo 'Galerie Baieti | '; }else{ echo 'Galerie Baieti | '; } if($sex == 'F'){ echo 'Galerie Fete'; }else{ echo 'Galerie Fete'; } if($sex == 'M'||$sex == 'F'){ echo '
Toate Pozele'; } echo '

'; // Find the nr of pages required // if (isset($_GET['p']) && is_numeric($_GET['p'])) { $pages = $_GET['p']; } else { if ($sex == 'M' || $sex == 'F') $qsort = "WHERE sex='$sex' AND cuplu='0'"; else $qsort = "WHERE cuplu='0'"; if (isset($user) && $user > 0) $qsort = "WHERE uid=$user AND cuplu='0'"; $q = "SELECT COUNT(id) FROM lib3rtymrc_gallery $qsort"; $r = @mysql_query ($q); $row = @mysql_fetch_array ($r, MYSQL_NUM); $records = $row[0]; if ($records > $nrItems) $pages = @ceil ($records / $nrItems); else $pages = 1; } // Find the starting page // if (isset($_GET['s']) && is_numeric($_GET['s']) && $_GET['s'] > 0) $start = $_GET['s']; else $start = 0; // if (isset($_GET['page']) && is_numeric($_GET['page']) && $_GET['page'] > 0) { $page = ($_GET['page'] > $pages ? $pages : $_GET['page']); $start = $nrItems * ($page - 1); } // Get all users from gallery // if ($user > 0) { $whosex = @mysql_fetch_array(mysql_query("SELECT sex FROM lib3rtymrc_users WHERE id=$user")); $sex = $whosex['sex']; } // if ($sex == 'M' || $sex == 'F') $qsort = "WHERE sex='$sex' AND cuplu='0'"; else $qsort = "WHERE cuplu='0'"; // $ugal = @mysql_query ("SELECT DISTINCT uid FROM lib3rtymrc_gallery $qsort ORDER BY id DESC"); // echo '
 Sex:  User Nr. poze:  Nr. coloane:
'; // Add links for all pages if ($pages > 1) { echo '

'; $current_page = ($start / $nrItems) + 1; echo '

Pagina:
'; // previous link if ($current_page != 1) echo 'Precedenta'; else echo 'Precedenta'; echo " - $current_page / $pages - "; // next link if ($current_page != $pages) echo 'Urmatoarea'; else echo 'Urmatoarea'; echo '
'; echo '

'; } // Get all images if ($sex == 'M' || $sex == 'F') $qsort = "WHERE sex='$sex' AND cuplu='0'"; else $qsort = "WHERE cuplu='0'"; if (isset($user) && $user > 0) $qsort = "WHERE uid=$user AND cuplu='0'"; $q = "SELECT id, uid, sex, itemurl, thumb, views, comentariu, data FROM lib3rtymrc_gallery $qsort ORDER BY data DESC LIMIT $start, $nrItems"; // $r = @mysql_query ($q); // Start displaying the images echo ''; // if (mysql_num_rows($r) > 0) { $i = 0; while ($row = @mysql_fetch_array($r, MYSQL_ASSOC)) { if ($i == $nrCols) $i = 0; $galPage = 1; $ids = mysql_query("SELECT id FROM lib3rtymrc_gallery WHERE uid='". $row['uid'] . "' AND cuplu='0' ORDER BY id DESC"); // while ($id = mysql_fetch_array($ids)) { if ($id[0] == $row['id']) break; $galPage++; } // color $bg = ($bg==$bg1 ? $bg2 : $bg1); // get description if ($row['comentariu'] == "") $descriere = '---'; else $descriere = str_replace( array('[b]', '[/b]'), '', $row['comentariu'] ); // find the nr of comments $nrComm = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM lib3rtymrc_galcomments WHERE pid='". $row['id'] ."'")); if ($i == 0) echo ''; if(isonline($row['uid'])) $ison = ' '; else $ison = '- '; // can delete poza if(candelgal($uid, $row['id'])) $delnk = 'Sterge Poza
'; else $delnk = ""; // Avatar and description links if($row['uid'] == $uid) { $avlnk = 'Foloseste ca avatar
'; $description = 'Adauga Descriere
'; } else { $avlnk = ""; $description = ""; } echo ''; if ($i == $nrCols-1) echo ''; $i++; } } else { echo ''; } echo '
'. $ison .' '. getnick_uid($row['uid']) .', ' . ($row['sex']=='M' ? 'Barbat' : 'Femeie') . '



Descriere:
'. $descriere .'

Data adaugare:
'. date ("H:i:s - d/m/y", $row['data']) .'

Descarca Poza
Comentarii Poza ('. $nrComm[0] .') '. ($delnk != '' ? '
-----
' : '') . $description . $delnk . $avlnk .'
'; echo ''. getnick_uid($user) .' nu are poze in album'; echo '
'; // Add links for all pages if ($pages > 1) { echo '

'; $current_page = ($start / $nrItems) + 1; // previous link if ($current_page != 1) echo 'Precedenta'; else echo 'Precedenta'; echo " - $current_page / $pages - "; // next link if ($current_page != $pages) echo 'Urmatoarea'; else echo 'Urmatoarea'; echo '
'; echo '

Pagina:
'; // all pages /*for ($i = 1; $i <= $pages; $i++) { if ($i != $current_page) { echo ''. $i .''; if ($i != $pages) echo " - "; } else echo ' '. $i . ($current_page != $pages ? ' -' : ' ') . ' '; }*/ echo '

'; } echo '
Prima Pagina'; echo '  |  Upload Poza'; echo '  |  Adauga prin Link'; echo '

'; echo ''; } // View Commenta /////////////////////////////////////////////////////////////////////////////////////////////////////// // else if ($action == "comments") { $who = $_GET["who"]; $gid = $_GET["gid"]; $start = $_GET["s"]; $pages = $_GET["p"]; $galPage = $_GET["galpage"]; $nrItems = $_GET["nritems"]; $nrCols = $_GET["nrcols"]; $sex = $_GET["sex"]; $usex = $_GET["usex"]; $user = $_GET["user"]; $page = $_GET["cpage"]; $uid = getuid_sid($sid); $whonick = getnick_uid($who); addonline(getuid_sid($sid),"(Web) Vizualizeaza poza user $whonick",""); echo ""; echo "Comentarii poza $whonick"; //echo ""; echo ""; echo ''; echo "

Comentarii Poza

"; // check PM $unreadinbox = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM lib3rtymrc_private WHERE unread='1' AND touid='".$uid."'")); $unrd="[".$unreadinbox[0]."]"; if ($unreadinbox[0]>0) { echo '-----
'; echo "Ai: $unrd PMs
-----
"; } echo ''; $res = @mysql_query("SELECT itemurl, thumb, comentariu, sex FROM lib3rtymrc_gallery WHERE id='".$gid."'"); if($row = @mysql_fetch_array($res)) { if(isonline($who)) $ison = ' '; else $ison = '- '; echo ''; echo ''; } // View All Comments ///////////////////////////////////////// // if($page=="" || $page <= 0) $page = 1; $noi = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM lib3rtymrc_galcomments WHERE pid='".$gid."'")); $num_items = $noi[0]; //changeable $items_per_page = $nrComments; $num_pages = ceil($num_items / $items_per_page); if (($page > $num_pages) && $page != 1) $page = $num_pages; $limit_start = ($page - 1) * $items_per_page; $sql = "SELECT id, pid, text, byuser, time FROM lib3rtymrc_galcomments WHERE pid='".$gid."' ORDER BY id DESC LIMIT $limit_start, $items_per_page"; $items = mysql_query($sql); if(mysql_num_rows($items) > 0) { echo ''; } // ///End View All Comments ///////////////////////////////////// echo '
'; echo $ison .''. getnick_uid($who) .', ' . ($usex=='M' ? 'Barbat' : 'Femeie'); echo '

'; echo ''. $id .'

'; // get description if ($row['comentariu'] == "" && $row['sex']=='M') $descriere = 'Baiat dragutz'; else if ($row['comentariu'] == "") $descriere = 'Fata dragutza'; else $descriere = str_replace( array('[b]', '[/b]'), '', $row['comentariu'] ); echo 'Descriere:
'. $descriere; echo '
'; echo "Adauga Comentariu:
"; echo "
"; echo "
"; echo ''; echo ''; echo ''; echo ''; echo ''; echo ''; echo ''; echo ""; echo "
"; echo '
'; echo ''; while ($item = mysql_fetch_array($items)) { if(isonline($item[3])) $iml = "\"+\"/"; else $iml = "\"-\"/"; $snick = getnick_uid($item[3]); $lnk = "$iml ".getsimbol($item[3])." $snick:"; $bs = date("H:i:s - d/m/y", $item[4]); echo "$lnk
"; $me = getuid_sid($sid); if($who=="$me") $can = "a"; else $can = "b"; if(ismod($uid)||$can=="a") $delnk = ' [x]'; else $delnk = ""; $text = parsepm($item[2], $sid); echo "$text $delnk
"; echo "$bs"; echo "

"; } if($num_pages >= 2) { // next page if($page > 1) { $ppage = $page - 1; echo 'precedentele'; } else echo 'precedentele'; // echo " - $page - "; // // previos page if($page < $num_pages) { $npage = $page + 1; echo 'urmatoarele'; } else echo 'urmatoarele'; // echo ' - '; // all pages for ($i = 1; $i <= $num_pages; $i++) { if ($i != $page) { echo ''. $i .''; if ($i != $num_pages) echo " - "; } else echo ' '. $i . ($page != $num_pages ? ' -' : ' ') . ' '; } } echo '
'; echo ' « Inapoi'; echo "
"; echo " Prima Pagina"; echo '  |  Upload Poza'; echo ""; } // Add Comment /////////////////////////////////////////////////////////////////////////////////////////////////////// // else if ($action == "addcomment") { echo ""; echo "Adauga Comentariu"; //echo ""; echo ""; echo ''; echo "
"; $who = $_GET["who"]; $gid = $_GET["gid"]; $text = $_POST["text"]; $start = $_POST["s"]; $pages = $_POST["p"]; $nrItems = $_POST["nritems"]; $nrCols = $_POST["nrcols"]; $sex = $_POST["sex"]; $usex = $_POST["usex"]; $user = $_POST["user"]; addonline($uid, "Adauga comentariu poza $unick",""); $crdate = time(); if(trim($text) != "") { $res = mysql_query("INSERT INTO lib3rtymrc_galcomments SET text='". $text ."', byuser='".$uid."', time='".$crdate."', pid='".$gid."'"); if($res) { if(automsgs($who)) { $msg = "". $unick ." ti-a adaugat un comentariu la poza!.ura.[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='0', touid='".$who."', timesent='".time()."'"); } echo "\"O\"/

Urmatorul comentariu a fost adaugat cu succes:

"; echo "$text

"; } else echo "\"X\"/

Comentariul nu a putut fi adaugat!


"; } echo "
"; echo ' « Inapoi'; echo "

"; echo " Prima Pagina"; echo '  |  Upload Poza'; echo ""; } // Delete Comment /////////////////////////////////////////////////////////////////////////////////////////////////////// // else if ($action == "delcomment") { echo ""; echo "Adauga Comentariu"; //echo ""; echo ""; echo ''; echo "
"; $id = $_GET["id"]; $who = $_GET["who"]; $gid = $_GET["gid"]; $text = $_GET["text"]; $start = $_GET["s"]; $pages = $_GET["p"]; $nrItems = $_GET["nritems"]; $nrCols = $_GET["nrcols"]; $sex = $_GET["sex"]; $usex = $_GET["usex"]; $user = $_GET["user"]; addonline($uid, "Sterge comentariu poza $unick",""); $res = mysql_query("DELETE FROM lib3rtymrc_galcomments WHERE id ='". $id ."'"); if($res) { mysql_query("INSERT INTO lib3rtymrc_mlog SET action='comment', details='".getnick_uid(getuid_sid($sid))." Sterge comentariu poza', actdt='".time()."'"); echo "\"O\"/

Comentariul a fost sters!

"; } else echo "\"X\"/

Comentariul nu a putut fi sters!

"; echo "
"; echo ' « Inapoi'; echo "

"; echo " Prima Pagina"; echo '  |  Upload Poza'; echo ""; } // Delete Image /////////////////////////////////////////////////////////////////////////////////////////////////////// // else if($action=="delimg") { echo ""; echo "Sterge Poza"; //echo ""; echo ""; echo ''; $who = $_GET["who"]; $gid = $_GET["gid"]; $start = $_GET["s"]; $pages = $_GET["p"]; $galPage = $_GET["galpage"]; $nrItems = $_GET["nritems"]; $nrCols = $_GET["nrcols"]; $sex = $_GET["sex"]; $usex = $_GET["usex"]; $user = $_GET["user"]; $page = $_GET["cpage"]; $unick = getnick_uid($who); addonline($uid,"Sterge poza","album.php?action=$action"); if (isset($_GET['del']) && $_GET['del'] == '1') { $itemowner = mysql_fetch_array(mysql_query("SELECT uid, itemurl, thumb FROM lib3rtymrc_gallery WHERE id='".$gid."'")); if(ismod($uid) || $uid == $itemowner['uid']) { $res = mysql_query("DELETE FROM lib3rtymrc_gallery WHERE id='".$gid."'"); $res2 = mysql_query("DELETE FROM lib3rtymrc_galcomments WHERE pid='".$gid."'"); $res3 = mysql_query("DELETE FROM lib3rtymrc_prate WHERE pid='".$gid."'"); // Delete image from host (if exists) ////////////////////////////////////////////////////////////////// // if (stristr($itemowner['itemurl'], $site)) { $fname = str_replace($site, '../', $itemowner['itemurl']); if (file_exists($fname) && is_file($fname)) { unlink($fname); } } if (stristr($itemowner['thumb'], $site)) { $fname = str_replace($site, '../', $itemowner['thumb']); if (file_exists($fname) && is_file($fname)) { unlink($fname); } } ////////////////////////////////////////////////////////////////////////////////////////////////////////// if($res || res2 || res3) { mysql_query("INSERT INTO lib3rtymrc_mlog SET action='poza', details='".getnick_uid($uid)." Sterge poza ".$unick."', actdt='".time()."'"); echo "\"o\"/

Poza stearsa din galerie!

"; } else echo "\"x\"/

Eroare in baza de date!

"; } else echo "\"X\"/

Nu poti sterge aceasta poza!

"; } else { echo "

Sunteti sigur ca doriti sa stergeti poza?


"; echo ' Nu'; echo "   "; echo ' Da'; echo "
"; } echo "
"; echo ' « Inapoi'; echo "

"; echo " Prima Pagina"; echo ""; } // Poza /////////////////////////////////////////////////////////////////////////////////////////////////////// // else if ($action == "poza") { addonline(getuid_sid($sid), "Adauga poza in galerie prin link", ""); echo ""; echo "Adauga Poza"; //echo ""; echo ""; echo ''; echo '

Adauga poza prin link in galeria foto
Nu ai voie sa trimiti poze cu continut ilegal, obscen sau care depasesc limita bunului simt!
Poti fi penalizat si pozele vor fi sterse!

'; echo '
Poza:

'; echo "
"; echo "Album Foto"; echo "

"; echo "Prima Pagina"; echo ""; } // Add Image /////////////////////////////////////////////////////////////////////////////////////////////////////// // else if ($action == "imglink") { addonline(getuid_sid($sid), "Adauga poza in galerie prin link", ""); echo ""; echo "Adauga Poza"; //echo ""; echo ""; echo ''; $itemurl = $_POST["itemurl"]; $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"; // create thumbnail $tpath = "$thumbsFolder" . rand() . ".jpg"; $thumblink = $site . $tpath; // if ( ! createThumb($itemurl, "../$tpath") ) $thumblink = ''; $res = mysql_query("INSERT INTO lib3rtymrc_gallery SET uid='".$uid."', itemurl='".$itemurl."', thumb='". $thumblink ."', sex='".$usex."', data='".time()."'"); if($res) echo "\"O\"/

Poza adaugata cu succes!

"; else echo "\"X\"/

Eroare in baza de date!

"; echo "
"; echo "Album Foto"; echo "

"; echo "Prima Pagina"; } // Use avatar /////////////////////////////////////////////////////////////////////////////////////////////////////// // else if ($action == "useav") { echo ""; echo "Actualizeaza Avatar"; //echo ""; echo ""; echo ''; addonline(getuid_sid($sid),"Actualizeaza Avatar",""); $id = $_GET["id"]; $who = $_GET["who"]; $gid = $_GET["gid"]; $text = $_GET["text"]; $start = $_GET["s"]; $pages = $_GET["p"]; $nrItems = $_GET["nritems"]; $nrCols = $_GET["nrcols"]; $sex = $_GET["sex"]; $usex = $_GET["usex"]; $user = $_GET["user"]; $getimg = mysql_fetch_array(mysql_query("SELECT thumb FROM lib3rtymrc_gallery WHERE id='".$gid."'")); $avatar = $getimg[0]; $res = mysql_query("UPDATE lib3rtymrc_users SET avatar='".$avatar."' WHERE id='".$uid."'"); if($res) echo "\"o\"/

Avatar actualizat cu succes!

"; else echo "\"x\"/

Eroare in baza de date!

"; echo "
"; echo ' « Inapoi'; echo "

"; echo " Prima Pagina"; echo ""; } // Image description /////////////////////////////////////////////////////////////////////////////////////////////////////// // else if($action=="description") { echo ""; echo "Adauga descriere la poza"; //echo ""; echo ""; echo ''; addonline(getuid_sid($sid),"Adauga descriere la poza",""); $id = $_GET["id"]; $who = $_GET["who"]; $gid = $_GET["gid"]; $text = $_GET["text"]; $start = $_GET["s"]; $pages = $_GET["p"]; $nrItems = $_GET["nritems"]; $nrCols = $_GET["nrcols"]; $sex = $_GET["sex"]; $usex = $_GET["usex"]; $user = $_GET["user"]; echo "

Adauga Descriere

"; $thumb = @mysql_fetch_array(mysql_query("SELECT thumb FROM lib3rtymrc_gallery WHERE id='".$gid."'")); echo "\"$id\"/

"; echo '
'; echo '
'; echo ''; echo '
'; echo "
"; echo ' « Inapoi'; echo "

"; echo " Prima Pagina"; echo ""; } // Add image description /////////////////////////////////////////////////////////////////////////////////////////////////////// // else if ($action == "addescription") { echo ""; echo "Adauga descriere la poza"; //echo ""; echo ""; echo ''; addonline(getuid_sid($sid),"Adauga descriere la poza",""); $id = $_GET["id"]; $who = $_GET["who"]; $gid = $_GET["gid"]; $text = $_GET["text"]; $start = $_GET["s"]; $pages = $_GET["p"]; $nrItems = $_GET["nritems"]; $nrCols = $_GET["nrcols"]; $sex = $_GET["sex"]; $usex = $_GET["usex"]; $user = $_GET["user"]; // $text = $_POST["text"]; $res = mysql_query("Update lib3rtymrc_gallery SET comentariu='".$text."' WHERE id='".$gid."'"); if($res) echo "\"o\"/

Descriere poza adaugata cu succes!

"; else echo "\"x\"/

Eroare in baza de date!

"; echo "
"; echo ' « Inapoi'; echo "

"; echo " Prima Pagina"; echo ""; } ?>