summaryrefslogtreecommitdiffstats
path: root/blog
diff options
context:
space:
mode:
authorin2 <in2@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2003-06-20 12:35:51 +0800
committerin2 <in2@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2003-06-20 12:35:51 +0800
commit7fa43063f4561a1ba1577cbbc427a7982d5991ff (patch)
treeeaf64e58230022b60974071d00ec0f708c60fe1f /blog
parent9760cc07bb8fc98776569e03f015f8db9e0b5ccd (diff)
downloadpttbbs-7fa43063f4561a1ba1577cbbc427a7982d5991ff.tar
pttbbs-7fa43063f4561a1ba1577cbbc427a7982d5991ff.tar.gz
pttbbs-7fa43063f4561a1ba1577cbbc427a7982d5991ff.tar.bz2
pttbbs-7fa43063f4561a1ba1577cbbc427a7982d5991ff.tar.lz
pttbbs-7fa43063f4561a1ba1577cbbc427a7982d5991ff.tar.xz
pttbbs-7fa43063f4561a1ba1577cbbc427a7982d5991ff.tar.zst
pttbbs-7fa43063f4561a1ba1577cbbc427a7982d5991ff.zip
use LocalVars
git-svn-id: http://opensvn.csie.org/pttbbs/pttbbs/trunk/pttbbs@948 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'blog')
-rwxr-xr-xblog/index.pl17
1 files changed, 13 insertions, 4 deletions
diff --git a/blog/index.pl b/blog/index.pl
index cad0fba3..091bc1f3 100755
--- a/blog/index.pl
+++ b/blog/index.pl
@@ -1,8 +1,17 @@
#!/usr/bin/perl
-# $Id: index.pl,v 1.1 2003/06/02 15:23:32 in2 Exp $
+# $Id: index.pl,v 1.2 2003/06/20 04:35:51 in2 Exp $
use CGI qw/:standard/;
+use lib qw/./;
+use LocalVars;
-print redirect("http://blog.ptt2.cc/blog.pl/$1/")
- if( $ENV{REDIRECT_REQUEST_URI} =~ m|/\?(.*)| );
+sub main
+{
+ print redirect("/blog.pl/$1/")
+ if( $ENV{REDIRECT_REQUEST_URI} =~ m|/\?(.*)| );
+
+ return redirect("/blog.pl/$BLOGdefault/");
+}
+
+main();
+1;
-return redirect("http://blog.ptt2.cc/blog.pl/Blog/");