#!/usr/local/bin/perl # #view.cgi #アンケート管理スクリプト:管理者専用 #箱を一括して管理するCGIです。 #箱そのものの削除は list.cgiから行って下さい。 require './jcodeLE.pl'; require './prei.cgi'; $| = 1; &winit;&noaxschk; &init; &decode;&jikan; #管理者でなければパスワードの要求画面へ if($pass ne $rootpwd){ &html;exit; } if ($referer =~ /$cgichk/i ){ &edit if($erase); } &html;exit; ################################################## sub init{ #初期設定など $rootpwd = 'master777'; #総合管理者のパスワード(重要!) }#init END ################################################## sub html { my($roomtotal,$roomn,$roomc,$file,$line,$voten,$name,$wchat,$date,$host,$ps,$tms,$invalid,$color,$time2); my($oname,$ohost,$odate,$ochat,$eraseid,$hostname,$lmtd); print "Content-type: text/html\n\n"; print <<"_HTML_";