cvs: php-master-web /scripts ip-to-country
| From: | Gabor Hojtsy | Date: | Tue, 29 Jun 2004 17:41:44 +0000 |
| Subject: | cvs: php-master-web /scripts ip-to-country | ||
| Groups: | php.mirrors | ||
| Request: | Send a blank email to php-mirrors+get-25169@lists.php.net to get a copy of this message | ||
goba Tue Jun 29 13:41:44 2004 EDT
Modified files:
/php-master-web/scripts ip-to-country
Log:
check if proper format is downloaded
http://cvs.php.net/diff.php/php-master-web/scripts/ip-to-country?r1=1.5&r2=1.6&ty=u
Index: php-master-web/scripts/ip-to-country
diff -u php-master-web/scripts/ip-to-country:1.5 php-master-web/scripts/ip-to-country:1.6
--- php-master-web/scripts/ip-to-country:1.5 Tue Jun 29 12:12:49 2004
+++ php-master-web/scripts/ip-to-country Tue Jun 29 13:41:43 2004
@@ -5,8 +5,6 @@
// Fetch ip-to-country.com data and index database
function fetch_ip_to_country($root)
{
- mail("goba@php.net", "ip-to-country: starting update", "");
-
// Files used / affected
$ipdbt = "ip-to-country.db~";
$ipdbc = "ip-to-country.dbr~";
@@ -29,8 +27,6 @@
// No success in getting the DB
if (!$succ) { return FALSE; }
- mail("goba@php.net", "ip-to-country: succesful download", "");
-
/*
The following code checks the structure of the file
received. If this is an updated data file, then it
@@ -95,6 +91,8 @@
fclose($ipdbf);
fclose($ipdbcf);
+ mail("goba@php.net", "ip-to-country: proper format", "");
+
// Remove the temp file. If the data is ok, move
// it to the destination, or else delete that too
unlink($ipdbt);