Ejemplo n.º 1
0
         }
     }
     jecho($cameras);
     break;
     /**
      * Adding camera to db
      */
 /**
  * Adding camera to db
  */
 case "add-camera":
     $success = true;
     if (isset($_REQUEST['calibration'])) {
         $calibration = $_REQUEST['calibration'];
         if ($checkDatabaseConnection) {
             $sql = $QUERIES->insertCamera($calibration);
             $result = mysql_query($sql) or $success = false;
             $sql = $QUERIES->insertPOI(0, mysql_insert_id(), 0, 0, 0, 0, 'Not set');
             $result = mysql_query($sql) or $success = false;
         } else {
             $success = false;
         }
     } else {
         $success = false;
     }
     $output = new stdClass();
     $output->success = $success;
     $output->id = mysql_insert_id();
     jecho($output);
     break;
     /**