From 06dda19a43945c3d204484350ca4bc9eed4e0d47 Mon Sep 17 00:00:00 2001 From: "Matteo Nastasi (mop)" Date: Sat, 26 Jan 2008 17:25:08 +0000 Subject: [PATCH] ftok in briskin5 constructor --- web/briskin5/Obj/briskin5.phh | 5 +++++ 1 file changed, 5 insertions(+) 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]; -- 2.17.1