}
// constructor
- static function create($crystal_filename, $ban_list, $black_list, $cloud_smasher, $prov_proxy) {
+ static function create($crystal_filename, $ban_list, $black_list, $cloud_smasher) {
if (($brisk_ser = @file_get_contents($crystal_filename)) != FALSE) {
if (($brisk = unserialize($brisk_ser)) != FALSE) {
fprintf(STDERR, "ROOM FROM FILE\n");
}
}
- static function create(&$app, $sockname, $debug, $blocking_mode, $argv)
+ static function create(&$app, $sockname, $debug, $blocking_mode, $provider_proxy, $argv)
{
- GLOBAL $G_provider_proxy;
-
$thiz = new Sac_a_push();
$thiz->app = $app;
}
$thiz->main_loop = FALSE;
- $thiz->reload(TRUE, $G_provider_proxy);
+ $thiz->reload(TRUE, $provider_proxy);
return ($thiz);
}
pid_save();
do {
- if (($brisk = Brisk::create(LEGAL_PATH."/brisk-crystal.data", $G_ban_list, $G_black_list, $G_cloud_smasher, $G_provider_proxy)) == FALSE) {
+ 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;
}
- if (($s_a_p = Sac_a_push::create($brisk, USOCK_PATH, 0, 0, $argv)) === FALSE) {
+ if (($s_a_p = Sac_a_push::create($brisk, USOCK_PATH, 0, 0, $G_provider_proxy, $argv)) === FALSE) {
$ret = 2;
break;
}