Diff for scripts/php/sk-nic/sk-nic.php between version 1.1 and 1.2
| version 1.1, 2007/03/11 03:49:49 |
version 1.2, 2007/03/11 04:10:08 |
|
|
| * |
* |
| */ |
*/ |
| |
|
| /* $Platon$ */ |
/* $Platon: scripts/php/sk-nic/sk-nic.php,v 1.1 2007-03-11 03:49:49 nepto Exp $ */ |
| |
|
| |
|
| require_once dirname(__FILE__).'/SK-NIC.php'; |
|
| |
|
| error_reporting(E_ALL); |
error_reporting(E_ALL); |
| |
|
| $dsn = 'mysql://test:test@localhost/test'; |
|
| $filename = @$_SERVER['argv'][1]; |
$filename = @$_SERVER['argv'][1]; |
| |
|
| if (strlen($filename) <= 0) { |
if (strlen($filename) <= 0) { |
| Line 32 if (! file_exists($filename) || ! is_rea |
|
| Line 29 if (! file_exists($filename) || ! is_rea |
|
| die('File "'.$filename.'" does not exist or is not readable.'."\n"); |
die('File "'.$filename.'" does not exist or is not readable.'."\n"); |
| } |
} |
| |
|
| |
$dsn = 'mysql://test:test@localhost/test'; |
| |
|
| |
if (file_exists(dirname(__FILE__).'/config.inc.php')) { |
| |
require_once dirname(__FILE__).'/config.inc.php'; |
| |
} |
| |
|
| |
require_once dirname(__FILE__).'/SK-NIC.php'; |
| |
|
| $sk_nic = new SK_NIC($dsn); |
$sk_nic = new SK_NIC($dsn); |
| $sk_nic->doImport($filename); |
$sk_nic->doImport($filename); |
| $changed_records = $sk_nic->doComparison(); |
$changed_records = $sk_nic->doComparison(); |
Platon Group <platon@platon.org> http://platon.org/
|
|