diff options
author | deva <deva> | 2008-10-12 11:18:38 +0000 |
---|---|---|
committer | deva <deva> | 2008-10-12 11:18:38 +0000 |
commit | 0b71a1a78732a52f6c074c02cd69d4dd90024ce2 (patch) | |
tree | ce225f55b7ce9ab798a7ec9a178c779d2ff26562 /forum/utils/parser.php | |
parent | 49e669dc744b8b3ffc35db6e7c39df9663427c35 (diff) |
Removed 'delete file' unless logged in as admin. Added insertcommand, and made parser use it.
Diffstat (limited to 'forum/utils/parser.php')
-rw-r--r-- | forum/utils/parser.php | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/forum/utils/parser.php b/forum/utils/parser.php index db8791b..5ba5724 100644 --- a/forum/utils/parser.php +++ b/forum/utils/parser.php @@ -47,6 +47,9 @@ function parse($input, $indent = "") // Convert marked images to img tags and links $output = preg_replace("/".$imgstartmarker."(.*?)".$imgendmarker."/s", "<a href=\"http://$1\"><img alt=\"$1\" src=\"?mode=imagecache&uri=http://$1\"/></a>", $output); + // Replace URLs with <a></a> tags + $output = preg_replace("/\{\{(.*?)\}\}/s", "<a href=\"?mode=file&fid=$1\">File: $1</a>", $output); + // Replace [quote title=...]...[/quote] $urls = ""; while(($start = strpos($output, "[quote"))) { |