Beispiel #1
0
 }
 if (isset($_REQUEST['angle_body']) && isset($_REQUEST['angle_body_z'])) {
     if (checkPerson($_REQUEST['id']) == 1) {
         $sql = $QUERIES->updatePersonAngleBody($_REQUEST['angle_body'], $_REQUEST['angle_body_z'], $_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', $_REQUEST['angle_body'], $_REQUEST['angle_body_z'], '#000000', 0, $_SESSION['user'], 0);
         $result = mysql_query($sql) or $success = false;
     }
 }
 if (isset($_REQUEST['opera_id'])) {
     if (checkPerson($_REQUEST['id']) == 1) {
         $sql = $QUERIES->updatePersonPoi($_REQUEST['opera_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', $_REQUEST['opera_id'], $_SESSION['user'], 0);
         $result = mysql_query($sql) or $success = false;
     }
 }
 if ($success && isset($_REQUEST['id'])) {
     $success = createAvatar($_REQUEST['id']);
 }
 jecho($success);
 break;
 /**