This is Epnumber.php
form action="./report.php" method="post" target="_blank">
<input type="hidden" name="episode" value="<?php print TITLE; ?>">
<input type="submit" value="Report Episode" />
-----------------
This is the Form Handler, script report.php
<?php
$_POST['episode'] = $episode;
print "<title>Are you sure you want to report $episode ?</title>";
print "Hello there Allabout-SP User!";
print "<p>Are you sure you want to report <b> $episode </b> ?</p>
<p>Before you report this particular Episode make sure you:</p>
<p>
<UL>
<LI>Check if the problem is with all the Episodes or just with this one.
<LI>You have the latest versions of <a href=\"http://www.adobe.com/shockwave/download/download.cgi\" target=\"_blank\">Adobe Flash Player</a> and <a href=\"http://www.adobe.com/shockwave/download/download.cgi\" target=\"_blank\">Shockwave</a>
<LI>You are using a fast connection to the Internet.
<li>Let the Episode load for a while, it might be a server overload.
<li>We also recommend you use <a href=\"http://www.mozilla.com/en-US/firefox\" target\"_blank\">Firefox</a> which is a Award Winning Browser guaranteed to work in AASP.
</UL>
<p>If none of these work, then go ahead and report this Episode by clicking \"Confirm and REPORT!\" below, otherwise it will not be reported. Please give us some time to fix the Episode.";
print "<FORM action=\"./report.php\" method=\"post\">
<input type=\"hidden\" name=\"episode\" value=\"$episode\">
<input type=\"submit\" name=\"submit\" value=\"Confirm and REPORT!\">";
if (isset ($_POST['submit'])) {
if ($fp = fopen ('./brokeneps.txt', 'ab')) { // Try to open the file.
// Adjust for magic quotes.
if (ini_get ('magic_quotes_gpc')) {
$data = stripslashes ($_POST['episode']);
} else {
$data = $_POST['episode'];
}
flock ($fp, LOCK_EX);
fwrite ($fp, "The Episode $data was found broken, FIX DCR!\n");
flock ($fp, LOCK_UN);
fclose ($fp); // Close the file.
// Print a message.
print "<p><font size=\"4\">Thank you! The Episode <b> $episode </b>was reported to the Admin. It will be fixed soon. Thanks</font></p>";
print "<p><u><b><font size=\"4\">You may now <a href=\"javascript:window.close()\">Close this window and return to Episode</a></p>";
print "<p>PLEASE <b>DO NOT report this Episode again, unless it was fixed and broken again. Thanks.</b></p>";
} else { // Could not open the file.
print "<p>The Episode you were trying to report could not be reported due to System Error. Please try again later</p>";
}
} else { //After submit script
print "<p>If you are really sure about reporting this Episode, click \"Confirm and REPORT!\" above.</p>";
}
?>