X-Git-Url: http://www.privoxy.org/gitweb/?a=blobdiff_plain;f=doc%2Fwebserver%2Factions%2Fstep3.php;h=d3b60686b24a2e46f7cc60d3497fc94f56d6cc3f;hb=9da5436ab441e4669bf131e54cd1f7a52abbcb84;hp=5705996921a077ac6c3fba1b0237e4211e248d38;hpb=acfe700ddafd7570cd1475629a45d1146e521549;p=privoxy.git diff --git a/doc/webserver/actions/step3.php b/doc/webserver/actions/step3.php index 57059969..d3b60686 100644 --- a/doc/webserver/actions/step3.php +++ b/doc/webserver/actions/step3.php @@ -1,102 +1,219 @@ + + + + +
+ + + + + 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! +
+