Auto index - remove the underscore

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

    #16
    oh and by the way are you from south africa ? because i am

    Comment


      #17
      Ok I think its Fixed now..... And yes I'am from South Africa.

      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.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

      Working...
      X