summaryrefslogtreecommitdiffstats
path: root/staticweb/man.pl
diff options
context:
space:
mode:
authorin2 <in2@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2003-07-04 13:59:08 +0800
committerin2 <in2@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2003-07-04 13:59:08 +0800
commit5e7389f217ca6bfae3ee09987d01eac327fca4db (patch)
treef87f71badacf69808a4e264b4265e9afb856c8df /staticweb/man.pl
parentfc218cf2321d9315a726c8b94b106327976f63cc (diff)
downloadpttbbs-5e7389f217ca6bfae3ee09987d01eac327fca4db.tar
pttbbs-5e7389f217ca6bfae3ee09987d01eac327fca4db.tar.gz
pttbbs-5e7389f217ca6bfae3ee09987d01eac327fca4db.tar.bz2
pttbbs-5e7389f217ca6bfae3ee09987d01eac327fca4db.tar.lz
pttbbs-5e7389f217ca6bfae3ee09987d01eac327fca4db.tar.xz
pttbbs-5e7389f217ca6bfae3ee09987d01eac327fca4db.tar.zst
pttbbs-5e7389f217ca6bfae3ee09987d01eac327fca4db.zip
*** empty log message ***
git-svn-id: http://opensvn.csie.org/pttbbs/pttbbs/trunk/pttbbs@1019 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'staticweb/man.pl')
-rwxr-xr-xstaticweb/man.pl13
1 files changed, 12 insertions, 1 deletions
diff --git a/staticweb/man.pl b/staticweb/man.pl
index e9e45a2a..28d21ae0 100755
--- a/staticweb/man.pl
+++ b/staticweb/man.pl
@@ -1,5 +1,5 @@
#!/usr/bin/perl
-# $Id: man.pl,v 1.3 2003/07/03 13:49:07 in2 Exp $
+# $Id: man.pl,v 1.4 2003/07/04 05:58:45 in2 Exp $
use CGI qw/:standard/;
use lib qw/./;
use LocalVars;
@@ -70,6 +70,17 @@ sub articlemode
$th{tmpl} = 'article.html';
$th{content} = $db{$fpath};
$th{content} =~ s/\033\[.*?m//g;
+
+ $th{content} =~ s|(http://[\w\-\.\:\/\,@]+)|<a href="$1">$1</a>|gs;
+ $th{content} =~ s|(ftp://[\w\-\.\:\/\,@]+)|<a href="$1">$1</a>|gs;
+ $th{content} =~
+ s|у金金ㄟ|<a href="http://blog.ptt2.cc">у金金ㄟ</a>|gs;
+ $th{content} =~
+ s|祇獺: у金金龟穨|祇獺: <a href="http://blog.ptt.cc">у金金龟穨</a>|gs;
+ $th{content} =~
+ s|ptt\.csie\.ntu\.edu\.tw|<a href="telnet://ptt.csie.ntu.edu.tw">ptt.csie.ntu.edu.tw</a>|gs;
+ $th{content} =~
+ s|ptt\.twbbs\.org|<a href="telnet://ptt.csie.ntu.edu.tw">ptt.twbbs.org</a>|gs;
return \%th;
}