View Single Post
Old 05-18-2007, 11:10 PM  
SmokeyTheBear
►SouthOfHeaven
 
SmokeyTheBear's Avatar
 
Join Date: Jun 2004
Location: PlanetEarth MyBoardRank: GerbilMaster My-Penis-Size: extralarge MyWeapon: Computer
Posts: 28,609
Quote:
Originally Posted by SNL View Post
Is there a way to add create a broken link notifier. If the gallery does not work then the surfer can send a notice to the admin?
sure on the above page the frame is on try modify it like this

Code:
<?php
$x = $_GET['x'];
$y = $x;
$x = str_replace("stband","&",$x);
$x = str_replace("stbque","?",$x);
$x = str_replace("stbequ","=",$x);

?>
<center>YOUR ADS<br><br>
<a href=remove.php?x=<?php echo $y; ?>Report bad gallery</a>

<br>
<iframe src=<?php echo $x; ?> width=800 height=1000></iframe>
then make a file called remove.php put in same directory and put the following code inside

Code:
<?php
$x = $_GET['x'];
$yfil = "remove.txt";
$svid = file_get_contents($yfil);
$towrite = "$svid\n$x";
$fh2 = fopen($yfil, 'w+');
fwrite($fh2, $towrite);
fclose($fh2);
echo "Gallery removed , thanks for reporting it";
?>
then make a file called remove.txt and chmod it to be writeable
__________________
hatisblack at yahoo.com

Last edited by SmokeyTheBear; 05-18-2007 at 11:12 PM..
SmokeyTheBear is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote