File Search In Wap Buddy Script...

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

    File Search In Wap Buddy Script...

    I saw wappy has added file search on his wap buddy script at http://cult.trap17.com Help me to create this script./Or give me a wap file search script..Hard Style,wappy plz help..

    #2
    Code:
    ?php
    header("Content-type: text/vnd.wap.wml; charset=ISO-8859-1");
    echo "<?xml version=\"1.0\" encoding=\"ISO-8859-1\" ?>";
    echo "<!DOCTYPE wml PUBLIC \"-//WAPFORUM//DTD WML 1.1//EN\"
    \"http://www.wapforum.org/DTD/wml_1.1.xml\">\n";
    echo "\n";
    
    
    echo "<wml>";
    echo "<head>
    <meta http-equiv=\"Cache-Control\" content=\"no-cache\"/>
    </head>"; 
    echo "<card newcontext=\"true\" title=\"search\">";
    echo "<p mode=\"nowrap\">\n";
    echo "[size="1"]\n";
    
    function search($target, $directory){
    
       if(is_dir($directory)){
           $direc = opendir($directory);
           while(false !== ($file = readdir($direc))){
    
               if($file !="." && $file != ".."){
    
                   if(is_file($directory."/".$file)){
                       if(preg_match("/$target/i", $file)){
    
    $size = round(filesize($directory."/".$file)/1024,1);
    $rev = strrev ($file);
    $exp = explode (".", $rev);
    $true = strrev ($exp[0]);
    $trueext = strtolower ($true);
    if ($trueext=="zip" OR $trueext=="rar" OR $trueext=="gz" OR $trueext=="wav" OR $trueext=="bmp" OR $trueext=="mid" OR $trueext=="midi" OR $trueext=="sis" OR $trueext=="bmp" OR $trueext=="wbmp" OR $trueext=="mmf" OR $trueext=="png" OR $trueext=="jar" OR $trueext=="jad" OR $trueext=="exe" OR $trueext=="doc" OR $trueext=="mp3" OR $trueext=="mp4" OR $trueext=="3gp" OR $trueext=="avi" OR $trueext=="gif" OR $trueext=="jpg" OR $trueext=="jpeg" OR $trueext=="nth" OR $trueext=="thm" OR $trueext=="amr"){                                           
    
    echo "»<a href=\"$directory/$file\">$file ($size KB)</a>
    ";}
                                           }
                   }else if(is_dir($directory."/".$file)){
                       search($target,$directory."/".$file);
    
                   }
    
               }
           }
           closedir($direc);
       }
    
       return;
    }
    
    
    echo "[b]Search Results: [/b]$search
    ---
    ";
    search("$search", "./");
    
    
    echo "---
    [/size][size="1"]Search again:[/size]
    
    <input title=\"SEARCH:\" emptyok=\"true\" name=\"q\"/>
    [size="1"]
    <a href=\"search.php?search=$(q)\">Search Files</a>
    ";
    echo "---
    <a href=\"http://topsite.6te.net\">TOP-SITE</a>
    ---
    © TOP-SITE 2006-2007";
    echo "[/size]\n";
    echo "</p>";
    echo "</card>";
    echo "</wml>";
    ?>
    Visit: Chat4u.mobi - The New Lay Of being a site of your dreams!
    Visit: WapMasterz Coming Back Soon!
    _______
    SCRIPTS FOR SALE BY SUBZERO
    Chat4u Script : coding-talk.com/f28/chat4u-mobi-script-only-150-a-17677/ - > Best Script for your site no other can be hacked by sql or uploaders.
    FileShare Script : coding-talk.com/f28/file-wap-share-6596/ -> Uploader you will never regret buying yeah it mite be old now but it still seems to own others...
    _______
    Info & Tips
    php.net
    w3schools.com

    Comment


      #3
      thanks buddy..But How can I add above script to the bellow wap buddy script..


      <?
      header("Content-type: text/vnd.wap.wml");
      echo "<?xml version=\"1.0\"?>";
      echo "<!DOCTYPE wml PUBLIC \"-//WAPFORUM//DTD WML 1.1//EN\""." \"http://www.wapforum.org/DTD/wml_1.1.xml\">";

      include("../wapbuddy_settings.php");
      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")
      {
      $file_array[] = $file;
      }
      }
      $file_count = count ($file_array);
      sort ($file_array);
      ?>
      <wml>
      <card id="card1" title="<? echo $conf["site_name"] ?>">
      <p mode="nowrap">
      <do type="option" label="Home"><go href="../index.php"/></do>
      <? echo "<a href=\"../index.php\">Home</a>

      "; ?>
      <?

      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)
      ";
      $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</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</a>
      ";
      }
      echo "
      Directory:
      $file_count ";
      if ($file_count == 1)
      {echo "file";}
      else
      {echo "files";}

      echo " (" . round($total/1024,1) . "kb)";
      echo "
      <a href=\"../index.php\">Home</a>";
      }
      closedir($dp);
      ?>

      </p>
      </card>
      </wml>

      I saw wappy has added file search on his wap buddy script at http://cult.trap17.com Help me to create this script./Or give me a wap file search script..Hard Style,wappy plz help..[/b]





      Please reply W A P P YYYYYYYYYYYYYYY!!!Help me bro..

      Comment


        #4
        it will work like that try it on same part
        Code:
        <?
        header("Content-type: text/vnd.wap.wml"); 
        echo "<?xml version=\"1.0\"?>"; 
        echo "<!DOCTYPE wml PUBLIC \"-//WAPFORUM//DTD WML 1.1//EN\""." \"http://www.wapforum.org/DTD/wml_1.1.xml\">"; 
        
        include("../wapbuddy_settings.php");
        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);
        ?> 
        <wml> 
        <card id="card1" title="<? echo $conf["site_name"] ?>"> 
        <p mode="nowrap">
        <do type="option" label="Home"><go href="../index.php"/></do>
        <? echo "<a href=\"../index.php\">Home</a>
        
        "; ?>
        <?
        
        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)
        ";
        $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</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</a>
        ";
        }
        echo "
        Directory:
        $file_count ";
        if ($file_count == 1)
        {echo "file";}
        else
        {echo "files";}
        
        echo " (" . round($total/1024,1) . "kb)";
        echo "
        <a href=\"../index.php\">Home</a>";
        }
        closedir($dp);
        ?>
        
        [size="1"]Search for FREE files:[/size]
        
        <input title="SEARCH:" emptyok="true" name="q"/>
        [size="1"]
        [url="search.php?search=$(q)"]SEARCH[/url][/size]
        
        page: $page
        Pick a page
        [b]To[/b]
        [b]0-44434[/b]
        <input type="text" name="page" title="1-34 pages only" maxlength="20" size="03" value=""/>[size="1"]
        
        <anchor><go href="index.php" method="post"><postfield name="page" value="$(page)"/></go>[page]</anchor>[/size]
        
        </p>
        </card> 
        </wml>
        Visit: Chat4u.mobi - The New Lay Of being a site of your dreams!
        Visit: WapMasterz Coming Back Soon!
        _______
        SCRIPTS FOR SALE BY SUBZERO
        Chat4u Script : coding-talk.com/f28/chat4u-mobi-script-only-150-a-17677/ - > Best Script for your site no other can be hacked by sql or uploaders.
        FileShare Script : coding-talk.com/f28/file-wap-share-6596/ -> Uploader you will never regret buying yeah it mite be old now but it still seems to own others...
        _______
        Info & Tips
        php.net
        w3schools.com

        Comment


          #5
          can someone post the wapbuddy script so i can add that code in it please?

          i want the updated version of wapbuddy or the latest on please.........................

          Comment


            #6
            read my post lmao!!!!!!
            Visit: Chat4u.mobi - The New Lay Of being a site of your dreams!
            Visit: WapMasterz Coming Back Soon!
            _______
            SCRIPTS FOR SALE BY SUBZERO
            Chat4u Script : coding-talk.com/f28/chat4u-mobi-script-only-150-a-17677/ - > Best Script for your site no other can be hacked by sql or uploaders.
            FileShare Script : coding-talk.com/f28/file-wap-share-6596/ -> Uploader you will never regret buying yeah it mite be old now but it still seems to own others...
            _______
            Info & Tips
            php.net
            w3schools.com

            Comment


              #7
              read my post lmao!!!!!![/b]
              But whats search.php? Confused..

              Comment


                #8
                Code:
                <?php
                header("Content-type: text/vnd.wap.wml; charset=ISO-8859-1");
                echo "<?xml version=\"1.0\" encoding=\"ISO-8859-1\" ?>";
                echo "<!DOCTYPE wml PUBLIC \"-//WAPFORUM//DTD WML 1.1//EN\"
                \"http://www.wapforum.org/DTD/wml_1.1.xml\">\n";
                echo "\n";
                
                
                echo "<wml>";
                echo "<head>
                <meta http-equiv=\"Cache-Control\" content=\"no-cache\"/>
                </head>"; 
                echo "<card newcontext=\"true\" title=\"search\">";
                echo "<p mode=\"nowrap\">\n";
                echo "[size="1"]\n";
                
                function search($target, $directory){
                
                   if(is_dir($directory)){
                       $direc = opendir($directory);
                       while(false !== ($file = readdir($direc))){
                
                           if($file !="." && $file != ".."){
                
                               if(is_file($directory."/".$file)){
                                   if(preg_match("/$target/i", $file)){
                
                $size = round(filesize($directory."/".$file)/1024,1);
                $rev = strrev ($file);
                $exp = explode (".", $rev);
                $true = strrev ($exp[0]);
                $trueext = strtolower ($true);
                if ($trueext=="zip" OR $trueext=="rar" OR $trueext=="gz" OR $trueext=="wav" OR $trueext=="bmp" OR $trueext=="mid" OR $trueext=="midi" OR $trueext=="sis" OR $trueext=="bmp" OR $trueext=="wbmp" OR $trueext=="mmf" OR $trueext=="png" OR $trueext=="jar" OR $trueext=="jad" OR $trueext=="exe" OR $trueext=="doc" OR $trueext=="mp3" OR $trueext=="mp4" OR $trueext=="3gp" OR $trueext=="avi" OR $trueext=="gif" OR $trueext=="jpg" OR $trueext=="jpeg" OR $trueext=="nth" OR $trueext=="thm" OR $trueext=="amr"){                                           
                
                echo "?<a href=\"$directory/$file\">$file ($size KB)</a>
                ";}
                                                       }
                               }else if(is_dir($directory."/".$file)){
                                   search($target,$directory."/".$file);
                
                               }
                
                           }
                       }
                       closedir($direc);
                   }
                
                   return;
                }
                
                
                echo "[b]Search Results: [/b]$search
                ---
                ";
                search("$search", "./");
                
                
                echo "---
                [/size][size="1"]Search again:[/size]
                
                <input title=\"SEARCH:\" emptyok=\"true\" name=\"q\"/>
                [size="1"]
                <a href=\"search.php?search=$(q)\">Search Files</a>
                ";
                echo "---
                <a href=\"http://topsite.6te.net\">TOP-SITE</a>
                ---
                ? TOP-SITE 2006-2007";
                echo "[/size]\n";
                echo "</p>";
                echo "</card>";
                echo "</wml>";
                ?>
                ^^^
                search.php
                ---------------------------------
                Code:
                <?
                header("Content-type: text/vnd.wap.wml"); 
                echo "<?xml version=\"1.0\"?>"; 
                echo "<!DOCTYPE wml PUBLIC \"-//WAPFORUM//DTD WML 1.1//EN\""." \"http://www.wapforum.org/DTD/wml_1.1.xml\">"; 
                
                include("../wapbuddy_settings.php");
                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);
                ?> 
                <wml> 
                <card id="card1" title="<? echo $conf["site_name"] ?>"> 
                <p mode="nowrap">
                <do type="option" label="Home"><go href="../index.php"/></do>
                <? echo "<a href=\"../index.php\">Home</a>
                
                "; ?>
                <?
                
                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)
                ";
                $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</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</a>
                ";
                }
                echo "
                Directory:
                $file_count ";
                if ($file_count == 1)
                {echo "file";}
                else
                {echo "files";}
                
                echo " (" . round($total/1024,1) . "kb)";
                echo "
                <a href=\"../index.php\">Home</a>";
                }
                closedir($dp);
                ?>
                
                [size="1"]Search for FREE files:[/size]
                
                <input title="SEARCH:" emptyok="true" name="q"/>
                [size="1"]
                [url="search.php?search=$(q)"]SEARCH[/url][/size]
                
                page: $page
                Pick a page
                [b]To[/b]
                [b]0-44434[/b]
                <input type="text" name="page" title="1-34 pages only" maxlength="20" size="03" value=""/>[size="1"]
                
                <anchor><go href="index.php" method="post"><postfield name="page" value="$(page)"/></go>[page]</anchor>[/size]
                
                </p>
                </card> 
                </wml>
                ^^^^^
                wap buddy script with search :!:

                :::::::::::::::::::::::::::::::::::::::
                ::hahaha copyright no one!::
                :: ::
                :::::::::::::::::::::::::::::::::::::::
                Visit: Chat4u.mobi - The New Lay Of being a site of your dreams!
                Visit: WapMasterz Coming Back Soon!
                _______
                SCRIPTS FOR SALE BY SUBZERO
                Chat4u Script : coding-talk.com/f28/chat4u-mobi-script-only-150-a-17677/ - > Best Script for your site no other can be hacked by sql or uploaders.
                FileShare Script : coding-talk.com/f28/file-wap-share-6596/ -> Uploader you will never regret buying yeah it mite be old now but it still seems to own others...
                _______
                Info & Tips
                php.net
                w3schools.com

                Comment


                  #9
                  lol subzero i just needed the script cuz i dont think i got it anymore.......................but lol i search and found it....................

                  Comment


                    #10
                    Subzero that is my page my code. Now stop going round saying i copy you when you clearly copy me you dick. If anyone wants any of my scripts email me at admin@hack.s-60.org i would of posted them all here but idiots like subzero and chatz etc just copy and paste and try and claim it all as their work when clearly its mine. And sub zero that download script does have copyright under a limited general public license or LGPL to ME as i created it. If you want a proper example of the file search see php.net or look in my updated community script found in this scripts forum it is used on that.. God i remember why i don&#39;t use this site everytime i visit you bunch of cock&#39;s lol

                    Infact from now on i think i will start putting backdoors and malicious code in my scripts from now on.. See how ya all like that ya sad ****er&#39;s. I will give out all my scripts for free so why ya all trying to steal and copy? You people ruin this site and stop decent users wanting to visit here. Bollox site this is. Not cos of the script i use this forum script myself. Its the retarded users. ****ing grow up you sado&#39;s.

                    Comment


                      #11
                      How to short file by size,name n date in this script?

                      Comment


                        #12
                        wapbuddy was written by john roig lol
                        8th wonder of the world

                        Comment


                          #13
                          Code:
                          ?php
                          header("Content-type: text/vnd.wap.wml; charset=ISO-8859-1");
                          echo "<?xml version=\"1.0\" encoding=\"ISO-8859-1\" ?>";
                          echo "<!DOCTYPE wml PUBLIC \"-//WAPFORUM//DTD WML 1.1//EN\"
                          \"http://www.wapforum.org/DTD/wml_1.1.xml\">\n";
                          echo "\n";
                          echo "<wml>";
                          echo "<head>
                          <meta http-equiv=\"Cache-Control\" content=\"no-cache\"/>
                          </head>"; 
                          echo "<card newcontext=\"true\" title=\"search\">";
                          echo "<p mode=\"nowrap\">\n";
                          echo "[size="1"]\n";
                          
                          function search($target, $directory){
                          
                             if(is_dir($directory)){
                              $direc = opendir($directory);
                              while(false !== ($file = readdir($direc))){
                          
                               if($file !="." && $file != ".."){
                          
                                if(is_file($directory."/".$file)){
                                 if(preg_match("/$target/i", $file)){
                          
                          $size = round(filesize($directory."/".$file)/1024,1);
                          $rev = strrev ($file);
                          $exp = explode (".", $rev);
                          $true = strrev ($exp[0]);
                          $trueext = strtolower ($true);
                          if ($trueext=="zip" OR $trueext=="rar" OR $trueext=="gz" OR $trueext=="wav" OR $trueext=="bmp" OR $trueext=="mid" OR $trueext=="midi" OR $trueext=="sis" OR $trueext=="bmp" OR $trueext=="wbmp" OR $trueext=="mmf" OR $trueext=="png" OR $trueext=="jar" OR $trueext=="jad" OR $trueext=="exe" OR $trueext=="doc" OR $trueext=="mp3" OR $trueext=="mp4" OR $trueext=="3gp" OR $trueext=="avi" OR $trueext=="gif" OR $trueext=="jpg" OR $trueext=="jpeg" OR $trueext=="nth" OR $trueext=="thm" OR $trueext=="amr"){             
                          
                          echo "»<a href=\"$directory/$file\">$file ($size KB)</a>
                          ";}
                                      }
                                }else if(is_dir($directory."/".$file)){
                                 search($target,$directory."/".$file);
                          
                                }
                          
                               }
                              }
                              closedir($direc);
                             }
                          
                             return;
                          }
                          echo "[b]Search Results: [/b]$search
                          ---
                          ";
                          search("$search", "./");
                          echo "---
                          [/size][size="1"]Search again:[/size]
                          
                          <input title=\"SEARCH:\" emptyok=\"true\" name=\"q\"/>
                          [size="1"]
                          <a href=\"search.php?search=$(q)\">Search Files</a>
                          ";
                          echo "---
                          <a href=\"http://topsite.6te.net\">TOP-SITE</a>
                          ---
                          © TOP-SITE 2006-2007";
                          echo "[/size]\n";
                          echo "</p>";
                          echo "</card>";
                          echo "</wml>";
                          ?>
                          [/b]
                          mmm there we go.. YOU DO ALONE MY WORK NOW STOP SAYING YOU DO. I WROTE THAT PAGE WITH THE SEARCH AND THE FILE EXTENSION CODE, YOU EVEN PUT YOUR OWN COPYRIGHT ON MY WORK YOU SAD LITTLE MAN, ALSO HAVE ALL THE ICONS AND UPDATED COPY&#39;S. If anyone wants help with code i (wappy) have writen mail me at admin@hack.s-60.org

                          Comment


                            #14
                            where is wapbuddy_settings.php file?

                            Comment


                              #15
                              I removed it. As i keep saying i updated it alot. If you want help with it or better version (that works on all servers unlike the one mr copycat posted) visit my site. Lol

                              Comment

                              Working...
                              X