Teya Salat
'; ?> "; echo "$sitte"; echo ""; echo ""; echo ""; echo "

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

"; echo "Autentificare
"; 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(); } // Poza /////////////////////////////////////////////////////////////////////////////////////////////////////// // if ($action == "poza") { addonline(getuid_sid($sid), "Adauga poza in galerie", ""); echo ""; echo "Upload Poza"; //echo ""; echo ""; echo ''; echo '

Upload imagini 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 '
'; echo "
"; echo "Album Foto"; echo "

"; echo "Prima Pagina"; echo ""; echo ""; } // Muzica /////////////////////////////////////////////////////////////////////////////////////////////////////// // else if ($action == "muzica" && $perm[0] > 0) { addonline(getuid_sid($sid), "Upload Muzica", ""); echo ""; echo "Upload Muzica"; //echo ""; echo ""; echo ''; echo '

Upload Muzica

'; echo '
Categorie:

Nume:

Fisier:

'; echo "
"; echo "Meniu Download"; echo "

"; echo "Prima Pagina"; echo ""; echo ""; } // Upload Poza /////////////////////////////////////////////////////////////////////////////////////////////////////// // else if ($action == "uppoza") { addonline(getuid_sid($sid), "Upload Poza", ""); echo ""; echo "Upload Poza"; //echo ""; echo ""; echo ''; $uid = getuid_sid($sid); $noi = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM couple WHERE who='".$uid."' OR partner='".$uid."'")); if($noi[0]==0){ $cuplu = 0; } if (isset($_FILES['upload'])) { // allowed files $allowed = array ('jpeg', 'JPEG', 'jpg', 'JPG', 'GIF', 'gif'); $pathinfo = pathinfo($_FILES['upload']['name']); if (in_array($pathinfo['extension'], $allowed) && $_FILES['upload']['size'] > 0) { // image $nume = mysql_fetch_array(mysql_query("SELECT name FROM lib3rtymrc_users WHERE id='".$uid."'")); $extensie=strrchr($_FILES['upload']['name'],'.'); $ipath = "$imgFolder" .date("d-m-y") . "_".date("H:i:s")."_$nume[0]$extensie"; $ipath = str_replace(" ", "_", $ipath); $imglink = $site . $ipath; // // thumbnail // $nume = mysql_fetch_array(mysql_query("SELECT name FROM lib3rtymrc_users WHERE id='".$uid."'")); $extensie=strrchr($_FILES['upload']['name'],'.'); $tpath = "$thumbsFolder" .date("d-m-y") . "_".date("H:i:s")."_$nume[0]$extensie"; $tpath = str_replace(" ", "_", $tpath); $thumblink = $site . $tpath; if (move_uploaded_file($_FILES['upload']['tmp_name'], "../$ipath")) { // fa_inscriptie ($imglink); ///inscriptie // create thumbnail if ( ! createThumb($imglink, "../$tpath") ) $thumblink = ''; // add the image to the user profile // $sex = mysql_fetch_array(mysql_query("SELECT sex FROM lib3rtymrc_users WHERE id='".$uid."'")); if($sex[0] == 'M') $usex = "M"; else if ($sex[0] == 'F') $usex = "F"; else $usex = "M"; // $res = mysql_query("INSERT INTO lib3rtymrc_gallery SET uid='".$uid."', itemurl='". $imglink ."', thumb='". $thumblink ."', sex='".$usex."', data='".time()."', cuplu='".$cuplu."'"); if($res) { echo "

"; echo "\"O\"/ Poza dvs a fost adaugata
"; } else { echo "

"; echo "\"X\"/ Poza dvs nu a putut fi adaugata. Incercati mai tarziu.
"; } } else echo '

Fisierul nu a putut fi adaugat. Va rugam sa incercati mai tarziu.

'; } else { echo "

"; echo "\"X\"/ Fisierul selectat nu este valid.
"; } } else // Invalid type. echo '

Nu ati selectat nisi un fisier sau fisierul selectat nu este valid.

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

"; echo "Album Foto"; echo "

"; echo "Prima Pagina"; echo ""; echo ""; } // Upload Muzica /////////////////////////////////////////////////////////////////////////////////////////////////////// // else if ($action == "upmuzica" && $perm[0] > 0) { addonline(getuid_sid($sid), "Upload Muzica", ""); echo ""; echo "Upload Poza"; //echo ""; echo ""; echo ''; if (isset($_FILES['upload'])) { // allowed files $allowed = array ('mp3', '3gp', 'mid', 'amr'); $pathinfo = pathinfo($_FILES['upload']['name']); if (in_array($pathinfo['extension'], $allowed) && $_FILES['upload']['size'] > 0) { $fname = str_replace(" ", "_", $_FILES['upload']['name']); $path = "$muzFolder" . rand() . "_$fname"; if (move_uploaded_file($_FILES['upload']['tmp_name'], "../$path")) { $cid = $_POST["categ"]; $title = $_POST["title"]; $link = $site . $path; $crdate = time(); $res = FALSE; if ((trim($title) == "")) $title = "Fara Nume"; $res = mysql_query("INSERT INTO lib3rtymrc_manele SET cid='".$cid."', uid='".$uid."', title='".mysql_escape_string($title)."', pudt='".$crdate."', itemurl='".$link."'"); if($res) { echo "

"; echo "\"O\"/ Fisierul a fost adaugat
"; } else { echo "

"; echo "\"X\"/ Fisierul nu a putut fi adaugat. Va rugam sa incercati mai tarziu.
"; } } else echo '

Fisierul nu a putut fi adaugat. Va rugam sa incercati mai tarziu.

'; } else { echo "

"; echo "\"X\"/ Fisierul selectat nu este valid.
"; } } else // Invalid type. echo '

Nu ati selectat nisi un fisier sau fisierul selectat nu este valid.

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

"; echo "Meniu Download"; echo "

"; echo "Prima Pagina"; echo ""; echo ""; } // else ////////////////////////////////////////////////////////////////////////////////////////// else echo "

Prima Pagina"; // delete the temporary file //////////////////////////////////////////////////////////////////// // if (file_exists($_FILES['upload']['tmp_name']) && is_file($_FILES['upload']['tmp_name'])) { unlink($_FILES['upload']['tmp_name']); } ?> upload mihaitawap