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...
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
<?
/*
----------------------------------------------------------
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/>
/*
----------------------------------------------------------
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);
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
Comment