From 6ffac5d6ecd013988961e0ee914bf086519b52d5 Mon Sep 17 00:00:00 2001 From: Florian Pritz Date: Sat, 27 Feb 2010 21:20:06 +0100 Subject: change comment for line numbers Signed-off-by: Florian Pritz --- system/application/controllers/file.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'system/application/controllers') diff --git a/system/application/controllers/file.php b/system/application/controllers/file.php index ba231d47f..37658ea19 100644 --- a/system/application/controllers/file.php +++ b/system/application/controllers/file.php @@ -171,7 +171,8 @@ class File extends Controller { $data['raw_link'] = site_url($this->config->item('paste_download_url').$id); header("Content-Type: text/html\n"); echo $this->load->view('file/html_header', $data, true); - // TODO: implement in PHP + // only rewrite if it's fast + // count(file($file)); isn't echo shell_exec('/usr/bin/seq 1 $(/usr/bin/wc -l '.escapeshellarg($file).' | /bin/cut -d\ -f1) | sed -r \'s/^(.*)$/\1<\/a>/g\''); echo '
'."\n";
           echo shell_exec(FCPATH.'scripts/syntax-highlighting.sh '.$filedata['filename'].'.'.$mode.' < '.escapeshellarg($file));
-- 
cgit v1.2.3-24-g4f1b