This file belongs in
ijbswa.sourceforge.net:/home/groups/i/ij/ijbswa/htdocs/
- $Id: step3.php,v 1.6 2002/04/03 19:36:04 swa Exp $
+ $Id: step3.php,v 1.10 2002/04/06 15:19:35 oes Exp $
$Log: step3.php,v $
- Revision 1.6 2002/04/03 19:36:04 swa
- consistent look
+ Revision 1.10 2002/04/06 15:19:35 oes
+ Clean-up, smarter handling of unreachable URLs
Revision 1.5 2002/04/02 07:22:43 oes
Cosmetics
-->
<head>
- <link rel="stylesheet" type="text/css" href="../p_feedback.css">
+ <meta http-equiv="Content-Style-Type" content="text/css">
+ <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
+ <link rel="stylesheet" type="text/css" href="../p_feedback.css">
+
<?php
*/
$logfile = "results/actions-feedback.txt";
+
/*
- * For testing:
+ * Debug:
*/
//phpinfo();
//error_reporting(E_ALL);
error_reporting(E_NONE);
-
-/*
- * Cannot start with step 3:
+/*
+ * Function: error_abort
+ * Purpose: Return an error page with $title and $message
*/
-if (!isset($referrer_url))
+function error_abort($title, $message)
{
- echo (" <title>Invalid Feedback Submission</title>
- <link rel="stylesheet" type="text/css" href="../p_feedback.css">
+ if ($title == "invalid") /* shortcut */
+ {
+ $title = "Invalid Feedback Submission";
+ }
+
+ echo (" <title>Privoxy: $title</title>
</head>
<body>
- <div class=\"title\">Invalid Feedback Submission</div>
- <div align=\"center\">
- <div class=\"errorbox\" align=\"left\">
- When submitting your feedback please start with <a href=\"index.php\">step 1</a>.
+ <div class=\"title\">
+ <h1>
+ <a href=\"http://www.privoxy.org/\">Privoxy</a>: $title
+ </h1>
</div>
- </div>
+ <center>
+ <div class=\"errorbox\">
+ $message
+ </div>
+ </center>
+ <p>Valid <a href=\"http://validator.w3.org/\">HTML 4.01 Transitional</a></p>
</body>
- </html>");
+ </html>\n");
exit;
}
+/*
+ * Cannot start with step 3:
+ */
+if (!isset($referrer_url))
+{
+ error_abort("invalid", "When submitting your feedback please start with <a href=\"index.php\">step 1</a>.");
+}
+
+
/*
* Cannot work on unknown problem:
*/
if (!isset($problem))
{
- echo (" <title>Invalid Feedback Submission</title>
- <link rel="stylesheet" type="text/css" href="../p_feedback.css">
- </head>
- <body>
- <div class=\"title\">Invalid Feedback Submission</div>
- <div align=\"center\">
- <div class=\"errorbox\" align=\"left\">
- You need to select the nature of the problem in <a href=\"index.php\">step 1</a>.
- </div>
- </div>
- </body>
- </html>");
- exit;
+ error_abort("invalid", "You need to select the nature of the problem in <a href=\"index.php\">step 1</a>.");
+}
+
+
+/*
+ * Don't accept unconfirmed URLs
+ */
+if (!isset($url_confirmed))
+{
+ error_abort("invalid", "When submitting URLs that this script can't retrieve, you need to check \"Yes, I'm sure\"
+ <a href=\"javascript:history.back();\">step 2</a>.");
}
if(!$fp)
{
echo (" <title>Internal Script Error</title>
- <link rel="stylesheet" type="text/css" href="../p_feedback.css">
</head>
<body>
- <div class=\"title\">Internal Script Error</div>
- <div align=\"center\">
- <div class=\"errorbox\" align=\"left\">
+ <div class=\"title\">
+ <h1><a href=\"http://www.privoxy.org/\">Privoxy</a>: Internal Script Error</h1>
+ </div>
+ <center>
+ <div class=\"errorbox\">
<p>
This script was unable to open its logfile.
</p>
Please <a href=\"mailto:info@privoxy.org?SUBJECT=Feedback-Script-Broken\">mail its owner</a>!
</p>
</div>
- </div>
+ </center>
</body>
</html>");
exit;
* Write Head (type, severity, user, client-ip)
* and remarks field:
*/
-fwrite($fp, "\n#FEEDBACK TYPE $problem SEVERITY $severity FROM $name ON $REMOTE_ADDR\n");
+fwrite($fp, "\n#FEEDBACK TYPE $problem SEVERITY $severity FROM $name ON $REMOTE_ADDR VERIFIED $url_verified TIME " . date("r") ."\n");
if (isset($remarks))
{
$lines = explode("\n", $remarks);
fclose($fp);
+// now fill the tracker on sf with all the necessary values:
+//
+// <FORM ACTION="/tracker/index.php?group_id=11118&atid=460288" METHOD="POST" enctype="multipart/form-data">
+// <INPUT TYPE="HIDDEN" NAME="func" VALUE="postadd">
+//
+// <SELECT NAME="category_id">
+// <OPTION VALUE="100">None</OPTION>
+// <OPTION VALUE="412811">filter: ad-incorrectly-blocked</OPTION>
+// <OPTION VALUE="412810">filter: ad-not-blocked</OPTION>
+// <OPTION VALUE="412814">filter: other problem</OPTION>
+// <OPTION VALUE="412812">filter: page-incorrectly-block</OPTION>
+// <OPTION VALUE="412813">filter: popups-incorrectly blo</OPTION>
+//
+// <SELECT NAME="artifact_group_id">
+// <OPTION VALUE="100">None</OPTION>
+// <OPTION VALUE="195870">action file version 1.0</OPTION>
+// <OPTION VALUE="195871">action file version 1.1</OPTION>
+// <OPTION VALUE="195872">action file version 1.2</OPTION>
+// <OPTION VALUE="195873">action file version 1.3</OPTION>
+// <OPTION VALUE="195874">action file version 1.4</OPTION>
+// <OPTION VALUE="195875">action file version 1.5</OPTION>
+// <OPTION VALUE="195876">action file version 1.6</OPTION>
+// <OPTION VALUE="195877">action file version 1.7</OPTION>
+// <OPTION VALUE="195878">action file version 1.8</OPTION>
+// <OPTION VALUE="195879">action file version 1.9</OPTION>
+// <OPTION VALUE="195880">action file version 2.0</OPTION>
+//
+// <SELECT NAME="assigned_to">
+// <OPTION VALUE="100">None</OPTION>
+// <OPTION VALUE="128588">bart1803</OPTION>
+// <OPTION VALUE="249980">david__schmidt</OPTION>
+// <OPTION VALUE="79346">gliptak</OPTION>
+// <OPTION VALUE="322640">hal9</OPTION>
+// <OPTION VALUE="108873">joergs</OPTION>
+// <OPTION VALUE="199289">jongfoster</OPTION>
+// <OPTION VALUE="10857">morcego</OPTION>
+// <OPTION VALUE="78811">oes</OPTION>
+// <OPTION VALUE="43129">roro</OPTION>
+// <OPTION VALUE="249832">steudten</OPTION>
+// <OPTION VALUE="74317">swa</OPTION>
+//
+// <SELECT NAME="priority">
+// <OPTION VALUE="1">1 - Lowest</OPTION>
+// <OPTION VALUE="2">2</OPTION>
+// <OPTION VALUE="3">3</OPTION>
+// <OPTION VALUE="4">4</OPTION>
+// <OPTION VALUE="5" SELECTED>5 - Medium</OPTION>
+// <OPTION VALUE="6">6</OPTION>
+// <OPTION VALUE="7">7</OPTION>
+// <OPTION VALUE="8">8</OPTION>
+// <OPTION VALUE="9">9 - Highest</OPTION>
+//
+//
+// we can either put everything in here (nicely formatted) ..
+// <TEXTAREA NAME="details" ROWS="30" COLS="55" WRAP="HARD"></TEXTAREA>
+//
+// ... or attach a file (with the html header so it gets displayed
+// as if it is a html file
+// <input type="checkbox" name="add_file" VALUE="1">
+// <input type="file" name="input_file" size="30">
+// <input type="text" name="file_description" size="40" maxlength="255">
+//
+// <INPUT TYPE="SUBMIT" NAME="SUBMIT" VALUE="SUBMIT">
+
?>
<title>Privoxy Action List Feedback - Result</title>
- <link rel="stylesheet" type="text/css" href="../p_feedback.css">
</head>
<body>
<div class="title">
- <a href="http://www.privoxy.org" target="_blank">Privoxy</a> Action List Feedback - Result
+ <h1>
+ <a href="http://www.privoxy.org" target="_blank">Privoxy</a> Action List Feedback - Result
+ </h1>
</div>
<div class="box">
</p>
<p>
- The developers will review and use your submission to improve the
+ It will be reviewed by the developers and used to improve the
distribution actions file.
</p>
</p>
</div>
+
+ <p>Valid <a href="http://validator.w3.org/">HTML 4.01 Transitional</a></p>
+
</body>
</html>