diff options
author | in2 <in2@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2003-07-04 13:59:08 +0800 |
---|---|---|
committer | in2 <in2@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2003-07-04 13:59:08 +0800 |
commit | 2d1717477dd9ed79a7b47479e37e6ff110d9e966 (patch) | |
tree | 331c8a80769d4bba063999050ffcf79c26ebaad7 | |
parent | ee41ba430a04f1e18fbe1cfb37ea83a9807f0305 (diff) | |
download | pttbbs-2d1717477dd9ed79a7b47479e37e6ff110d9e966.tar pttbbs-2d1717477dd9ed79a7b47479e37e6ff110d9e966.tar.gz pttbbs-2d1717477dd9ed79a7b47479e37e6ff110d9e966.tar.bz2 pttbbs-2d1717477dd9ed79a7b47479e37e6ff110d9e966.tar.lz pttbbs-2d1717477dd9ed79a7b47479e37e6ff110d9e966.tar.xz pttbbs-2d1717477dd9ed79a7b47479e37e6ff110d9e966.tar.zst pttbbs-2d1717477dd9ed79a7b47479e37e6ff110d9e966.zip |
*** empty log message ***
git-svn-id: http://opensvn.csie.org/pttbbs/pttbbs/trunk@1019 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
-rw-r--r-- | pttbbs/staticweb/article.html | 3 | ||||
-rw-r--r-- | pttbbs/staticweb/dir.html | 2 | ||||
-rwxr-xr-x | pttbbs/staticweb/man.pl | 13 |
3 files changed, 15 insertions, 3 deletions
diff --git a/pttbbs/staticweb/article.html b/pttbbs/staticweb/article.html index 9cfee318..706626a0 100644 --- a/pttbbs/staticweb/article.html +++ b/pttbbs/staticweb/article.html @@ -1,6 +1,7 @@ [% INCLUDE header.html %] <table width="75%" align="center"><tr><td> -狾: [% brdname %]<br /><a href="."></a><br /> +狾: <a href="/man.pl/[% brdname %]/">[% brdname %]</a><br /> +<a href="."></a><br /> <hr /> </tr></td><tr><td> <font size=+2><pre> diff --git a/pttbbs/staticweb/dir.html b/pttbbs/staticweb/dir.html index 82ea6a12..a70d9a04 100644 --- a/pttbbs/staticweb/dir.html +++ b/pttbbs/staticweb/dir.html @@ -13,7 +13,7 @@ <a href="http://man.ptt.cc/man.pl/[% brdname %]/">[% brdname %]弘地跋</a> <a href="http://blog.ptt.cc">у金金场辅</a> <br /> -<font size=+1>狾嘿: [% brdname %]</font> +<font size=+1>狾嘿: <a href="/man.pl/[% brdname %]/">[% brdname %]</a></font> <hr /> </td></tr> diff --git a/pttbbs/staticweb/man.pl b/pttbbs/staticweb/man.pl index e9e45a2a..28d21ae0 100755 --- a/pttbbs/staticweb/man.pl +++ b/pttbbs/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; } |