Upload via url

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

    Upload via url

    im having prob with the code it get uploaded to the sql but dnt display on the list
    Code:
    //////////////////////////////////////////add vault
    
    else if($action=="addvlt2")
    {
    
    $pstyle = theme($sid);
          echo "<head>\n";
              echo "<title>$sitetitle</title>\n";
      echo "<link rel=\"stylesheet\" type=\"text/css\" href=\"themes/$theme[0]\">";
                        echo "<meta http-equiv=\"Cache-Control\" content=\"must-revalidate\" />\n";
          echo "<meta http-equiv=\"Cache-Control\" content=\"no-cache\" />\n";
          echo "<meta http-equiv=\"Pragma\" content=\"no-cache\" />\n";
              echo "</head>";
    if(!getplusses(getuid_sid($sid))>25)
        {
            echo "<card id=\"main\" title=\"$stitle\">";
          echo "<p align=\"center\">";
          echo "At least you should have 25 plusses to add an item to your vault<br/><br/>";
          echo "<a href=\"index.php?action=main&amp;sid=$sid&amp;type=send\">Main Menu</a>";
          echo "</p>";
          echo "</card>";
          echo "</wml>";
          exit();
        }
        addonline(getuid_sid($sid),"v2:Adding Vault Item","index.php?action=$action");
    echo "<table border=\"0\" cellspacing=\"0\" cellpadding=\"0\" height=\"60\" width=\"159\">";
    echo "<tr>";
    echo "<td id=\"body\" width=\"159\">";
    echo "</td>";
    echo "</tr>";
    echo "</table>";
    
     echo "<table border=\"0\" width=\"99%\" cellspacing=\"0\" cellpadding=\"0\" class=\"boxed\" align=\"center\">";
    echo "<tr>";
    echo "<td class=\"boxedTitle\" height=\"20\">";
    echo "<h1 align=\"center\" class=\"boxedTitleText\">Add Vault</h1></td>";
    echo "</tr>";
    echo "<tr>";
    echo "<td class=\"boxedContent\">";
        echo "<p align=\"left\">Earn more plusses by adding more files :)<br/><a href=\"uploader.php?sid=$sid&amp;ver=html\">Upload files from your Phone</a><br/>";
        echo "<form action=\"genproc.php?action=addvlt2&amp;sid=$sid\" method=\"post\">";
        echo "Item Name: <input name=\"viname\" maxlength=\"50\"/><br/>";
        echo "Item URL: <input name=\"vilink\" maxlength=\"255\" value=\"http://\"/><br/>";
       echo "Description: <input name=\"videsc\" maxlength=\"50\"/><br/>";
    
    echo "<select name=\"file\">";
       echo "<option value=\"1\">Symbian Software</option>";
      echo "<option value=\"2\">Java Software</option>";
      echo "<option value=\"3\">Anti Virus</option>";
      echo "<option value=\"4\">s40v2/s40v3-Themes</option>";
      echo "<option value=\"5\">s60/s60v3/Nseries/-Themes </option>";
      echo "<option value=\"6\">Sony Ericsson-Themes </option>";
      echo "<option value=\"7\">s30/40/s40v2-Games </option>";
      echo "<option value=\"8\">s60/s60v3 Games </option>";
      echo "<option value=\"9\">Nseries/Eseries/Ngage-Games </option>";
      echo "<option value=\"10\">Sony Ericsson-Games</option>";
     echo "<option value=\"11\">Full MP3</option>";
      echo "<option value=\"12\">3GP Videos</option>";
      echo "<option value=\"13\">Scandal</option>";
    echo "<option value=\"14\">Gameboy Games</option>";
      echo "<option value=\"15\">Naruto-Themes/Poly/MP3</option>";
      echo "<option value=\"16\">MP3/MIDI/WAV/POLY/AMR/RAR</option>";
         echo "<option value=\"17\">Opera Software</option>";
        echo "<option value=\"18\">Images</option>";
      echo "</select><br/>";
        echo "<input type=\"submit\" value=\"Upload\"/>";
    echo "</form>";
    echo "</td>";
    echo "</tr>";
    
    echo "</table>";
      echo "<a href=\"index.php?action=main&amp;sid=$sid\"><img src=\"images/home.gif\" alt=\"*\"/>";
      echo "Home</a>";
      echo "</p>";
        echo xhtmlfoot();
            exit();
    }
    i think the prob are in here
    Code:
    echo "<select name=\"file\">";
       echo "<option value=\"1\">Symbian Software</option>";
      echo "<option value=\"2\">Java Software</option>";
      echo "<option value=\"3\">Anti Virus</option>";
      echo "<option value=\"4\">s40v2/s40v3-Themes</option>";
      echo "<option value=\"5\">s60/s60v3/Nseries/-Themes </option>";
      echo "<option value=\"6\">Sony Ericsson-Themes </option>";
      echo "<option value=\"7\">s30/40/s40v2-Games </option>";
      echo "<option value=\"8\">s60/s60v3 Games </option>";
      echo "<option value=\"9\">Nseries/Eseries/Ngage-Games </option>";
      echo "<option value=\"10\">Sony Ericsson-Games</option>";
     echo "<option value=\"11\">Full MP3</option>";
      echo "<option value=\"12\">3GP Videos</option>";
      echo "<option value=\"13\">Scandal</option>";
    echo "<option value=\"14\">Gameboy Games</option>";
      echo "<option value=\"15\">Naruto-Themes/Poly/MP3</option>";
      echo "<option value=\"16\">MP3/MIDI/WAV/POLY/AMR/RAR</option>";
         echo "<option value=\"17\">Opera Software</option>";
        echo "<option value=\"18\">Images</option>";
      echo "</select><br/>";

    #2
    So, the problem is maybe in the codes where items are listed..Maybe it don't fetch the items uploaded via url..or maybe, the problem is in the uploader?Check it if the file you've uploaded would be seen in the database..
    Last edited by kiLLeR-eyEd_14; 05.09.09, 09:32.
    My Blog: http://jhommark.blogspot.com
    My Facebook: http://www.facebook.com/jhommark
    My Official Site: http://www.undergroundweb.tk
    My Community Site: http://undergroundwap.xtreemhost.com

    Comment


      #3
      jip all the files get uploaded to a folder and sql

      Comment


        #4
        Do the files you upload get added to that folder?
        If so the problem may be with your vault listing code in lists.php.
        Is the sql inserting into the ibwf_vault table ?

        Comment


          #5
          Try this see if the problem is solved ?? Is the name of the list meant to be file just double check to be sure

          Code:
          echo "<select name=\"file\" multiple=\"false\">";
          echo "<option value=\"1\">Symbian Software</option>";
          echo "<option value=\"2\">Java Software</option>";
          echo "<option value=\"3\">Anti Virus</option>";
          echo "<option value=\"4\">s40v2/s40v3-Themes</option>";
          echo "<option value=\"5\">s60/s60v3/Nseries/-Themes </option>";
          echo "<option value=\"6\">Sony Ericsson-Themes </option>";
          echo "<option value=\"7\">s30/40/s40v2-Games </option>";
          echo "<option value=\"8\">s60/s60v3 Games </option>";
          echo "<option value=\"9\">Nseries/Eseries/Ngage-Games </option>";
          echo "<option value=\"10\">Sony Ericsson-Games</option>";
          echo "<option value=\"11\">Full MP3</option>";
          echo "<option value=\"12\">3GP Videos</option>";
          echo "<option value=\"13\">Scandal</option>";
          echo "<option value=\"14\">Gameboy Games</option>";
          echo "<option value=\"15\">Naruto-Themes/Poly/MP3</option>";
          echo "<option value=\"16\">MP3/MIDI/WAV/POLY/AMR/RAR</option>";
          echo "<option value=\"17\">Opera Software</option>";
          echo "<option value=\"18\">Images</option>";
          echo "</select><br/>";

          or

          Code:
          <?php
          $value = Array("Symbian Software","Java Software","Anti Virus","s40v2/s40v3-Themes","s60/s60v3/Nseries/-Themes","Sony Ericsson-Themes","s30/40/s40v2-Games","s60/s60v3 Games","Nseries/Eseries/Ngage-Games","Sony Ericsson-Games","Full MP3","3GP Videos","Scandal","Gameboy Games","Naruto-Themes/Poly/MP3","MP3/MIDI/WAV/POLY/AMR/RAR","Opera Software","Images");
          
          $amount = count($value);
          
          echo "<select name=\"file\" multiple=\"false\">";
          for($i=1; $i < $amount; $i++){ 
          echo "<option value=\"$i\">$value[$i]</option>";
          }
          echo "</select><br/>";
          ?>
          Last edited by wap2k; 06.09.09, 00:31.

          Comment


            #6
            post your whole script(getnow.upload.uploader and downloads.php..let us fix it

            Comment

            Working...
            X