{
// return (TRUE);
- if (($id = shmop_open($tok,"a", 0, 0)) == FALSE) {
+ if (($id = @shmop_open($tok,"a", 0, 0)) == FALSE) {
log_main($tok." SHM NOT exists");
return (FALSE);
exit;
$sem = Briskin5::lock_data($table_idx);
-$bri = &Briskin5::load_data($table_idx,$table_token);
+
+if (($bri = &Briskin5::load_data($table_idx,$table_token)) == FALSE) {
+ echo "Bin5 Load data error";
+ log_wr("Bin5 Load data error");
+ Briskin5::unlock_data($sem);
+ exit;
+}
+
if (($user = &$bri->get_user($sess, &$idx)) == FALSE) {
echo "Get User Error";
log_wr("Get User Error");
log_wr('COMM: '.$mesg);
$sem = Room::lock_data();
-$room = &Room::load_data();
+if (($room = &Room::load_data()) == FALSE) {
+ echo "Load data error";
+ log_wr("Load data error");
+ Room::unlock_data($sem);
+ exit;
+}
if (($user = &$room->get_user($sess, &$idx)) == FALSE) {
echo "Get User Error";
log_wr("Get User Error");