admin_setting.htm
14 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
{template header}
<script src="js/common.js" type="text/javascript"></script>
<div class="container">
<!--{if $updated}-->
<div class="correctmsg"><p>{lang update_succeed}</p></div>
<!--{elseif $a == 'register'}-->
<div class="note fixwidthdec"><p class="i">{lang setting_register_tips}</p></div>
<!--{/if}-->
<!--{if $a == 'ls'}-->
<div class="mainbox nomargin">
<form action="admin.php?m=setting&a=ls" method="post">
<input type="hidden" name="formhash" value="{FORMHASH}">
<table class="opt">
<tr>
<th colspan="2">{lang setting_dateformat}:</th>
</tr>
<tr>
<td><input type="text" class="txt" name="dateformat" value="$dateformat" /></td>
<td>{lang setting_dateformat_comment}</td>
</tr>
<tr>
<th colspan="2">{lang setting_timeformat}:</th>
</tr>
<td>
<input type="radio" id="hr24" class="radio" name="timeformat" value="1" $timeformat[1] /><label for="hr24">{lang setting_timeformat_hr24}</label>
<input type="radio" id="hr12" class="radio" name="timeformat" value="0" $timeformat[0] /><label for="hr12">{lang setting_timeformat_hr12}</label>
</td>
</tr>
<tr>
<th colspan="2">{lang setting_timeoffset}:</th>
</tr>
<tr>
<td>
<select name="timeoffset">
<option value="-12" $checkarray['012']>(GMT -12:00) Eniwetok, Kwajalein</option>
<option value="-11" $checkarray['011']>(GMT -11:00) Midway Island, Samoa</option>
<option value="-10" $checkarray['010']>(GMT -10:00) Hawaii</option>
<option value="-9" $checkarray['09']>(GMT -09:00) Alaska</option>
<option value="-8" $checkarray['08']>(GMT -08:00) Pacific Time (US & Canada), Tijuana</option>
<option value="-7" $checkarray['07']>(GMT -07:00) Mountain Time (US & Canada), Arizona</option>
<option value="-6" $checkarray['06']>(GMT -06:00) Central Time (US & Canada), Mexico City</option>
<option value="-5" $checkarray['05']>(GMT -05:00) Eastern Time (US & Canada), Bogota, Lima, Quito</option>
<option value="-4" $checkarray['04']>(GMT -04:00) Atlantic Time (Canada), Caracas, La Paz</option>
<option value="-3.5" $checkarray['03.5']>(GMT -03:30) Newfoundland</option>
<option value="-3" $checkarray['03']>(GMT -03:00) Brassila, Buenos Aires, Georgetown, Falkland Is</option>
<option value="-2" $checkarray['02']>(GMT -02:00) Mid-Atlantic, Ascension Is., St. Helena</option>
<option value="-1" $checkarray['01']>(GMT -01:00) Azores, Cape Verde Islands</option>
<option value="0" $checkarray['0']>(GMT) Casablanca, Dublin, Edinburgh, London, Lisbon, Monrovia</option>
<option value="1" $checkarray['1']>(GMT +01:00) Amsterdam, Berlin, Brussels, Madrid, Paris, Rome</option>
<option value="2" $checkarray['2']>(GMT +02:00) Cairo, Helsinki, Kaliningrad, South Africa</option>
<option value="3" $checkarray['3']>(GMT +03:00) Baghdad, Riyadh, Moscow, Nairobi</option>
<option value="3.5" $checkarray['3.5']>(GMT +03:30) Tehran</option>
<option value="4" $checkarray['4']>(GMT +04:00) Abu Dhabi, Baku, Muscat, Tbilisi</option>
<option value="4.5" $checkarray['4.5']>(GMT +04:30) Kabul</option>
<option value="5" $checkarray['5']>(GMT +05:00) Ekaterinburg, Islamabad, Karachi, Tashkent</option>
<option value="5.5" $checkarray['5.5']>(GMT +05:30) Bombay, Calcutta, Madras, New Delhi</option>
<option value="5.75" $checkarray['5.75']>(GMT +05:45) Katmandu</option>
<option value="6" $checkarray['6']>(GMT +06:00) Almaty, Colombo, Dhaka, Novosibirsk</option>
<option value="6.5" $checkarray['6.5']>(GMT +06:30) Rangoon</option>
<option value="7" $checkarray['7']>(GMT +07:00) Bangkok, Hanoi, Jakarta</option>
<option value="8" $checkarray['8']>(GMT +08:00) 北京(Beijing), Hong Kong, Perth, Singapore, Taipei</option>
<option value="9" $checkarray['9']>(GMT +09:00) Osaka, Sapporo, Seoul, Tokyo, Yakutsk</option>
<option value="9.5" $checkarray['9.5']>(GMT +09:30) Adelaide, Darwin</option>
<option value="10" $checkarray['10']>(GMT +10:00) Canberra, Guam, Melbourne, Sydney, Vladivostok</option>
<option value="11" $checkarray['11']>(GMT +11:00) Magadan, New Caledonia, Solomon Islands</option>
<option value="12" $checkarray['12']>(GMT +12:00) Auckland, Wellington, Fiji, Marshall Island</option>
</select>
</td>
<td>{lang setting_timeoffset_comment}</td>
</tr>
<!--
<tr>
<th colspan="2">{lang setting_user_failedtime}:</th>
</tr>
<tr>
<td><input type="text" class="txt" name="login_failedtime" value="$login_failedtime" /></td>
<td>{lang setting_user_failedtime_comment}</td>
</tr>
-->
<tr>
<th colspan="2">{lang setting_pmsendregdays}:</th>
</tr>
<tr>
<td><input type="text" class="txt" name="pmsendregdays" value="$pmsendregdays" /></td>
<td>{lang setting_pmsendregdays_comment}</td>
</tr>
<tr>
<th colspan="2">{lang setting_privatepmthreadlimit}:</th>
</tr>
<tr>
<td><input type="text" class="txt" name="privatepmthreadlimit" value="$privatepmthreadlimit" /></td>
<td>{lang setting_privatepmthreadlimit_comment}</td>
</tr>
<tr>
<th colspan="2">{lang setting_chatpmthreadlimit}:</th>
</tr>
<tr>
<td><input type="text" class="txt" name="chatpmthreadlimit" value="$chatpmthreadlimit" /></td>
<td>{lang setting_chatpmthreadlimit_comment}</td>
</tr>
<tr>
<th colspan="2">{lang setting_chatpmmemberlimit}:</th>
</tr>
<tr>
<td><input type="text" class="txt" name="chatpmmemberlimit" value="$chatpmmemberlimit" /></td>
<td>{lang setting_chatpmmemberlimit_comment}</td>
</tr>
<tr>
<th colspan="2">{lang setting_pmfloodctrl}:</th>
</tr>
<tr>
<td><input type="text" class="txt" name="pmfloodctrl" value="$pmfloodctrl" /></td>
<td>{lang setting_pmfloodctrl_comment}</td>
</tr>
<tr>
<th colspan="2">{lang setting_pmcenter}:</th>
</tr>
<tr>
<td>
<input type="radio" id="pmcenteryes" class="radio" name="pmcenter" value="1" $pmcenter[1] onclick="$('hidden1').style.display=''" /><label for="pmcenteryes">{lang yes}</label>
<input type="radio" id="pmcenterno" class="radio" name="pmcenter" value="0" $pmcenter[0] onclick="$('hidden1').style.display='none'" /><label for="pmcenterno">{lang no}</label>
</td>
<td>{lang setting_pmcenter_comment}</td>
</tr>
<tbody id="hidden1" $pmcenter[display]>
<tr>
<th colspan="2">{lang setting_sendpmseccode}:</th>
</tr>
<tr>
<td>
<input type="radio" id="sendpmseccodeyes" class="radio" name="sendpmseccode" value="1" $sendpmseccode[1] /><label for="sendpmseccodeyes">{lang yes}</label>
<input type="radio" id="sendpmseccodeno" class="radio" name="sendpmseccode" value="0" $sendpmseccode[0] /><label for="sendpmseccodeno">{lang no}</label>
</td>
<td>{lang setting_sendpmseccode_comment}</td>
</tr>
</tbody>
</table>
<div class="opt"><input type="submit" name="submit" value=" {lang submit} " class="btn" tabindex="3" /></div>
</form>
</div>
<!--{elseif $a == 'register'}-->
<div class="mainbox nomargin">
<form action="admin.php?m=setting&a=register" method="post">
<input type="hidden" name="formhash" value="{FORMHASH}">
<table class="opt">
<tr>
<th colspan="2">{lang setting_register_doublee}:</th>
</tr>
<tr>
<td>
<input type="radio" id="yes" class="radio" name="doublee" value="1" $doublee[1] /><label for="yes">{lang yes}</label>
<input type="radio" id="no" class="radio" name="doublee" value="0" $doublee[0] /><label for="no">{lang no}</label>
</td>
</tr>
<tr>
<th colspan="2">{lang setting_register_accessemail}:</th>
</tr>
<tr>
<td><textarea class="area" name="accessemail">$accessemail</textarea></td>
<td valign="top">{lang setting_register_accessemail_comment}</td>
</tr>
<tr>
<th colspan="2">{lang setting_register_censoremail}:</th>
</tr>
<tr>
<td><textarea class="area" name="censoremail">$censoremail</textarea></td>
<td valign="top">{lang setting_register_censoremail_comment}</td>
</tr>
<tr>
<th colspan="2">{lang setting_forbidden_username}:</th>
</tr>
<tr>
<td><textarea class="area" name="censorusername">$censorusername</textarea></td>
<td valign="top">{lang setting_ceonsor_comment}</td>
</tr>
</table>
<div class="opt"><input type="submit" name="submit" value=" {lang submit} " class="btn" tabindex="3" /></div>
</form>
</div>
<!--{else}-->
<div class="mainbox nomargin">
<form action="admin.php?m=setting&a=mail" method="post">
<input type="hidden" name="formhash" value="{FORMHASH}">
<table class="opt">
<tr>
<th colspan="2">{lang settings_mail_settings_emailfrom}:</th>
</tr>
<tr>
<td><input name="maildefault" value="{$maildefault}" type="text"></td>
<td>{lang settings_mail_settings_emailfrom_comment}</td>
<tr>
<th colspan="2">{lang settings_mail_settings_send}:</th>
</tr>
<tr>
<td colspan="2">
<label><input class="radio" name="mailsend" value="1"{if $mailsend == 1} checked="checked"{/if} onclick="$('hidden1').style.display = 'none';$('hidden2').style.display = 'none';" type="radio"> {lang settings_mail_settings_send_1}</label><br />
<label><input class="radio" name="mailsend" value="2"{if $mailsend == 2} checked="checked"{/if} onclick="$('hidden1').style.display = '';$('hidden2').style.display = '';" type="radio"> {lang settings_mail_settings_send_2}</label><br />
<label><input class="radio" name="mailsend" value="3"{if $mailsend == 3} checked="checked"{/if} onclick="$('hidden1').style.display = '';$('hidden2').style.display = 'none';" type="radio"> {lang settings_mail_settings_send_3}</label>
</td>
</tr>
<tbody id="hidden1"{if $mailsend == 1} style="display:none"{/if}>
<tr>
<td colspan="2">{lang settings_mail_settings_server}:</td>
</tr>
<tr>
<td>
<input name="mailserver" value="{$mailserver}" class="txt" type="text">
</td>
<td valign="top">{lang settings_mail_settings_server_comment}</td>
</tr>
<tr>
<td colspan="2">{lang settings_mail_settings_port}:</td>
</tr>
<tr>
<td>
<input name="mailport" value="{$mailport}" type="text">
</td>
<td valign="top">{lang settings_mail_settings_port_comment}</td>
</tr>
</tbody>
<tbody id="hidden2"{if $mailsend == 1 || $mailsend == 3} style="display:none"{/if}>
<tr>
<td colspan="2">{lang settings_mail_settings_auth}:</td>
</tr>
<tr>
<td>
<label><input type="radio" class="radio" name="mailauth"{if $mailauth == 1} checked="checked"{/if} value="1" />{lang yes}</label>
<label><input type="radio" class="radio" name="mailauth"{if $mailauth == 0} checked="checked"{/if} value="0" />{lang no}</label>
</td>
<td valign="top">{lang settings_mail_settings_auth_comment}</td>
</tr>
<tr>
<td colspan="2">{lang settings_mail_settings_from}:</td>
</tr>
<tr>
<td>
<input name="mailfrom" value="{$mailfrom}" class="txt" type="text">
</td>
<td valign="top">{lang settings_mail_settings_from_comment}</td>
</tr>
<tr>
<td colspan="2">{lang settings_mail_settings_username}:</td>
</tr>
<tr>
<td>
<input name="mailauth_username" value="{$mailauth_username}" type="text">
</td>
<td valign="top"></td>
</tr>
<tr>
<td colspan="2">{lang settings_mail_settings_password}:</td>
</tr>
<tr>
<td>
<input name="mailauth_password" value="{$mailauth_password}" type="text">
</td>
<td valign="top"></td>
</tr>
</tbody>
<tr>
<th colspan="2">{lang settings_mail_settings_delimiter}:</th>
</tr>
<tr>
<td>
<label><input class="radio" name="maildelimiter"{if $maildelimiter == 1} checked="checked"{/if} value="1" type="radio"> {lang settings_mail_settings_delimiter_crlf}</label><br />
<label><input class="radio" name="maildelimiter"{if $maildelimiter == 0} checked="checked"{/if} value="0" type="radio"> {lang settings_mail_settings_delimiter_lf}</label><br />
<label><input class="radio" name="maildelimiter"{if $maildelimiter == 2} checked="checked"{/if} value="2" type="radio"> {lang settings_mail_settings_delimiter_cr}</label>
</td>
<td>
{lang settings_mail_settings_delimiter_comment}
</td>
</tr>
<tr>
<th colspan="2">{lang settings_mail_settings_includeuser}:</th>
</tr>
<tr>
<td>
<label><input type="radio" class="radio" name="mailusername"{if $mailusername == 1} checked="checked"{/if} value="1" />{lang yes}</label>
<label><input type="radio" class="radio" name="mailusername"{if $mailusername == 0} checked="checked"{/if} value="0" />{lang no}</label>
</td>
<td valign="top">{lang settings_mail_settings_includeuser_comment}</td>
</tr>
<tr>
<th colspan="2">{lang settings_mail_settings_silent}:</th>
</tr>
<tr>
<td>
<label><input type="radio" class="radio" name="mailsilent"{if $mailsilent == 1} checked="checked"{/if} value="1" />{lang yes}</label>
<label><input type="radio" class="radio" name="mailsilent"{if $mailsilent == 0} checked="checked"{/if} value="0" />{lang no}</label>
</td>
<td valign="top"> </td>
</tr>
</table>
<div class="opt"><input type="submit" name="submit" value=" {lang submit} " class="btn" tabindex="3" /></div>
</form>
</div>
<!--{/if}-->
</div>
{template footer}