"; echo ""; echo ""; connectdb(); $action = $_GET["action"]; $sid = $_GET["sid"]; $name = $_POST["name"]; $uid = getuid_sid($sid); $theme = mysql_fetch_array(mysql_query("SELECT theme FROM lib3rtymrc_users WHERE id='".$uid."'")); $perm = mysql_fetch_array(mysql_query("SELECT perm FROM lib3rtymrc_users WHERE id='".$uid."'")); // Test if the user is logged if(islogged($sid) == false) { echo ""; 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(); } connectdb(); $action = $_GET["action"]; $sid = $_GET["sid"]; if(!ismod(getuid_sid($sid))) { echo ""; echo "

"; echo "Nu esti Proprietar
"; echo "
"; echo "Acasa"; 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 FROM lib3rtymrc_users where id='".$uid."'")); $otime = $res[0] + $atime; $res = mysql_query("UPDATE lib3rtymrc_users SET otime='".$otime."' where id='".$uid."'"); } /// //addonline(getuid_sid($sid),"Adauga emotii",""); if($action=="main") { addonline(getuid_sid($sid), "Adauga emotie", ""); echo ""; echo "Upload Emotie"; //echo ""; echo ""; echo ''; $uid = getuid_sid($sid); echo '

'; echo '

Imaginea:

'; echo "Cod:

"; echo "Categoria:
"; echo "
"; echo '
'; echo "

"; echo "Acasa"; echo "

"; } else if($action=="upload") { addonline(getuid_sid($sid), "Upload Poza", ""); echo ""; echo "Upload Emotii"; //echo ""; echo ""; echo ''; $cate = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM lib3rtymrc_smilies WHERE scode='".$name."'")); if($cate[0]>0){ echo "O emotie cu acest cod exista deja

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

"; echo ""; echo exit(); } $catelit = strlen($name); if($catelit<2){ echo "Codul emotiei trebuie sa fie format din cel putin 4 caractere

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

"; echo ""; echo exit(); } if (isset($_FILES['upload'])) { // allowed files $allowed = array ('jpeg', 'JPEG', 'jpg', 'JPG', 'GIF', 'gif', 'png', 'PNG'); $pathinfo = pathinfo($_FILES['upload']['name']); if (in_array($pathinfo['extension'], $allowed) && $_FILES['upload']['size'] > 0) { $extensie=strrchr($_FILES['upload']['name'],'.'); $fname = str_replace(" ", "_", $_FILES['upload']['name']); $cate = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM lib3rtymrc_smilies")); if($cate[0]>0){ $numar = $cate[0]+1; }else if($cate[0]==0){ $numar = "prima"; } $site = 'http://shost.ro/'; $ipath = "Uploads/Gif/EnE-JuPaNuL_emotie$numar".time()."rochat$extensie"; $imglink = $site . $ipath; if (move_uploaded_file($_FILES['upload']['tmp_name'], "../$ipath")) { $res = mysql_query("INSERT INTO lib3rtymrc_smilies SET scode='".$name."', imgsrc='".$imglink."', hidden='0', categ='".$categoria."'"); if($res) { mysql_query("INSERT INTO lib3rtymrc_mlog SET action='Emotie', details='".getnick_uid(getuid_sid($sid))." a adaugat emotia $name !', actdt='".time()."'"); echo "
"; echo " Emotia a fost adaugata
"; echo "Cod Emotie: $name
"; } else { echo "

"; echo "Emotia 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 " 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 "Acasa"; echo ""; echo ""; } ?>

Pair of Vintage Old School Fru