X-Git-Url: http://mop.ddnsfree.com/gitweb/?a=blobdiff_plain;f=web%2Fspush%2Fbrisk-spush.php;h=cbbce76efb39a04565346d63c6a90f5b41544445;hb=8f16acf48b22363d40ba1e072b3c09cbacc88c18;hp=35c2584117470c3c490f2ca8b7d50a9826c35834;hpb=5397b38d036459e80f0e5ce4c2f53bd8263007cc;p=brisk.git diff --git a/web/spush/brisk-spush.php b/web/spush/brisk-spush.php index 35c2584..cbbce76 100755 --- a/web/spush/brisk-spush.php +++ b/web/spush/brisk-spush.php @@ -31,6 +31,7 @@ require_once($G_base."Obj/user.phh"); require_once($G_base."Obj/brisk.phh"); require_once($G_base."Obj/auth.phh"); require_once($G_base."Obj/zlibstream.phh"); +require_once($G_base."Obj/mail.phh"); // require_once("../Obj/proxyscan.phh"); require_once($G_base."index.php"); require_once($G_base."index_wr.php"); @@ -41,15 +42,17 @@ require_once($G_base."briskin5/index_wr.php"); function main($argv) { + GLOBAL $G_ban_list, $G_black_list; + pid_save(); do { - if (($room = Room::create(LEGAL_PATH."/brisk-crystal.data")) == FALSE) { - log_crit("room::create failed"); + if (($brisk = Brisk::create(LEGAL_PATH."/brisk-crystal.data", $G_ban_list, $G_black_list)) == FALSE) { + log_crit("Brisk::create failed"); $ret = 1; break; } - if (($s_a_p = Sac_a_push::create($room, USOCK_PATH, 0, 0, $argv)) === FALSE) { + if (($s_a_p = Sac_a_push::create($brisk, USOCK_PATH, 0, 0, $argv)) === FALSE) { $ret = 2; break; }