Diff for scripts/php/sk-nic/sk-nic.php between version 1.4 and 1.5
| version 1.4, 2007/03/14 00:25:27 |
version 1.5, 2007/03/14 19:04:05 |
|
|
| * |
* |
| */ |
*/ |
| |
|
| /* $Platon: scripts/php/sk-nic/sk-nic.php,v 1.3 2007-03-12 04:47:23 nepto Exp $ */ |
/* $Platon: scripts/php/sk-nic/sk-nic.php,v 1.4 2007-03-14 00:25:27 nepto Exp $ */ |
| |
|
| |
|
| error_reporting(E_ALL); |
error_reporting(E_ALL); |
| Line 41 $sk_nic = new SK_NIC($dsn); |
|
| Line 41 $sk_nic = new SK_NIC($dsn); |
|
| if ($sk_nic->doImport($filename)) { |
if ($sk_nic->doImport($filename)) { |
| $sk_nic->writeStats(); |
$sk_nic->writeStats(); |
| $changed_records = $sk_nic->doComparison(); |
$changed_records = $sk_nic->doComparison(); |
| printf('Total %d changed records.'."\n", $changed_records); |
if ($changed_records <= 100) { |
| |
printf('WARNING: too less changed records: %d'."\n", $changed_records); |
| |
} elseif ($changed_records >= 50000) { |
| |
printf('WARNING: too many changed records: %d'."\n", $changed_records); |
| |
} |
| } else { |
} else { |
| die('Imported file is too old.'."\n"); |
die('Imported file is too old.'."\n"); |
| } |
} |
Platon Group <platon@platon.org> http://platon.org/
|
|