Diff for scripts/php/sk-nic/SK-NIC.php between version 1.9 and 1.10
| version 1.9, 2010/08/11 20:43:14 |
version 1.10, 2011/08/11 08:50:54 |
|
|
| * |
* |
| */ |
*/ |
| |
|
| /* $Platon: scripts/php/sk-nic/SK-NIC.php,v 1.8 2009-11-04 06:54:57 nepto Exp $ */ |
/* $Platon: scripts/php/sk-nic/SK-NIC.php,v 1.9 2010-08-11 20:43:14 nepto Exp $ */ |
| |
|
| require_once 'DB.php'; |
require_once 'DB.php'; |
| |
|
|
|
| return true; |
return true; |
| } /* }}} */ |
} /* }}} */ |
| |
|
| |
function checkImport() /* {{{ */ |
| |
{ |
| |
$query = 'SELECT COUNT(*) FROM sknic_domains_import'; |
| |
$count = $this->_db->getOne($query); |
| |
DB::isError($count) && $this->error($count); |
| |
if ($count < 5000) { |
| |
die("checkImport(): too less imported records: $count (must be min 5000)\n"); |
| |
} |
| |
if ($count > 600000) { |
| |
die("checkImport(): too much imported records: $count (must be max 600000)\n"); |
| |
} |
| |
return true; |
| |
} /* }}} */ |
| |
|
| function _cleanImport() /* {{{ */ |
function _cleanImport() /* {{{ */ |
| { |
{ |
| // $result = $this->_db->query('DELETE FROM sknic_domains_import'); |
// $result = $this->_db->query('DELETE FROM sknic_domains_import'); |
Platon Group <platon@platon.org> http://platon.org/
|
|