예제 #1
0
파일: api.php 프로젝트: lorecioni/watss
         $group = array("id" => intval($idvalue) + 1, "text" => $_REQUEST['name'], "people" => 0);
     }
     jecho($group);
     break;
     /**
      * Remove a group from database
      */
 /**
  * Remove a group from database
  */
 case "remove-group":
     $done = true;
     if (!isset($_REQUEST['id'])) {
         error_500("Missing parameter: group id");
     }
     $sql = $QUERIES->removeGroup($_REQUEST['id']);
     $result = mysql_query($sql) or $done = false;
     jecho(true);
     break;
     /**
      * Return the frame based on its ID from database
      */
 /**
  * Return the frame based on its ID from database
  */
 case "get-frame":
     $dimension = array();
     $frame = array();
     $done = true;
     if (!isset($_REQUEST["frame_id"])) {
         $myframe = $_SESSION["frame_id"];