private function getConfigs() { $upload_path = ''; if (function_exists('get_file_uploader_path')) { $upload_path = get_file_uploader_path(); } $array = array('baseurl' => BASEURL, 'title' => TITLE, 'file_upload_url' => BASEURL . '/api/file_uploader.php', 'session' => session_id()); //echo json_encode($array); $data = array('code' => "200", 'status' => "success", "msg" => "Success", "data" => $array); $this->response($this->json($data)); }
foreach ($blacklist_fields as $field) { unset($video[$field]); } $new_videos[] = $video; } echo json_encode($new_videos); } else { echo json_encode(array('err' => 'No items in this playlist')); } break; case "getConfigs": case "get_configs": case "configs": $upload_path = ''; if (function_exists('get_file_uploader_path')) { $upload_path = get_file_uploader_path(); } $array = array('baseurl' => BASEURL, 'title' => TITLE, 'file_upload_url' => BASEURL . '/api/file_uploader.php', 'session' => session_id()); echo json_encode($array); break; case "videoFlagOptions": case "video_flag_options": $type = $request['type']; $type = $type ? $type : 'v'; $flags = get_flag_options($type); echo json_encode($flags); break; case "getSubscribers": $uid = $request['userid']; if (!$uid) { $uid = userid();