root/tags/ccbbs-1.3/conf.cgi

Revision 115, 4.0 kB (checked in by akiyan, 2 years ago)

maintenance

Line 
1 # �~�X�f�����ݒ��@�C�� rev1.3
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����;
10
11 # �o�͂��镶���R�[�h ( sjis , euc , jis )
12 # ���ߍ��ݐ�HTML�̕����R�[�h�Ɠ����ɂ��Ă�������
13 $conf{'charset'} = 'sjis';
14
15 # ���ߍ��ݐ�URL ( http�����ċL�q���Ă������� )
16 $conf{'return_url'} = 'http://localhost/index.shtml';
17
18 # bbs.cgi��RL
19 $conf{'cgi'} = 'http://localhost/cgi-bin/ccbbs/bbs.cgi';
20
21 # ���ߍ��ݎ��̕\������
22 $conf{'viewline'} = 5;
23
24 # logview���̕\������
25 $conf{'viewline_logview'} = 10;
26
27 # ���������N��� 1 = on )
28 $conf{'autolink'} = 1;
29
30 # ���������N���ɒu�����閼�O�i��ꍇ��RL�����̂܂܃����N�������j
31 $conf{'urlreplace'} = '';
32
33 # ���������N����arget�����̒l�i�󔒈ȊO�̏ꍇ��arget�������}��܂��j
34 # ��_blank ... �V�K�E�B���h�E
35 #     _top   ... �e�t���[��
36 $conf{'target'} = '';
37
38 # �������߂閼�O�{���͂̍ő咷�i�P�ʁFbyte�j
39 $conf{'maxlength'} = 2048;
40
41 # ��������� 1 = on )
42 $conf{'nobreak'} = 0;
43
44 # �A���������ݒ����ԁi�P�ʁF�b�j
45 $conf{'stoptime'} = 10;
46
47 # ���O�̍ő��������i�����قǃT�[�o�[�ɕ��ׂ����������j
48 $conf{'maxlog'} = 300;
49
50 # �T�[�o�[�Ƃ̎����i�P�ʁF�b�j
51 $conf{'timediff'} = 0;
52
53 # �S�̂̃f�U�C��
54 # {cgi}          ... cgi��RL
55 # {message_list} ... �������݈ꗗ
56 # {navi}         ... logview�ł̃i�r�Q�[�V�����\��
57 $conf{'html_body'} = <<"EOM";
58 <div style="font-size:82%;background-color:#fff;border:1px solid #666;padding:1ex">
59 <form action="{cgi}" method="post" name="ob" style="margin:0">
60 <p style="margin:0">
61 Name:<input type="text" name="name" size="8" value="" style="border:1px solid #888">
62  E-Mail:<input type="text" name="email" size="16" value="" style="border:1px solid #888"><br>
63 Message:<br>
64 <textarea name="text" cols="40" rows="4" style="border:1px solid #888"></textarea><br>
65 URL:<input type="text" name="url" size="30" value="" style="border:1px solid #888">
66  <input type="submit" value="write" style="color:#000;background-color:#ccc;border:1px outset #888">
67 <input type="hidden" name="mode" value="write">
68 </p>
69 </form>
70 <hr style="height:1px;color:#aaa;border-style:dotted">
71 {message_list}
72 {navi}
73 <p style="margin:0;text-align:right">
74 <a href="{cgi}?mode=logview">logview</a>
75  / <a href="{cgi}">admin</a>
76  / Script made by <a href="http://www.akiyan.com">�~�ϑ���l</a>
77 </p>
78 </div>
79 EOM
80
81 # �ꏑ�����݂̃f�U�C��
82 # {name}   ... ���O�iE-Mail�A�h���X���������̓����N�t���j
83 # {text}   ... ����
84 # {YEAR}   ... 4���N
85 # {year}   ... 2���N
86 # {mon}    ... ��
87 # {mday}   ... ��{hour}   ... ��
88 # {min}    ... ��
89 # {sec}    ... �b
90 # {number} ... �������ݔԍ�
91 # {url}    ... URL
92 # {url_link}   ... URL�ւ̃����N
93 $conf{'html_message'} = <<"EOM";
94 <p style="margin:0">
95 <span style="font-weight:bold">{name}</span> - {YEAR}/{mon}/{mday} {hour}:{min} - No.{number}
96 </p>
97 <p style="margin:0.5em 1em;line-height:120%">
98 {text}
99 </p>
100 {url_link}
101 <hr style="height:1px;color:#aaa;border-style:dotted">
102 EOM
103
104 # URL�ւ̃����N�̃f�U�C��
105 # {url} ... URL
106 $conf{'html_url'} = <<"EOM";
107 <p style="margin:0 1ex;font-style:italic">URL: <a href="{url}">{url}</a></p>
108 EOM
109
110 # logview�̑S�̂̃f�U�C���icharset�͕K��shift_jis�j
111 # {title}      ... �^�C�g��
112 # {body}       ... �������݈ꗗ
113 # {return_url} ... ���ߍ��ރy�[�W��RL
114 $conf{'html_logview'} = <<"EOM";
115 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Trasitional//EN">
116 <html lang="ja">
117 <head>
118 <meta http-equiv="content-type" content="text/html; charset=shift_jis">
119 <meta http-equiv="content-style-type" content="text/css">
120 <title>{title}</title>
121 </head>
122 <body>
123 <h1 style="font-size:100%;margin-bottom:1ex;text-align:center">{title}</h1>
124 {body}
125 <p style="font-size:82%"><a href="{return_url}">Return</a></p>
126 </body>
127 </html>
128 EOM
129
130 # logview�ł̃i�r�Q�[�V�����̃f�U�C��
131 $conf{'html_navi'} = <<"EOM";
132 <p style="margin:0;text-align:center"><a href="{cgi}?mode=logview&start={start}">Next Page</a></p>
133 EOM
134
135 #____�ݒ肱���܂�
136 1;
Note: See TracBrowser for help on using the browser.