Auto index - remove the underscore

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

    Auto index - remove the underscore

    im trying to include a function to remove the _ in all file names on this script but this is the first time im trying this and i have no idea how to...

    <?
    /*
    ----------------------------------------------------------
    POCKETWAP.NET AUTO INDEX PHP SCRIPT
    Version: 2.0 ( html)
    Last update: 02 July 2009
    ----------------------------------------------------------
    Author : SANJAYCITY
    Website: POCKETWAP.NET : Free Mobile Ringtones, Themes, Animation, Mp3, Fickr Images Search, Youtube Videos Search, Chat, Blog, Forum Etc.
    Sript Forum : POCKETWAP SCRIPTS FORUM - Index
    Email: admin@pocketwap.net
    Copyright (c) 2009 SANJAYCITY. All rights reserved.
    -----------------------------------------------------------
    Get More Free PHP scripts at POCKETWAP SCRIPTS FORUM - Index
    ----------------------------------------------------------
    */

    ?>

    <title>POCKETWAP.NET - FOLDER MANAGEMENT SCRIPT</title>

    <meta name="description" content=" Free Mobile Wallpapers, Ringtones, Amr ringtones, Mp3 ringtones, MMf ringtones, free wallpaper,themes, free videos, download, movie, mp3 songs, 3gp mp4 avi videos, mobile software, games, free mp3 songs, tamil, telugu, malayalam,
    kannada, pakistani, punjabi, bengali, english, hindi, bhangra, pashto, ghazals, quawwalia, bollywood, tollywood, hollywood, kollywood,
    mulluwood, mp3,Tamil MP3,Tamil Compressed Mp3,Tamil Full MP3,Mp3,128 Bit Mp3,Hindi MP3,Tamil Wav Tones,Tamil New Mp3,2009 Hits Mp3,
    Tamil 3gp,Tamil Mp4,Tamil Ring tone,Tamil Midi Tones,Tamil Amr Tones,Mobile Software,Application,sis,sisx,jar,jad,thm,Wallpape r,Screen
    Savers,Java Games,Java Application">

    <meta name="keywords" content=" free SMS, SMS, free ringtone, Amr ringtones,
    Mp3 ringtones, MMf ringtones, free wallpaper, themes, free videos, download, movie, mp3 songs, 3gp mp4 avi videos, mobile software, games, free mp3 songs, tamil, telugu, malayalam, kannada, pakistani, punjabi, bengali,
    english, hindi, bhangra, pashto, ghazals, quawwalia, bollywood, tollywood, hollywood, kollywood, mulluwood, mp3,Tamil MP3,Tamil Compressed Mp3,
    Tamil Full MP3,Mp3,128 Bit Mp3,Hindi MP3,Tamil Wav Tones,Tamil New Mp3,2009 Hits Mp3,Tamil 3gp,Tamil Mp4,Tamil Ring tone,Tamil Midi Tones,Tamil
    Amr Tones,Mobile Software,Application,sis,sisx,jar,jad,thm,Wallpape r,Screen Savers,Java Games,Java Application, Mobile Secret Codes, Mobile Codes,
    Codes, Mobile, Nokia, Nokia Codes, Nokia Secret Codes,Sony Ericsson, Sony Ericsson Codes, Sony Ericsson Secret Codes, Motorola, Motorola Codes,
    Motorola Secret Codes, Samsung,Samsung Codes, Samsung Secret Codes, LG ,LG Codes,LG Secret Codes, BenQ-Siemens,BenQ-Siemens Codes, BenQ-Siemens
    Secret Codes, Sagem, Sagem Codes,Sagem Secret Codes,sharp, Sharp Codes, Sharp Secret Codes," />



    <style type="text/css" >

    body, td, tr {
    text-decoration: none;
    font-family: verdana, arial, helvetica, sans-serif;
    font-size: 10px; cursor: default;
    color:#666 ;
    }

    body {margin: 3px; padding: 3px; background: #ffffff; color:#666 ;padding-top: 3px;
    padding-bottom: 3px;}


    a:active, a:visited, a:link {
    color:#3399cc; #EE107B;
    text-decoration: none;
    font-size: 10px;
    border-bottom: 1px solid #ccc; }

    a:hover {
    color: #EE107B;
    text-decoration:
    underline; font-size: 10px;
    }


    hr { width:100%; border:none; border-top:1px dashed #A9A9A9; height:1px; margin-bottom:3px; margin-top:3px;}
    div { padding: 4px; margin: 0px 0px 0px 0px;}

    div.head {
    text-align:center;
    background-color:#87CEFA;
    margin:0px
    }

    </style>
    <center>
    <div class="head"><b>
    Write Folder Name</b></center></div>


    <?
    $items_per_page = "10";
    $size_bytes = 100072000;
    $kb = $size_bytes / 1024;
    $mb = $size_bytes / 1024000;
    if (!isset($_GET['page']))
    { $page=0; }
    else { $page = $_GET['page']; }
    $total = 0;

    if(!($dp = opendir("./"))) die ("Cannot open ./");
    $file_array = array();
    while ($file = readdir ($dp))
    {
    if(substr($file,0,1) != '.' and $file != "index.php")
    {
    $file_array[] = $file;
    }
    }
    $file_count = count ($file_array);
    sort ($file_array);

    if ($file_count > 0)
    {
    $first_record = $page * $items_per_page;
    $last_record = $first_record + $items_per_page;

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

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

    echo "<img src=\"http://pocketwap.net/icon/dir.png\"><a href=\"$file_name\">$file_name</a><br />";
    $total = $total + filesize($file_name);

    }
    }
    ?><hr><center><?

    if (($file_count > 0) AND ($page != 0))
    {



    // previous button

    $prev_page = $page -1;

    echo "<a href=\"".$_SERVER["PHP_SELF"]."?page=$prev_page\">[Back]</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 "<br/>Directory:<br/>$file_count ";
    if ($file_count == 1)
    {echo "file";}
    else
    {echo "files";}

    echo " (" . round($total/1024,1) . "kb)";
    ?></div><?
    // Home index
    echo " <br/><a href=\"http://write here your url\">[Edit Your Back Link]</a>";

    /*
    -----------------------------------------------------------
    Please Support Us by providing back Link to Our Site,
    Don't delete this partner link.
    ----------------------------------------------------------
    */

    echo " <br/>Our Partner:";


    echo " <br/><a href=\"http://pocketwap.net\">[Pocketwap.net]</a><hr>";


    }

    closedir($dp);

    ?>
    All Rights Reserved.<hr/>
    search_txt = str_replace("."," ",$file_name);
    thats all i have so far...

    oh and as an extra how would you include screenshots for different file types like .thm and .3gp the file types that can automatically have a screenshot

    #2
    Heres a thumbnail maker......
    That should solve that problem you have....

    This is simplest way, probably to search for a keyword in a page.

    PHP Code:
    <?php
        $file_name
    =array();
        
    $search_string=$_GET["searchstring"];
        
    $search_result="";
        
    $files=""$data="";
        
    $link="";
        
    $phpfilename="";
        
    $textstart=0$textend=0$strlocation=0;
        
    $numbers=array(5,10,6,8,15,20);
        
    $i=0;    
        
        if(
    $search_string!="")
        {
    //ends at last
        

        
    if ($handle opendir('name_of_dir')) 
        { 
        
    // List all the files 
        
    while (false !== ($file readdir($handle)))
        {
        
    $filename[]= $file
        } 
        
    closedir($handle); 
        } 
    //read the file get the text and filter the search...

      
    foreach($filename as $value)
      {
      
    $files="pages/$value";
      
    $fp=fopen($files,"r") or die("unable to read a file");
      
    $data="";
      while(!
    feof($fp))
      {
      
    $data.=strip_tags(fgets($fp));
      }
      if(
    strpos($data,$search_string)!=false)
      {
      
    $phpfilename=substr($value,0,strpos($value,"."));
      
    $link=$phpfilename.".php";
      if(
    $link=="home.php"$link="index.php";
      
    $strlocation=strpos($data,$search_string);
      
    $i=array_rand($numbers);
      
      if(
    strpos($data,".",$strlocation)!=false)
      
    $textend=strpos($data,".",$strlocation);
      elseif(
    strpos($data," ",$strlocation)!=false)
      
    $textend=strpos($data,".",$strlocation);
      else
      {
      
    $textend=$strlocation$strlocation=$strlocation-100;

      
    $search_result.="<p class='contenttext'> <a href='$link'> $phpfilename </a><br />.... "
      
      
    .substr($data$strlocation-$i,$textend)."...</p>";
      }
      }
      }
      } 
    //if end of if for checking if string is empty
     
      
    if($search_result!="")
      echo 
    $search_result;
      else
      echo 
    "<br /> No Result found on this search or bad input. <br />";
      echo 
    "</div> </div> </div>";
    ?>
    Attached Files
    Last edited by bOrN2pwn; 02.01.10, 08:33.
    BakGat
    Code:
    class Counter {
    public:
      void Count();
      int  ReadDisplay();
    private:
      int  CurrentCount;
    };








    Back up my hard drive? How do I put it in reverse?
    My Community
    BakGat
    sigpic

    Comment


      #3
      thanks so much... how do i give you rep ? do i just thank you ?

      Comment


        #4
        forgive me i am very noob at this... i am trying to include that code with the auto index script but for some reason i cant get it right...

        Comment


          #5
          Originally posted by NoFx View Post
          forgive me i am very noob at this... i am trying to include that code with the auto index script but for some reason i cant get it right...
          Dos your mp3's work with a SQL or do you simply upload then in a directory.....
          BakGat
          Code:
          class Counter {
          public:
            void Count();
            int  ReadDisplay();
          private:
            int  CurrentCount;
          };








          Back up my hard drive? How do I put it in reverse?
          My Community
          BakGat
          sigpic

          Comment


            #6
            just upload them in the directory ... but you see its not only for mp3s im gna be using it for all file types

            Comment


              #7
              thanks by the way ... its fine you have helped me enough im gna try do it myself but thanks so much for the php screenshots 2

              Comment


                #8
                This allows you to replace one string with another. The syntaxt is:

                PHP Code:
                str_replace($look_for$change_to$search_textmatch_count); 
                The last one, match_count, is optional. It's counts how many matches it has found.

                In the example below, we're looking for "explore" and want to replace it with "explode".

                PHP Code:
                $search_text "The explore function";
                $look_for "explore";
                $change_to "explode";

                print 
                $search_text "<BR>";
                $changed_text str_replace($look_for$change_to$search_text);

                print 
                $changed_text
                Hope you understand what I mean here.

                Heres a few other ways hope they work.... Just a quick code...

                PHP Code:
                <?php $search_text "Search"?> 
                <form method="get" id="searchform"  
                action="<?php bloginfo('home'); ?>/"> 
                <input type="text" value="<?php echo $search_text?>"  
                name="s" id="s"  
                onblur="if (this.value == '')  
                {this.value = '<?php echo $search_text?>';}"  
                onfocus="if (this.value == '<?php echo $search_text?>')  
                {this.value = '';}" /> 
                <input type="hidden" id="searchsubmit" /> 
                </form>
                Last edited by bOrN2pwn; 02.01.10, 09:18.
                BakGat
                Code:
                class Counter {
                public:
                  void Count();
                  int  ReadDisplay();
                private:
                  int  CurrentCount;
                };








                Back up my hard drive? How do I put it in reverse?
                My Community
                BakGat
                sigpic

                Comment


                  #9
                  Originally posted by the script
                  <?
                  /*
                  ----------------------------------------------------------
                  POCKETWAP.NET AUTO INDEX PHP SCRIPT
                  Version: 2.0 ( html)
                  Last update: 02 July 2009
                  ----------------------------------------------------------
                  Author : SANJAYCITY
                  Website: POCKETWAP.NET : Free Mobile Ringtones, Themes, Animation, Mp3, Fickr Images Search, Youtube Videos Search, Chat, Blog, Forum Etc.
                  Sript Forum : POCKETWAP SCRIPTS FORUM - Index
                  Email: admin@pocketwap.net
                  Copyright (c) 2009 SANJAYCITY. All rights reserved.
                  -----------------------------------------------------------
                  Get More Free PHP scripts at POCKETWAP SCRIPTS FORUM - Index
                  ----------------------------------------------------------
                  */

                  ?>

                  <title>POCKETWAP.NET - FOLDER MANAGEMENT SCRIPT</title>

                  <meta name="description" content=" Free Mobile Wallpapers, Ringtones, Amr ringtones, Mp3 ringtones, MMf ringtones, free wallpaper,themes, free videos, download, movie, mp3 songs, 3gp mp4 avi videos, mobile software, games, free mp3 songs, tamil, telugu, malayalam,
                  kannada, pakistani, punjabi, bengali, english, hindi, bhangra, pashto, ghazals, quawwalia, bollywood, tollywood, hollywood, kollywood,
                  mulluwood, mp3,Tamil MP3,Tamil Compressed Mp3,Tamil Full MP3,Mp3,128 Bit Mp3,Hindi MP3,Tamil Wav Tones,Tamil New Mp3,2009 Hits Mp3,
                  Tamil 3gp,Tamil Mp4,Tamil Ring tone,Tamil Midi Tones,Tamil Amr Tones,Mobile Software,Application,sis,sisx,jar,jad,thm,Wallpape r,Screen
                  Savers,Java Games,Java Application">

                  <meta name="keywords" content=" free SMS, SMS, free ringtone, Amr ringtones,
                  Mp3 ringtones, MMf ringtones, free wallpaper, themes, free videos, download, movie, mp3 songs, 3gp mp4 avi videos, mobile software, games, free mp3 songs, tamil, telugu, malayalam, kannada, pakistani, punjabi, bengali,
                  english, hindi, bhangra, pashto, ghazals, quawwalia, bollywood, tollywood, hollywood, kollywood, mulluwood, mp3,Tamil MP3,Tamil Compressed Mp3,
                  Tamil Full MP3,Mp3,128 Bit Mp3,Hindi MP3,Tamil Wav Tones,Tamil New Mp3,2009 Hits Mp3,Tamil 3gp,Tamil Mp4,Tamil Ring tone,Tamil Midi Tones,Tamil
                  Amr Tones,Mobile Software,Application,sis,sisx,jar,jad,thm,Wallpape r,Screen Savers,Java Games,Java Application, Mobile Secret Codes, Mobile Codes,
                  Codes, Mobile, Nokia, Nokia Codes, Nokia Secret Codes,Sony Ericsson, Sony Ericsson Codes, Sony Ericsson Secret Codes, Motorola, Motorola Codes,
                  Motorola Secret Codes, Samsung,Samsung Codes, Samsung Secret Codes, LG ,LG Codes,LG Secret Codes, BenQ-Siemens,BenQ-Siemens Codes, BenQ-Siemens
                  Secret Codes, Sagem, Sagem Codes,Sagem Secret Codes,sharp, Sharp Codes, Sharp Secret Codes," />



                  <style type="text/css" >

                  body, td, tr {
                  text-decoration: none;
                  font-family: verdana, arial, helvetica, sans-serif;
                  font-size: 10px; cursor: default;
                  color:#666 ;
                  }

                  body {margin: 3px; padding: 3px; background: #ffffff; color:#666 ;padding-top: 3px;
                  padding-bottom: 3px;}


                  a:active, a:visited, a:link {
                  color:#3399cc; #EE107B;
                  text-decoration: none;
                  font-size: 10px;
                  border-bottom: 1px solid #ccc; }

                  a:hover {
                  color: #EE107B;
                  text-decoration:
                  underline; font-size: 10px;
                  }


                  hr { width:100%; border:none; border-top:1px dashed #A9A9A9; height:1px; margin-bottom:3px; margin-top:3px;}
                  div { padding: 4px; margin: 0px 0px 0px 0px;}

                  div.head {
                  text-align:center;
                  background-color:#87CEFA;
                  margin:0px
                  }

                  </style>
                  <center>
                  <div class="head"><b>
                  Write Folder Name</b></center></div>


                  <?
                  print $changed_text;
                  $search_txt = str_replace("_"," ",$file_name);
                  $items_per_page = "10";
                  $size_bytes = 100072000;
                  $kb = $size_bytes / 1024;
                  $mb = $size_bytes / 1024000;
                  if (!isset($_GET['page']))
                  { $page=0; }
                  else { $page = $_GET['page']; }
                  $total = 0;

                  if(!($dp = opendir("./"))) die ("Cannot open ./");
                  $file_array = array();
                  while ($file = readdir ($dp))
                  {
                  if(substr($file,0,1) != '.' and $file != "index.php")
                  {
                  $file_array[] = $file;
                  }
                  }
                  $file_count = count ($file_array);
                  sort ($file_array);

                  if ($file_count > 0)
                  {
                  $first_record = $page * $items_per_page;
                  $last_record = $first_record + $items_per_page;

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

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

                  echo "<img src=\"http://pocketwap.net/icon/dir.png\"><a href=\"$file_name/\">$file_name</a><br />";
                  $total = $total + filesize($file_name);

                  }
                  }
                  ?><hr><center><?

                  if (($file_count > 0) AND ($page != 0))
                  {



                  // previous button

                  $prev_page = $page -1;

                  echo "<a href=\"".$_SERVER["PHP_SELF"]."?page=$prev_page\">[Back]</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 "<br/>Directory:<br/>$file_count ";
                  if ($file_count == 1)
                  {echo "file";}
                  else
                  {echo "files";}

                  echo " (" . round($total/1024,1) . "kb)";
                  ?></div><?
                  // Home index
                  echo " <br/><a href=\"http://write here your url\">[Edit Your Back Link]</a>";
                  str_replace($look_for, $change_to, $search_text, match_count);
                  $search_text = "_";
                  $look_for = "_";
                  $change_to = " ";

                  print $search_text . "<BR>";
                  $changed_text = str_replace($look_for, $change_to, $search_text);


                  /*
                  -----------------------------------------------------------
                  Please Support Us by providing back Link to Our Site,
                  Don't delete this partner link.
                  ----------------------------------------------------------
                  */

                  echo " <br/>Our Partner:";


                  echo " <br/><a href=\"http://pocketwap.net\">[Pocketwap.net]</a><hr>";


                  }

                  closedir($dp);

                  ?>
                  All Rights Reserved.<hr/>


                  but then how would you include that function in the code ? when i try i get an error

                  Comment


                    #10
                    Create a separate file for your style sheets like I did here... Gives you more room to work.... Check If It Works Now.........

                    style.css
                    PHP Code:
                    bodytdtr {
                    text-decorationnone
                    font-familyverdanaarialhelveticasans-serif
                    font-size10pxcursor: default; 
                    color:#666 ;
                    }

                    body {margin3pxpadding3pxbackground#ffffff; color:#666 ;padding-top: 3px; 
                    padding-bottom3px;}


                    a:activea:visiteda:link {
                    color:#3399cc; #EE107B; 
                    text-decorationnone
                    font-size10px
                    border-bottom1px solid #ccc; }

                    a:hover {
                    color#EE107B; 
                    text-decoration
                    underlinefont-size10px;
                    }


                    hr width:100%; border:noneborder-top:1px dashed #A9A9A9; height:1px; margin-bottom:3px; margin-top:3px;}
                    div padding4pxmargin0px 0px 0px 0px;}

                    div.head 
                    text-align:center;
                    background-color:#87CEFA;
                    margin:0px 


                    Your File
                    PHP Code:
                    Originally Posted by the script 
                    <?
                    /*
                    ----------------------------------------------------------
                    POCKETWAP.NET AUTO INDEX PHP SCRIPT
                    Version: 2.0 ( html)
                    Last update: 02 July 2009
                    ----------------------------------------------------------
                    Author : SANJAYCITY
                    Website: POCKETWAP.NET : Free Mobile Ringtones, Themes, Animation, Mp3, Fickr Images Search, Youtube Videos Search, Chat, Blog, Forum Etc.
                    Sript Forum : POCKETWAP SCRIPTS FORUM - Index
                    Email: admin@pocketwap.net
                    Copyright (c) 2009 SANJAYCITY. All rights reserved.
                    -----------------------------------------------------------
                    Get More Free PHP scripts at POCKETWAP SCRIPTS FORUM - Index
                    ----------------------------------------------------------
                    */

                    ?>

                    <title>POCKETWAP.NET - FOLDER MANAGEMENT SCRIPT</title>

                    <meta name="description" content=" Free Mobile Wallpapers, Ringtones, Amr ringtones, Mp3 ringtones, MMf ringtones, free wallpaper,themes, free videos, download, movie, mp3 songs, 3gp mp4 avi videos, mobile software, games, free mp3 songs, tamil, telugu, malayalam,
                    kannada, pakistani, punjabi, bengali, english, hindi, bhangra, pashto, ghazals, quawwalia, bollywood, tollywood, hollywood, kollywood,
                    mulluwood, mp3,Tamil MP3,Tamil Compressed Mp3,Tamil Full MP3,Mp3,128 Bit Mp3,Hindi MP3,Tamil Wav Tones,Tamil New Mp3,2009 Hits Mp3,
                    Tamil 3gp,Tamil Mp4,Tamil Ring tone,Tamil Midi Tones,Tamil Amr Tones,Mobile Software,Application,sis,sisx,jar,jad,thm,Wallpape r,Screen
                    Savers,Java Games,Java Application">

                    <meta name="keywords" content=" free SMS, SMS, free ringtone, Amr ringtones,
                    Mp3 ringtones, MMf ringtones, free wallpaper, themes, free videos, download, movie, mp3 songs, 3gp mp4 avi videos, mobile software, games, free mp3 songs, tamil, telugu, malayalam, kannada, pakistani, punjabi, bengali,
                    english, hindi, bhangra, pashto, ghazals, quawwalia, bollywood, tollywood, hollywood, kollywood, mulluwood, mp3,Tamil MP3,Tamil Compressed Mp3,
                    Tamil Full MP3,Mp3,128 Bit Mp3,Hindi MP3,Tamil Wav Tones,Tamil New Mp3,2009 Hits Mp3,Tamil 3gp,Tamil Mp4,Tamil Ring tone,Tamil Midi Tones,Tamil
                    Amr Tones,Mobile Software,Application,sis,sisx,jar,jad,thm,Wallpape r,Screen Savers,Java Games,Java Application, Mobile Secret Codes, Mobile Codes,
                    Codes, Mobile, Nokia, Nokia Codes, Nokia Secret Codes,Sony Ericsson, Sony Ericsson Codes, Sony Ericsson Secret Codes, Motorola, Motorola Codes, 
                    Motorola Secret Codes, Samsung,Samsung Codes, Samsung Secret Codes, LG ,LG Codes,LG Secret Codes, BenQ-Siemens,BenQ-Siemens Codes, BenQ-Siemens 
                    Secret Codes, Sagem, Sagem Codes,Sagem Secret Codes,sharp, Sharp Codes, Sharp Secret Codes," />

                    <link rel="StyleSheet" type="text/css" href="style/style.css" />


                    <center>
                    <div class="head"><b>
                    Write Folder Name</b></center></div>


                    <?
                    print $changed_text; 
                    $search_txt = str_replace("_"," ",$file_name);
                    $items_per_page = "10";
                    $size_bytes = 100072000;
                    $kb = $size_bytes / 1024;
                    $mb = $size_bytes / 1024000;
                    if (!isset($_GET['page']))
                    { $page=0; }
                    else { $page = $_GET['page']; }
                    $total = 0;

                    if(!($dp = opendir("./"))) die ("Cannot open ./");
                    $file_array = array();
                    while ($file = readdir ($dp))
                    {
                    if(substr($file,0,1) != '.' and $file != "index.php")
                    {
                    $file_array[] = $file;
                    }
                    }
                    $file_count = count ($file_array);
                    sort ($file_array);

                    if ($file_count > 0)
                    {
                    $first_record = $page * $items_per_page;
                    $last_record = $first_record + $items_per_page;

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

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

                    echo "<img src=\"http://pocketwap.net/icon/dir.png\"><a href=\"$file_name/\">$file_name</a><br />";
                    $total = $total + filesize($file_name);

                    }
                    }
                    ?><hr><center>
                    <?

                    if (($file_count > 0) AND ($page != 0))
                    {



                    // previous button

                    $prev_page = $page -1;

                    echo "<a href=\"".$_SERVER["PHP_SELF"]."?page=$prev_page\">[Back]</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 "<br/>Directory:<br/>$file_count ";
                    if ($file_count == 1)
                    {echo "file";}
                    else
                    {echo "files";}

                    echo " (" . round($total/1024,1) . "kb)";
                    ?></div><?
                    // Home index
                    echo " <br/><a href=\"http://write here your url\">[Edit Your Back Link]</a>";
                    $str_replace($look_for, $change_to, $search_text, match_count); 
                    $search_text = "_"; 
                    $look_for = "_"; 
                    $change_to = " "; 

                    print $search_text . "<BR>"; 
                    $changed_text = str_replace($look_for, $change_to, $search_text); 


                    /*
                    -----------------------------------------------------------
                    Please Support Us by providing back Link to Our Site,
                    Don't delete this partner link.
                    ----------------------------------------------------------
                    */

                    echo " <br/>Our Partner:";


                    echo " <br/><a href=\"http://pocketwap.net\">[Pocketwap.net]</a><hr>"; 


                    }

                    closedir($dp);

                    ?>
                    All Rights Reserved.<hr/>
                    BakGat
                    Code:
                    class Counter {
                    public:
                      void Count();
                      int  ReadDisplay();
                    private:
                      int  CurrentCount;
                    };








                    Back up my hard drive? How do I put it in reverse?
                    My Community
                    BakGat
                    sigpic

                    Comment


                      #11
                      hmmm it didnt work... do you mind if i invite you on skype or gmail messenger to send you the link where im editing it ? i dont wana send the link over the forum

                      Comment


                        #12
                        Dont Have skype or MSN sorry mate.....
                        BakGat
                        Code:
                        class Counter {
                        public:
                          void Count();
                          int  ReadDisplay();
                        private:
                          int  CurrentCount;
                        };








                        Back up my hard drive? How do I put it in reverse?
                        My Community
                        BakGat
                        sigpic

                        Comment


                          #13
                          oh ok thanks for your help anyway...
                          Fatal error: Function name must be a string in /home/ahwapsta/public_html/downloads/games/copy/3gp/folder.php on line 121
                          was the error ...otherwise its no big deal i will try do something about it

                          Comment


                            #14
                            Paste the folder.php file here cause that's waht's causing the problem.... I can take a look at it and correct it for you...
                            BakGat
                            Code:
                            class Counter {
                            public:
                              void Count();
                              int  ReadDisplay();
                            private:
                              int  CurrentCount;
                            };








                            Back up my hard drive? How do I put it in reverse?
                            My Community
                            BakGat
                            sigpic

                            Comment


                              #15
                              Originally Posted by the script
                              <?
                              /*
                              ----------------------------------------------------------
                              POCKETWAP.NET AUTO INDEX PHP SCRIPT
                              Version: 2.0 ( html)
                              Last update: 02 July 2009
                              ----------------------------------------------------------
                              Author : SANJAYCITY
                              Website: POCKETWAP.NET : Free Mobile Ringtones, Themes, Animation, Mp3, Fickr Images Search, Youtube Videos Search, Chat, Blog, Forum Etc.
                              Sript Forum : POCKETWAP SCRIPTS FORUM - Index
                              Email: admin@pocketwap.net
                              Copyright (c) 2009 SANJAYCITY. All rights reserved.
                              -----------------------------------------------------------
                              Get More Free PHP scripts at POCKETWAP SCRIPTS FORUM - Index
                              ----------------------------------------------------------
                              */

                              ?>

                              <title>POCKETWAP.NET - FOLDER MANAGEMENT SCRIPT</title>

                              <meta name="description" content=" Free Mobile Wallpapers, Ringtones, Amr ringtones, Mp3 ringtones, MMf ringtones, free wallpaper,themes, free videos, download, movie, mp3 songs, 3gp mp4 avi videos, mobile software, games, free mp3 songs, tamil, telugu, malayalam,
                              kannada, pakistani, punjabi, bengali, english, hindi, bhangra, pashto, ghazals, quawwalia, bollywood, tollywood, hollywood, kollywood,
                              mulluwood, mp3,Tamil MP3,Tamil Compressed Mp3,Tamil Full MP3,Mp3,128 Bit Mp3,Hindi MP3,Tamil Wav Tones,Tamil New Mp3,2009 Hits Mp3,
                              Tamil 3gp,Tamil Mp4,Tamil Ring tone,Tamil Midi Tones,Tamil Amr Tones,Mobile Software,Application,sis,sisx,jar,jad,thm,Wallpape r,Screen
                              Savers,Java Games,Java Application">

                              <meta name="keywords" content=" free SMS, SMS, free ringtone, Amr ringtones,
                              Mp3 ringtones, MMf ringtones, free wallpaper, themes, free videos, download, movie, mp3 songs, 3gp mp4 avi videos, mobile software, games, free mp3 songs, tamil, telugu, malayalam, kannada, pakistani, punjabi, bengali,
                              english, hindi, bhangra, pashto, ghazals, quawwalia, bollywood, tollywood, hollywood, kollywood, mulluwood, mp3,Tamil MP3,Tamil Compressed Mp3,
                              Tamil Full MP3,Mp3,128 Bit Mp3,Hindi MP3,Tamil Wav Tones,Tamil New Mp3,2009 Hits Mp3,Tamil 3gp,Tamil Mp4,Tamil Ring tone,Tamil Midi Tones,Tamil
                              Amr Tones,Mobile Software,Application,sis,sisx,jar,jad,thm,Wallpape r,Screen Savers,Java Games,Java Application, Mobile Secret Codes, Mobile Codes,
                              Codes, Mobile, Nokia, Nokia Codes, Nokia Secret Codes,Sony Ericsson, Sony Ericsson Codes, Sony Ericsson Secret Codes, Motorola, Motorola Codes,
                              Motorola Secret Codes, Samsung,Samsung Codes, Samsung Secret Codes, LG ,LG Codes,LG Secret Codes, BenQ-Siemens,BenQ-Siemens Codes, BenQ-Siemens
                              Secret Codes, Sagem, Sagem Codes,Sagem Secret Codes,sharp, Sharp Codes, Sharp Secret Codes," />

                              <link rel="StyleSheet" type="text/css" href="style.css" />


                              <center>
                              <div class="head"><b>
                              Write Folder Name</b></center></div>


                              <?
                              print $changed_text;
                              $search_txt = str_replace("_"," ",$file_name);
                              $items_per_page = "10";
                              $size_bytes = 100072000;
                              $kb = $size_bytes / 1024;
                              $mb = $size_bytes / 1024000;
                              if (!isset($_GET['page']))
                              { $page=0; }
                              else { $page = $_GET['page']; }
                              $total = 0;

                              if(!($dp = opendir("./"))) die ("Cannot open ./");
                              $file_array = array();
                              while ($file = readdir ($dp))
                              {
                              if(substr($file,0,1) != '.' and $file != "index.php")
                              {
                              $file_array[] = $file;
                              }
                              }
                              $file_count = count ($file_array);
                              sort ($file_array);

                              if ($file_count > 0)
                              {
                              $first_record = $page * $items_per_page;
                              $last_record = $first_record + $items_per_page;

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

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

                              echo "<img src=\"http://pocketwap.net/icon/dir.png\"><a href=\"$file_name/\">$file_name</a><br />";
                              $total = $total + filesize($file_name);

                              }
                              }
                              ?><hr><center>
                              <?

                              if (($file_count > 0) AND ($page != 0))
                              {



                              // previous button

                              $prev_page = $page -1;

                              echo "<a href=\"".$_SERVER["PHP_SELF"]."?page=$prev_page\">[Back]</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 "<br/>Directory:<br/>$file_count ";
                              if ($file_count == 1)
                              {echo "file";}
                              else
                              {echo "files";}

                              echo " (" . round($total/1024,1) . "kb)";
                              ?></div><?
                              // Home index
                              echo " <br/><a href=\"http://write here your url\">[Edit Your Back Link]</a>";
                              $str_replace($look_for, $change_to, $search_text, match_count);
                              $search_text = "_";
                              $look_for = "_";
                              $change_to = " ";

                              print $search_text . "<BR>";
                              $changed_text = str_replace($look_for, $change_to, $search_text);


                              /*
                              -----------------------------------------------------------
                              Please Support Us by providing back Link to Our Site,
                              Don't delete this partner link.
                              ----------------------------------------------------------
                              */

                              echo " <br/>Our Partner:";


                              echo " <br/><a href=\"http://pocketwap.net\">[Pocketwap.net]</a><hr>";


                              }

                              closedir($dp);

                              ?>
                              All Rights Reserved.<hr/>

                              Comment

                              Working...
                              X