-// 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">
+/*
+ * Notify our SF tracker that new data is waiting to be
+ * processed
+ */
+switch($problem)
+{
+ case "P1": $category_id="412811"; $summary = "Ad not blocked "; break;
+ case "P2": $category_id="412810"; $summary = "Image blocked ";break;
+ case "P3": $category_id="412812"; $summary = "Page plocked ";break;
+ case "P4": $category_id="412813"; $summary = "Popups blocked ";break;
+ case "P5": $category_id="412814"; $summary = "Other problem ";break;
+ default: $category_id="412814"; $summary = "IMPOSSIBLE ";break;
+}
+
+$summary .= "on " . $referrer_url . " (" .$item_id . ")";
+$priority = 3 * $severity;
+
+$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" );
+
+$ch = curl_init ("http://sourceforge.net/tracker/index.php");
+curl_setopt($ch, CURLOPT_HEADER, 0);
+curl_setopt($ch, CURLOPT_FAILONERROR, 1);
+curl_setopt($ch, CURLOPT_TIMEOUT, 20);
+curl_setopt($ch, CURLOPT_POST, 1);
+curl_setopt($ch, CURLOPT_POSTFIELDS, $postfields);
+
+ob_start();
+curl_exec($ch);
+ob_end_clean();
+
+curl_close ($ch);