X-Git-Url: http://www.privoxy.org/gitweb/?a=blobdiff_plain;f=doc%2Fwebserver%2Factions%2Fstep3.php;h=e75678cebc41344a6f35a70d27331b007ab4c103;hb=60cbbc5f5d7514135bc5afc02d24e77a231c47f4;hp=beb84e6b48787ea15dfbf174a85aae74f185bdae;hpb=d9c1527acf72a0e83fe3dccaf2fe8467b41a5e49;p=privoxy.git diff --git a/doc/webserver/actions/step3.php b/doc/webserver/actions/step3.php index beb84e6b..e75678ce 100644 --- a/doc/webserver/actions/step3.php +++ b/doc/webserver/actions/step3.php @@ -1,173 +1,354 @@ + + + + +
+ + + + + Privoxy: $title + + +Valid HTML 4.01 Transitional
+ + \n"); + exit; +} + /* * Cannot start with step 3: */ if (!isset($referrer_url)) { - echo ("When submitting your feedback please start with - step 1.
- - "); - exit; + error_abort("invalid", "When submitting your feedback please start with step 1."); } + /* * Cannot work on unknown problem: */ if (!isset($problem)) { - echo ("You need to select the nature of the problem in - step 1.
- - "); - exit; + error_abort("invalid", "You need to select the nature of the problem in step 1."); +} + + +/* + * 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\" + step 2."); } + /* * Handle optional text fields: */ -if (!isset($name)) +if (!isset($name) || ($name == "")) { $name = "anonymous"; } +/* + * Assign unique ID: + */ +$item_id = date("U"); + + /* - * Open the logfile: + * Open the logfile or fail: */ -$logfile = "feedback-data.txt"; $fp = fopen($logfile, "a"); if(!$fp) { - echo ("This script was unable to open its logfile.
-Please mail its owner!
- + echo ("+ This script was unable to open its logfile. +
++ Please mail its owner! +
+