#!/usr/bin/perl #┌───────────────────────────────── #│ Sun Board v4 #│ sunbbs.cgi - 2007/11/18 #│ Copyright (c) KentWeb #│ webmaster@kent-web.com #│ http://www.kent-web.com/ #└───────────────────────────────── # 外部ファイル require './init.cgi'; require $jcode; &decode; if ($mode eq 'form') { &form; } elsif ($mode eq 'find') { &find; } elsif ($mode eq "past" && $pastkey) { &past; } elsif ($mode eq "check") { ✓ } &location; #------------------------------------------------- # クッキー取得 #------------------------------------------------- sub get_cookie { local($key, $val, *cook); # クッキーを取得 $cook = $ENV{'HTTP_COOKIE'}; # 該当IDを取り出す foreach ( split(/;/, $cook) ) { ($key, $val) = split(/=/); $key =~ s/\s//g; $cook{$key} = $val; } # データをURLデコードして復元 foreach ( split(/<>/, $cook{'SUN_BOARD'}) ) { s/%([0-9A-Fa-f][0-9A-Fa-f])/pack("H2", $1)/eg; push(@cook,$_); } return (@cook); } #------------------------------------------------- # ワード検索 #------------------------------------------------- sub find { print &header; print <<"EOM"; [戻る]
ワード検索 |
---|