My Download Script

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

    #16
    Thanx guys, well, i can also help with updates, or make it work with funmobile, me and phoenix90 did the first mod with funmobile, it had bugs in it, but there might still be but we fixed them all, oh yes,,, ugh nevermind... lol

    Click here!!!

    Comment


      #17
      thanx dude k: k: k: k:

      Comment


        #18
        10q, i will try it!

        Comment


          #19
          its very easy to make it work woth lavalair or funmobile whatver script it is. have no idea, for what are you guys scratching your head for lol. but dude spiderwap the script outlook is awesome.

          Comment


            #20
            can i make, or how can i make subfolders?

            Comment


              #21
              can i make, or how can i make subfolders?[/b]
              subfolders for what??

              Comment


                #22
                for example, i make a Java games section and i want subfolders with : sports, action, arcade, etc... Do you feel me?

                Comment


                  #23
                  for example, i make a Java games section and i want subfolders with : sports, action, arcade, etc... Do you feel me?[/b]
                  make another config. or you can make it as a flat (no config) try to look at this one. lot of subfolders. lolz

                  Comment


                    #24
                    can you give me that script please?

                    Comment


                      #25
                      i thought you guys would never ask for . i have it ill post it later

                      Comment


                        #26
                        thank you very much

                        Comment


                          #27
                          sorry, lost u guys, what script??

                          Click here!!!

                          Comment


                            #28
                            wapodium 's script.

                            @ SpiderWap , can i make sub directories with your download script??? or maybe i should ask how.

                            Comment


                              #29
                              <div class='codetop'>CODE</div><div class='codemain' style='height:200px;white-space:pre;overflow:auto'><?php

                              include("../config.php");
                              include("../core.php");


                              if($mime== WEB)
                              {
                              echo "<?xml version=\"1.0\" encoding=\"UTF-8\" ?>";
                              echo "<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\">";

                              }else{
                              echo "<?xml version=\"1.0\" encoding=\"UTF-8\" ?>";
                              echo "<!DOCTYPE wml PUBLIC \"-//WAPFORUM//DTD WML 1.1//EN\"". " \"http://www.wapforum.org/DTD/wml_1.1.xml\">";
                              }

                              $bcon = connectdb();
                              if (!$bcon)
                              {

                              echo dberror($mime);

                              }
                              $getuthm = mysql_fetch_array(mysql_query("SELECT theme FROM jayd_users WHERE id=&#39;".$uid."&#39;"));
                              $uth = $getuthm[0];
                              if(!$uth=="")
                              {
                              $uthm = "$uth";
                              $uthm = utheme($uthm);
                              }else{
                              $uthm = "../default.css";
                              }
                              $action = $_GET["action"];
                              $page = $_GET["page"];
                              $who = $_GET["who"];
                              $brws = explode(" ",$HTTP_USER_AGENT);
                              $ubr = $brws[0];
                              $uip = getip();
                              $id=$_GET["id"];

                              $stitle = "Downloads";

                              if((islogged($ses)==false)||($uid==0))
                              {
                              echo notlogged($mime);
                              }


                              if(isipbanned($uip,$ubr))
                              {

                              if(!isshield(getuid_ses($ses)))
                              {
                              echo useripbanned($mime,$uip,$ubr);
                              }
                              }

                              //echo isbanned($uid);
                              if(isbanned($uid))
                              {
                              echo userbanned($mime,$uid);
                              }

                              if($mime== WEB)
                              {
                              echo webhead($uthm,$stitle);

                              echo "<p align=\"center\">";
                              addonline(getuid_ses($ses),"Downloading full mp3s","");






                              if (!isset($page)) {$page = 0;}
                              $total = 0;

                              if(!($dp = opendir("./"))) die ("Cannot open ./");
                              $file_array = array();
                              while ($file = readdir ($dp))
                              {
                              if(substr($file,0,1) != &#39;.&#39; and $file != "index.php" and $file != "search.php")
                              {
                              $file_array[] = $file;
                              }
                              }
                              $file_count = count ($file_array);
                              sort ($file_array);
                              if ($file_count > 0)
                              {
                              $first_record = $page * $conf["items_per_page"];
                              $last_record = $first_record + $conf["items_per_page"];

                              while (list($fileIndexValue, $file_name) = each ($file_array))
                              {

                              if (($fileIndexValue >= $first_record) AND ($fileIndexValue < $last_record))
                              {

                              echo "<a href=\"$file_name\">$file_name</a> (". round(filesize($file_name)/1024,1) . "kb)<hr/>";
                              $total = $total + filesize($file_name);
                              }
                              }

                              if (($file_count > 0) AND ($page != 0))
                              {
                              // previous button
                              $prev_page = $page -1;
                              echo "
                              <a href=\"".$_SERVER["PHP_SELF"]."?page=$prev_page\">Prev Page</a>
                              ";
                              }


                              if (($file_count > 0) AND ($last_record < $file_count))
                              {
                              // next button
                              $next_page = $page + 1;
                              echo "
                              <a href=\"".$_SERVER["PHP_SELF"]."?page=$next_page\">Next Page</a>
                              ";
                              }

                              if ($file_count == 1)
                              {echo "file";}
                              else
                              {echo "files";}

                              echo " (" . round($total/1024,1) . "kb)";
                              }
                              closedir($dp);



                              echo "<img src=\"images/home.gif\" alt=\"*\"/><a href=\"index.php?action=main&amp;ses=$ses\">Home</a>";
                              echo "</p>";
                              echo " <table><tr><td><a href=\"index.php?action=logout&amp;ses=$ses\">Logo ut</a>|<a href=\"http://ebuzz.uni.cc/page1.php\">E-News</a>|<a href=\"http://ebuzz.uni.cc/partners.php\">Partners</a>|<a href=\"http://ebuzz.uni.cc/index.php?action=viewuser&amp;who=floyd&amp;ses=$s es\">E-book</a>|<a href=\"http://lavalair.net\">Blaze</a></td></tr></table>";
                              echo " <table><tr><td>© e-buzz 2007 edited by Floyd
                              All rights reserved
                              </td></tr></table>
                              ";


                              echo webfoot();

                              }


                              </div>

                              Comment


                                #30
                                hm... i&#39;m a n00b , i&#39;m lost

                                Comment

                                Working...
                                X