function _getSource($file,$start,$end) { $source = @file($this->location.$file); if (empty($source)) return ''; // $start is a 1 based index, need to correct to 0 based when slicing arrray if (!empty($start)) { $lines = count($source); if ($start > $lines) { $source = $this->getLang('error_start'); } else if ($end < $start) { $source = $this->getLang('error_end'); } else if ($end > $lines) { $source = join('',array_slice($source,$start-1)); } else { $source = join('',array_slice($source,$start-1,$end-$start)); } } else { $source = join('',$source); } $rows = explode("\n", $source); for($i = 0; $i