ftok in briskin5 constructor
authorMatteo Nastasi (mop) <nastasi@alternativeoutput.it>
Sat, 26 Jan 2008 17:25:08 +0000 (17:25 +0000)
committerMatteo Nastasi (mop) <nastasi@alternativeoutput.it>
Sat, 26 Jan 2008 17:25:08 +0000 (17:25 +0000)
web/briskin5/Obj/briskin5.phh

index 778f67b..7805b2f 100644 (file)
@@ -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];