Revision 31 collect.php
| collect.php (revision 31) | ||
|---|---|---|
| 22 | 22 |
# quick error checks. hwid must exist. also, keep a log of hosts connecting |
| 23 | 23 |
if ($xml->hwid) {
|
| 24 | 24 |
if ($loglevel > 1) {
|
| 25 |
error_log ("Host " . $xml->hostname . " seen at " . date(DATE_ATOM, mktime(0, 0, 0, 7, 1, 2000)) . "\n", 3, $logfile);
|
|
| 25 |
error_log (date(DATE_ATOM, mktime(0, 0, 0, 7, 1, 2000)) . "Host " . $xml->hostname . " seen.\n", 3, $logfile); |
|
| 26 | 26 |
} |
| 27 | 27 |
} else {
|
| 28 |
error_log ("Host " . $xml->hostname ." has no hwid, bailing out!" . date(DATE_ATOM, mktime(0, 0, 0, 7, 1, 2000)) . "\n", 3, $logfile);
|
|
| 28 |
error_log (date(DATE_ATOM, mktime(0, 0, 0, 7, 1, 2000)) . "Host " . $xml->hostname ." has no hwid, bailing out!\n", 3, $logfile); |
|
| 29 | 29 |
exit; |
| 30 | 30 |
} |
| 31 | 31 |
|
Also available in: Unified diff