Ejemplo n.º 1
0
 } else {
     if (isset($_REQUEST['cameraid']) && isset($_REQUEST['intrinsic'])) {
         $id = $_REQUEST['cameraid'];
         $intrinsic = $_REQUEST['intrinsic'];
         if ($checkDatabaseConnection) {
             $sql = $QUERIES->updateCameraCalibrationIntrinsic($id, $intrinsic);
             $result = mysql_query($sql) or $success = false;
         } else {
             $success = false;
         }
     } else {
         if (isset($_REQUEST['cameraid']) && isset($_REQUEST['omography'])) {
             $id = $_REQUEST['cameraid'];
             $omography = $_REQUEST['omography'];
             if ($checkDatabaseConnection) {
                 $sql = $QUERIES->updateCameraCalibrationOmography($id, $omography);
                 $result = mysql_query($sql) or $success = false;
             } else {
                 $success = false;
             }
         } else {
             if (isset($_REQUEST['cameraid']) && isset($_REQUEST['param'])) {
                 $id = $_REQUEST['cameraid'];
                 $param = $_REQUEST['param'];
                 if ($checkDatabaseConnection) {
                     $sql = $QUERIES->updateCameraCalibrationParam($id, $param);
                     $result = mysql_query($sql) or $success = false;
                 } else {
                     $success = false;
                 }
             } else {