Auto index - remove the underscore

Started on the old forum in January 2010 · view the original in the archive · old links redirect here

16 replies · 1,045 views · started 16 years ago · 1 min read

Guest #1

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.](http://pocketwap.net) Sript Forum : [POCKETWAP SCRIPTS FORUM - Index](http://scripts.pocketwap.net) Email: [admin@pocketwap.net](mailto:admin@pocketwap.net) Copyright (c) 2009 SANJAYCITY. All rights reserved. ----------------------------------------------------------- Get More Free PHP scripts at [POCKETWAP SCRIPTS FORUM - Index](http://scripts.pocketwap.net) ---------------------------------------------------------- */ ?> <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,Wallpaper,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,Wallpaper,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>

Write Folder 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> "; $total = $total + filesize($file_name); } } ?><hr><?
  	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 "

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

  	echo " (" . round($total/1024,1) . "kb)";
  	?><?
  		// Home index
  		echo " 

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

Our Partner:";

echo " <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

bOrN2pwn Developer · 230 posts #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
    $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>";
?>
   

BakGat

class Counter {
public:
  void Count();
  int  ReadDisplay();
private:
  int  CurrentCount;
};

External image (may be gone) External image (may be gone) External image (may be gone)

Back up my hard drive? How do I put it in reverse? http://www.hackthissite.org Profile…

Attachments: phpThumb_1.7.9.zip
Guest #3

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

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

bOrN2pwn Developer · 230 posts #5

NoFx wrote: 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

class Counter {
public:
  void Count();
  int  ReadDisplay();
private:
  int  CurrentCount;
};

External image (may be gone) External image (may be gone) External image (may be gone)

Back up my hard drive? How do I put it in reverse? http://www.hackthissite.org Profile…

Guest #6

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

Guest #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 🙂

bOrN2pwn Developer · 230 posts #8

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

str_replace($look_for, $change_to, $search_text, match_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".

$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.8)

Heres a few other ways hope they work.... Just a quick 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>

BakGat

class Counter {
public:
  void Count();
  int  ReadDisplay();
private:
  int  CurrentCount;
};

External image (may be gone) External image (may be gone) External image (may be gone)

Back up my hard drive? How do I put it in reverse? http://www.hackthissite.org Profile…

Guest #9

the script wrote:

<? /* ---------------------------------------------------------- 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.](http://pocketwap.net) Sript Forum : [POCKETWAP SCRIPTS FORUM - Index](http://scripts.pocketwap.net) Email: [admin@pocketwap.net](mailto:admin@pocketwap.net) Copyright (c) 2009 SANJAYCITY. All rights reserved. ----------------------------------------------------------- Get More Free PHP scripts at [POCKETWAP SCRIPTS FORUM - Index](http://scripts.pocketwap.net) ---------------------------------------------------------- */ ?> <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,Wallpaper,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,Wallpaper,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>

Write Folder Name

<? 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> "; $total = $total + filesize($file_name); } } ?><hr><?
  	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 "

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

  	echo " (" . round($total/1024,1) . "kb)";
  	?><?
  		// Home index
  		echo " 

<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 . " "; $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 " 

Our Partner:";

echo " <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

bOrN2pwn Developer · 230 posts #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

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 
}

Your File

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

class Counter {
public:
  void Count();
  int  ReadDisplay();
private:
  int  CurrentCount;
};

External image (may be gone) External image (may be gone) External image (may be gone)

Back up my hard drive? How do I put it in reverse? http://www.hackthissite.org Profile…

Guest #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

Guest #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

Guest #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](mailto: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" />

Write Folder Name

<? 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> "; $total = $total + filesize($file_name); } } ?><hr> <? 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 " Directory: $file_count "; if ($file_count == 1) {echo "file";} else {echo "files";} echo " (" . round($total/1024,1) . "kb)"; ?><?

// Home index echo " <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 . " ";
$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 " Our Partner:";

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

}

closedir($dp);

?> All Rights Reserved.<hr/>

Guest #16

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

bOrN2pwn Developer · 230 posts #17

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

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

class Counter {
public:
  void Count();
  int  ReadDisplay();
private:
  int  CurrentCount;
};

External image (may be gone) External image (may be gone) External image (may be gone)

Back up my hard drive? How do I put it in reverse? http://www.hackthissite.org Profile…

Sign in to reply.

Similar topics

Keyboard shortcuts

g f
Go to forums
g h
Go to your feed
g m
Go to messages
r
Reply (in a topic)
/
Search
j
Next post
k
Previous post
?
This list
Ctrl/⌘ + Enter
Send what you are writing
Ctrl/⌘ + B / I
Bold / italic while writing
Esc
Close