6 |
kaklik |
1 |
<?php
|
|
|
2 |
|
|
|
3 |
/************************************************************************/
|
|
|
4 |
/* G-Shout : Gravitasi Shoutbox */
|
|
|
5 |
/* ============================================ */
|
|
|
6 |
/* */
|
|
|
7 |
/* Copyright (c) 2005 by Yohanes Pradono */
|
|
|
8 |
/* http://gravitasi.com */
|
|
|
9 |
/* */
|
|
|
10 |
/* This program is free software. You can redistribute it and/or modify */
|
|
|
11 |
/* it under the terms of the GNU General Public License as published by */
|
|
|
12 |
/* the Free Software Foundation; either version 2 of the License. */
|
|
|
13 |
/* */
|
|
|
14 |
/************************************************************************/
|
|
|
15 |
include("config.php");
|
|
|
16 |
include("./includes/functions.inc.php");
|
|
|
17 |
include ("./languages/lang-".$language.".php");
|
|
|
18 |
|
|
|
19 |
if(!is_writable($datafile)){
|
|
|
20 |
$error = _DATA_UNWRITABLE;
|
|
|
21 |
} else if (!is_writable("config.php")){
|
|
|
22 |
$error = _CONF_UNWRITABLE;
|
|
|
23 |
} else if (!is_writable($logfile)){
|
|
|
24 |
$error = _LOG_UNWRITABLE;
|
|
|
25 |
}
|
|
|
26 |
|
|
|
27 |
if(validCookie($_COOKIE['gshout_auth'])){
|
|
|
28 |
if ($_POST['action'] == "updateconfig" && $_POST['current_password'] == $admin_password && $_POST['changepassword'] != "" && $_POST['changepassword'] != $_POST['changepassword_confirm']){
|
|
|
29 |
$error = _PASSWORDS_UNMATCH;
|
|
|
30 |
} else if ($_POST['action'] == "updateconfig" && $_POST['current_password'] == $admin_password) {
|
|
|
31 |
$fp = fopen("config.php","r");
|
|
|
32 |
while (!feof($fp)){
|
|
|
33 |
$data = fgets($fp, filesize("config.php"));
|
|
|
34 |
if (substr($data,0,10) == '$namaadmin') {
|
|
|
35 |
$output[] = "\$namaadmin = \"".trim($_POST['new_namaadmin'])."\";\n";
|
|
|
36 |
} else if (substr($data,0,9) == '$adminweb') {
|
|
|
37 |
$output[] = "\$adminweb = \"".trim($_POST['new_adminweb'])."\";\n";
|
|
|
38 |
} else if (substr($data,0,5) == '$skin') {
|
|
|
39 |
$output[] = "\$skin = \"".trim($_POST['new_skin'])."\";\n";
|
|
|
40 |
} else if (substr($data,0,9) == '$language') {
|
|
|
41 |
$output[] = "\$language = \"".trim($_POST['new_language'])."\";\n";
|
|
|
42 |
} else if (substr($data,0,13) == '$commentshown') {
|
|
|
43 |
$output[] = "\$commentshown = \"".trim($_POST['new_commentshown'])."\";\n";
|
|
|
44 |
} else if (substr($data,0,12) == '$allowedtags') {
|
|
|
45 |
$output[] = "\$allowedtags = \"".trim($_POST['new_allowedtags'])."\";\n";
|
|
|
46 |
} else if (substr($data,0,9) == '$maxchars') {
|
|
|
47 |
$output[] = "\$maxchars = \"".trim($_POST['new_maxchars'])."\";\n";
|
|
|
48 |
} else if (substr($data,0,5) == '$keep') {
|
|
|
49 |
$output[] = "\$keep = \"".trim($_POST['new_keep'])."\";\n";
|
|
|
50 |
} else if (substr($data,0,9) == '$lastlogs') {
|
|
|
51 |
$output[] = "\$lastlogs = \"".trim($_POST['new_lastlogs'])."\";\n";
|
|
|
52 |
} else if (substr($data,0,11) == '$autologout') {
|
|
|
53 |
$output[] = "\$autologout = \"".trim($_POST['new_autologout'])."\";\n";
|
|
|
54 |
} else if (substr($data,0,11) == '$deletetime') {
|
|
|
55 |
$output[] = "\$deletetime = \"".trim($_POST['new_deletetime'])."\";\n";
|
|
|
56 |
} else if (substr($data,0,10) == '$floodwait') {
|
|
|
57 |
$output[] = "\$floodwait = \"".trim($_POST['new_floodwait'])."\";\n";
|
|
|
58 |
} else if (substr($data,0,18) == '$textwrappingwidth') {
|
|
|
59 |
$output[] = "\$textwrappingwidth = \"".trim($_POST['new_textwrappingwidth'])."\";\n";
|
|
|
60 |
} else if (substr($data,0,18) == '$wrappingseparator') {
|
|
|
61 |
$output[] = "\$wrappingseparator = \"".$_POST['new_wrappingseparator']."\";\n";
|
|
|
62 |
} else if (substr($data,0,14) == '$useHTMLencode') {
|
|
|
63 |
$output[] = "\$useHTMLencode = \"".trim($_POST['new_useHTMLencode'])."\";\n";
|
|
|
64 |
} else if (substr($data,0,12) == '$require_uri') {
|
|
|
65 |
$output[] = "\$require_uri = \"".trim($_POST['new_require_uri'])."\";\n";
|
|
|
66 |
} else if (substr($data,0,13) == '$sendcomments') {
|
|
|
67 |
$output[] = "\$sendcomments = \"".trim($_POST['new_sendcomments'])."\";\n";
|
|
|
68 |
} else if (substr($data,0,13) == '$emailaddress') {
|
|
|
69 |
$output[] = "\$emailaddress = \"".trim($_POST['new_emailaddress'])."\";\n";
|
|
|
70 |
} else if (substr($data,0,11) == '$dateformat') {
|
|
|
71 |
$output[] = "\$dateformat = \"".trim($_POST['new_dateformat'])."\";\n";
|
|
|
72 |
} else if (substr($data,0,4) == '$gmt') {
|
|
|
73 |
$output[] = "\$gmt = \"".trim($_POST['new_gmt'])."\";\n";
|
|
|
74 |
} else if (substr($data,0,16) == '$secret_question') {
|
|
|
75 |
$output[] = "\$secret_question = \"".trim($_POST['new_secret_question'])."\";\n";
|
|
|
76 |
} else if (substr($data,0,14) == '$secret_answer') {
|
|
|
77 |
$output[] = "\$secret_answer = \"".trim($_POST['new_secret_answer'])."\";\n";
|
|
|
78 |
} else if (substr($data,0,15) == '$admin_password' && $_POST['changepassword'] != "" && $_POST['changepassword'] == $_POST['changepassword_confirm']) {
|
|
|
79 |
$output[] = "\$admin_password = \"".trim($_POST['changepassword'])."\";\n";
|
|
|
80 |
writeLogs_php($_SERVER["REMOTE_ADDR"],"_LOG_CHANGE_PASS",$admin_password." -> ".$_POST['changepassword']);
|
|
|
81 |
} else {//nothing happened
|
|
|
82 |
$output[] = $data;
|
|
|
83 |
}
|
|
|
84 |
}//end while
|
|
|
85 |
fclose($fp);
|
|
|
86 |
$fp = fopen("config.php","w");
|
|
|
87 |
if($fp){
|
|
|
88 |
foreach ($output as $data){
|
|
|
89 |
fwrite ($fp, $data);
|
|
|
90 |
$message = _CONF_UPDATED;
|
|
|
91 |
}
|
|
|
92 |
} else {
|
|
|
93 |
$error = _ERROR_WRITE_CONF;
|
|
|
94 |
}
|
|
|
95 |
} else if ($_POST['action'] == "updateconfig" && $_POST['current_password'] == ""){
|
|
|
96 |
$error = _MUST_ENTER_CURRENT_PASSWORD;
|
|
|
97 |
} else if ($_POST['action'] == "updateconfig" && $_POST['current_password'] != $admin_password){
|
|
|
98 |
$error = _INCORRECT_CURRENT_PASSWORD;
|
|
|
99 |
} else {}
|
|
|
100 |
} else { // invalid cookie
|
|
|
101 |
writeLogs_php($_SERVER["REMOTE_ADDR"],"_LOG_LOGIN_EXPIRED","");
|
|
|
102 |
header("Location: admin.php?error="._RELOGIN."");
|
|
|
103 |
exit();
|
|
|
104 |
}
|
|
|
105 |
|
|
|
106 |
//re-read the config file
|
|
|
107 |
include("config.php");
|
|
|
108 |
|
|
|
109 |
include("./includes/header.inc.php");
|
|
|
110 |
?>
|
|
|
111 |
|
|
|
112 |
<table style="width: 100%;" border="0" cellpadding="0" cellspacing="0">
|
|
|
113 |
<tbody><tr>
|
|
|
114 |
<td class="navCell" style="width: 2%;">
|
|
|
115 |
|
|
|
116 |
<div class="cpNavOff">
|
|
|
117 |
|
|
|
118 |
</div>
|
|
|
119 |
|
|
|
120 |
</td>
|
|
|
121 |
<td class="navCell">
|
|
|
122 |
|
|
|
123 |
<div class="cpNavOff">
|
|
|
124 |
<a href="admin.php"> <?=_EDIT_SHOUTS;?> </a>
|
|
|
125 |
</div>
|
|
|
126 |
|
|
|
127 |
</td>
|
|
|
128 |
|
|
|
129 |
<td class="navCell">
|
|
|
130 |
|
|
|
131 |
<div class="cpNavOn">
|
|
|
132 |
<a href="editconf.php"> <?=_CONFIGURATION;?> </a>
|
|
|
133 |
</div>
|
|
|
134 |
|
|
|
135 |
</td>
|
|
|
136 |
|
|
|
137 |
<td class="navCell">
|
|
|
138 |
|
|
|
139 |
<div class="cpNavOff">
|
|
|
140 |
<a href="viewlogs.php"> <?=_VIEW_LOGS?> </a>
|
|
|
141 |
</div>
|
|
|
142 |
|
|
|
143 |
</td>
|
|
|
144 |
|
|
|
145 |
<td class="navCell" style="width: 2%;">
|
|
|
146 |
|
|
|
147 |
<div class="cpNavOff">
|
|
|
148 |
|
|
|
149 |
</div>
|
|
|
150 |
|
|
|
151 |
</td>
|
|
|
152 |
</tr>
|
|
|
153 |
</tbody></table>
|
|
|
154 |
|
|
|
155 |
|
|
|
156 |
|
|
|
157 |
<div id="breadcrumb">
|
|
|
158 |
<table style="width: 100%;" class="contentWidth" border="0" cellpadding="6" cellspacing="0">
|
|
|
159 |
<tbody><tr>
|
|
|
160 |
<td class="defaultBold">
|
|
|
161 |
<span class="crumblinks">
|
|
|
162 |
<h2><?=_EDIT_CONFIGURATION?></h2>
|
|
|
163 |
</span>
|
|
|
164 |
|
|
|
165 |
</td>
|
|
|
166 |
<td class="breadcrumbRight">
|
|
|
167 |
|
|
|
168 |
</td>
|
|
|
169 |
</tr>
|
|
|
170 |
</tbody></table>
|
|
|
171 |
|
|
|
172 |
|
|
|
173 |
</div>
|
|
|
174 |
|
|
|
175 |
<div id="content">
|
|
|
176 |
|
|
|
177 |
<table border='0' cellspacing='0' cellpadding='0' style='width:100%;' >
|
|
|
178 |
|
|
|
179 |
|
|
|
180 |
<?
|
|
|
181 |
|
|
|
182 |
if(isset($_GET['message'])){
|
|
|
183 |
echo "<tr><td class='box' colspan='2'><div class='itemWrapper'>";
|
|
|
184 |
echo "<div class='success'>";
|
|
|
185 |
echo $_GET['message'];
|
|
|
186 |
echo "</div>";
|
|
|
187 |
echo "</div></td></tr>";
|
|
|
188 |
} else if(isset($_GET['error'])) {
|
|
|
189 |
echo "<tr><td class='box' colspan='2'><div class='itemWrapper'>";
|
|
|
190 |
echo "<div class='alert'>".$_GET['error']."</div>";
|
|
|
191 |
echo "</div></td></tr>";
|
|
|
192 |
} else if(isset($message)) {
|
|
|
193 |
echo "<tr><td class='box' colspan='2'><div class='itemWrapper'>";
|
|
|
194 |
echo "<div class='success'>".$message."</div>";
|
|
|
195 |
echo "</div></td></tr>";
|
|
|
196 |
} else if(isset($error)) {
|
|
|
197 |
echo "<tr><td class='box' colspan='2'><div class='itemWrapper'>";
|
|
|
198 |
echo "<div class='alert'>".$error."</div>";
|
|
|
199 |
echo "</div></td></tr>";
|
|
|
200 |
} else {
|
|
|
201 |
echo "<tr><td><div class='success'> </div></td></tr>";
|
|
|
202 |
}
|
|
|
203 |
|
|
|
204 |
?>
|
|
|
205 |
|
|
|
206 |
</table>
|
|
|
207 |
|
|
|
208 |
<form method="post" action="editconf.php">
|
|
|
209 |
|
|
|
210 |
<table style="width: 100%;" class="tableBorder" border="0" cellpadding="0" cellspacing="0">
|
|
|
211 |
<tbody>
|
|
|
212 |
|
|
|
213 |
<tr>
|
|
|
214 |
<td class="tablePad">
|
|
|
215 |
|
|
|
216 |
<table style="width: 100%;" border="0" cellpadding="0" cellspacing="0">
|
|
|
217 |
<tbody><tr>
|
|
|
218 |
<td class="tableHeadingBold">
|
|
|
219 |
<?=_PREFERENCE?>
|
|
|
220 |
</td>
|
|
|
221 |
<td class="tableHeadingBold">
|
|
|
222 |
<?=_VALUE?>
|
|
|
223 |
</td>
|
|
|
224 |
</tr>
|
|
|
225 |
|
|
|
226 |
<tr>
|
|
|
227 |
<td class="tableCellTwo" style="width: 50%;">
|
|
|
228 |
<div class="defaultBold">
|
|
|
229 |
<label for="namaadmin"><?=_NICKNAME?></label>
|
|
|
230 |
</div>
|
|
|
231 |
<div class="subtext"><?=_NICKNAME_SUBTEXT?></div>
|
|
|
232 |
</td>
|
|
|
233 |
<td class="tableCellTwo" style="width: 50%;">
|
|
|
234 |
<input style="width: 100%;" name="new_namaadmin" id="namaadmin" value="<?=$namaadmin?>" size="20" maxlength="120" class="input" type="text">
|
|
|
235 |
</td>
|
|
|
236 |
</tr>
|
|
|
237 |
|
|
|
238 |
|
|
|
239 |
<tr>
|
|
|
240 |
<td class="tableCellOne" style="width: 50%;">
|
|
|
241 |
<div class="defaultBold">
|
|
|
242 |
<label for="adminweb"><?=_WEBSITE?></label>
|
|
|
243 |
</div>
|
|
|
244 |
<div class="subtext"><?=_WEBSITE_SUBTEXT?>.</div>
|
|
|
245 |
</td>
|
|
|
246 |
<td class="tableCellOne" style="width: 50%;">
|
|
|
247 |
<input style="width: 100%;" name="new_adminweb" id="adminweb" value="<?=$adminweb?>" size="20" maxlength="120" class="input" type="text">
|
|
|
248 |
</td>
|
|
|
249 |
</tr>
|
|
|
250 |
|
|
|
251 |
<tr>
|
|
|
252 |
<td class="tableCellTwo" style="width: 50%;">
|
|
|
253 |
<div class="defaultBold">
|
|
|
254 |
<?=_SKINS?>
|
|
|
255 |
</div>
|
|
|
256 |
<div class="subtext"><?=_SKINS_SUBTEXT?></div>
|
|
|
257 |
</td>
|
|
|
258 |
<td class="tableCellTwo" style="width: 50%;">
|
|
|
259 |
<select name="new_skin" class="select">
|
|
|
260 |
<? optionSkins()?>
|
|
|
261 |
</select>
|
|
|
262 |
</td>
|
|
|
263 |
</tr>
|
|
|
264 |
|
|
|
265 |
<tr>
|
|
|
266 |
<td class="tableCellOne" style="width: 50%;">
|
|
|
267 |
<div class="defaultBold">
|
|
|
268 |
<?=_LANGUAGES?>
|
|
|
269 |
</div>
|
|
|
270 |
<div class="subtext"><?=_LANGUAGES_SUBTEXT?></div>
|
|
|
271 |
</td>
|
|
|
272 |
<td class="tableCellOne" style="width: 50%;">
|
|
|
273 |
<select name="new_language" class="select">
|
|
|
274 |
<? optionLanguages()?>
|
|
|
275 |
</select>
|
|
|
276 |
</td>
|
|
|
277 |
</tr>
|
|
|
278 |
|
|
|
279 |
<tr>
|
|
|
280 |
<td class="tableCellTwo" style="width: 50%;">
|
|
|
281 |
<div class="defaultBold">
|
|
|
282 |
<label for="commentshown"><?=_AMOUNT_OF_SHOUTS?></label>
|
|
|
283 |
</div>
|
|
|
284 |
<div class="subtext"><?=_AMOUNT_OF_SHOUTS_SUBTEXT?></div>
|
|
|
285 |
</td>
|
|
|
286 |
<td class="tableCellTwo" style="width: 50%;">
|
|
|
287 |
<input style="width: 100%;" name="new_commentshown" id="commentshown" size="20" maxlength="120" class="input" type="text" value="<?=$commentshown?>">
|
|
|
288 |
</td>
|
|
|
289 |
</tr>
|
|
|
290 |
|
|
|
291 |
<tr>
|
|
|
292 |
<td class="tableCellOne" style="width: 50%;">
|
|
|
293 |
<div class="defaultBold">
|
|
|
294 |
<label for="allowedtags"><?=_ALLOWED_TAGS?></label>
|
|
|
295 |
</div>
|
|
|
296 |
<div class="subtext"><?=_ALLOWED_TAGS_SUBTEXT?></div>
|
|
|
297 |
</td>
|
|
|
298 |
<td class="tableCellOne" style="width: 50%;">
|
|
|
299 |
<input style="width: 100%;" name="new_allowedtags" id="allowedtags" size="20" maxlength="120" class="input" type="text" value="<?=$allowedtags?>">
|
|
|
300 |
</td>
|
|
|
301 |
</tr>
|
|
|
302 |
|
|
|
303 |
<tr>
|
|
|
304 |
<td class="tableCellTwo" style="width: 50%;">
|
|
|
305 |
<div class="defaultBold">
|
|
|
306 |
<label for="maxchars"><?=_MAXCHARS?></label>
|
|
|
307 |
</div>
|
|
|
308 |
<div class="subtext"><?=_MAXCHARS_SUBTEXT?></div>
|
|
|
309 |
</td>
|
|
|
310 |
<td class="tableCellTwo" style="width: 50%;">
|
|
|
311 |
<input style="width: 100%;" name="new_maxchars" id="maxchars" size="20" maxlength="120" class="input" type="text" value="<?=$maxchars?>">
|
|
|
312 |
</td>
|
|
|
313 |
</tr>
|
|
|
314 |
|
|
|
315 |
<tr>
|
|
|
316 |
<td class="tableCellOne" style="width: 50%;">
|
|
|
317 |
<div class="defaultBold">
|
|
|
318 |
<label for="keep">
|
|
|
319 |
<?=_KEEP?>
|
|
|
320 |
</label>
|
|
|
321 |
</div>
|
|
|
322 |
<div class="subtext"><?=_KEEP_SUBTEXT?></div>
|
|
|
323 |
</td>
|
|
|
324 |
<td class="tableCellOne" style="width: 50%;">
|
|
|
325 |
<input style="width: 100%;" name="new_keep" id="keep" value="<?=$keep?>" size="20" maxlength="120" class="input" type="text">
|
|
|
326 |
</td>
|
|
|
327 |
</tr>
|
|
|
328 |
|
|
|
329 |
<tr>
|
|
|
330 |
<td class="tableCellTwo" style="width: 50%;">
|
|
|
331 |
<div class="defaultBold">
|
|
|
332 |
<label for="lastlogs">
|
|
|
333 |
<?=_KEEP_LOGS?>
|
|
|
334 |
</label>
|
|
|
335 |
</div>
|
|
|
336 |
<div class="subtext"><?=_KEEP_LOGS_SUBTEXT?></div>
|
|
|
337 |
</td>
|
|
|
338 |
<td class="tableCellTwo" style="width: 50%;">
|
|
|
339 |
<input style="width: 100%;" name="new_lastlogs" id="lastlogs" value="<?=$lastlogs?>" size="20" maxlength="120" class="input" type="text">
|
|
|
340 |
</select>
|
|
|
341 |
</td>
|
|
|
342 |
</tr>
|
|
|
343 |
|
|
|
344 |
<tr>
|
|
|
345 |
<td class="tableCellOne" style="width: 50%;">
|
|
|
346 |
<div class="defaultBold">
|
|
|
347 |
<label for="autologout"><?=_AUTOLOGOUT?></label>
|
|
|
348 |
</div>
|
|
|
349 |
<div class="subtext"><?=_AUTOLOGOUT_SUBTEXT?></div>
|
|
|
350 |
</td>
|
|
|
351 |
<td class="tableCellOne" style="width: 50%;">
|
|
|
352 |
<input style="width: 100%;" name="new_autologout" id="autologout" value="<?=$autologout?>" size="20" maxlength="120" class="input" type="text">
|
|
|
353 |
</td>
|
|
|
354 |
</tr>
|
|
|
355 |
|
|
|
356 |
<tr>
|
|
|
357 |
<td class="tableCellTwo" style="width: 50%;">
|
|
|
358 |
<div class="defaultBold">
|
|
|
359 |
<label for="deletetime"><?=_DELETE_TIME?></label>
|
|
|
360 |
</div>
|
|
|
361 |
<div class="subtext"><?=_DELETE_TIME_SUBTEXT?></div>
|
|
|
362 |
</td>
|
|
|
363 |
<td class="tableCellTwo" style="width: 50%;">
|
|
|
364 |
<input style="width: 100%;" name="new_deletetime" id="deletetime" value="<?=$deletetime?>" size="20" maxlength="120" class="input" type="text">
|
|
|
365 |
</td>
|
|
|
366 |
</tr>
|
|
|
367 |
|
|
|
368 |
<tr>
|
|
|
369 |
<td class="tableCellOne" style="width: 50%;">
|
|
|
370 |
<div class="defaultBold">
|
|
|
371 |
<label for="floodwait"><?=_FLOOD_PROT?></label>
|
|
|
372 |
</div>
|
|
|
373 |
<div class="subtext"><?=_FLOOD_PROT_SUBTEXT?></div>
|
|
|
374 |
</td>
|
|
|
375 |
<td class="tableCellOne" style="width: 50%;">
|
|
|
376 |
<input style="width: 100%;" name="new_floodwait" id="floodwait" value="<?=$floodwait?>" size="20" maxlength="120" class="input" type="text">
|
|
|
377 |
</td>
|
|
|
378 |
</tr>
|
|
|
379 |
|
|
|
380 |
<tr>
|
|
|
381 |
<td class="tableCellTwo" style="width: 50%;">
|
|
|
382 |
<div class="defaultBold">
|
|
|
383 |
<label for="textwrappingwidth"><?=_TEXT_WRAPPING_WIDTH?></label>
|
|
|
384 |
</div>
|
|
|
385 |
<div class="subtext"><?=_TEXT_WRAPPING_WIDTH_SUBTEXT?></div>
|
|
|
386 |
</td>
|
|
|
387 |
<td class="tableCellTwo" style="width: 50%;">
|
|
|
388 |
<input style="width: 100%;" name="new_textwrappingwidth" id="textwrappingwidth" value="<?=$textwrappingwidth?>" size="20" maxlength="120" class="input" type="text">
|
|
|
389 |
</td>
|
|
|
390 |
</tr>
|
|
|
391 |
|
|
|
392 |
<tr>
|
|
|
393 |
<td class="tableCellOne" style="width: 50%;">
|
|
|
394 |
<div class="defaultBold">
|
|
|
395 |
<label for="wrappingseparator"><?=_WRAPPING_SEPARATOR?></label>
|
|
|
396 |
</div>
|
|
|
397 |
<div class="subtext"><?=_WRAPPING_SEPARATOR_SUBTEXT?></div>
|
|
|
398 |
</td>
|
|
|
399 |
<td class="tableCellOne" style="width: 50%;">
|
|
|
400 |
<input style="width: 100%;" name="new_wrappingseparator" id="wrappingseparator" value="<?=$wrappingseparator?>" size="20" maxlength="120" class="input" type="text">
|
|
|
401 |
</td>
|
|
|
402 |
</tr>
|
|
|
403 |
|
|
|
404 |
<tr>
|
|
|
405 |
<td class="tableCellTwo" style="width: 50%;">
|
|
|
406 |
<div class="defaultBold">
|
|
|
407 |
<?=_URI_REQUIRED?>
|
|
|
408 |
</div>
|
|
|
409 |
<div class="subtext"><?=_URI_REQUIRED_SUBTEXT?></div>
|
|
|
410 |
</td>
|
|
|
411 |
<td class="tableCellTwo" style="width: 50%;">
|
|
|
412 |
<label class="hand" for="new_require_uri_yes"> <?=_YES?> <input id="new_require_uri_yes" class='radio' type='radio' name='new_require_uri' value='yes' <?if($require_uri=="yes"){$checked="checked='checked'";echo $checked;}?> /></label>
|
|
|
413 |
<label class="hand" for="new_require_uri_no"> <?=_NO?> <input id="new_require_uri_no" class='radio' type='radio' name='new_require_uri' value='no' <?if($require_uri=="no"){$checked="checked='checked'";echo $checked;}?> />
|
|
|
414 |
</label>
|
|
|
415 |
</td>
|
|
|
416 |
</tr>
|
|
|
417 |
|
|
|
418 |
|
|
|
419 |
<tr>
|
|
|
420 |
<td class="tableCellOne" style="width: 50%;">
|
|
|
421 |
<div class="defaultBold">
|
|
|
422 |
<?=_USE_HTML_ENCODE?>
|
|
|
423 |
</div>
|
|
|
424 |
<div class="subtext"><?=_USE_HTML_ENCODE_SUBTEXT?></div>
|
|
|
425 |
</td>
|
|
|
426 |
<td class="tableCellOne" style="width: 50%;">
|
|
|
427 |
<label class="hand" for="new_useHTMLencode_yes"> <?=_YES?> <input id="new_useHTMLencode_yes" class='radio' type='radio' name='new_useHTMLencode' value='yes' <?if($useHTMLencode=="yes"){$checked="checked='checked'";echo $checked;}?> /></label>
|
|
|
428 |
<label class="hand" for="new_useHTMLencode_no"> <?=_NO?> <input id="new_useHTMLencode_no" class='radio' type='radio' name='new_useHTMLencode' value='no' <?if($useHTMLencode=="no"){$checked="checked='checked'";echo $checked;}?> />
|
|
|
429 |
</label>
|
|
|
430 |
</td>
|
|
|
431 |
</tr>
|
|
|
432 |
|
|
|
433 |
<tr>
|
|
|
434 |
<td class="tableCellTwo" style="width: 50%;">
|
|
|
435 |
<div class="defaultBold">
|
|
|
436 |
<?=_SEND_TO_EMAIL?>
|
|
|
437 |
</div>
|
|
|
438 |
<div class="subtext"><?=_SEND_TO_EMAIL_SUBTEXT?></div>
|
|
|
439 |
</td>
|
|
|
440 |
<td class="tableCellTwo" style="width: 50%;">
|
|
|
441 |
<label class="hand" for="new_sendcomments_yes"> <?=_YES?> <input id="new_sendcomments_yes" class='radio' type='radio' name='new_sendcomments' value='yes' <?if($sendcomments=="yes"){$checked="checked='checked'";echo $checked;}?> /></label>
|
|
|
442 |
<label class="hand" for="new_sendcomments_no"> <?=_NO?> <input id="new_sendcomments_no" class='radio' type='radio' name='new_sendcomments' value='no' <?if($sendcomments=="no"){$checked="checked='checked'";echo $checked;}?> />
|
|
|
443 |
</label>
|
|
|
444 |
</td>
|
|
|
445 |
</tr>
|
|
|
446 |
|
|
|
447 |
<tr>
|
|
|
448 |
<td class="tableCellOne" style="width: 50%;">
|
|
|
449 |
<div class="defaultBold">
|
|
|
450 |
<label for="emailaddress"><?=_EMAIL_ADDRESS?></label>
|
|
|
451 |
</div>
|
|
|
452 |
<div class="subtext"><?=_EMAIL_ADDRESS_SUBTEXT?></div>
|
|
|
453 |
</td>
|
|
|
454 |
<td class="tableCellOne" style="width: 50%;">
|
|
|
455 |
<input style="width: 100%;" name="new_emailaddress" id="emailaddress" value="<?=$emailaddress?>" size="20" maxlength="120" class="input" type="text">
|
|
|
456 |
</td>
|
|
|
457 |
</tr>
|
|
|
458 |
|
|
|
459 |
<tr>
|
|
|
460 |
<td class="tableCellTwo" style="width: 50%;">
|
|
|
461 |
<div class="defaultBold">
|
|
|
462 |
<label for="dateformat"><?=_DATE_FORMAT?></label>
|
|
|
463 |
</div>
|
|
|
464 |
<div class="subtext"><?=_DATE_FORMAT_SUBTEXT?>.</div>
|
|
|
465 |
</td>
|
|
|
466 |
<td class="tableCellTwo" style="width: 50%;">
|
|
|
467 |
<input style="width: 100%;" name="new_dateformat" id="dateformat" value="<?=$dateformat?>" size="20" maxlength="120" class="input" type="text"><br /><?=_OUTPUT?>: <b><?=formattanggal(time());?></b>
|
|
|
468 |
</td>
|
|
|
469 |
</tr>
|
|
|
470 |
|
|
|
471 |
<tr>
|
|
|
472 |
<td class="tableCellOne" style="width: 50%;">
|
|
|
473 |
<div class="defaultBold">
|
|
|
474 |
<?=_TIMEZONE?>
|
|
|
475 |
</div>
|
|
|
476 |
</td>
|
|
|
477 |
<td class="tableCellOne" style="width: 50%;">
|
|
|
478 |
<select name="new_gmt" class="select">
|
|
|
479 |
<option value="-12" <?if($gmt=="-12"){echo "selected=\"selected\"";}?>>(GMT - 12 Hours) Enitwetok, Kwajalien</option>
|
|
|
480 |
<option value="-11" <?if($gmt=="-11"){echo "selected=\"selected\"";}?>>(GMT - 11 Hours) Nome, Midway Island, Samoa</option>
|
|
|
481 |
<option value="-10" <?if($gmt=="-10"){echo "selected=\"selected\"";}?>>(GMT - 10 Hours) Hawaii</option>
|
|
|
482 |
<option value="-9" <?if($gmt=="-9"){echo "selected=\"selected\"";}?>>(GMT - 9 Hours) Alaska</option>
|
|
|
483 |
<option value="-8" <?if($gmt=="-8"){echo "selected=\"selected\"";}?>>(GMT - 8 Hours) Pacific Time</option>
|
|
|
484 |
<option value="-7" <?if($gmt=="-7"){echo "selected=\"selected\"";}?>>(GMT - 7 Hours) Mountain Time</option>
|
|
|
485 |
<option value="-6" <?if($gmt=="-6"){echo "selected=\"selected\"";}?>>(GMT - 6 Hours) Central Time, Mexico City</option>
|
|
|
486 |
<option value="-5" <?if($gmt=="-5"){echo "selected=\"selected\"";}?>>(GMT - 5 Hours) Eastern Time, Bogota, Lima, Quito</option>
|
|
|
487 |
<option value="-4" <?if($gmt=="-4"){echo "selected=\"selected\"";}?>>(GMT - 4 Hours) Atlantic Time, Caracas, La Paz</option>
|
|
|
488 |
<option value="-3.5" <?if($gmt=="-3.5"){echo "selected=\"selected\"";}?>>(GMT - 3.5 Hours) Newfoundland</option>
|
|
|
489 |
<option value="-3" <?if($gmt=="-3"){echo "selected=\"selected\"";}?>>(GMT - 3 Hours) Brazil, Buenos Aires, Georgetown, Falkland Is.</option>
|
|
|
490 |
<option value="-2" <?if($gmt=="-2"){echo "selected=\"selected\"";}?>>(GMT - 2 Hours) Mid-Atlantic, Ascention Is., St Helena</option>
|
|
|
491 |
<option value="-1" <?if($gmt=="-1"){echo "selected=\"selected\"";}?>>(GMT - 1 Hours) Azores, Cape Verde Islands</option>
|
|
|
492 |
<option value="0" <?if($gmt=="0"){echo "selected=\"selected\"";}?>>(GMT) Casablanca, Dublin, Edinburgh, London, Lisbon, Monrovia</option>
|
|
|
493 |
<option value="1" <?if($gmt=="1"){echo "selected=\"selected\"";}?>>(GMT + 1 Hour) Berlin, Brussels, Copenhagen, Madrid, Paris, Rome</option>
|
|
|
494 |
<option value="2" <?if($gmt=="2"){echo "selected=\"selected\"";}?>>(GMT + 2 Hours) Kaliningrad, South Africa, Warsaw</option>
|
|
|
495 |
<option value="3" <?if($gmt=="3"){echo "selected=\"selected\"";}?>>(GMT + 3 Hours) Baghdad, Riyadh, Moscow, Nairobi</option>
|
|
|
496 |
<option value="3.5" <?if($gmt=="3.5"){echo "selected=\"selected\"";}?>>(GMT + 3.5 Hours) Tehran</option>
|
|
|
497 |
<option value="4" <?if($gmt=="4"){echo "selected=\"selected\"";}?>>(GMT + 4 Hours) Adu Dhabi, Baku, Muscat, Tbilisi</option>
|
|
|
498 |
<option value="4.5" <?if($gmt=="4.5"){echo "selected=\"selected\"";}?>>(GMT + 4.5 Hours) Kabul</option>
|
|
|
499 |
<option value="5" <?if($gmt=="5"){echo "selected=\"selected\"";}?>>(GMT + 5 Hours) Islamabad, Karachi, Tashkent</option>
|
|
|
500 |
<option value="5.5" <?if($gmt=="5.5"){echo "selected=\"selected\"";}?>>(GMT + 5.5 Hours) Bombay, Calcutta, Madras, New Delhi</option>
|
|
|
501 |
<option value="6" <?if($gmt=="6"){echo "selected=\"selected\"";}?>>(GMT + 6 Hours) Almaty, Colomba, Dhakra</option>
|
|
|
502 |
<option value="6.5" <?if($gmt=="6.5"){echo "selected=\"selected\"";}?>>(GMT + 6.5 Hours ) </option>
|
|
|
503 |
<option value="7" <?if($gmt=="7"){echo "selected=\"selected\"";}?>>(GMT + 7 Hours) Bangkok, Hanoi, Jakarta</option>
|
|
|
504 |
<option value="8" <?if($gmt=="8"){echo "selected=\"selected\"";}?>>(GMT + 8 Hours) Beijing, Hong Kong, Perth, Singapore, Taipei</option>
|
|
|
505 |
<option value="9" <?if($gmt=="9"){echo "selected=\"selected\"";}?>>(GMT + 9 Hours) Osaka, Sapporo, Seoul, Tokyo, Yakutsk</option>
|
|
|
506 |
<option value="9.5" <?if($gmt=="9.5"){echo "selected=\"selected\"";}?>>(GMT + 9.5 Hours) Adelaide, Darwin</option>
|
|
|
507 |
<option value="10" <?if($gmt=="10"){echo "selected=\"selected\"";}?>>(GMT + 10 Hours) Melbourne, Papua New Guinea, Sydney, Vladivostok</option>
|
|
|
508 |
<option value="11" <?if($gmt=="11"){echo "selected=\"selected\"";}?>>(GMT + 11 Hours) Magadan, New Caledonia, Solomon Islands</option>
|
|
|
509 |
<option value="12" <?if($gmt=="12"){echo "selected=\"selected\"";}?>>(GMT + 12 Hours) Auckland, Wellington, Fiji, Marshall Island</option>
|
|
|
510 |
</select>
|
|
|
511 |
<br />
|
|
|
512 |
<?=_GMT_IS?>: <?=gmdate('Y-m-d g:i:s a')?>
|
|
|
513 |
</td>
|
|
|
514 |
</tr>
|
|
|
515 |
|
|
|
516 |
<tr>
|
|
|
517 |
<td class="tableCellTwo" style="width: 50%;">
|
|
|
518 |
<div class="defaultBold">
|
|
|
519 |
<label for="secret_question"><?=_SECRET_QUESTION?></label>
|
|
|
520 |
</div>
|
|
|
521 |
<div class="subtext"><?=_SECRET_QUESTION_SUBTEXT?></div>
|
|
|
522 |
</td>
|
|
|
523 |
<td class="tableCellTwo" style="width: 50%;">
|
|
|
524 |
<input style="width: 100%;" name="new_secret_question" id="secret_question" value="<?=$secret_question?>" size="20" maxlength="120" class="input" type="text">
|
|
|
525 |
</td>
|
|
|
526 |
</tr>
|
|
|
527 |
|
|
|
528 |
<tr>
|
|
|
529 |
<td class="tableCellOne" style="width: 50%;">
|
|
|
530 |
<div class="defaultBold">
|
|
|
531 |
<label for="secret_answer"><?=_SECRET_ANSWER?></label>
|
|
|
532 |
</div>
|
|
|
533 |
<div class="subtext"><?=_SECRET_ANSWER_SUBTEXT?></div>
|
|
|
534 |
</td>
|
|
|
535 |
<td class="tableCellOne" style="width: 50%;">
|
|
|
536 |
<input style="width: 100%;" name="new_secret_answer" id="secret_answer" value="<?=$secret_answer?>" size="20" maxlength="120" class="input" type="text">
|
|
|
537 |
</td>
|
|
|
538 |
</tr>
|
|
|
539 |
|
|
|
540 |
<tr>
|
|
|
541 |
<td>
|
|
|
542 |
|
|
|
543 |
</tr>
|
|
|
544 |
</td>
|
|
|
545 |
|
|
|
546 |
<!-- Begin of password change form -->
|
|
|
547 |
<tr>
|
|
|
548 |
<td class='tableCellOne' style='width:100%;' colspan='2'>
|
|
|
549 |
|
|
|
550 |
<div class='itemWrapper'>
|
|
|
551 |
|
|
|
552 |
<div class='itemTitle'><label for="changepassword"><?=_PASS_CHANGE_FORM?></label></div>
|
|
|
553 |
|
|
|
554 |
<div class='itemWrapper'>
|
|
|
555 |
<div class='alert'><?=_LEAVE_BLANK?></div>
|
|
|
556 |
|
|
|
557 |
</div>
|
|
|
558 |
|
|
|
559 |
</div>
|
|
|
560 |
|
|
|
561 |
<div class='itemTitle'><?=_NEW_PASS?></div>
|
|
|
562 |
<input style='width:300px' type='password' name='changepassword' id='changepassword' value='' size='35' maxlength='32' class='input' />
|
|
|
563 |
|
|
|
564 |
<div class='itemWrapper'>
|
|
|
565 |
|
|
|
566 |
<div class='itemTitle'><?=_NEW_PASS_CONFIRM?></div>
|
|
|
567 |
<input style='width:300px' type='password' name='changepassword_confirm' id='changepassword_confirm' value='' size='35' maxlength='32' class='input' />
|
|
|
568 |
|
|
|
569 |
</div>
|
|
|
570 |
|
|
|
571 |
<div class='highlight'><?=_HAVE_LOG_BACK_IN?></div>
|
|
|
572 |
|
|
|
573 |
</td>
|
|
|
574 |
|
|
|
575 |
</tr>
|
|
|
576 |
<!-- end of password change form -->
|
|
|
577 |
|
|
|
578 |
<tr>
|
|
|
579 |
<td>
|
|
|
580 |
|
|
|
581 |
</tr>
|
|
|
582 |
</td>
|
|
|
583 |
|
|
|
584 |
<!-- Begin of existing password -->
|
|
|
585 |
<tr>
|
|
|
586 |
<td>
|
|
|
587 |
<div class='paddedWrapper'>
|
|
|
588 |
<br />
|
|
|
589 |
<div class='itemTitle'><label for="current_password"><?=_EXISTING_PASS?></label></div>
|
|
|
590 |
|
|
|
591 |
<div class='itemWrapper'>
|
|
|
592 |
<div class='highlight'><?=_SUBMIT_CURRENT_PASS?></div>
|
|
|
593 |
</div>
|
|
|
594 |
<input style="width:310px" type="password" name="current_password" id="current_password" value="" size="35" maxlength="32" class="input" />
|
|
|
595 |
|
|
|
596 |
<div class='itemWrapper'>
|
|
|
597 |
<br />
|
|
|
598 |
|
|
|
599 |
</div>
|
|
|
600 |
|
|
|
601 |
</div>
|
|
|
602 |
</td>
|
|
|
603 |
</tr>
|
|
|
604 |
<!-- End of existing password -->
|
|
|
605 |
|
|
|
606 |
</tbody></table>
|
|
|
607 |
|
|
|
608 |
|
|
|
609 |
</td>
|
|
|
610 |
</tr>
|
|
|
611 |
</tbody></table>
|
|
|
612 |
|
|
|
613 |
|
|
|
614 |
<div class="default" align="right"><br>
|
|
|
615 |
<input type="hidden" name="action" value="updateconfig" />
|
|
|
616 |
<input value="<?=_UPDATE?>" class="submit" type="submit" />
|
|
|
617 |
</div>
|
|
|
618 |
</form>
|
|
|
619 |
|
|
|
620 |
<?
|
|
|
621 |
include("./includes/footer.inc.php");
|
|
|
622 |
?>
|