search a offline website

Do you have a question? Post it now! No Registration Necessary.  Now with pictures!

Threaded View
I wrote this a while ago and found it comes in very handy at times .

For example , If you want to know what webpages use a certain stylesheet  
its just a matter of typing in the stylesheet name and searching for it  

If found , It will display the *****.php filename and the line number  
the stylesheet was found on .

Obviously you can search for any string or variable etc .

aaasearch.php   so its always at the top of the folder .

$skunk=$_SERVER['REMOTE_ADDR']; $rambo=str_replace(".","_",$skunk);
if ($rambo<>"127_0_0_1")
if ($pass==0) {print " &nbsp; &nbsp; &nbsp; online search not allowed  
online"; exit;}

Personally i dont upload the file to the webspace - but if you do then  
you could add something like the above if wanted .



<body text="#FF0000" link="#FF0000" vlink="#FF0000" alink="#FF0000"  


<table width="950" border="0" cellspacing="0" cellpadding="0"  
<a href="aaasearch.php" class="bbb">Search</a>


if ($zentry=="")



while (false!==($boywonder=readdir($joker)))

$temp=0; $loopy=1;
while ($temp<$batman)
if ($junk==".php") {$kk[$loopy]=$demo; $loopy=$loopy+1;}



<table border="0" cellspacing="2" cellpadding="0" align="center">

<form action="aaasearch.php" method="post">

<td><input type="text" name="entry" value="<?php print $zentry; ?>"  
size="77" class="ta_delivery_form_06"></td>
<td class="bba"> &nbsp; </td>
<td><input type="submit" name="Submit" value="SEARCH PHP FILES"  

<input type="hidden" name="user" value="<?php print $uzi; ?>">




<table width="950" border="0" cellspacing="1" cellpadding="0"  


while ($jazz<$loopy)



$filename="$demo"; $fp=fopen($filename,"r");

while (!feof($fp))
$qaz=fgets($fp); $wsx=trim($qaz); $edc=stripslashes($wsx);




while ($lainey<$rocky)

$rip=" $hod[$lainey] ";
if ($witt==true) {print "<span class=bbb><b>$demo ... $grab <br></b>







Re: search a offline website

Krustov kirjoitti:
Quoted text here. Click to load it

I just love your wacky variable names, like $batman and $boywonder,  
$rambo and $rocky. Who needs descriptive variable names, anyway? It's  
not like someone is supposed to understand the code that you post to  
usenet, obfuscating source code is the new Web 2.0!

On a sidenote, I can't make head or tails out of your code... Basicly it  
seems that if someone enters the page using the server as a desktop (ie.  
if user's ip is, aka. localhost) then for some reason the page  
is denied and an error message is displayed, but I'm having serious  
trouble understanding why and also WHY?

All in all, I think this post deserves the title of most worthless and  
useless post of the month, unless you're counting my reply. Kudos for  
both of us, we sure know how to waste other peoples time!

"Olemme apinoiden planeetalla."

Re: search a offline website

<Rami Elomaa>
<Wed, 28 Mar 2007 22:13:58 +0300>

Quoted text here. Click to load it

A while ago when i posted some similar code - a user posted to say he  
knew a bird who only ever used disney characters as variable names .

Site Timeline