4 * brisk - spush/brisk-spush.php
6 * Copyright (C) 2012 Matteo Nastasi
7 * mailto: nastasi@alternativeoutput.it
8 * matteo.nastasi@milug.org
9 * web: http://www.alternativeoutput.it
11 * This program is free software; you can redistribute it and/or modify
12 * it under the terms of the GNU General Public License as published by
13 * the Free Software Foundation; either version 2 of the License, or
14 * (at your option) any later version.
16 * This program is distributed in the hope that it will be useful, but
17 * WITHOUT ANY WARRANTY; without even the implied warranty of
18 * MERCHANTABLILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
19 * General Public License for more details. You should have received a
20 * copy of the GNU General Public License along with this program; if
21 * not, write to the Free Software Foundation, Inc, 59 Temple Place -
22 * Suite 330, Boston, MA 02111-1307, USA.
27 * - BUG: logout failed
28 * - BUG: fast loop on stream index_rd_ifra page
30 * - garbage management
31 * - log_legal address fix
32 * - from room to table
33 * - from table to room
34 * - index_wr other issues
35 * - manage and test cross forwarder between table and room
36 * - setcookie (for tables only)
37 * - keepalive management
39 * DONE/FROZEN - problema con getpeer (HOSTADDR)
42 * DONE - bug: read from a not resource handle (already closed because a new socket substitute it)
43 * DONE - partial write for normal page management
44 * DONE - index_rd_ifra: last_clean issue
45 * DONE - fwrite failed error management (select, buffer where store unsent data, and fwrite check and retry)
46 * ABRT - index_wr.php::reload - reload is js-only function
47 * DONE - bug: after restart index_rd.php receive from prev clients a lot of req
48 * DONE - index_wr.php::chat
49 * DONE - index_wr.php::exit
50 * DONE - index_rd.php porting
51 * DONE - generic var management from internet
52 * DONE - index.php auth part
57 require_once($G_base."Obj/sac-a-push.phh");
58 require_once("./brisk-spush.phh");
59 require_once($G_base."Obj/user.phh");
60 require_once($G_base."Obj/brisk.phh");
61 require_once($G_base."Obj/auth.phh");
62 // require_once("../Obj/proxyscan.phh");
63 require_once($G_base."index.php");
64 require_once($G_base."index_wr.php");
65 require_once($G_base."index_rd_ifra.php");
66 require_once($G_base."briskin5/Obj/briskin5.phh");
71 if (($room = Room::create()) == FALSE) {
72 log_crit("room::create failed");
76 if (($s_a_p = Sac_a_push::create($room, "/tmp/brisk.sock", 0, 0)) === FALSE) {