if (checkPerson($_REQUEST['id']) == 1) { $sql = $QUERIES->updatePersonGroup($_REQUEST['group_id'], $_SESSION['user'], $_REQUEST['id'], $_SESSION['frame_id'], $_SESSION['camera_id']); $result = mysql_query($sql) or $success = false; } else { $bb = $config->bb; $bbV = $config->bbV; //If person is a proposal and it has been approved, insert it into frame people list $sql = $QUERIES->insertPerson(intval($_REQUEST["id"]), $_SESSION['frame_id'], $_SESSION['camera_id'], $bb->x, $bb->y, $bb->width, $bb->height, $bbV->x, $bbV->y, $bbV->width, $bbV->height, 'null', 'null', 'null', 'null', '#000000', 0, $_SESSION['user'], $_REQUEST['group_id']); $result = mysql_query($sql) or $success = false; } } if (isset($_REQUEST['bb'])) { if (checkPerson($_REQUEST['id']) == 1) { $bb = array(); $bb = $_REQUEST['bb']; $sql = $QUERIES->updatePersonBB($bb, $_SESSION['user'], $_REQUEST['id'], $_SESSION['frame_id'], $_SESSION['camera_id']); $result = mysql_query($sql) or $success = false; } else { $bb = array(); $bb = $_REQUEST['bb']; $bbV = $config->bbV; //If person is a proposal and it has been approved, insert it into frame people list $sql = $QUERIES->insertPerson(intval($_REQUEST["id"]), $_SESSION['frame_id'], $_SESSION['camera_id'], $bb[0], $bb[1], $bb[2], $bb[3], $bbV->x, $bbV->y, $bbV->width, $bbV->height, 'null', 'null', 'null', 'null', '#000000', 0, $_SESSION['user'], 0); $result = mysql_query($sql) or $success = false; } } if (isset($_REQUEST['bbV'])) { if (checkPerson($_REQUEST['id']) == 1) { $bbV = array(); $bbV = $_REQUEST['bbV']; $sql = $QUERIES->updatePersonBBV($bbV, $_SESSION['user'], $_REQUEST['id'], $_SESSION['frame_id'], $_SESSION['camera_id']);