Quote:
Originally Posted by SNL
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