$file_path = $files[$file_id]['path'];
$start_offset = 0;
$start_from = SEEK_END;
$load_more = false;
$old_lastline = '';
$data_to_parse = filesize($file_path);
$full = true;
$logs = LogParser::getNewLines($regex, $match, $types, $tz, $count, $exclude, $file_path, $start_offset, $start_from, $load_more, $old_lastline, $multiline, $search, $data_to_parse, $full, $timeout);
/*
|--------------------------------------------------------------------------
| Error while getting logs
|--------------------------------------------------------------------------
|
*/
if (!is_array($logs)) {
    http500();
}
/*
|--------------------------------------------------------------------------
| Return
|--------------------------------------------------------------------------
|
*/
$link = str_replace('inc/rss.php', '', get_current_url(true));
header("Pragma: public");
header("Expires: 0");
header("Cache-Control: must-revalidate, post-check=0, pre-check=0");
switch ($format) {
    case 'ATOM':
    case 'RSS':
        require 'classes/Feedcreator.php';
/**
 * Set the upload status for an asset.
 *
 * @param $asset
 * An object representing the asset, containing at a minimum "embed_code" and
 * "status" properties.
 *
 * @return
 * The status of the asset.
 */
function uploadStatus($asset_id)
{
    $ooyala = get_option('ooyala');
    try {
        $api = new OoyalaApi($ooyala['api_key'], $ooyala['api_secret']);
        $response = $api->put("assets/" . $asset_id . "/upload_status", array('status' => 'uploaded'));
        return $response;
    } catch (Exception $e) {
        http500($e->getMessage());
    }
}