+ // $error = error_get_last();
+ // if ( $error["type"] == E_ERROR ) {
+ print_r(debug_backtrace());
+ die();
+ // }
+ // log_error( $error["type"], $error["message"], $error["file"], $error["line"] );
+}
+
+register_shutdown_function( "my_for_fatal" );
+set_error_handler('my_e');
+}
+
+function main($argv)
+{
+ GLOBAL $G_ban_list, $G_black_list, $G_cloud_smasher, $G_provider_proxy;
+
+ pid_save();
+ do {
+ if (($brisk = Brisk::create(LEGAL_PATH."/brisk-crystal.data", $G_ban_list, $G_black_list, $G_cloud_smasher)) == FALSE) {
+ log_crit("Brisk::create failed");
+ $ret = 1;
+ break;
+ }