@@ -1,4 +1,7 @@ discard block |
||
1 | 1 | <?php |
2 | +/** |
|
3 | + * @param string $header |
|
4 | + */ |
|
2 | 5 | function getIP($header,$mxserver,$msa) { |
3 | 6 | /* Get submission server's IP from header's mail */ |
4 | 7 | /* Each line must end with /r/n */ |
@@ -28,11 +31,24 @@ discard block |
||
28 | 31 | return array($ip,$host,$dateR,$dateC['date'],$mid['mid']); |
29 | 32 | } |
30 | 33 | |
34 | +/** |
|
35 | + * @param string|false $ip |
|
36 | + * @param string $hostname |
|
37 | + * @param string $dateC |
|
38 | + * @param string|null $msgid |
|
39 | + * @param string|false $dateL |
|
40 | + */ |
|
31 | 41 | function updateReport ($ip,$uid,$ipcount,$uidcount,$hostname,$dateC,$msgid,$dateL) { |
32 | 42 | |
33 | 43 | return sprintf ('<tr><td nowrap>%s</td><td nowrap>%s</td><td>%s</td><td>%s</td><td>%u</td><td>%u</td><td>%s</td><td>%s</td></tr>'."\n",$dateL,$dateC,$uid,$ip,$uidcount,$ipcount,$hostname,htmlentities($msgid) ); |
34 | 44 | } |
35 | 45 | |
46 | +/** |
|
47 | + * @param string $dateC |
|
48 | + * @param string|null $msgid |
|
49 | + * @param false|string $dateL |
|
50 | + * @param string $text |
|
51 | + */ |
|
36 | 52 | function updatebadReport ( $uid,$dateC,$msgid,$dateL,$text ) { |
37 | 53 | return sprintf ('<tr><td nowrap>%s</td><td nowrap>%s</td><td>%s</td><td>%s</td><td nowrap>%s</td></tr>'."\n",$dateL,$dateC,$uid,htmlentities($msgid),$text ); |
38 | 54 | } |
@@ -84,6 +100,9 @@ discard block |
||
84 | 100 | } |
85 | 101 | |
86 | 102 | |
103 | +/** |
|
104 | + * @param null|mysqli $myconn |
|
105 | + */ |
|
87 | 106 | function summaryReportAndList ($cf,$myconn,$tables,$category,$ipvet) { |
88 | 107 | $nips = $ipvet['count']; |
89 | 108 | |
@@ -154,6 +173,10 @@ discard block |
||
154 | 173 | } |
155 | 174 | |
156 | 175 | |
176 | +/** |
|
177 | + * @param string $message_id |
|
178 | + * @param string $date |
|
179 | + */ |
|
157 | 180 | function splunksearch ($service,$message_id,$date) { |
158 | 181 | |
159 | 182 | // Run a blocking search |
@@ -205,6 +205,11 @@ discard block |
||
205 | 205 | } |
206 | 206 | |
207 | 207 | |
208 | +/** |
|
209 | + * @param integer $id |
|
210 | + * @param string $what |
|
211 | + * @param boolean $lock |
|
212 | + */ |
|
208 | 213 | function ask($myconn,$id,$what,$alltables,$typedesc,$value,$lock,$user,$adm) { |
209 | 214 | |
210 | 215 | $whynot=NULL; |
@@ -404,6 +409,9 @@ discard block |
||
404 | 409 | } |
405 | 410 | |
406 | 411 | |
412 | +/** |
|
413 | + * @param string $reason |
|
414 | + */ |
|
407 | 415 | function searchAndList ($myconn,$loguser,$tables,$typedesc,$value,$unit,&$quantity,$reason) { |
408 | 416 | |
409 | 417 | /* Search and list value */ |