-download category-

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • riderz
    replied
    i dnt have anything of this vault in lists.php

    Leave a comment:


  • srecnica
    replied
    lists.php
    else if($action=="vault")
    {
    $who = $_GET["who"];
    addonline(getuid_sid($sid),"U Galeriji!","");
    echo "<card id=\"main\" title=\"Galerija\">";
    $uid = getuid_sid($sid);



    //////ALL LISTS SCRIPT <<

    if($page=="" || $page<=0)$page=1;
    if($who!="")
    {
    $noi = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_vault WHERE uid='".$who."'"));
    }else{
    $noi = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_vault"));
    }
    $num_items = $noi[0]; //changable
    $items_per_page= 10;
    $num_pages = ceil($num_items/$items_per_page);
    if(($page>$num_pages)&&$page!=1)$page= $num_pages;
    $limit_start = ($page-1)*$items_per_page;

    if($who!="")
    {
    $sql = "SELECT id, title, itemurl FROM ibwf_vault WHERE uid='".$who."' ORDER BY pudt DESC LIMIT $limit_start, $items_per_page";
    }else{
    $sql = "SELECT id, title, itemurl, uid FROM ibwf_vault ORDER BY pudt DESC LIMIT $limit_start, $items_per_page";
    }


    echo "<p><small>";
    $items = mysql_query($sql);
    echo mysql_error();
    if(mysql_num_rows($items)>0)
    {
    while ($item = mysql_fetch_array($items))
    {
    $ext = getext($item[2]);
    $ime = getextimg($ext);
    $lnk = "<a href=\"$item[2]\">$ime".htmlspecialchars($item[1])."</a>";

    if(candelvl($uid, $item[0]))
    {
    $delnk = "<a href=\"genproc.php?action=delvlt&amp;sid=$sid&amp; vid=$item[0]\">[obrisi]</a>";
    }else{
    $delnk = "";
    }
    if($who!="")
    {
    $byusr="";
    }else{
    $unick = getnick_uid($item[3]);
    $ulnk = "<a href=\"index.php?action=viewuser&amp;sid=$sid&amp; who=$item[3]\">$unick</a>";
    $byusr = "- Od: $ulnk";
    }
    echo "$lnk $byusr $delnk<br/>";


    }
    }
    echo "</small></p>";
    echo "<p align=\"center\">";
    if($page>1)
    {
    $ppage = $page-1;
    echo "<a href=\"lists.php?action=$action&amp;page=$ppage&am p;sid=$sid&amp;who=$who\">&#171;Nazad</a> ";
    }
    if($page<$num_pages)
    {
    $npage = $page+1;
    echo "<a href=\"lists.php?action=$action&amp;page=$npage&am p;sid=$sid&amp;who=$who\">Napred&#187;</a>";
    }
    echo "<br/>$page/$num_pages<br/>";
    if($num_pages>2)
    {
    $rets = "Na stranu: <input name=\"pg\" format=\"*N\" size=\"3\"/>";
    $rets .= "<anchor>IDI";
    $rets .= "<go href=\"lists.php\" method=\"get\">";
    $rets .= "<postfield name=\"action\" value=\"$action\"/>";
    $rets .= "<postfield name=\"who\" value=\"$who\"/>";
    $rets .= "<postfield name=\"sid\" value=\"$sid\"/>";
    $rets .= "<postfield name=\"page\" value=\"$(pg)\"/>";
    $rets .= "</go></anchor>";

    echo $rets;
    }
    echo "</p>";
    ////// UNTILL HERE >>
    echo "<p align=\"center\">";
    if($uid==$who && getplusses($uid)>25)
    {
    echo "<a href=\"index.php?action=addvlt&amp;sid=$sid\">";
    echo "Dodaj Sliku</a><br/>";
    }
    if($who!="")
    {
    echo "<a href=\"index.php?action=viewuser&amp;sid=$sid&amp; who=$who\">";
    $whonick = getnick_uid($who);
    echo "$whonick Profil</a><br/>";
    }else{
    echo "<a href=\"index.php?action=stats&amp;sid=$sid\">";
    echo "<img src=\"images/stat.gif\" alt=\"*\"/>Statistika</a><br/>";
    }
    echo "<img src=\"images/home.gif\" alt=\"*\"/> <a href=\"index.php?action=main&amp;sid=$sid\">";
    echo "HAPPY</a>";
    echo "</p>";
    echo "</card>";
    }
    Customize your needs...I think you do this part of the file lists.php

    Leave a comment:


  • riderz
    replied
    Code:
    else if($action=="addvlt")
    {
    
    if(!getplusses(getuid_sid($sid))>25)
        {
          echo "<title>pinoykindat.net</title>";
          echo "<p align=\"center\">";
          echo "Only the user of 25+ plusses can add a vault item<br/><br/>";
          echo "<a href=\"index.php?action=main&amp;sid=$sid\">Home</a>";
          echo "</p>";
          echo "</body>";
          echo "</html>";
          exit();
        }
      $viname = $_POST["viname"];
      $vilink = $_POST["vilink"];
    $videsc = $_POST["videsc"];
      $did = $_POST["did"];
      $vid = $_POST["vid"];
     //$qut = $_POST["qut"];
    
     $fname= array_reverse(explode("/",$vilink));
      addonline(getuid_sid($sid),"Adding A Vault Item","index.php?action=main");
    
    error_reporting(0);
     if(strlen($viname)<5)
    {
          echo "<title>pinoykindat.net</title>";
          echo "<p align=\"center\">";
            echo "5 minimum letters for the title!";
      echo "<br/><a href=\"index.php?action=main&amp;sid=$sid\">";
      echo "Main menu</a>";
          echo "</p>";
          echo "</body>";
          echo "</html>";
          exit();
        }
     if(strlen($vilink)<5)
    {
          echo "<title>pinoykindat.net</title>";
          echo "<p align=\"center\">";
            echo "5 minimum letters for the link!";
      echo "<br/><a href=\"index.php?action=main&amp;sid=$sid\">";
      echo "Main menu</a>";
          echo "</p>";
          echo "</body>";
          echo "</html>";
          exit();
        }
     if(strlen($videsc)<5)
    {
          echo "<title>pinoykindat.net</title>";
          echo "<p align=\"center\">";
            echo "5 minimum letters for the description!";
      echo "<br/><a href=\"index.php?action=main&amp;sid=$sid\">";
      echo "Main menu</a>";
          echo "</p>";
          echo "</body>";
          echo "</html>";
          exit();
        }
    if(spacesin($vilink))
    {
          echo "<card id=\"main\" title=\"Error adding\">";
          echo "<p align=\"center\">";
          echo "No space input!<br/>";
          echo "<a href=\"index.php?action=main&amp;sid=$sid\">Main menu</a>";
          echo "</p>";
          echo "</body>";
          echo "</html>";
          exit();
        }
    $fname= array_reverse(explode("/",$vilink));
    
    if (!eregi("\.(mid|gif|bmp|mid|midi|3gp|mp3|mp4|wav|mpn|nth|mpc|jar|jad|jpeg|jpg|sis|mmf|amr|thm|png|wbmp|rar|zip)$",$fname[0]))
    {
    echo "<card id=\"main\" title=\"Error adding\">";
          echo "<p align=\"center\">";
    echo "<b>Unsuported File extention!</b><br/>";
    echo "<a href=\"index.php?action=main&amp;sid=$sid\">Main menu</a>";
                      echo "</p></card></wml>";
    			exit();
    			}
    echo "<title>pinoykindat.net</title>";
          echo "<p align=\"center\">";
          $crdate = time();
          //$uid = getuid_sid($sid);
    
       $res = false;
    
    $defaultDest = "$dir";
    $slash       = "/";
    
    $dest        = "./pkfiles/";
     $fname= array_reverse(explode("/",$vilink));
    $ds = array($dest, $slash, $fname[0]);
    		$ds = implode("", $ds);
      if (!copy($vilink, $ds))
    {
     echo "Dead link is not allowed!(<br/>"; 
    }else{       
      $fname= array_reverse(explode("/",$vilink));
    $ext = getext($fname[0]);
            $mime = getextfile($ext);
    $fname= array_reverse(explode("/",$vilink));
       $filesize = filesize($ds);
    $filesize = $filesize / 1048576;
    $fsize = 0;
    $fsizetxt = "";
      if ($filesize < 1)
      {
         $fsize = round($filesize*1024,0);
         $fsizetxt = "".$fsize."KB";
        $check1 = "KB";
      }else{
         $fsize = round($filesize,2);
         $fsizetxt = "".$fsize." MB";
    $check1 = "MB";
      }
      $res = mysql_query("INSERT INTO ibwf_vault SET uid='".$uid."', title='".mysql_escape_string($viname)."', pudt='".$crdate."', did='".$did."', info='".$videsc."',filesize='".$fsizetxt."', mime='".$mime."', itemurl='".$fname[0]."'");
     if($res)
          {
    mysql_query("UPDATE ibwf_users SET plusses=plusses-'5' WHERE id='".$uid."'");
     echo "File added successfully!";
          }else{
            
          }
    }
          echo "<br/><br/>";
          echo "<a href=\"index.php?action=main&amp;sid=$sid\">";
    echo "Main menu</a>";
          echo "</p>";
          echo "</body>";
    
    }
    add this in the genproc now the file get uploaded but it dnt display on the downloads lists anyone please help

    Leave a comment:


  • riderz
    replied
    My files work now i can download the stuff hehe now i have a prob with the delt option

    Leave a comment:


  • riderz
    replied
    yea i think so coz it get uploaded but when i try to download there are no action taken place and i dnt know whats the prob with the url uploader there are no action after u click on upload when u type in the url of the item it go to a blank page in genproc

    Leave a comment:


  • kiLLeR-eyEd_14
    replied
    Originally posted by zamaritan View Post
    yes..continue again..hehe -up-
    hehe, ayuko na..tnt..d nmn tlga q nanguna eh..
    [br/]
    just be keen observant people..you can fix that..i'll try also..wait..maybe the problem is in getnow.php?
    Last edited by kiLLeR-eyEd_14; 30.08.09, 19:38.

    Leave a comment:


  • zamaritan
    replied
    yes..continue again..hehe -up-

    Leave a comment:


  • kiLLeR-eyEd_14
    replied
    Originally posted by huwad View Post
    oh c0m'on? what kind of admin he is? ahaha.. an admin that can be phish? wiw.. i t0ld u, only n0obz can be phished..
    you can't say it brother.,ika nga, mtalino man ang matsing, naiisahan o npaglalanganan dn.. =)

    Leave a comment:


  • riderz
    replied
    when i click on the file to download there are no action taken place im using opera atm

    Leave a comment:


  • srecnica
    replied
    which browser to trying to do? maybe the problem is the ban for browsers that are defined in the file getnow.php

    Leave a comment:


  • riderz
    replied
    and what bout the url uploader i have error in genproc after i click upload it just give a blank page

    the uploader work in the upload.php file there i dnt have a prob the prob i have i cant download the file or delete it

    it get upload to the folder but i cant download the file or delete it
    Last edited by riderz; 30.08.09, 18:53.

    Leave a comment:


  • srecnica
    replied
    in upload.php is not defined in thes $uploaddir ="."; where????? Try to definises $uploaddir ="$pkfiles";
    and add to config.php (as we did for the MMS inbox)

    $pkfiles = "./pkfiles";

    P.S Not I tested this, but can be ok
    Last edited by srecnica; 30.08.09, 19:25.

    Leave a comment:


  • zamaritan
    replied
    bro theres no form for the title,description of files in your uploader.php

    Leave a comment:


  • riderz
    replied
    ive posted everything that i found on the wap.net.ph i dnt think there are mising files which one are missing

    Leave a comment:


  • zamaritan
    replied
    theres some missing fild in your uploader rider..

    Leave a comment:

Working...
X