From: Matteo Nastasi (mop) Date: Sat, 26 Jan 2008 17:25:08 +0000 (+0000) Subject: ftok in briskin5 constructor X-Git-Url: http://mop.ddnsfree.com/gitweb/?a=commitdiff_plain;h=06dda19a43945c3d204484350ca4bc9eed4e0d47;p=brisk.git ftok in briskin5 constructor --- diff --git a/web/briskin5/Obj/briskin5.phh b/web/briskin5/Obj/briskin5.phh index 778f67b..7805b2f 100644 --- a/web/briskin5/Obj/briskin5.phh +++ b/web/briskin5/Obj/briskin5.phh @@ -15,6 +15,11 @@ class Briskin5 { $this->user = array(); $this->table = array(); + if (($this->tok = ftok(FTOK_PATH."/table".$table_idx, "B")) == -1) { + echo "FTOK FAILED"; + exit; + } + $user =& $room->user; $table =& $room->table[$table_idx];