Diff for scripts/php/sk-nic/sk-nic.php between version 1.3 and 1.4
| version 1.3, 2007/03/12 04:47:23 |
version 1.4, 2007/03/14 00:25:27 |
|
|
| * |
* |
| */ |
*/ |
| |
|
| /* $Platon: scripts/php/sk-nic/sk-nic.php,v 1.2 2007-03-11 04:10:08 nepto Exp $ */ |
/* $Platon: scripts/php/sk-nic/sk-nic.php,v 1.3 2007-03-12 04:47:23 nepto Exp $ */ |
| |
|
| |
|
| error_reporting(E_ALL); |
error_reporting(E_ALL); |
| Line 38 if (file_exists(dirname(__FILE__).'/conf |
|
| Line 38 if (file_exists(dirname(__FILE__).'/conf |
|
| require_once dirname(__FILE__).'/SK-NIC.php'; |
require_once dirname(__FILE__).'/SK-NIC.php'; |
| |
|
| $sk_nic = new SK_NIC($dsn); |
$sk_nic = new SK_NIC($dsn); |
| $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); |
printf('Total %d changed records.'."\n", $changed_records); |
| |
} else { |
| |
die('Imported file is too old.'."\n"); |
| |
} |
| |
|
| /* Modeline for ViM {{{ |
/* Modeline for ViM {{{ |
| * vim: set ts=4: |
* vim: set ts=4: |
Platon Group <platon@platon.org> http://platon.org/
|
|