Ugadeals TV API v1.1.1

Deploy api.php and Rest.inc.php inside the TV system API directory, normally:
/tvfeed/api/

The Flutter app uses:
https://offline.moochatplus.net/tvfeed/api/

The endpoint accepts:
GET ?x=get_posts&api_key=YOUR_REST_KEY&count=50&page=1
GET ?x=get_post_detail&api_key=YOUR_REST_KEY&id=1
GET ?x=check_connection&api_key=YOUR_REST_KEY

This version matches the tbl_channel schema from the supplied tvfeed.zip:
active, channel_name, channel_image, channel_url, channel_url_two,
channel_type, channel_video_id, channel_video_id_two, channel_user_agent.

The existing /tvfeed/includes/config.php must remain available because api.php loads it.
