projects
/
privoxy.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
edae2d6
)
Include unique ID in tracker and log; Include URL in tracker summary; add more newlin...
author
oes
<oes@users.sourceforge.net>
Sat, 13 Apr 2002 14:34:59 +0000
(14:34 +0000)
committer
oes
<oes@users.sourceforge.net>
Sat, 13 Apr 2002 14:34:59 +0000
(14:34 +0000)
doc/webserver/actions/step3.php
patch
|
blob
|
history
diff --git
a/doc/webserver/actions/step3.php
b/doc/webserver/actions/step3.php
index
88f1c70
..
d3b6068
100644
(file)
--- a/
doc/webserver/actions/step3.php
+++ b/
doc/webserver/actions/step3.php
@@
-8,9
+8,12
@@
This file belongs in
ijbswa.sourceforge.net:/home/groups/i/ij/ijbswa/htdocs/
This file belongs in
ijbswa.sourceforge.net:/home/groups/i/ij/ijbswa/htdocs/
- $Id: step3.php,v 1.1
4 2002/04/08 17:04:05
oes Exp $
+ $Id: step3.php,v 1.1
5 2002/04/09 15:08:10
oes Exp $
$Log: step3.php,v $
$Log: step3.php,v $
+ Revision 1.15 2002/04/09 15:08:10 oes
+ Restoring lost text change
+
Revision 1.14 2002/04/08 17:04:05 oes
Adapt to unified stylesheet
Revision 1.14 2002/04/08 17:04:05 oes
Adapt to unified stylesheet
@@
-171,6
+174,11
@@
if (!isset($name) || ($name == ""))
$name = "anonymous";
}
$name = "anonymous";
}
+/*
+ * Assign unique ID:
+ */
+$item_id = date("U");
+
/*
* Open the logfile or fail:
/*
* Open the logfile or fail:
@@
-205,7
+213,7
@@
if(!$fp)
* Write Head (type, severity, user, client-ip)
* and remarks field:
*/
* Write Head (type, severity, user, client-ip)
* and remarks field:
*/
-fwrite($fp, "\n#FEEDBACK TYPE $problem SEVERITY $severity FROM $name ON $REMOTE_ADDR VERIFIED $url_confirmed TIME " . date("r") ."\n");
+fwrite($fp, "\n#FEEDBACK
ID $item_id
TYPE $problem SEVERITY $severity FROM $name ON $REMOTE_ADDR VERIFIED $url_confirmed TIME " . date("r") ."\n");
if (isset($remarks))
{
$lines = explode("\n", $remarks);
if (isset($remarks))
{
$lines = explode("\n", $remarks);
@@
-234,14
+242,14
@@
switch ($problem)
if (isset($block_image[$i]))
{
fwrite($fp, "#BLOCK-URL: $image_url[$i]\n");
if (isset($block_image[$i]))
{
fwrite($fp, "#BLOCK-URL: $image_url[$i]\n");
- $trackertext .= "Block image: $image_url[$i]\n";
+ $trackertext .= "Block image: $image_url[$i]\n
\n
";
}
}
}
if (isset($manual_image_url) && ($manual_image_url != ""))
{
fwrite($fp, "#BLOCK-URL: $manual_image_url\n");
}
}
}
if (isset($manual_image_url) && ($manual_image_url != ""))
{
fwrite($fp, "#BLOCK-URL: $manual_image_url\n");
- $trackertext .= "Block image: $manual_image_url\n";
+ $trackertext .= "Block image: $manual_image_url\n
\n
";
}
break;
}
break;
@@
-253,7
+261,7
@@
switch ($problem)
if (isset($image_url) && ($image_url != ""))
{
fwrite($fp, "#UNBLOCK-URL: $image_url\n");
if (isset($image_url) && ($image_url != ""))
{
fwrite($fp, "#UNBLOCK-URL: $image_url\n");
- $trackertext .= "Unblock image: $image_url\n";
+ $trackertext .= "Unblock image: $image_url\n
\n
";
}
break;
}
break;
@@
-281,11
+289,11
@@
switch($problem)
default: $category_id="412814"; $summary = "IMPOSSIBLE ";break;
}
default: $category_id="412814"; $summary = "IMPOSSIBLE ";break;
}
-$summary .=
date("U"); /* Must be unique */
+$summary .=
"on " . $referrer_url . " (" .$item_id . ")";
$priority = 3 * $severity;
$priority = 3 * $severity;
-$details = urlencode("On " . date("r") . " new data was received from $name:\n"
- ."URL: $referrer_url\n
$trackertext\nRemarks:\n
\n$remarks");
+$details = urlencode("On " . date("r") . " new data was received from $name:\n
\n
"
+ ."URL: $referrer_url\n
\n$trackertext\nRemarks:
\n$remarks");
$postfields = ( "group_id=11118&atid=460288&func=postadd&category_id=$category_id&artifact_group_id=195890" .
"&priority=$priority&summary=$summary&details=$details" );
$postfields = ( "group_id=11118&atid=460288&func=postadd&category_id=$category_id&artifact_group_id=195890" .
"&priority=$priority&summary=$summary&details=$details" );