add dump/restore feature and set new version to 4.2.0
[brisk.git] / web / spush / brisk-spush.php
index e7d5f85..8eece0c 100755 (executable)
@@ -41,12 +41,12 @@ require_once($G_base."briskin5/index_wr.php");
 
 function main()
 {
-    if (($room = Room::create()) == FALSE) {
+    if (($room = Room::create(LEGAL_PATH."/brisk-crystal.data")) == FALSE) {
         log_crit("room::create failed");
         exit(1);
     }
 
-    if (($s_a_p = Sac_a_push::create($room, "/tmp/brisk.sock", 0, 0)) === FALSE) {
+    if (($s_a_p = Sac_a_push::create($room, USOCK_PATH, 0, 0)) === FALSE) {
         exit(1);
     }