root/tags/1linebbsv2-1.9/conf.cgi

Revision 113, 5.0 kB (checked in by akiyan, 2 years ago)

maintenance

Line 
1 # �~�X���f����v2 �ݒ��@�C�� rev1.9
2 # ���̃t�@�C���̕����R�[�h��hift_jis�ŕۑ����ĉ������B
3 #
4 #____�ݒ肱������
5 # �Ǘ��p�X���[�h�i�K���ݒ肵�ĉ������j
6 $conf{'password'} = '';
7
8 # �f���‚̃^�C�g���ilogview�Aadmin�Ŏg�p�������j
9 $conf{'title'} = '�~�X���f����v2';
10
11 # �o�͂��镶���R�[�h ( sjis , euc , jis , utf8 )
12 # ���ߍ��ݐ�HTML�̕����R�[�h�Ɠ����ɂ��Ă�������
13 $conf{'charset'} = 'sjis';
14
15 # �ݒu����L ( http�����ċL�q���Ă������� )
16 $conf{'return_url'} = 'http://';
17
18 # bbs.cgi��RL
19 $conf{'cgi'} = 'http://***/cgi-bin/1linebbs/bbs.cgi';
20
21 # ���ߍ��ݎ��̕\������
22 $conf{'viewline'} = 8;
23
24 # logview���̕\������
25 $conf{'viewline_logview'} = 30;
26
27 # ���ߍ��ݎ��̃��b�Z�[�W��я�
28 # 0 ... �V������
29 # 1 ... ����
30 $conf{'vieworder'} = 0;
31
32 # logview���̃��b�Z�[�W��я�
33 # 0 ... �V������
34 # 1 ... ����
35 $conf{'vieworder_logview'} = 0;
36
37 # cookie�̎g�p�i�g�p���������y�[�W���o�����ɂȂ����j
38 # 0 ... �g�p���Ȃ�
39 # 1 ... �g�p����$conf{'use_cookie'} = 0;
40
41 # �����y�[�W���玩���Ŗ߂��ł̎���(�b)
42 $conf{'refresh_time'} = 5;
43
44 # ���������N��� 1 = on )
45 $conf{'autolink'} = 1;
46
47 # ���������N���ɒu�����閼�O�i��ꍇ��RL�����̂܂܃����N�������j
48 $conf{'urlreplace'} = '';
49
50 # ���������N����arget�����̒l�i�󔒈ȊO�̏ꍇ��arget�������}��܂��j
51 # ��_blank  ... �V�K�E�B���h�E
52 #     _top    ... �e�t���[��
53 $conf{'target'} = '';
54
55 # �������߂閼�O�{���͂̍ő咷�i�P�ʁFbyte�j
56 $conf{'maxlength'} = 512;
57
58 # �A���������ݒ����ԁi�P�ʁF�b�j
59 $conf{'stoptime'} = 10;
60
61 # ���O�̍ő��������i�����قǃT�[�o�[�ɕ��ׂ����������j
62 $conf{'maxlog'} = 300;
63
64 # �T�[�o�[�Ƃ̎����i�P�ʁF�b�j
65 $conf{'timediff'} = 0;
66
67 # �S�̂̃f�U�C��
68 # {cgi}          ... cgi��RL
69 # {message_list} ... �������݈ꗗ
70 # {navi}         ... logview�ł̃i�r�Q�[�V�����\��
71 # {cname}        ... cookie�����ݏo�������O
72 $conf{'html_body'} = <<"EOM";
73 <div style="font-size:82%;background-color:#fff;border:1px solid #666;padding:1ex">
74 <form action="{cgi}" method="post" name="ob" style="margin:0">
75 <p style="margin:0">
76 Name:<input type="text" name="name" size="8" value="{cname}" style="border:1px solid #888">
77  Message:<input type="text" name="text" size="40" value="" style="border:1px solid #888">
78  <input type="submit" value="write" style="color:#000;background-color:#ccc;border:1px outset #888">
79 <input type="hidden" name="mode" value="write">
80 </p>
81 </form>
82 <hr style="height:1px;color:#aaa;border-style:dotted">
83 {message_list}
84 {navi}
85 <p style="margin:0;text-align:right">
86 <a href="{cgi}?mode=logview">logview</a>
87  / <a href="{cgi}">admin</a>
88  / Script made by <a href="http://www.akiyan.com">�~�ϑ���l</a>
89 </p>
90 </div>
91 EOM
92
93 # �������݂P�s�̃f�U�C��
94 # {name}   ... ���O
95 # {text}   ... ����
96 # {YEAR}   ... 4���N
97 # {year}   ... 2���N
98 # {mon}    ... ��
99 # {mday}   ... ��{hour}   ... ��
100 # {min}    ... ��
101 # {sec}    ... �b
102 # {number} ... �������ݔԍ�
103 $conf{'html_message'} = <<"EOM";
104 <p style="margin:0">
105 [<span style="font-weight:bold">{name}</span>] {YEAR}/{mon}/{mday} {hour}:{min} No.{number}<br>
106 {text}
107 </p>
108 <hr style="height:1px;color:#aaa;border-style:dotted">
109 EOM
110
111 # logview�̑S�̂̃f�U�C���icharset�͕K��shift_jis�j
112 # {title}      ... �^�C�g��
113 # {body}       ... �������݈ꗗ
114 # {return_url} ... ���ߍ��ރy�[�W��RL
115 $conf{'html_logview'} = <<"EOM";
116 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Trasitional//EN">
117 <html lang="ja">
118 <head>
119 <meta http-equiv="content-type" content="text/html; charset=shift_jis">
120 <meta http-equiv="content-style-type" content="text/css">
121 <title>{title}</title>
122 </head>
123 <body>
124 <h1 style="font-size:100%;margin-bottom:1ex;text-align:center">{title}</h1>
125 {body}
126 <p style="font-size:82%"><a href="{return_url}">Return</a></p>
127 </body>
128 </html>
129 EOM
130
131 # logview�ł̃i�r�Q�[�V�����̃f�U�C��
132 $conf{'html_navi'} = <<"EOM";
133 <p style="margin:0"><a href="{cgi}?mode=logview&start={start}">Next Page</a></p>
134 EOM
135
136 # �������݊����y�[�W�̃f�U�C��
137 # {title}        ... �^�C�g��
138 # {return_url}   ... ���ߍ��ރy�[�W��RL
139 # {refresh_time} ... �����y�[�W���玩���Ŗ߂��ł̎���
140 $conf{'html_write_finish'} = <<"EOM";
141 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Trasitional//EN">
142 <html lang="ja">
143 <head>
144 <meta http-equiv="refresh" content="{refresh_time};url={return_url}">
145 <meta http-equiv="content-type" content="text/html; charset=shift_jis">
146 <meta http-equiv="content-style-type" content="text/css">
147 <style type="text/css">
148 h1 {
149  font-size:100%;
150  font-weight:bold;
151  margin:0;
152 }
153 body {
154  padding:1%;
155 }
156 </style>
157 <title>{title}</title>
158 </head>
159 <body>
160 <h1>{title} �������݊���</h1>
161 <hr>
162 <p style="text-align:center;line-height:3em"><span style="font-weight:bold">{title} �ւ̏������݂��������܂����B</span><br>{refresh_time}�b�������Ō��̃y�[�W�֖߂����B<br>�i�‹��ɂ��Ă͎����Ő؂����܂���/p>
163 <p style="text-align:center"><a href="{return_url}">�߂�a></p>
164 <hr>
165 <p style="text-align:right"><a href="{cgi}?mode=logview">logview</a> / Script made by <a href="http://www.akiyan.com/">�~�ϑ���l</a></p>
166 </body>
167 </html>
168 EOM
169
170 #____�ݒ肱���܂�
171 1;
Note: See TracBrowser for help on using the browser.