Diff for scripts/php/sk-nic/SK-NIC.php between version 1.7 and 1.8
| version 1.7, 2009/03/16 20:51:23 |
version 1.8, 2009/11/04 06:54:57 |
|
|
| * |
* |
| */ |
*/ |
| |
|
| /* $Platon: scripts/php/sk-nic/SK-NIC.php,v 1.6 2007-03-14 21:41:20 nepto Exp $ */ |
/* $Platon: scripts/php/sk-nic/SK-NIC.php,v 1.7 2009-03-16 20:51:23 rajo Exp $ */ |
| |
|
| require_once 'DB.php'; |
require_once 'DB.php'; |
| |
|
|
|
| return $ar; |
return $ar; |
| } /* }}} */ |
} /* }}} */ |
| |
|
| function error($err_obj) // {{{ |
function error($err_obj, $debug = 0) // {{{ |
| { |
{ |
| if (is_object($err_obj)) { |
if (is_object($err_obj)) { |
| $error_string = $err_obj->getMessage() . "\n" . $err_obj->getDebugInfo(); |
$error_string = $err_obj->getMessage(); |
| |
if (! empty($debug)) { |
| |
$error_string .= "\n"; |
| |
$error_string .= $err_obj->getDebugInfo(); |
| |
} |
| } else { |
} else { |
| $error_string = $err_obj; |
$error_string = $err_obj; |
| } |
} |
| echo "\nFATAL ERROR: $error_string\n"; |
printf("\n%s FATAL ERROR: %s\n", basename(__FILE__), $error_string); |
| die(); |
die(); |
| } // }}} |
} // }}} |
| |
|
Platon Group <platon@platon.org> http://platon.org/
|
|