3 This program is free software; you can redistribute it and/or modify
4 it under the terms of the Revised BSD License.
6 This program is distributed in the hope that it will be useful,
7 but WITHOUT ANY WARRANTY; without even the implied warranty of
8 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
9 Revised BSD License for more details.
11 Copyright 2004-2019 iDB Support - https://idb.osdn.jp/support/category.php?act=view&id=1
12 Copyright 2004-2019 Game Maker 2k - https://idb.osdn.jp/support/category.php?act=view&id=2
14 $FileInfo: main.php - Last Update: 08/02/2019 SVN 905 - Author: cooldude2k $
16 $File3Name = basename($_SERVER['SCRIPT_NAME']);
17 if ($File3Name=="main.php"||
$File3Name=="/main.php") {
21 // Check if we can goto admin cp
22 if($_SESSION['UserGroup']==$Settings['GuestGroup']||
$GroupInfo['HasAdminCP']=="no") {
23 redirect("location",$rbasedir.url_maker($exfile['index'],$Settings['file_ext'],"act=view",$Settings['qstr'],$Settings['qsep'],$prexqstr['index'],$exqstr['index'],false));
24 ob_clean(); header("Content-Type: text/plain; charset=".$Settings['charset']); $urlstatus = 302;
25 gzip_page($Settings['use_gzip'],$GZipEncode['Type']); session_write_close(); die(); }
26 if(!isset($_POST['update'])) { $_POST['update'] = null; }
27 if($_GET['act']=="sql"&&$GroupInfo['ViewDBInfo']!="yes") {
28 redirect("location",$rbasedir.url_maker($exfile['index'],$Settings['file_ext'],"act=view",$Settings['qstr'],$Settings['qsep'],$prexqstr['index'],$exqstr['index'],false));
29 ob_clean(); header("Content-Type: text/plain; charset=".$Settings['charset']); $urlstatus = 302;
30 gzip_page($Settings['use_gzip'],$GZipEncode['Type']); session_write_close(); die(); }
31 if(!isset($_POST['update'])) { $_POST['update'] = null; }
32 if($_GET['act']=="resyncthemes"&&$Settings['SQLThemes']!="on") { $_GET['act'] = "enablesthemes"; }
33 if($_GET['act']=="enablesthemes"&&$Settings['SQLThemes']!="off") { $_GET['act'] = "resyncthemes"; }
34 $iDBRDate = $SVNDay[0]."/".$SVNDay[1]."/".$SVNDay[2];
35 $iDBRSVN = $VER2[2]." ".$SubVerN;
37 $LastUpdateS = "Last Update: ".$iDBRDate." ".$iDBRSVN;
38 $pretext = "<?php\n/*\n This program is free software; you can redistribute it and/or modify\n it under the terms of the GNU General Public License as published by\n the Free Software Foundation; either version 2 of the License, or\n (at your option) any later version.\n\n This program is distributed in the hope that it will be useful,\n but WITHOUT ANY WARRANTY; without even the implied warranty of\n MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n Revised BSD License for more details.\n\n Copyright 2004-".$SVNDay[2]." iDB Support - https://idb.osdn.jp/support/category.php?act=view&id=1\n Copyright 2004-".$SVNDay[2]." Game Maker 2k - https://idb.osdn.jp/support/category.php?act=view&id=2\n iDB Installer made by Game Maker 2k - http://idb.berlios.net/\n\n \$FileInfo: settings.php & settingsbak.php - ".$LastUpdateS." - Author: cooldude2k \$\n*/\n";
39 $pretext2 = array("/* Board Setting Section Begins */\n\$Settings = array();","/* Board Setting Section Ends \n Board Info Section Begins */\n\$SettInfo = array();","/* Board Setting Section Ends \n Board Dir Section Begins */\n\$SettDir = array();","/* Board Dir Section Ends */");
40 $settcheck = "\$File3Name = basename(\$_SERVER['SCRIPT_NAME']);\nif (\$File3Name==\"settings.php\"||\$File3Name==\"/settings.php\"||\n \$File3Name==\"settingsbak.php\"||\$File3Name==\"/settingsbak.php\") {\n header('Location: index.php');\n exit(); }\n";
41 if(!isset($_POST['update'])) { $_POST['update'] = null; }
42 function bool_string($boolean) {
43 if(!is_bool($boolean)) {
45 if(is_bool($boolean)) {
46 if($boolean==0||
$boolean===false) {
48 if($boolean==1||
$boolean===true) {
50 function null_string($string) {
51 $strtype = strtolower(gettype($string));
52 if($strtype=="string") {
53 return "'".$string."'"; }
54 if($strtype=="null") {
56 if($strtype=="integer") {
59 function rsq($string) {
60 $string = preg_replace("/^(\')|$(\')/i","\'",$string);
62 $KarmaExp = explode("&",$Settings['KarmaBoostDays']);
63 $KarmaNum = count($KarmaExp);
64 $Karmai = 0; $KarmaNex = 0; $KarmaTemp = null;
65 while ($Karmai < $KarmaNum) {
66 if(is_numeric($KarmaExp[$Karmai])) {
67 $KarmaTemp[$KarmaNex] = $KarmaExp[$Karmai];
70 $KarmaExp = $KarmaTemp;
71 $Settings['KarmaBoostDays'] = implode("&",$KarmaExp);
72 $KBoostPercent = explode("|",$Settings['KBoostPercent']);
73 if(count($KBoostPercent)<1) {
74 $Settings['KBoostPercent'] = "6|10"; }
75 if(!is_numeric($KBoostPercent[0])) {
76 $Settings['KBoostPercent'] = "6|10"; }
77 if(count($KBoostPercent)==1) {
78 $Settings['KBoostPercent'] = "6|10"; }
79 if(!is_numeric($KBoostPercent[1])) {
80 $Settings['KBoostPercent'] = "6|10"; }
81 if(count($KBoostPercent)>2) {
82 $Settings['KBoostPercent'] = "6|10"; }
83 if($Settings['html_type']=="html5") {
84 $Settings['output_type'] = "html"; }
85 if(!isset($Settings['sqltype'])) {
86 $Settings['sqltype'] = "mysql"; }
87 $Settings['sqltype'] = strtolower($Settings['sqltype']);
88 if($Settings['sqltype']!="mysql"&&
89 $Settings['sqltype']!="mysqli"&&
90 $Settings['sqltype']!="pgsql"&&
91 $Settings['sqltype']!="sqlite"&&
92 $Settings['sqltype']!="sqlite3"&&
93 $Settings['sqltype']!="cubrid") {
94 $Settings['sqltype'] = "mysql"; }
95 if($Settings['sqltype']=="mysql"||
96 $Settings['sqltype']=="mysqli") {
97 $DBType['Server'] = "MySQL ".sql_server_info($SQLStat);
98 $DBType['Client'] = "MySQL ".sql_client_info($SQLStat); }
99 if($Settings['sqltype']=="pgsql") {
100 $DBType['Server'] = "Postgres ".sql_server_info($SQLStat);
101 $DBType['Client'] = "Postgres ".sql_client_info($SQLStat); }
102 if($Settings['sqltype']=="sqlite"||
$Settings['sqltype']=="sqlite3") {
103 $DBType['Server'] = "SQLite ".sql_server_info($SQLStat);
104 $DBType['Client'] = sql_client_info($SQLStat); }
105 if($Settings['sqltype']=="cubrid") {
106 $DBType['Server'] = "CUBRID ".sql_server_info($SQLStat);
107 $DBType['Client'] = "CUBRID ".sql_client_info($SQLStat);
108 $DBType['PHP'] = "CUBRID ".cubrid_version(); }
109 if(!isset($Settings['vercheck'])) {
110 $Settings['vercheck'] = 2; }
111 if($Settings['vercheck']!=1&&
112 $Settings['vercheck']!=2) {
113 $Settings['vercheck'] = 2; }
114 if(!isset($Settings['start_date'])) {
115 $Settings['start_date'] = $utccurtime->getTimestamp(); }
116 if(!isset($Settings['SQLThemes'])) {
117 $Settings['SQLThemes'] = 'off'; }
118 if($Settings['SQLThemes']!="on"&&
119 $Settings['SQLThemes']!="off") {
120 $Settings['SQLThemes'] = 'off'; }
121 if(!isset($Settings['board_name'])&&isset($SettInfo['board_name'])) {
122 $Settings['board_name'] = $SettInfo['board_name']; }
123 if(!isset($SettInfo['board_name'])&&isset($Settings['board_name'])) {
124 $SettInfo['board_name'] = $Settings['board_name']; }
125 if($Settings['board_name']!=$SettInfo['board_name']) {
126 $SettInfo['board_name'] = $Settings['board_name']; }
127 if(!isset($Settings['VerCheckURL'])) {
128 $Settings['VerCheckURL'] = ""; }
129 if(!isset($Settings['IPCheckURL'])) {
130 $Settings['IPCheckURL'] = ""; }
131 if(!isset($Settings['log_config_format'])) {
132 $Settings['log_config_format'] = "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\""; }
133 if(!isset($Settings['idb_time_format'])) {
134 $Settings['idb_time_format'] = "g:i A"; }
135 if(!isset($Settings['idb_date_format'])) {
136 $Settings['idb_date_format'] = "F j Y"; }
138 <table
class="Table3">
139 <tr style
="width: 100%; vertical-align: top;">
140 <td style
="width: 15%; vertical-align: top;">
142 require($SettDir['admin'].'table.php');
143 if($_GET['act']=="delsessions"&&$GroupInfo['ViewDBInfo']=="yes") {
144 $time = $utccurtime->getTimestamp() - ini_get("session.gc_maxlifetime");
145 //$sqlg = sql_pre_query('DELETE FROM \"'.$Settings['sqltable'].'sessions\" WHERE \"expires\" < UNIX_TIMESTAMP();', array(null));
146 $sqlgc = sql_pre_query("DELETE FROM \"".$Settings['sqltable']."sessions\" WHERE \"expires\" < %i", array($time));
147 sql_query($sqlgc,$SQLStat);
148 $_POST['update'] = "now"; $_GET['act'] = "optimize"; }
149 if($_GET['act']=="enablesthemes"&&$GroupInfo['ViewDBInfo']=="yes"&&$Settings['SQLThemes']=="off") {
150 $Settings['board_name'] = htmlspecialchars($Settings['board_name'], ENT_QUOTES
, $Settings['charset']);
151 $Settings['board_name'] = fixbamps($Settings['board_name']);
152 $Settings['board_name'] = remove_spaces($Settings['board_name']);
153 $Settings['board_name'] = str_replace("\'", "'", $Settings['board_name']);
154 $SettInfo['board_name'] = htmlspecialchars($SettInfo['board_name'], ENT_QUOTES
, $Settings['charset']);
155 $SettInfo['board_name'] = fixbamps($SettInfo['board_name']);
156 $SettInfo['board_name'] = remove_spaces($SettInfo['board_name']);
157 $SettInfo['board_name'] = str_replace("\'", "'", $SettInfo['board_name']);
158 $SettInfo['Author'] = htmlspecialchars($SettInfo['Author'], ENT_QUOTES
, $Settings['charset']);
159 $SettInfo['Author'] = fixbamps($SettInfo['Author']);
160 $SettInfo['Author'] = remove_spaces($SettInfo['Author']);
161 $SettInfo['Author'] = str_replace("\'", "'", $SettInfo['Author']);
162 $SettInfo['Keywords'] = htmlspecialchars($SettInfo['Keywords'], ENT_QUOTES
, $Settings['charset']);
163 $SettInfo['Keywords'] = fixbamps($SettInfo['Keywords']);
164 $SettInfo['Keywords'] = remove_spaces($SettInfo['Keywords']);
165 $SettInfo['Keywords'] = str_replace("\'", "'", $SettInfo['Keywords']);
166 $SettInfo['Description'] = htmlspecialchars($SettInfo['Description'], ENT_QUOTES
, $Settings['charset']);
167 $SettInfo['Description'] = fixbamps($SettInfo['Description']);
168 $SettInfo['Description'] = remove_spaces($SettInfo['Description']);
169 $SettInfo['Description'] = str_replace("\'", "'", $SettInfo['Description']);
170 $BoardSettings=$pretext2[0]."\n".
171 "\$Settings['sqlhost'] = ".null_string($Settings['sqlhost']).";\n".
172 "\$Settings['sqldb'] = ".null_string($Settings['sqldb']).";\n".
173 "\$Settings['sqltable'] = ".null_string($Settings['sqltable']).";\n".
174 "\$Settings['sqluser'] = ".null_string($Settings['sqluser']).";\n".
175 "\$Settings['sqlpass'] = ".null_string($Settings['sqlpass']).";\n".
176 "\$Settings['sqltype'] = ".null_string($Settings['sqltype']).";\n".
177 "\$Settings['board_name'] = ".null_string($Settings['board_name']).";\n".
178 "\$Settings['idbdir'] = ".null_string($Settings['idbdir']).";\n".
179 "\$Settings['idburl'] = ".null_string($Settings['idburl']).";\n".
180 "\$Settings['enable_https'] = ".null_string($Settings['enable_https']).";\n".
181 "\$Settings['weburl'] = ".null_string($Settings['weburl']).";\n".
182 "\$Settings['SQLThemes'] = 'on';\n".
183 "\$Settings['use_gzip'] = ".null_string($Settings['use_gzip']).";\n".
184 "\$Settings['html_type'] = ".null_string($Settings['html_type']).";\n".
185 "\$Settings['html_level'] = ".null_string($Settings['html_level']).";\n".
186 "\$Settings['output_type'] = ".null_string($Settings['output_type']).";\n".
187 "\$Settings['GuestGroup'] = ".null_string($Settings['GuestGroup']).";\n".
188 "\$Settings['MemberGroup'] = ".null_string($Settings['MemberGroup']).";\n".
189 "\$Settings['ValidateGroup'] = ".null_string($Settings['ValidateGroup']).";\n".
190 "\$Settings['AdminValidate'] = ".null_string($Settings['AdminValidate']).";\n".
191 "\$Settings['TestReferer'] = ".null_string($Settings['TestReferer']).";\n".
192 "\$Settings['DefaultTheme'] = ".null_string($Settings['DefaultTheme']).";\n".
193 "\$Settings['DefaultTimeZone'] = ".null_string($Settings['DefaultTimeZone']).";\n".
194 "\$Settings['start_date'] = ".null_string($Settings['start_date']).";\n".
195 "\$Settings['idb_time_format'] = ".null_string($Settings['idb_time_format']).";\n".
196 "\$Settings['idb_date_format'] = ".null_string($Settings['idb_date_format']).";\n".
197 "\$Settings['use_hashtype'] = ".null_string($Settings['use_hashtype']).";\n".
198 "\$Settings['charset'] = ".null_string($Settings['charset']).";\n".
199 "\$Settings['sql_collate'] = ".null_string($Settings['sql_collate']).";\n".
200 "\$Settings['sql_charset'] = ".null_string($Settings['sql_charset']).";\n".
201 "\$Settings['add_power_by'] = ".null_string($Settings['add_power_by']).";\n".
202 "\$Settings['send_pagesize'] = ".null_string($Settings['send_pagesize']).";\n".
203 "\$Settings['max_posts'] = ".null_string($Settings['max_posts']).";\n".
204 "\$Settings['max_topics'] = ".null_string($Settings['max_topics']).";\n".
205 "\$Settings['max_memlist'] = ".null_string($Settings['max_memlist']).";\n".
206 "\$Settings['max_pmlist'] = ".null_string($Settings['max_pmlist']).";\n".
207 "\$Settings['hot_topic_num'] = ".null_string($Settings['hot_topic_num']).";\n".
208 "\$Settings['qstr'] = ".null_string($Settings['qstr']).";\n".
209 "\$Settings['qsep'] = ".null_string($Settings['qsep']).";\n".
210 "\$Settings['file_ext'] = ".null_string($Settings['file_ext']).";\n".
211 "\$Settings['rss_ext'] = ".null_string($Settings['rss_ext']).";\n".
212 "\$Settings['js_ext'] = ".null_string($Settings['js_ext']).";\n".
213 "\$Settings['showverinfo'] = ".null_string($Settings['showverinfo']).";\n".
214 "\$Settings['vercheck'] = ".null_string($Settings['vercheck']).";\n".
215 "\$Settings['enable_rss'] = ".null_string($Settings['enable_rss']).";\n".
216 "\$Settings['enable_search'] = ".null_string($Settings['enable_search']).";\n".
217 "\$Settings['sessionid_in_urls'] = ".null_string($Settings['sessionid_in_urls']).";\n".
218 "\$Settings['fixpathinfo'] = ".null_string($OldSettings['fixpathinfo']).";\n".
219 "\$Settings['fixbasedir'] = ".null_string($OldSettings['fixbasedir']).";\n".
220 "\$Settings['fixcookiedir'] = ".null_string($OldSettings['fixcookiedir']).";\n".
221 "\$Settings['fixredirectdir'] = ".null_string($OldSettings['fixredirectdir']).";\n".
222 "\$Settings['enable_pathinfo'] = ".null_string($Settings['enable_pathinfo']).";\n".
223 "\$Settings['rssurl'] = ".null_string($Settings['rssurl']).";\n".
224 "\$Settings['board_offline'] = ".null_string($Settings['board_offline']).";\n".
225 "\$Settings['VerCheckURL'] = ".null_string($Settings['VerCheckURL']).";\n".
226 "\$Settings['IPCheckURL'] = ".null_string($Settings['IPCheckURL']).";\n".
227 "\$Settings['log_http_request'] = ".null_string($Settings['log_http_request']).";\n".
228 "\$Settings['log_config_format'] = ".null_string($Settings['log_config_format']).";\n".
229 "\$Settings['BoardUUID'] = ".null_string(base64_encode($Settings['BoardUUID'])).";\n".
230 "\$Settings['KarmaBoostDays'] = ".null_string($Settings['KarmaBoostDays']).";\n".
231 "\$Settings['KBoostPercent'] = ".null_string($Settings['KBoostPercent']).";\n".$pretext2[1]."\n".
232 "\$SettInfo['board_name'] = ".null_string($SettInfo['board_name']).";\n".
233 "\$SettInfo['Author'] = ".null_string($SettInfo['Author']).";\n".
234 "\$SettInfo['Keywords'] = ".null_string($SettInfo['Keywords']).";\n".
235 "\$SettInfo['Description'] = ".null_string($SettInfo['Description']).";\n".$pretext2[2]."\n".
236 "\$SettDir['maindir'] = ".null_string($SettDir['maindir']).";\n".
237 "\$SettDir['inc'] = ".null_string($SettDir['inc']).";\n".
238 "\$SettDir['logs'] = ".null_string($SettDir['logs']).";\n".
239 "\$SettDir['archive'] = ".null_string($SettDir['archive']).";\n".
240 "\$SettDir['misc'] = ".null_string($SettDir['misc']).";\n".
241 "\$SettDir['sql'] = ".null_string($SettDir['sql']).";\n".
242 "\$SettDir['admin'] = ".null_string($SettDir['admin']).";\n".
243 "\$SettDir['sqldumper'] = ".null_string($SettDir['sqldumper']).";\n".
244 "\$SettDir['mod'] = ".null_string($SettDir['mod']).";\n".
245 "\$SettDir['mplayer'] = ".null_string($SettDir['mplayer']).";\n".
246 "\$SettDir['themes'] = ".null_string($SettDir['themes']).";\n".$pretext2[3]."\n?>";
247 $BoardSettingsBak = $pretext.$settcheck.$BoardSettings;
248 $BoardSettings = $pretext.$settcheck.$BoardSettings;
249 $fp = fopen("settings.php","w+");
250 fwrite($fp, $BoardSettings);
252 // cp("settings.php","settingsbak.php");
253 $fp = fopen("settingsbak.php","w+");
254 fwrite($fp, $BoardSettingsBak);
256 $Settings['SQLThemes'] = "on";
257 $_POST['update'] = "now"; $_GET['act'] = "resyncthemes"; }
258 if(($_GET['act']=="themelist"&&$GroupInfo['ViewDBInfo']=="yes")||
259 ($_GET['act']=="gettheme"&&$_POST['act']=="gettheme"&&$GroupInfo['ViewDBInfo']=="yes")) {
260 if($_GET['act']=="gettheme"&&$_POST['act']=="gettheme"&&$_POST['GetTheme']==null) {
261 $_GET['act'] = "themelist"; $_POST['act'] = ""; }
262 if($_GET['act']=="gettheme"&&$_POST['act']=="gettheme"&&$_POST['GetTheme']=="None") {
263 $_GET['act'] = "themelist"; $_POST['act'] = ""; }
264 $conn_id = ftp_connect("ftp.berlios.de",21,90);
265 ftp_login($conn_id, "anonymous", "anonymous");
266 ftp_pasv($conn_id, true);
267 if($_GET['act']=="themelist") {
268 ftp_chdir($conn_id, "/pub/idb/themes/"); }
269 if($_GET['act']=="gettheme"&&$_POST['act']=="gettheme") {
270 ftp_chdir($conn_id, "/pub/idb/themes/".$_POST['GetTheme']."/");
271 ftp_get($conn_id, $SettDir['archive'].$_POST['GetTheme'].".tar", "./".$_POST['GetTheme'].".tar", FTP_BINARY
);
272 untar($SettDir['archive'].$_POST['GetTheme'].".tar",$SettDir['themes'].$_POST['GetTheme']."/");
273 unlink($SettDir['archive'].$_POST['GetTheme'].".tar");
274 if($Settings['SQLThemes']=="off") { $_POST['update'] = "now"; }
275 if($Settings['SQLThemes']=="on") {
276 $_POST['update'] = "now"; $_GET['act'] = "resyncthemes"; } }
277 if($_GET['act']=="themelist") {
278 $themelist = ftp_nlist($conn_id, ".");
279 $it = 0; $numt = count($themelist);
280 $themeact = url_maker($exfile['admin'],$Settings['file_ext'],"act=gettheme",$Settings['qstr'],$Settings['qsep'],$prexqstr['admin'],$exqstr['admin']);
281 $admincptitle = " ".$ThemeSet['TitleDivider']." Theme Setup";
284 <td style
="width: 85%; vertical-align: top;">
285 <div
class="TableMenuBorder">
286 <?php
if($ThemeSet['TableStyle']=="div") { ?
>
287 <div
class="TableMenuRow1">
288 <?php
echo $ThemeSet['TitleIcon']; ?
><a href
="<?php echo $themeact; ?>">Theme Setup
</a
></div
>
290 <table
class="TableMenu" style
="width: 100%;">
291 <?php
if($ThemeSet['TableStyle']=="table") { ?
>
292 <tr
class="TableMenuRow1">
293 <td
class="TableMenuColumn1"><span style
="float: left;">
294 <?php
echo $ThemeSet['TitleIcon']; ?
><a href
="<?php echo $themeact; ?>">Theme Setup
</a
>
295 </span
><span style
="float: right;"> 
;</span
></td
>
297 <tr id
="ProfileTitle" class="TableMenuRow2">
298 <th
class="TableMenuColumn2">Theme Setup
</th
>
300 <tr
class="TableMenuRow3" id
="NotePadRow">
301 <td
class="TableMenuColumn3">
302 <form style
="display: inline;" method
="post" action
="<?php echo $themeact; ?>"><div style
="text-align: center;">
303 <label
class="TextBoxLabel" for="GetTheme">Install Theme
:</label
><br
/>
304 <select size
="1" name
="GetTheme" id
="GetTheme" class="TextBox">
305 <option value
="None">None
</option
>
307 while ($it < $numt) {
308 if(!file_exists($SettDir['themes'].$themelist[$it])) {
309 echo "<option value=\"".$themelist[$it]."\">".$themelist[$it]."</option>\n"; }
313 <input type
="hidden" name
="act" value
="gettheme" style
="display: none;" />
314 <input type
="submit" value
="Install" />
317 <tr id
="ProfileEnd" class="TableMenuRow4">
318 <td
class="TableMenuColumn4"> 
;</td
>
322 <?php
} ftp_close($conn_id); }
323 if($_GET['act']=="resyncthemes"&&$GroupInfo['ViewDBInfo']=="yes"&&$Settings['SQLThemes']=="on") {
324 $time = $utccurtime->getTimestamp() - ini_get("session.gc_maxlifetime");
325 //$sqlg = sql_pre_query('DELETE FROM \"'.$Settings['sqltable'].'sessions\" WHERE \"expires\" < UNIX_TIMESTAMP();', array(null));
326 if($Settings['sqltype']=="mysql"||
327 $Settings['sqltype']=="mysqli"||
328 $Settings['sqltype']=="cubrid") {
329 $sqlgc = sql_pre_query("TRUNCATE TABLE \"".$Settings['sqltable']."themes\"", array(null));
330 sql_query($sqlgc,$SQLStat);
331 $sqlgc = sql_pre_query("ALTER TABLE \"".$Settings['sqltable']."themes\" AUTO_INCREMENT=1", array(null));
332 sql_query($sqlgc,$SQLStat); }
333 if($Settings['sqltype']=="pgsql") {
334 $sqlgc = sql_pre_query("TRUNCATE TABLE \"".$Settings['sqltable']."themes\"", array(null));
335 sql_query($sqlgc,$SQLStat);
336 $sqlgc = sql_pre_query("SELECT setval('".$Settings['sqltable']."themes_id_seq', 1, false);", array(null));
337 sql_query($sqlgc,$SQLStat); }
338 if($Settings['sqltype']=="sqlite"||
$Settings['sqltype']=="sqlite3") {
339 $sqlgc = sql_pre_query("DELETE FROM \"".$Settings['sqltable']."themes\";", array(null));
340 sql_query($sqlgc,$SQLStat); }
341 $skindir = dirname(realpath("sql.php"))."/".$SettDir['themes'];
342 if ($handle = opendir($skindir)) { $dirnum = null;
343 while (false !== ($file = readdir($handle))) {
344 if ($dirnum==null) { $dirnum = 0; }
345 if (is_dir($skindir.$file)) {
346 if (file_exists($skindir.$file."/info.php")) {
347 if ($file != "." && $file != "..") {
348 require($skindir.$file."/info.php");
349 $themelist[$dirnum] = $file;
351 closedir($handle); asort($themelist);
352 $themenum=count($themelist); $themei=0;
353 while ($themei < $themenum) {
354 require($skindir.$themelist[$themei]."/settings.php");
355 $query = sql_pre_query("INSERT INTO \"".$Settings['sqltable']."themes\" (\"Name\", \"ThemeName\", \"ThemeMaker\", \"ThemeVersion\", \"ThemeVersionType\", \"ThemeSubVersion\", \"MakerURL\", \"CopyRight\", \"WrapperString\", \"CSS\", \"CSSType\", \"FavIcon\", \"TableStyle\", \"MiniPageAltStyle\", \"PreLogo\", \"Logo\", \"LogoStyle\", \"SubLogo\", \"TopicIcon\", \"MovedTopicIcon\", \"HotTopic\", \"MovedHotTopic\", \"PinTopic\", \"AnnouncementTopic\", \"MovedPinTopic\", \"HotPinTopic\", \"MovedHotPinTopic\", \"ClosedTopic\", \"MovedClosedTopic\", \"HotClosedTopic\", \"MovedHotClosedTopic\", \"PinClosedTopic\", \"MovedPinClosedTopic\", \"HotPinClosedTopic\", \"MovedHotPinClosedTopic\", \"MessageRead\", \"MessageUnread\", \"Profile\", \"WWW\", \"PM\", \"TopicLayout\", \"AddReply\", \"FastReply\", \"NewTopic\", \"QuoteReply\", \"EditReply\", \"DeleteReply\", \"Report\", \"LineDivider\", \"ButtonDivider\", \"LineDividerTopic\", \"TitleDivider\", \"ForumStyle\", \"ForumIcon\", \"SubForumIcon\", \"RedirectIcon\", \"TitleIcon\", \"NavLinkIcon\", \"NavLinkDivider\", \"BoardStatsIcon\", \"MemberStatsIcon\", \"BirthdayStatsIcon\", \"EventStatsIcon\", \"NoAvatar\", \"NoAvatarSize\") VALUES\n".
356 "('%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s');", array($themelist[$themei], $ThemeSet['ThemeName'], $ThemeSet['ThemeMaker'], $ThemeSet['ThemeVersion'], $ThemeSet['ThemeVersionType'], $ThemeSet['ThemeSubVersion'], $ThemeSet['MakerURL'], $ThemeSet['CopyRight'], $ThemeSet['WrapperString'], $ThemeSet['CSS'], $ThemeSet['CSSType'], $ThemeSet['FavIcon'], $ThemeSet['TableStyle'], $ThemeSet['MiniPageAltStyle'], $ThemeSet['PreLogo'], $ThemeSet['Logo'], $ThemeSet['LogoStyle'], $ThemeSet['SubLogo'], $ThemeSet['TopicIcon'], $ThemeSet['MovedTopicIcon'], $ThemeSet['HotTopic'], $ThemeSet['MovedHotTopic'], $ThemeSet['PinTopic'], $ThemeSet['AnnouncementTopic'], $ThemeSet['MovedPinTopic'], $ThemeSet['HotPinTopic'], $ThemeSet['MovedHotPinTopic'], $ThemeSet['ClosedTopic'], $ThemeSet['MovedClosedTopic'], $ThemeSet['HotClosedTopic'], $ThemeSet['MovedHotClosedTopic'], $ThemeSet['PinClosedTopic'], $ThemeSet['MovedPinClosedTopic'], $ThemeSet['HotPinClosedTopic'], $ThemeSet['MovedHotPinClosedTopic'], $ThemeSet['MessageRead'], $ThemeSet['MessageUnread'], $ThemeSet['Profile'], $ThemeSet['WWW'], $ThemeSet['PM'], $ThemeSet['TopicLayout'], $ThemeSet['AddReply'], $ThemeSet['FastReply'], $ThemeSet['NewTopic'], $ThemeSet['QuoteReply'], $ThemeSet['EditReply'], $ThemeSet['DeleteReply'], $ThemeSet['Report'], $ThemeSet['LineDivider'], $ThemeSet['ButtonDivider'], $ThemeSet['LineDividerTopic'], $ThemeSet['TitleDivider'], $ThemeSet['ForumStyle'], $ThemeSet['ForumIcon'], $ThemeSet['SubForumIcon'], $ThemeSet['RedirectIcon'], $ThemeSet['TitleIcon'], $ThemeSet['NavLinkIcon'], $ThemeSet['NavLinkDivider'], $ThemeSet['BoardStatsIcon'], $ThemeSet['MemberStatsIcon'], $ThemeSet['BirthdayStatsIcon'], $ThemeSet['EventStatsIcon'], $ThemeSet['NoAvatar'], $ThemeSet['NoAvatarSize']));
357 sql_query($query,$SQLStat);
359 $themequery = sql_pre_query("SELECT * FROM \"".$Settings['sqltable']."themes\" WHERE \"Name\"='%s'", array($_GET['theme']));
360 $themeresult=sql_query($themequery,$SQLStat);
361 $themenum=sql_num_rows($themeresult);
362 require($SettDir['inc'].'sqlthemes.php');
363 $_POST['update'] = "now"; $_GET['act'] = "optimize"; }
364 if($_GET['act']=="optimize"&&$GroupInfo['ViewDBInfo']=="yes") {
365 $TablePreFix = $Settings['sqltable'];
366 function add_prefix($tarray) {
368 return $TablePreFix.$tarray; }
369 $TableChCk = array("categories", "catpermissions", "events", "forums", "groups", "levels", "members", "mempermissions", "messenger", "permissions", "polls", "posts", "restrictedwords", "sessions", "smileys", "themes", "topics", "wordfilter");
370 $TableChCk = array_map("add_prefix",$TableChCk);
371 $tcount = count($TableChCk); $ti = 0;
373 if($Settings['sqltype']!="sqlite"||
$Settings['sqltype']=="sqlite3") {
374 while ($ti < $tcount) {
375 if(isset($OptimizeAr["Msg_text"])) { unset($OptimizeAr["Msg_text"]); }
376 if(isset($OptimizeAr[3])) { unset($OptimizeAr[3]); }
377 if($Settings['sqltype']=="mysql"||
378 $Settings['sqltype']=="mysqli") {
379 if(isset($_GET['subact']) && $_GET['subact']=="repair") {
380 $RepairTea = sql_query(sql_pre_query("REPAIR TABLE \"".$TableChCk[$ti]."\"", array(null)),$SQLStat); }
381 $OptimizeTea = sql_query(sql_pre_query("OPTIMIZE TABLE \"".$TableChCk[$ti]."\"", array(null)),$SQLStat); }
382 if($Settings['sqltype']=="cubrid") {
383 $OptimizeTea = sql_query(sql_pre_query("UPDATE STATISTICS ON \"".$TableChCk[$ti]."\"", array(null)),$SQLStat); }
384 if($Settings['sqltype']=="pgsql") {
385 $OptimizeTea = sql_query(sql_pre_query("VACUUM ANALYZE \"".$TableChCk[$ti]."\"", array(null)),$SQLStat); }
386 if($Settings['sqltype']=="mysql"||
387 $Settings['sqltype']=="mysqli"||
388 $Settings['sqltype']=="cubrid") {
389 $OptimizeAr = sql_fetch_array($OptimizeTea);
390 if(!isset($OptimizeAr["Msg_text"])&&
391 isset($OptimizeAr[3])) { $OptimizeAr["Msg_text"] = $OptimizeAr[3]; }
392 if($OptimizeAr["Msg_text"]=="OK") {
393 ++
$TblOptimized; } } ++
$ti; } }
394 if($Settings['sqltype']=="sqlite"||
$Settings['sqltype']=="sqlite3") {
395 $OptimizeTea = sql_query(sql_pre_query("VACUUM", array(null)),$SQLStat); }
396 if($Settings['sqltype']=="mysql"||
397 $Settings['sqltype']=="mysqli"||
398 $Settings['sqltype']=="cubrid") {
399 $OutPutLog = "MySQL Output: ".$TblOptimized." tables optimized."; }
400 if($Settings['sqltype']=="pgsql") {
401 $OutPutLog = "PGSQL Output: All tables optimized."; }
402 if($Settings['sqltype']=="sqlite"||
$Settings['sqltype']=="sqlite3") {
403 $OutPutLog = "SQLite Output: All tables optimized."; }
404 if($Settings['sqltype']=="cubrid") {
405 $OutPutLog = "CUBRID Output: All tables optimized."; }
406 $_POST['update'] = "now"; $_GET['act'] = "view"; }
409 <td style
="width: 85%; vertical-align: top;">
410 <?php
if($_POST['update']=="now"&&$_GET['act']!=null) {
411 $updateact = url_maker($exfile['profile'],$Settings['file_ext'],"act=".$_GET['act']."&menu=main",$Settings['qstr'],$Settings['qsep'],$prexqstr['profile'],$exqstr['profile']);
412 $admincptitle = " ".$ThemeSet['TitleDivider']." Updating Settings";
413 redirect("refresh",$rbasedir.url_maker($exfile['admin'],$Settings['file_ext'],"act=".$_GET['act'],$Settings['qstr'],$Settings['qsep'],$prexqstr['admin'],$exqstr['admin'],FALSE),"3");
415 <div
class="TableMenuBorder">
416 <?php
if($ThemeSet['TableStyle']=="div") { ?
>
417 <div
class="TableMenuRow1">
418 <?php
echo $ThemeSet['TitleIcon']; ?
><a href
="<?php echo url_maker($exfile['admin'],$Settings['file_ext'],"act
=".$_GET['act']."&menu
=main
",$Settings['qstr'],$Settings['qsep'],$prexqstr['admin'],$exqstr['admin']); ?>">Updating Settings
</a
></div
>
420 <table
class="TableMenu" style
="width: 100%;">
421 <?php
if($ThemeSet['TableStyle']=="table") { ?
>
422 <tr
class="TableMenuRow1">
423 <td
class="TableMenuColumn1"><span style
="float: left;">
424 <?php
echo $ThemeSet['TitleIcon']; ?
><a href
="<?php echo url_maker($exfile['admin'],$Settings['file_ext'],"act
=".$_GET['act']."&menu
=main
",$Settings['qstr'],$Settings['qsep'],$prexqstr['admin'],$exqstr['admin']); ?>">Updating Settings
</a
>
425 </span
><span style
="float: right;"> 
;</span
></td
>
427 <tr id
="ProfileTitle" class="TableMenuRow2">
428 <th
class="TableMenuColumn2">Updating Settings
</th
>
430 <tr
class="TableMenuRow3" id
="ProfileUpdate">
431 <td
class="TableMenuColumn3">
432 <div style
="text-align: center;">
433 <?php
if(isset($OutPutLog)) { echo "<br />".$OutPutLog; } ?
>
434 <br
/>Settings have been updated
<a href
="<?php echo url_maker($exfile['admin'],$Settings['file_ext'],"act
=".$_GET['act']."&menu
=main
",$Settings['qstr'],$Settings['qsep'],$prexqstr['admin'],$exqstr['admin']); ?>">click here
</a
> to go back
. ^_^
<br
/> 
;</div
>
435 <?php
} if($_GET['act']=="view"&&$_POST['update']!="now") {
436 $query = sql_pre_query("SELECT * FROM \"".$Settings['sqltable']."members\" WHERE \"id\"=%i LIMIT 1", array($_SESSION['UserID']));
437 $result=sql_query($query,$SQLStat);
438 $num=sql_num_rows($result);
440 $YourID=sql_result($result,$i,"id");
441 $Notes=sql_result($result,$i,"Notes");
442 $noteact = url_maker($exfile['profile'],$Settings['file_ext'],"act=view",$Settings['qstr'],$Settings['qsep'],$prexqstr['profile'],$exqstr['profile']);
443 $notepadact = $noteact; $profiletitle = " ".$ThemeSet['TitleDivider']." NotePad";
444 $admincptitle = " ".$ThemeSet['TitleDivider']." Admin CP";
446 <div
class="TableMenuBorder">
447 <?php
if($ThemeSet['TableStyle']=="div") { ?
>
448 <div
class="TableMenuRow1">
449 <?php
echo $ThemeSet['TitleIcon']; ?
><a href
="<?php echo $noteact; ?>">NotePad
</a
></div
>
451 <table
class="TableMenu" style
="width: 100%;">
452 <?php
if($ThemeSet['TableStyle']=="table") { ?
>
453 <tr
class="TableMenuRow1">
454 <td
class="TableMenuColumn1"><span style
="float: left;">
455 <?php
echo $ThemeSet['TitleIcon']; ?
><a href
="<?php echo $noteact; ?>">NotePad
</a
>
456 </span
><span style
="float: right;"> 
;</span
></td
>
458 <tr id
="ProfileTitle" class="TableMenuRow2">
459 <th
class="TableMenuColumn2">NotePad
</th
>
461 <tr
class="TableMenuRow3" id
="NotePadRow">
462 <td
class="TableMenuColumn3">
463 <form method
="post" action
="<?php echo $notepadact; ?>"><div style
="text-align: center;">
464 <label
class="TextBoxLabel" for="NotePad">Your NotePad
</label
><br
/>
465 <textarea
class="TextBox" name
="NotePad" id
="NotePad" style
="width: 75%; height: 128px;" rows
="10" cols
="84"><?php
echo $Notes; ?
></textarea
>
466 <input type
="hidden" name
="act" value
="view" style
="display: none;" />
467 <input type
="hidden" name
="update" value
="now" style
="display: none;" />
468 <br
/><input type
="submit" class="Button" value
="Save" /> 
;<input
class="Button" type
="reset" />
471 <tr id
="ProfileEnd" class="TableMenuRow4">
472 <td
class="TableMenuColumn4"> 
;</td
>
476 <?php
} if($_GET['act']=="settings"&&$_POST['update']!="now") {
477 $admincptitle = " ".$ThemeSet['TitleDivider']." Settings Manager";
478 $mguerys = sql_pre_query("SELECT * FROM \"".$Settings['sqltable']."groups\" WHERE (\"Name\"<>'%s') ORDER BY \"id\" ASC", array("Admin"));
479 $mgresults=sql_query($mguerys,$SQLStat);
480 $mnum=sql_num_rows($mgresults);
482 while ($mi < $mnum) {
483 $MGroups[$mi]=sql_result($mgresults,$mi,"Name");
485 sql_free_result($mgresults);
486 if($Settings['vercheck']===1) {
487 $AdminCheckURL = url_maker($exfile['admin'],$Settings['file_ext'],"act=vercheck&redirect=on",$Settings['qstr'],$Settings['qsep'],$prexqstr['admin'],$exqstr['admin']); }
488 if($Settings['vercheck']===2) {
489 $AdminCheckURL = url_maker($exfile['admin'],$Settings['file_ext'],"act=vercheck&vercheck=newtype&redirect=on",$Settings['qstr'],$Settings['qsep'],$prexqstr['admin'],$exqstr['admin']); }
491 if(isset($_GET['menu'])&&$_GET['menu']=="main") { $AddChkURL = "&menu=main"; }
492 // http://www.tutorialspoint.com/php/php_function_timezone_identifiers_list.htm
493 $timezone_identifiers = DateTimeZone
::listIdentifiers();
494 //$timezone_identifiers = timezone_identifiers_list();
495 $zonelist['africa'] = array();
496 $zonelist['america'] = array();
497 $zonelist['antarctica'] = array();
498 $zonelist['arctic'] = array();
499 $zonelist['asia'] = array();
500 $zonelist['atlantic'] = array();
501 $zonelist['australia'] = array();
502 $zonelist['europe'] = array();
503 $zonelist['indian'] = array();
504 $zonelist['pacific'] = array();
505 $zonelist['etcetera'] = array();
506 for ($i=0; $i < count($timezone_identifiers); $i++
) {
507 $zonelookup = explode("/", $timezone_identifiers[$i]);
508 if(count($zonelookup)==1) { array_push($zonelist['etcetera'], array($timezone_identifiers[$i], $timezone_identifiers[$i])); }
509 if(count($zonelookup)>1) {
510 if($zonelookup[0]=="Africa") {
511 if(count($zonelookup)==2) {
512 array_push($zonelist['africa'], array($zonelookup[1], $timezone_identifiers[$i])); }
513 if(count($zonelookup)==3) {
514 array_push($zonelist['africa'], array($zonelookup[2].", ".$zonelookup[1], $timezone_identifiers[$i])); } }
515 if($zonelookup[0]=="America") {
516 if(count($zonelookup)==2) {
517 array_push($zonelist['america'], array($zonelookup[1], $timezone_identifiers[$i])); }
518 if(count($zonelookup)==3) {
519 array_push($zonelist['america'], array($zonelookup[2].", ".$zonelookup[1], $timezone_identifiers[$i])); } }
520 if($zonelookup[0]=="Antarctica") {
521 if(count($zonelookup)==2) {
522 array_push($zonelist['antarctica'], array($zonelookup[1], $timezone_identifiers[$i])); }
523 if(count($zonelookup)==3) {
524 array_push($zonelist['antarctica'], array($zonelookup[2].", ".$zonelookup[1], $timezone_identifiers[$i])); } }
525 if($zonelookup[0]=="Arctic") {
526 if(count($zonelookup)==2) {
527 array_push($zonelist['arctic'], array($zonelookup[1], $timezone_identifiers[$i])); }
528 if(count($zonelookup)==3) {
529 array_push($zonelist['arctic'], array($zonelookup[2].", ".$zonelookup[1], $timezone_identifiers[$i])); } }
530 if($zonelookup[0]=="Asia") {
531 if(count($zonelookup)==2) {
532 array_push($zonelist['asia'], array($zonelookup[1], $timezone_identifiers[$i])); }
533 if(count($zonelookup)==3) {
534 array_push($zonelist['asia'], array($zonelookup[2].", ".$zonelookup[1], $timezone_identifiers[$i])); } }
535 if($zonelookup[0]=="Atlantic") {
536 if(count($zonelookup)==2) {
537 array_push($zonelist['atlantic'], array($zonelookup[1], $timezone_identifiers[$i])); }
538 if(count($zonelookup)==3) {
539 array_push($zonelist['atlantic'], array($zonelookup[2].", ".$zonelookup[1], $timezone_identifiers[$i])); } }
540 if($zonelookup[0]=="Australia") {
541 if(count($zonelookup)==2) {
542 array_push($zonelist['australia'], array($zonelookup[1], $timezone_identifiers[$i])); }
543 if(count($zonelookup)==3) {
544 array_push($zonelist['australia'], array($zonelookup[2].", ".$zonelookup[1], $timezone_identifiers[$i])); } }
545 if($zonelookup[0]=="Europe") {
546 if(count($zonelookup)==2) {
547 array_push($zonelist['europe'], array($zonelookup[1], $timezone_identifiers[$i])); }
548 if(count($zonelookup)==3) {
549 array_push($zonelist['europe'], array($zonelookup[2].", ".$zonelookup[1], $timezone_identifiers[$i])); } }
550 if($zonelookup[0]=="Indian") {
551 if(count($zonelookup)==2) {
552 array_push($zonelist['indian'], array($zonelookup[1], $timezone_identifiers[$i])); }
553 if(count($zonelookup)==3) {
554 array_push($zonelist['indian'], array($zonelookup[2].", ".$zonelookup[1], $timezone_identifiers[$i])); } }
555 if($zonelookup[0]=="Pacific") {
556 if(count($zonelookup)==2) {
557 array_push($zonelist['pacific'], array($zonelookup[1], $timezone_identifiers[$i])); }
558 if(count($zonelookup)==3) {
559 array_push($zonelist['pacific'], array($zonelookup[2].", ".$zonelookup[1], $timezone_identifiers[$i])); } }
562 $deftzstarttime = new DateTime();
563 $deftzstarttime->setTimestamp($Settings['start_date']);
564 $deftzstarttime->setTimezone($deftz);
565 $utctzstarttime = new DateTime();
566 $utctzstarttime->setTimestamp($Settings['start_date']);
567 $utctzstarttime->setTimezone($utctz);
568 $servtzstarttime = new DateTime();
569 $servtzstarttime->setTimestamp($Settings['start_date']);
570 $servtzstarttime->setTimezone($servtz);
571 $usertzstarttime = new DateTime();
572 $usertzstarttime->setTimestamp($Settings['start_date']);
573 $usertzstarttime->setTimezone($usertz);
574 $PreBorgURL = parse_url($OrgBoardURL);
575 $PreBetURL = parse_url($Settings['idburl']);
576 if($PreBorgURL['host']=="localhost.url"&&str_replace("/", "", $PreBorgURL['path'])=="localpath") {
577 $PreBetURL['host'] = $PreBorgURL['host'];
578 $PreBetURL['path'] = $PreBorgURL['path'];
579 $Settings['idburl'] = unparse_url($PreBetURL); }
580 if($PreBorgURL['host']=="localhost.url"&&str_replace("/", "", $PreBorgURL['path'])!="localpath") {
581 $PreBorgURL['host'] = $PreBorgURL['host'];
582 $Settings['idburl'] = unparse_url($PreBetURL); }
583 if($PreBorgURL['host']!="localhost.url"&&str_replace("/", "", $PreBorgURL['path'])=="localpath") {
584 $PreBetURL['path'] = $PreBorgURL['path'];
585 $Settings['idburl'] = unparse_url($PreBetURL); }
586 $PreWorgURL = parse_url($PreWestURL);
587 $PreBetURL = parse_url($Settings['weburl']);
588 if($PreWorgURL['host']=="localhost.url"&&str_replace("/", "", $PreWorgURL['path'])=="localpath") {
589 $PreBetURL['host'] = $PreWorgURL['host'];
590 $PreBetURL['path'] = $PreWorgURL['path'];
591 $Settings['weburl'] = unparse_url($PreBetURL); }
592 if($PreWorgURL['host']=="localhost.url"&&str_replace("/", "", $PreWorgURL['path'])!="localpath") {
593 $PreWorgURL['host'] = $PreWorgURL['host'];
594 $Settings['weburl'] = unparse_url($PreBetURL); }
595 if($PreWorgURL['host']!="localhost.url"&&str_replace("/", "", $PreWorgURL['path'])=="localpath") {
596 $PreBetURL['path'] = $PreWorgURL['path'];
597 $Settings['weburl'] = unparse_url($PreBetURL); }
599 <div
class="TableMenuBorder">
600 <?php
if($ThemeSet['TableStyle']=="div") { ?
>
601 <div
class="TableMenuRow1">
602 <?php
echo $ThemeSet['TitleIcon']; ?
><a href
="<?php echo url_maker($exfile['admin'],$Settings['file_ext'],"act
=settings
",$Settings['qstr'],$Settings['qsep'],$prexqstr['admin'],$exqstr['admin']); ?>">iDB Settings Manager
</a
></div
>
604 <table
class="TableMenu" style
="width: 100%;">
605 <?php
if($ThemeSet['TableStyle']=="table") { ?
>
606 <tr
class="TableMenuRow1">
607 <td
class="TableMenuColumn1"><span style
="float: left;">
608 <?php
echo $ThemeSet['TitleIcon']; ?
><a href
="<?php echo url_maker($exfile['admin'],$Settings['file_ext'],"act
=settings
",$Settings['qstr'],$Settings['qsep'],$prexqstr['admin'],$exqstr['admin']); ?>">iDB Settings Manager
</a
>
609 </span
><span style
="float: right;"> 
;</span
></td
>
611 <tr
class="TableMenuRow2">
612 <th
class="TableMenuColumn2" style
="width: 100%; text-align: left;">
613 <span style
="float: left;"> 
;Editing Setting
for iDB
: </span
>
614 <span style
="float: right;"> 
;</span
>
617 <tr
class="TableMenuRow3">
618 <td
class="TableMenuColumn3">
619 <form style
="display: inline;" method
="post" id
="acptool" action
="<?php echo url_maker($exfile['admin'],$Settings['file_ext'],"act
=settings
",$Settings['qstr'],$Settings['qsep'],$prexqstr['admin'],$exqstr['admin']); ?>">
620 <table style
="text-align: left;">
622 <td style
="width: 50%;"><span
class="TextBoxLabel" title
="Using User Time Zone">[User TimeZone
] Install Date
:</span
></td
>
623 <td style
="width: 50%;"><?php
echo $usertzstarttime->format($_SESSION['iDBDateFormat'].", ".$_SESSION['iDBTimeFormat']." P"); ?
></td
>
625 <td style
="width: 50%;"><span
class="TextBoxLabel" title
="Using Board Time Zone">[Board TimeZone
] Install Date
:</span
></td
>
626 <td style
="width: 50%;"><?php
echo $servtzstarttime->format($_SESSION['iDBDateFormat'].", ".$_SESSION['iDBTimeFormat']." P"); ?
></td
>
628 <td style
="width: 50%;"><span
class="TextBoxLabel" title
="Using Server Time Zone">[Server TimeZone
] Install Date
:</span
></td
>
629 <td style
="width: 50%;"><?php
echo $deftzstarttime->format($_SESSION['iDBDateFormat'].", ".$_SESSION['iDBTimeFormat']." P"); ?
></td
>
631 <td style
="width: 50%;"><span
class="TextBoxLabel" title
="Using UTC Time Zone">[UTC TimeZone
] Install Date
:</span
></td
>
632 <td style
="width: 50%;"><?php
echo $utctzstarttime->format($_SESSION['iDBDateFormat'].", ".$_SESSION['iDBTimeFormat']." P"); ?
></td
>
633 </tr
><?php
if($GroupInfo['ViewDBInfo']=="yes") {
634 ?
><tr style
="text-align: left;">
635 <td style
="width: 50%;"><span
class="TextBoxLabel">Forum Software Version
:</span
></td
>
636 <td style
="width: 50%;"><?php
echo "<span title=\"".$VerInfo['iDB_Full_Ver_Show']."\">".$VerInfo['iDB_Ver_Show']."</span>"; ?
><!-- 
;<a href
="<?php echo url_maker($exfile['admin'],$Settings['file_ext'],"act
=vercheck
",$Settings['qstr'],$Settings['qsep'],$prexqstr['admin'],$exqstr['admin']); ?>" onclick
="window.open(this.href);return false;"><img src
="<?php echo $AdminCheckURL; ?>" alt
="Version Check: Click to see more info." title
="Version Check: Click to see more info." /></a
>--></td
>
638 <td style
="width: 50%;"><span
class="TextBoxLabel">Forum UUID
:</span
></td
>
639 <td style
="width: 50%;"><?php
echo $Settings['BoardUUID']; ?
></td
>
640 </tr
><tr id
="clickhere" style
="text-align: left;">
641 <td style
="width: 50%;"><span
class="TextBoxLabel">Version Checker
:</span
></td
>
642 <td style
="width: 50%;"><a href
="<?php echo url_maker($exfile['admin'],$Settings['file_ext'],"act
=settings
".$AddChkURL,$Settings['qstr'],$Settings['qsep'],$prexqstr['admin'],$exqstr['admin']); ?>#iverinfo" onclick
="idbvercheck(); document.getElementById('clickhere').style.display = 'none';">Click Here
</a
></td
>
643 </tr
><?php
if($OSType!=""&&isset($OSType)) {
644 ?
><tr style
="text-align: left;">
645 <td style
="width: 50%;"><span
class="TextBoxLabel">Server Operating System
:</span
></td
>
646 <td style
="width: 50%;"><?php
echo $OSType; ?
></td
>
647 </tr
><?php
} ?
><tr style
="text-align: left;">
648 <td style
="width: 50%;"><span
class="TextBoxLabel">Current PHP Version
:</span
></td
>
649 <td style
="width: 50%;"><?php
echo "PHP Version ".phpversion(); ?
></td
>
650 </tr
><tr style
="text-align: left;">
651 <td style
="width: 50%;"><span
class="TextBoxLabel">Zend Engine Version
:</span
></td
>
652 <td style
="width: 50%;"><?php
echo "Zend Version ".zend_version(); ?
></td
>
653 </tr
><?php
} ?
><tr style
="text-align: left;">
654 <td style
="width: 50%;"><label
class="TextBoxLabel" for="BoardURL">Insert The Board URL
:</label
></td
>
655 <td style
="width: 50%;"><input type
="url" class="TextBox" name
="BoardURL" size
="20" id
="BoardURL" value
="<?php echo $Settings['idburl']; ?>" /></td
>
656 </tr
><tr style
="text-align: left;">
657 <td style
="width: 50%;"><label
class="TextBoxLabel" for="WebURL">Insert The WebSite URL
:</label
></td
>
658 <td style
="width: 50%;"><input type
="url" class="TextBox" name
="WebURL" size
="20" id
="WebURL" value
="<?php echo $Settings['weburl']; ?>" /></td
>
659 </tr
><tr style
="text-align: left;">
660 <td style
="width: 50%;"><label
class="TextBoxLabel" for="PassHashType">Hash passwords with
:</label
></td
>
661 <td style
="width: 50%;"><select id
="PassHashType" name
="PassHashType" class="TextBox">
662 <?php
// PHP 5 hash algorithms to functions :o
663 if(function_exists('hash')&&function_exists('hash_algos')) {
664 if(in_array("md2",hash_algos())) { ?
>
665 <option
<?php
if($Settings['use_hashtype']=="md2") { echo " selected=\"selected\""; } ?
> value
="md2">MD2
</option
>
666 <?php
} if(in_array("md4",hash_algos())) { ?
>
667 <option
<?php
if($Settings['use_hashtype']=="md4") { echo " selected=\"selected\""; } ?
> value
="md4">MD4
</option
>
668 <?php
} if(in_array("md5",hash_algos())) { ?
>
669 <option
<?php
if($Settings['use_hashtype']=="md5") { echo " selected=\"selected\""; } ?
> value
="md5">MD5
</option
>
670 <?php
} if(in_array("gost",hash_algos())) { ?
>
671 <option
<?php
if($Settings['use_hashtype']=="gost") { echo " selected=\"selected\""; } ?
> value
="gost">GOST
</option
>
672 <?php
} if(in_array("joaat",hash_algos())) { ?
>
673 <option
<?php
if($Settings['use_hashtype']=="joaat") { echo " selected=\"selected\""; } ?
> value
="joaat">JOAAT
</option
>
674 <?php
} if(in_array("sha1",hash_algos())) { ?
>
675 <option
<?php
if($Settings['use_hashtype']=="sha1") { echo " selected=\"selected\""; } ?
> value
="sha1">SHA1
</option
>
676 <?php
} if(in_array("sha224",hash_algos())) { ?
>
677 <option
<?php
if($Settings['use_hashtype']=="sha224") { echo " selected=\"selected\""; } ?
> value
="sha224">SHA224
</option
>
678 <?php
} if(in_array("sha256",hash_algos())) { ?
>
679 <option
<?php
if($Settings['use_hashtype']=="sha256") { echo " selected=\"selected\""; } ?
> value
="sha256">SHA256
</option
>
680 <?php
} if(in_array("sha384",hash_algos())) { ?
>
681 <option
<?php
if($Settings['use_hashtype']=="sha384") { echo " selected=\"selected\""; } ?
> value
="sha384">SHA384
</option
>
682 <?php
} if(in_array("sha512",hash_algos())) { ?
>
683 <option
<?php
if($Settings['use_hashtype']=="sha512") { echo " selected=\"selected\""; } ?
> value
="sha512">SHA512
</option
>
684 <?php
} if(in_array("sha3-224",hash_algos())) { ?
>
685 <option
<?php
if($Settings['use_hashtype']=="sha3-224") { echo " selected=\"selected\""; } ?
> value
="sha3-224">SHA3
-224</option
>
686 <?php
} if(in_array("sha3-256",hash_algos())) { ?
>
687 <option
<?php
if($Settings['use_hashtype']=="sha3-256") { echo " selected=\"selected\""; } ?
> value
="sha3-256">SHA3
-256</option
>
688 <?php
} if(in_array("sha3-384",hash_algos())) { ?
>
689 <option
<?php
if($Settings['use_hashtype']=="sha3-384") { echo " selected=\"selected\""; } ?
> value
="sha3-384">SHA3
-384</option
>
690 <?php
} if(in_array("sha3-512",hash_algos())) { ?
>
691 <option
<?php
if($Settings['use_hashtype']=="sha3-512") { echo " selected=\"selected\""; } ?
> value
="sha3-512">SHA3
-512</option
>
692 <?php
} if(in_array("ripemd128",hash_algos())) { ?
>
693 <option
<?php
if($Settings['use_hashtype']=="ripemd128") { echo " selected=\"selected\""; } ?
> value
="ripemd128">RIPEMD128
</option
>
694 <?php
} if(in_array("ripemd160",hash_algos())) { ?
>
695 <option
<?php
if($Settings['use_hashtype']=="ripemd160") { echo " selected=\"selected\""; } ?
> value
="ripemd160">RIPEMD160
</option
>
696 <?php
} if(in_array("ripemd256",hash_algos())) { ?
>
697 <option
<?php
if($Settings['use_hashtype']=="ripemd256") { echo " selected=\"selected\""; } ?
> value
="ripemd256">RIPEMD256
</option
>
698 <?php
} if(in_array("ripemd320",hash_algos())) { ?
>
699 <option
<?php
if($Settings['use_hashtype']=="ripemd320") { echo " selected=\"selected\""; } ?
> value
="ripemd320">RIPEMD320
</option
>
700 <?php
} if(function_exists('password_hash')) { ?
>
701 <option
<?php
if($Settings['use_hashtype']=="bcrypt") { echo " selected=\"selected\""; } ?
> value
="bcrypt">BCRYPT
</option
>
703 if(!function_exists('hash')&&!function_exists('hash_algos')) { ?
>
704 <option
<?php
if($Settings['use_hashtype']=="md5") { echo " selected=\"selected\""; } ?
> value
="md5">MD5
</option
>
705 <option
<?php
if($Settings['use_hashtype']=="sha1") { echo " selected=\"selected\""; } ?
> value
="sha1">SHA1
</option
>
706 <?php
if(function_exists('password_hash')) { ?
>
707 <option
<?php
if($Settings['use_hashtype']=="bcrypt") { echo " selected=\"selected\""; } ?
> value
="bcrypt">BCRYPT
</option
>
710 </tr
><tr style
="text-align: left;">
711 <td style
="width: 50%;"><label
class="TextBoxLabel" for="GuestGroup">Insert The Guest Group
:</label
></td
>
712 <td style
="width: 50%;"><select id
="GuestGroup" name
="GuestGroup" class="TextBox">
713 <option selected
="selected" value
="<?php echo $Settings['GuestGroup']; ?>">Old
Value (<?php
echo $Settings['GuestGroup']; ?
>)</option
>
714 <?php
$gi = 0; $gnum = count($MGroups);
715 while ($gi < $gnum) { ?
>
716 <option value
="<?php echo $MGroups[$gi]; ?>"><?php
echo $MGroups[$gi]; ?
></option
>
719 </tr
><tr style
="text-align: left;">
720 <td style
="width: 50%;"><label
class="TextBoxLabel" for="MemberGroup">Insert The Member Group
:</label
></td
>
721 <td style
="width: 50%;"><select id
="MemberGroup" name
="MemberGroup" class="TextBox">
722 <option selected
="selected" value
="<?php echo $Settings['MemberGroup']; ?>">Old
Value (<?php
echo $Settings['MemberGroup']; ?
>)</option
>
723 <?php
$gi = 0; $gnum = count($MGroups);
724 while ($gi < $gnum) { ?
>
725 <option value
="<?php echo $MGroups[$gi]; ?>"><?php
echo $MGroups[$gi]; ?
></option
>
728 </tr
><tr style
="text-align: left;">
729 <td style
="width: 50%;"><label
class="TextBoxLabel" for="ValidateGroup">Insert The Validate Group
:</label
></td
>
730 <td style
="width: 50%;"><select id
="ValidateGroup" name
="ValidateGroup" class="TextBox">
731 <option selected
="selected" value
="<?php echo $Settings['ValidateGroup']; ?>">Old
Value (<?php
echo $Settings['ValidateGroup']; ?
>)</option
>
732 <?php
$gi = 0; $gnum = count($MGroups);
733 while ($gi < $gnum) { ?
>
734 <option value
="<?php echo $MGroups[$gi]; ?>"><?php
echo $MGroups[$gi]; ?
></option
>
737 </tr
><tr style
="text-align: left;">
738 <td style
="width: 50%;"><label
class="TextBoxLabel" for="AdminValidate">Enable validate
new members
:</label
></td
>
739 <td style
="width: 50%;"><select size
="1" class="TextBox" name
="AdminValidate" id
="AdminValidate">
740 <option
<?php
if($Settings['AdminValidate']=="off") { echo " selected=\"selected\""; } ?
> value
="off">No
</option
>
741 <option
<?php
if($Settings['AdminValidate']=="on") { echo " selected=\"selected\""; } ?
> value
="on">Yes
</option
>
743 </tr
><tr style
="text-align: left;">
744 <td style
="width: 50%;"><label
class="TextBoxLabel" for="max_posts">Max replies per page
:</label
></td
>
745 <td style
="width: 50%;"><select id
="max_posts" name
="max_posts" class="TextBox">
746 <option selected
="selected" value
="<?php echo $Settings['max_posts']; ?>">Old
Value (<?php
echo $Settings['max_posts']; ?
>)</option
>
747 <option value
="5">5</option
>
748 <option value
="10">10</option
>
749 <option value
="15">15</option
>
750 <option value
="20">20</option
>
751 <option value
="25">25</option
>
752 <option value
="30">30</option
>
753 <option value
="30">35</option
>
754 <option value
="30">40</option
>
756 </tr
><tr style
="text-align: left;">
757 <td style
="width: 50%;"><label
class="TextBoxLabel" for="max_topics">Max topics per page
:</label
></td
>
758 <td style
="width: 50%;"><select id
="max_topics" name
="max_topics" class="TextBox">
759 <option selected
="selected" value
="<?php echo $Settings['max_topics']; ?>">Old
Value (<?php
echo $Settings['max_topics']; ?
>)</option
>
760 <option value
="5">5</option
>
761 <option value
="10">10</option
>
762 <option value
="15">15</option
>
763 <option value
="20">20</option
>
764 <option value
="25">25</option
>
765 <option value
="30">30</option
>
766 <option value
="30">35</option
>
767 <option value
="30">40</option
>
769 </tr
><tr style
="text-align: left;">
770 <td style
="width: 50%;"><label
class="TextBoxLabel" for="max_memlist">Max members per page
:</label
></td
>
771 <td style
="width: 50%;"><select id
="max_memlist" name
="max_memlist" class="TextBox">
772 <option selected
="selected" value
="<?php echo $Settings['max_memlist']; ?>">Old
Value (<?php
echo $Settings['max_memlist']; ?
>)</option
>
773 <option value
="5">5</option
>
774 <option value
="10">10</option
>
775 <option value
="15">15</option
>
776 <option value
="20">20</option
>
777 <option value
="25">25</option
>
778 <option value
="30">30</option
>
779 <option value
="30">35</option
>
780 <option value
="30">40</option
>
782 </tr
><tr style
="text-align: left;">
783 <td style
="width: 50%;"><label
class="TextBoxLabel" for="max_pmlist">Max pms per page
:</label
></td
>
784 <td style
="width: 50%;"><select id
="max_pmlist" name
="max_pmlist" class="TextBox">
785 <option selected
="selected" value
="<?php echo $Settings['max_pmlist']; ?>">Old
Value (<?php
echo $Settings['max_pmlist']; ?
>)</option
>
786 <option value
="5">5</option
>
787 <option value
="10">10</option
>
788 <option value
="15">15</option
>
789 <option value
="20">20</option
>
790 <option value
="25">25</option
>
791 <option value
="30">30</option
>
792 <option value
="30">35</option
>
793 <option value
="30">40</option
>
795 </tr
><tr style
="text-align: left;">
796 <td style
="width: 50%;"><label
class="TextBoxLabel" for="hot_topic_num">Number of replies
for hot topic
:</label
></td
>
797 <td style
="width: 50%;"><select id
="hot_topic_num" name
="hot_topic_num" class="TextBox">
798 <option selected
="selected" value
="<?php echo $Settings['hot_topic_num']; ?>">Old
Value (<?php
echo $Settings['hot_topic_num']; ?
>)</option
>
799 <option value
="5">5</option
>
800 <option value
="10">10</option
>
801 <option value
="15">15</option
>
802 <option value
="20">20</option
>
803 <option value
="25">25</option
>
804 <option value
="30">30</option
>
805 <option value
="30">35</option
>
806 <option value
="30">40</option
>
808 </tr
><tr style
="text-align: left;">
809 <td style
="width: 50%;"><label
class="TextBoxLabel" title
="Can save some bandwidth." for="UseGzip">Enable HTTP Compression
:</label
></td
>
810 <td style
="width: 50%;"><select size
="1" class="TextBox" name
="UseGzip" id
="UseGzip">
811 <option
<?php
if($Settings['use_gzip']=="off") { echo " selected=\"selected\""; } ?
> value
="off">No
</option
>
812 <option
<?php
if($Settings['use_gzip']=="on") { echo " selected=\"selected\""; } ?
> value
="on">Yes
</option
>
813 <option
<?php
if($Settings['use_gzip']=="gzip") { echo " selected=\"selected\""; } ?
> value
="gzip">Only GZip
</option
>
814 <option
<?php
if($Settings['use_gzip']=="deflate") { echo " selected=\"selected\""; } ?
> value
="deflate">Only Deflate
</option
>
816 </tr
><tr style
="text-align: left;">
817 <td style
="width: 50%;"><label
class="TextBoxLabel" for="HTMLType">HTML Type to
use:</label
></td
>
818 <td style
="width: 50%;"><select size
="1" class="TextBox" name
="HTMLType" id
="HTMLType">
819 <!--<option
<?php
if($Settings['html_type']=="xhtml10") { echo " selected=\"selected\""; } ?
> value
="xhtml10">XHTML
1.0</option
>-->
820 <!--<option
<?php
if($Settings['html_type']=="xhtml11") { echo " selected=\"selected\""; } ?
> value
="xhtml11">XHTML
1.1</option
>-->
821 <option
<?php
if($Settings['html_type']=="html5") { echo " selected=\"selected\""; } ?
> value
="html5">HTML
5</option
>
822 <option
<?php
if($Settings['html_type']=="xhtml5") { echo " selected=\"selected\""; } ?
> value
="xhtml5">XHTML
5</option
>
824 </tr
><tr style
="text-align: left;">
825 <td style
="width: 50%;"><label
class="TextBoxLabel" for="OutPutType">Output file
as:</label
></td
>
826 <td style
="width: 50%;"><select size
="1" class="TextBox" name
="OutPutType" id
="OutPutType">
827 <option
<?php
if($Settings['output_type']=="html") { echo " selected=\"selected\""; } ?
> value
="html">HTML
</option
>
828 <option
<?php
if($Settings['output_type']=="xhtml") { echo " selected=\"selected\""; } ?
> value
="xhtml">XHTML
</option
>
830 </tr
><tr style
="text-align: left;">
831 <td style
="width: 50%;"><label
class="TextBoxLabel" for="YourOffSet">Your TimeZone
:</label
></td
>
832 <td style
="width: 50%;"><select id
="YourOffSet" name
="YourOffSet" class="TextBox">
833 <optgroup label
="Africa">
836 for ($i=0; $i < count($zonelist['africa']); $i++
) {
837 if($Settings['DefaultTimeZone']==$zonelist['africa'][$i][1]) { $optsel = " selected=\"selected\""; }
838 echo "<option".$optsel." value=\"".$zonelist['africa'][$i][1]."\">".str_replace("_", " ", $zonelist['africa'][$i][0])."</option>\n";
842 <optgroup label
="America">
845 for ($i=0; $i < count($zonelist['america']); $i++
) {
846 if($Settings['DefaultTimeZone']==$zonelist['america'][$i][1]) { $optsel = " selected=\"selected\""; }
847 echo "<option".$optsel." value=\"".$zonelist['america'][$i][1]."\">".str_replace("_", " ", $zonelist['america'][$i][0])."</option>\n";
851 <optgroup label
="Antarctica">
854 for ($i=0; $i < count($zonelist['antarctica']); $i++
) {
855 if($Settings['DefaultTimeZone']==$zonelist['antarctica'][$i][1]) { $optsel = " selected=\"selected\""; }
856 echo "<option".$optsel." value=\"".$zonelist['antarctica'][$i][1]."\">".str_replace("_", " ", $zonelist['antarctica'][$i][0])."</option>\n";
860 <optgroup label
="Arctic">
863 for ($i=0; $i < count($zonelist['arctic']); $i++
) {
864 if($Settings['DefaultTimeZone']==$zonelist['arctic'][$i][1]) { $optsel = " selected=\"selected\""; }
865 echo "<option".$optsel." value=\"".$zonelist['arctic'][$i][1]."\">".str_replace("_", " ", $zonelist['arctic'][$i][0])."</option>\n";
869 <optgroup label
="Asia">
871 for ($i=0; $i < count($zonelist['asia']); $i++
) {
872 if($Settings['DefaultTimeZone']==$zonelist['asia'][$i][1]) { $optsel = " selected=\"selected\""; }
873 echo "<option".$optsel." value=\"".$zonelist['asia'][$i][1]."\">".str_replace("_", " ", $zonelist['asia'][$i][0])."</option>\n";
877 <optgroup label
="Atlantic">
880 for ($i=0; $i < count($zonelist['atlantic']); $i++
) {
881 if($Settings['DefaultTimeZone']==$zonelist['atlantic'][$i][1]) { $optsel = " selected=\"selected\""; }
882 echo "<option".$optsel." value=\"".$zonelist['atlantic'][$i][1]."\">".str_replace("_", " ", $zonelist['atlantic'][$i][0])."</option>\n";
886 <optgroup label
="Australia">
889 for ($i=0; $i < count($zonelist['australia']); $i++
) {
890 if($Settings['DefaultTimeZone']==$zonelist['australia'][$i][1]) { $optsel = " selected=\"selected\""; }
891 echo "<option".$optsel." value=\"".$zonelist['australia'][$i][1]."\">".str_replace("_", " ", $zonelist['australia'][$i][0])."</option>\n";
895 <optgroup label
="Europe">
898 for ($i=0; $i < count($zonelist['europe']); $i++
) {
899 if($Settings['DefaultTimeZone']==$zonelist['europe'][$i][1]) { $optsel = " selected=\"selected\""; }
900 echo "<option".$optsel." value=\"".$zonelist['europe'][$i][1]."\">".str_replace("_", " ", $zonelist['europe'][$i][0])."</option>\n";
904 <optgroup label
="Indian">
907 for ($i=0; $i < count($zonelist['indian']); $i++
) {
908 if($Settings['DefaultTimeZone']==$zonelist['indian'][$i][1]) { $optsel = " selected=\"selected\""; }
909 echo "<option".$optsel." value=\"".$zonelist['indian'][$i][1]."\">".str_replace("_", " ", $zonelist['indian'][$i][0])."</option>\n";
913 <optgroup label
="Pacific">
916 for ($i=0; $i < count($zonelist['pacific']); $i++
) {
917 if($Settings['DefaultTimeZone']==$zonelist['pacific'][$i][1]) { $optsel = " selected=\"selected\""; }
918 echo "<option".$optsel." value=\"".$zonelist['pacific'][$i][1]."\">".str_replace("_", " ", $zonelist['pacific'][$i][0])."</option>\n";
922 <optgroup label
="Etcetera">
925 for ($i=0; $i < count($zonelist['etcetera']); $i++
) {
926 if($Settings['DefaultTimeZone']==$zonelist['etcetera'][$i][1]) { $optsel = " selected=\"selected\""; }
927 echo "<option".$optsel." value=\"".$zonelist['etcetera'][$i][1]."\">".str_replace("_", " ", $zonelist['etcetera'][$i][0])."</option>\n";
932 </tr
><tr style
="text-align: left;">
933 <td style
="width: 50%;"><label
class="TextBoxLabel" for="DefaultTheme">Default Theme
:</label
></td
>
934 <td style
="width: 50%;"><select id
="DefaultTheme" name
="DefaultTheme" class="TextBox"><?php
935 if($Settings['SQLThemes']=="off") {
936 $skindir = dirname(realpath("settings.php"))."/".$SettDir['themes'];
937 if ($handle = opendir($skindir)) { $dirnum = null;
938 while (false !== ($file = readdir($handle))) {
939 if ($dirnum==null) { $dirnum = 0; }
940 if (is_dir($skindir.$file)&&file_exists($skindir.$file."/info.php")) {
941 if ($file != "." && $file != "..") {
942 require($skindir.$file."/info.php");
943 if($Settings['DefaultTheme']==$file) {
944 $themelist[$dirnum] = "<option selected=\"selected\" value=\"".$file."\">".$ThemeInfo['ThemeName']."</option>"; }
945 if($Settings['DefaultTheme']!=$file) {
946 $themelist[$dirnum] = "<option value=\"".$file."\">".$ThemeInfo['ThemeName']."</option>"; }
948 closedir($handle); asort($themelist);
949 $themenum=count($themelist); $themei=0;
950 while ($themei < $themenum) {
951 echo $themelist[$themei]."\n";
953 if($Settings['SQLThemes']=="on") {
954 $sknquery = sql_pre_query("SELECT * FROM \"".$Settings['sqltable']."themes\" ORDER BY \"id\" ASC, \"Name\" ASC", array(null));
955 $sknresult=sql_query($sknquery,$SQLStat);
956 $sknum=sql_num_rows($sknresult);
958 while ($skni < $sknum) {
959 $ThemeInfo['Name'] = sql_result($sknresult,$skni,"Name");
960 $ThemeInfo['ThemeName'] = sql_result($sknresult,$skni,"ThemeName");
961 if($Settings['DefaultTheme']==$ThemeInfo['Name']) {
962 echo "<option selected=\"selected\" value=\"".$ThemeInfo['Name']."\">".$ThemeInfo['ThemeName']."</option>\n"; }
963 if($Settings['DefaultTheme']!=$ThemeInfo['Name']) {
964 echo "<option value=\"".$ThemeInfo['Name']."\">".$ThemeInfo['ThemeName']."</option>\n"; }
967 </tr
><tr style
="text-align: left;">
968 <td style
="width: 50%;"><label
class="TextBoxLabel" for="enable_https">Enable HTTPS
:</label
></td
>
969 <td style
="width: 50%;"><select size
="1" class="TextBox" name
="enable_https" id
="enable_https">
970 <option
<?php
if($Settings['enable_https']=="on") { echo " selected=\"selected\""; } ?
> value
="on">On
</option
>
971 <option
<?php
if($Settings['enable_https']=="off") { echo " selected=\"selected\""; } ?
> value
="off">Off
</option
>
973 </tr
><tr style
="text-align: left;">
974 <td style
="width: 50%;"><label
class="TextBoxLabel" for="enable_rss">Enable RSS
:</label
></td
>
975 <td style
="width: 50%;"><select size
="1" class="TextBox" name
="enable_rss" id
="enable_rss">
976 <option
<?php
if($Settings['enable_rss']=="on") { echo " selected=\"selected\""; } ?
> value
="on">On
</option
>
977 <option
<?php
if($Settings['enable_rss']=="off") { echo " selected=\"selected\""; } ?
> value
="off">Off
</option
>
979 </tr
><tr style
="text-align: left;">
980 <td style
="width: 50%;"><label
class="TextBoxLabel" for="enable_search">Enable search
:</label
></td
>
981 <td style
="width: 50%;"><select size
="1" class="TextBox" name
="enable_search" id
="enable_search">
982 <option
<?php
if($Settings['enable_search']=="on") { echo " selected=\"selected\""; } ?
> value
="on">On
</option
>
983 <option
<?php
if($Settings['enable_search']=="off") { echo " selected=\"selected\""; } ?
> value
="off">Off
</option
>
985 </tr
><tr style
="text-align: left;">
986 <td style
="width: 50%;"><label
class="TextBoxLabel" for="TestReferer">Test Referering URL
:</label
></td
>
987 <td style
="width: 50%;"><select id
="TestReferer" name
="TestReferer" class="TextBox">
988 <option
<?php
if($Settings['TestReferer']=="on") { echo " selected=\"selected\""; } ?
> value
="on">On
</option
>
989 <option
<?php
if($Settings['TestReferer']=="off") { echo " selected=\"selected\""; } ?
> value
="off">Off
</option
>
991 </tr
><tr style
="text-align: left;">
992 <td style
="width: 50%;"><label
class="TextBoxLabel" for="iDBTimeFormat">Insert time format
string:</label
></td
>
993 <td style
="width: 50%;"><input type
="text" class="TextBox" name
="iDBTimeFormat" size
="20" id
="iDBTimeFormat" value
="<?php echo htmlentities($Settings['idb_time_format'], ENT_QUOTES, $Settings['charset']); ?>" /></td
>
994 </tr
><tr style
="text-align: left;">
995 <td style
="width: 50%;"><label
class="TextBoxLabel" for="iDBDateFormat">Insert date format
string:</label
></td
>
996 <td style
="width: 50%;"><input type
="text" class="TextBox" name
="iDBDateFormat" size
="20" id
="iDBDateFormat" value
="<?php echo htmlentities($Settings['idb_date_format'], ENT_QUOTES, $Settings['charset']); ?>" /></td
>
997 </tr
><tr style
="text-align: left;">
998 <td style
="width: 50%;"><label
class="TextBoxLabel" for="iDBHTTPLogger">Log Every HTTP Requests
:</label
></td
>
999 <td style
="width: 50%;"><select id
="iDBHTTPLogger" name
="iDBHTTPLogger" class="TextBox">
1000 <option
<?php
if($Settings['log_http_request']=="on") { echo " selected=\"selected\""; } ?
> value
="on">On
</option
>
1001 <option
<?php
if($Settings['log_http_request']=="off") { echo " selected=\"selected\""; } ?
> value
="off">Off
</option
>
1003 </tr
><tr style
="text-align: left;">
1004 <td style
="width: 50%;"><label
class="TextBoxLabel" for="iDBLoggerFormat">Insert The Format
for HTTP Logger
:</label
></td
>
1005 <td style
="width: 50%;"><input type
="text" class="TextBox" name
="iDBLoggerFormat" size
="20" id
="iDBLoggerFormat" value
="<?php echo htmlentities($Settings['log_config_format'], ENT_QUOTES, $Settings['charset']); ?>" /></td
>
1007 <table style
="text-align: left;">
1008 <tr style
="text-align: left;">
1009 <td style
="width: 100%;">
1010 <?php
if($GroupInfo['ViewDBInfo']=="yes") { ?
>
1011 <span style
="display: none;" id
="iverinfo"><a href
="<?php echo url_maker($exfile['admin'],$Settings['file_ext'],"act
=settings
",$Settings['qstr'],$Settings['qsep'],$prexqstr['admin'],$exqstr['admin']); ?>#" onclick
="idbvercheck();">Version Checker
: Click Here
</a
><br
/><br
/></span
>
1013 <input type
="hidden" name
="act" value
="settings" style
="display: none;" />
1014 <input type
="hidden" name
="update" value
="now" style
="display: none;" />
1015 <input type
="submit" class="Button" value
="Apply" name
="Apply_Changes" />
1016 <input type
="reset" value
="Reset Form" class="Button" name
="Reset_Form" />
1021 <tr
class="TableMenuRow4">
1022 <td
class="TableMenuColumn4"> 
;</td
>
1026 <?php
} if($_POST['act']=="settings"&&$_POST['update']=="now"&&$_GET['act']=="settings"&&
1027 $_SESSION['UserGroup']!=$Settings['GuestGroup']&&$GroupInfo['HasAdminCP']=="yes") {
1028 $_POST = array_map("rsq", $_POST);
1029 if(!isset($Settings['BoardUUID'])||
$Settings['BoardUUID']===null) {
1030 $Settings['BoardUUID'] = rand_uuid("rand"); }
1031 $Settings['board_name'] = htmlspecialchars($Settings['board_name'], ENT_QUOTES
, $Settings['charset']);
1032 $Settings['board_name'] = fixbamps($Settings['board_name']);
1033 $Settings['board_name'] = remove_spaces($Settings['board_name']);
1034 $Settings['board_name'] = str_replace("\'", "'", $Settings['board_name']);
1035 $SettInfo['board_name'] = htmlspecialchars($SettInfo['board_name'], ENT_QUOTES
, $Settings['charset']);
1036 $SettInfo['board_name'] = fixbamps($SettInfo['board_name']);
1037 $SettInfo['board_name'] = remove_spaces($SettInfo['board_name']);
1038 $SettInfo['board_name'] = str_replace("\'", "'", $SettInfo['board_name']);
1039 $SettInfo['Author'] = htmlspecialchars($SettInfo['Author'], ENT_QUOTES
, $Settings['charset']);
1040 $SettInfo['Author'] = fixbamps($SettInfo['Author']);
1041 $SettInfo['Author'] = remove_spaces($SettInfo['Author']);
1042 $SettInfo['Author'] = str_replace("\'", "'", $SettInfo['Author']);
1043 $SettInfo['Keywords'] = htmlspecialchars($SettInfo['Keywords'], ENT_QUOTES
, $Settings['charset']);
1044 $SettInfo['Keywords'] = fixbamps($SettInfo['Keywords']);
1045 $SettInfo['Keywords'] = remove_spaces($SettInfo['Keywords']);
1046 $SettInfo['Keywords'] = str_replace("\'", "'", $SettInfo['Keywords']);
1047 $SettInfo['Description'] = htmlspecialchars($SettInfo['Description'], ENT_QUOTES
, $Settings['charset']);
1048 $SettInfo['Description'] = fixbamps($SettInfo['Description']);
1049 $SettInfo['Description'] = remove_spaces($SettInfo['Description']);
1050 $SettInfo['Description'] = str_replace("\'", "'", $SettInfo['Description']);
1051 $_POST['BoardURL'] = htmlentities($_POST['BoardURL'], ENT_QUOTES
, $Settings['charset']);
1052 $_POST['BoardURL'] = remove_spaces($_POST['BoardURL']);
1053 $_POST['WebURL'] = htmlentities($_POST['WebURL'], ENT_QUOTES
, $Settings['charset']);
1054 $_POST['WebURL'] = remove_spaces($_POST['WebURL']);
1055 $_POST['iDBTimeFormat'] = convert_strftime($_POST['iDBTimeFormat']);
1056 $_POST['iDBDateFormat'] = convert_strftime($_POST['iDBDateFormat']);
1057 $Settings['idb_time_format'] = $_POST['iDBTimeFormat'];
1058 $Settings['idb_date_format'] = $_POST['iDBDateFormat'];
1059 $Settings['log_http_request'] = $_POST['iDBHTTPLogger'];
1060 $Settings['log_config_format'] = $_POST['iDBLoggerFormat'];
1061 if($_POST['HTMLType']=="html5") { $_POST['OutPutType'] = "html"; }
1062 if($_POST['HTMLType']=="xhtml5") { $_POST['OutPutType'] = "xhtml"; }
1063 if(!isset($_POST['PassHashType'])) {
1064 $_POST['PassHashType'] = "sha1"; }
1065 if(!function_exists('hash')||
!function_exists('hash_algos')) {
1066 if($_POST['PassHashType']!="md5"&&
1067 $_POST['PassHashType']!="sha1") {
1068 $_POST['PassHashType'] = "sha1"; } }
1069 if(function_exists('hash')&&function_exists('hash_algos')) {
1070 if(!in_array($_POST['PassHashType'],hash_algos())) {
1071 $_POST['PassHashType'] = "sha1"; }
1072 if($_POST['PassHashType']!="md2"&&
1073 $_POST['PassHashType']!="md4"&&
1074 $_POST['PassHashType']!="md5"&&
1075 $_POST['PassHashType']!="sha1"&&
1076 $_POST['PassHashType']!="sha224"&&
1077 $_POST['PassHashType']!="sha256"&&
1078 $_POST['PassHashType']!="sha384"&&
1079 $_POST['PassHashType']!="sha512"&&
1080 $_POST['PassHashType']!="sha3-224"&&
1081 $_POST['PassHashType']!="sha3-256"&&
1082 $_POST['PassHashType']!="sha3-384"&&
1083 $_POST['PassHashType']!="sha3-512"&&
1084 $_POST['PassHashType']!="ripemd128"&&
1085 $_POST['PassHashType']!="ripemd160"&&
1086 $_POST['PassHashType']!="ripemd256"&&
1087 $_POST['PassHashType']!="ripemd320"&&
1088 $_POST['PassHashType']!="bcrypt") {
1089 $_POST['PassHashType'] = "sha1"; } }
1090 $BoardSettings=$pretext2[0]."\n".
1091 "\$Settings['sqlhost'] = ".null_string($Settings['sqlhost']).";\n".
1092 "\$Settings['sqldb'] = ".null_string($Settings['sqldb']).";\n".
1093 "\$Settings['sqltable'] = ".null_string($Settings['sqltable']).";\n".
1094 "\$Settings['sqluser'] = ".null_string($Settings['sqluser']).";\n".
1095 "\$Settings['sqlpass'] = ".null_string($Settings['sqlpass']).";\n".
1096 "\$Settings['sqltype'] = ".null_string($Settings['sqltype']).";\n".
1097 "\$Settings['board_name'] = ".null_string($Settings['board_name']).";\n".
1098 "\$Settings['idbdir'] = ".null_string($Settings['idbdir']).";\n".
1099 "\$Settings['idburl'] = ".null_string($_POST['BoardURL']).";\n".
1100 "\$Settings['enable_https'] = ".null_string($_POST['enable_https']).";\n".
1101 "\$Settings['weburl'] = ".null_string($_POST['WebURL']).";\n".
1102 "\$Settings['SQLThemes'] = ".null_string($Settings['SQLThemes']).";\n".
1103 "\$Settings['use_gzip'] = ".null_string($_POST['UseGzip']).";\n".
1104 "\$Settings['html_type'] = ".null_string($_POST['HTMLType']).";\n".
1105 "\$Settings['output_type'] = ".null_string($_POST['OutPutType']).";\n".
1106 "\$Settings['GuestGroup'] = ".null_string($_POST['GuestGroup']).";\n".
1107 "\$Settings['MemberGroup'] = ".null_string($_POST['MemberGroup']).";\n".
1108 "\$Settings['ValidateGroup'] = ".null_string($_POST['ValidateGroup']).";\n".
1109 "\$Settings['AdminValidate'] = ".null_string($_POST['AdminValidate']).";\n".
1110 "\$Settings['TestReferer'] = ".null_string($_POST['TestReferer']).";\n".
1111 "\$Settings['DefaultTheme'] = ".null_string($_POST['DefaultTheme']).";\n".
1112 "\$Settings['DefaultTimeZone'] = ".null_string($_POST['YourOffSet']).";\n".
1113 "\$Settings['start_date'] = ".null_string($Settings['start_date']).";\n".
1114 "\$Settings['idb_time_format'] = ".null_string($Settings['idb_time_format']).";\n".
1115 "\$Settings['idb_date_format'] = ".null_string($Settings['idb_date_format']).";\n".
1116 "\$Settings['use_hashtype'] = ".null_string($_POST['PassHashType']).";\n".
1117 "\$Settings['charset'] = ".null_string($Settings['charset']).";\n".
1118 "\$Settings['sql_collate'] = ".null_string($Settings['sql_collate']).";\n".
1119 "\$Settings['sql_charset'] = ".null_string($Settings['sql_charset']).";\n".
1120 "\$Settings['add_power_by'] = ".null_string($Settings['add_power_by']).";\n".
1121 "\$Settings['send_pagesize'] = ".null_string($Settings['send_pagesize']).";\n".
1122 "\$Settings['max_posts'] = ".null_string($_POST['max_posts']).";\n".
1123 "\$Settings['max_topics'] = ".null_string($_POST['max_topics']).";\n".
1124 "\$Settings['max_memlist'] = ".null_string($_POST['max_memlist']).";\n".
1125 "\$Settings['max_pmlist'] = ".null_string($_POST['max_pmlist']).";\n".
1126 "\$Settings['hot_topic_num'] = ".null_string($_POST['hot_topic_num']).";\n".
1127 "\$Settings['qstr'] = ".null_string($Settings['qstr']).";\n".
1128 "\$Settings['qsep'] = ".null_string($Settings['qsep']).";\n".
1129 "\$Settings['file_ext'] = ".null_string($Settings['file_ext']).";\n".
1130 "\$Settings['rss_ext'] = ".null_string($Settings['rss_ext']).";\n".
1131 "\$Settings['js_ext'] = ".null_string($Settings['js_ext']).";\n".
1132 "\$Settings['showverinfo'] = ".null_string($Settings['showverinfo']).";\n".
1133 "\$Settings['vercheck'] = ".null_string($Settings['vercheck']).";\n".
1134 "\$Settings['enable_rss'] = ".null_string($_POST['enable_rss']).";\n".
1135 "\$Settings['enable_search'] = ".null_string($_POST['enable_search']).";\n".
1136 "\$Settings['sessionid_in_urls'] = ".null_string($Settings['sessionid_in_urls']).";\n".
1137 "\$Settings['fixpathinfo'] = ".null_string($OldSettings['fixpathinfo']).";\n".
1138 "\$Settings['fixbasedir'] = ".null_string($OldSettings['fixbasedir']).";\n".
1139 "\$Settings['fixcookiedir'] = ".null_string($OldSettings['fixcookiedir']).";\n".
1140 "\$Settings['fixredirectdir'] = ".null_string($OldSettings['fixredirectdir']).";\n".
1141 "\$Settings['enable_pathinfo'] = ".null_string($Settings['enable_pathinfo']).";\n".
1142 "\$Settings['rssurl'] = ".null_string($Settings['rssurl']).";\n".
1143 "\$Settings['board_offline'] = ".null_string($Settings['board_offline']).";\n".
1144 "\$Settings['VerCheckURL'] = ".null_string($Settings['VerCheckURL']).";\n".
1145 "\$Settings['IPCheckURL'] = ".null_string($Settings['IPCheckURL']).";\n".
1146 "\$Settings['log_http_request'] = ".null_string($Settings['log_http_request']).";\n".
1147 "\$Settings['log_config_format'] = ".null_string($Settings['log_config_format']).";\n".
1148 "\$Settings['BoardUUID'] = ".null_string(base64_encode($Settings['BoardUUID'])).";\n".
1149 "\$Settings['KarmaBoostDays'] = ".null_string($Settings['KarmaBoostDays']).";\n".
1150 "\$Settings['KBoostPercent'] = ".null_string($Settings['KBoostPercent']).";\n".$pretext2[1]."\n".
1151 "\$SettInfo['board_name'] = ".null_string($SettInfo['board_name']).";\n".
1152 "\$SettInfo['Author'] = ".null_string($SettInfo['Author']).";\n".
1153 "\$SettInfo['Keywords'] = ".null_string($SettInfo['Keywords']).";\n".
1154 "\$SettInfo['Description'] = ".null_string($SettInfo['Description']).";\n".$pretext2[2]."\n".
1155 "\$SettDir['maindir'] = ".null_string($SettDir['maindir']).";\n".
1156 "\$SettDir['inc'] = ".null_string($SettDir['inc']).";\n".
1157 "\$SettDir['logs'] = ".null_string($SettDir['logs']).";\n".
1158 "\$SettDir['archive'] = ".null_string($SettDir['archive']).";\n".
1159 "\$SettDir['misc'] = ".null_string($SettDir['misc']).";\n".
1160 "\$SettDir['sql'] = ".null_string($SettDir['sql']).";\n".
1161 "\$SettDir['admin'] = ".null_string($SettDir['admin']).";\n".
1162 "\$SettDir['sqldumper'] = ".null_string($SettDir['sqldumper']).";\n".
1163 "\$SettDir['mod'] = ".null_string($SettDir['mod']).";\n".
1164 "\$SettDir['themes'] = ".null_string($SettDir['themes']).";\n".$pretext2[3]."\n?>";
1165 $BoardSettingsBak = $pretext.$settcheck.$BoardSettings;
1166 $BoardSettings = $pretext.$settcheck.$BoardSettings;
1167 $fp = fopen("settings.php","w+");
1168 fwrite($fp, $BoardSettings);
1170 // cp("settings.php","settingsbak.php");
1171 $fp = fopen("settingsbak.php","w+");
1172 fwrite($fp, $BoardSettingsBak);
1173 fclose($fp); } if($_GET['act']=="sql"&&$_POST['update']!="now"&&$GroupInfo['ViewDBInfo']=="yes") {
1174 $admincptitle = " ".$ThemeSet['TitleDivider']." Database Manager";
1176 <div
class="TableMenuBorder">
1177 <?php
if($ThemeSet['TableStyle']=="div") { ?
>
1178 <div
class="TableMenuRow1">
1179 <?php
echo $ThemeSet['TitleIcon']; ?
><a href
="<?php echo url_maker($exfile['admin'],$Settings['file_ext'],"act
=sql
",$Settings['qstr'],$Settings['qsep'],$prexqstr['admin'],$exqstr['admin']); ?>">iDB Database Manager
</a
></div
>
1181 <table
class="TableMenu" style
="width: 100%;">
1182 <?php
if($ThemeSet['TableStyle']=="table") { ?
>
1183 <tr
class="TableMenuRow1">
1184 <td
class="TableMenuColumn1"><span style
="float: left;">
1185 <?php
echo $ThemeSet['TitleIcon']; ?
><a href
="<?php echo url_maker($exfile['admin'],$Settings['file_ext'],"act
=sql
",$Settings['qstr'],$Settings['qsep'],$prexqstr['admin'],$exqstr['admin']); ?>">iDB Database Manager
</a
>
1186 </span
><span style
="float: right;"> 
;</span
></td
>
1188 <tr
class="TableMenuRow2">
1189 <th
class="TableMenuColumn2" style
="width: 100%; text-align: left;">
1190 <span style
="float: left;"> 
;Editing SQL Settings
for iDB
: </span
>
1191 <span style
="float: right;"> 
;</span
>
1194 <tr
class="TableMenuRow3">
1195 <td
class="TableMenuColumn3">
1196 <form style
="display: inline;" method
="post" id
="acptool" action
="<?php echo url_maker($exfile['admin'],$Settings['file_ext'],"act
=sql
",$Settings['qstr'],$Settings['qsep'],$prexqstr['admin'],$exqstr['admin']); ?>">
1197 <table style
="text-align: left;">
1198 <tr style
="text-align: left;">
1199 <td style
="width: 50%;"><span
class="TextBoxLabel">Database Server
:</span
></td
>
1200 <td style
="width: 50%;"><?php
echo $DBType['Server']; ?
></td
>
1201 </tr
><?php
if($Settings['sqltype']=="mysql"||
1202 $Settings['sqltype']=="mysqli"||
1203 $Settings['sqltype']=="pgsql"||
1204 $Settings['sqltype']=="cubrid") {
1205 ?
><tr style
="text-align: left;">
1206 <td style
="width: 50%;"><span
class="TextBoxLabel">Database Client
:</span
></td
>
1207 <td style
="width: 50%;"><?php
echo $DBType['Client']; ?
></td
>
1208 </tr
><?php
} if($Settings['sqltype']=="sqlite"||
$Settings['sqltype']=="sqlite3") {
1209 ?
><tr style
="text-align: left;">
1210 <td style
="width: 50%;"><span
class="TextBoxLabel">Database File Size
:</span
></td
>
1211 <td style
="width: 50%;"><?php
echo sprintf("%u", filesize($Settings['sqldb']))." bytes"; ?
></td
>
1212 </tr
><?php
} if($Settings['sqltype']=="cubrid") { ?
><tr style
="text-align: left;">
1213 <td style
="width: 50%;"><span
class="TextBoxLabel">CUBRID PHP
:</span
></td
>
1214 <td style
="width: 50%;"><?php
echo $DBType['PHP']; ?
></td
>
1215 </tr
><?php
} ?
><tr style
="text-align: left;">
1216 <td style
="width: 50%;"><label
class="TextBoxLabel" for="DatabaseUserName">Insert Database User Name
:</label
></td
>
1217 <td style
="width: 50%;"><input type
="text" name
="DatabaseUserName" class="TextBox" id
="DatabaseUserName" size
="20" value
="<?php echo $Settings['sqluser']; ?>" /></td
>
1218 </tr
><tr style
="text-align: left;">
1219 <td style
="width: 50%;"><label
class="TextBoxLabel" for="DatabasePassword">Insert Database Password
:</label
></td
>
1220 <td style
="width: 50%;"><input type
="password" name
="DatabasePassword" class="TextBox" id
="DatabasePassword" size
="20" value
="<?php echo $Settings['sqlpass']; ?>" /></td
>
1221 </tr
><tr style
="text-align: left;">
1222 <td style
="width: 50%;"><label
class="TextBoxLabel" for="DatabaseName">Insert Database Name
:</label
></td
>
1223 <td style
="width: 50%;"><input type
="text" name
="DatabaseName" class="TextBox" id
="DatabaseName" size
="20" value
="<?php echo $Settings['sqldb']; ?>" /></td
>
1224 </tr
><tr style
="text-align: left;">
1225 <td style
="width: 50%;"><label
class="TextBoxLabel" for="DatabaseHost">Insert Database Host
:</label
></td
>
1226 <td style
="width: 50%;"><input type
="text" name
="DatabaseHost" class="TextBox" id
="DatabaseHost" size
="20" value
="<?php echo $Settings['sqlhost']; ?>" /></td
>
1227 </tr
><tr style
="text-align: left;">
1228 <td style
="width: 50%;"><label
class="TextBoxLabel" for="tableprefix">Insert Table Prefix
:<br
/></label
></td
>
1229 <td style
="width: 50%;"><input type
="text" name
="tableprefix" class="TextBox" id
="tableprefix" size
="20" value
="<?php echo $Settings['sqltable']; ?>" /></td
>
1231 <table style
="text-align: left;">
1232 <tr style
="text-align: left;">
1233 <td style
="width: 100%;">
1234 <input type
="hidden" name
="act" value
="sql" style
="display: none;" />
1235 <input type
="hidden" name
="update" value
="now" style
="display: none;" />
1236 <input type
="submit" class="Button" value
="Apply" name
="Apply_Changes" />
1237 <input type
="reset" value
="Reset Form" class="Button" name
="Reset_Form" />
1242 <tr
class="TableMenuRow4">
1243 <td
class="TableMenuColumn4"> 
;</td
>
1247 <?php
} if($_POST['act']=="sql"&&$_POST['update']=="now"&&$_GET['act']=="sql"&&
1248 $_SESSION['UserGroup']!=$Settings['GuestGroup']&&$GroupInfo['HasAdminCP']=="yes"&&
1249 $GroupInfo['ViewDBInfo']=="yes") {
1250 $_POST = array_map("rsq", $_POST);
1251 if(!isset($Settings['BoardUUID'])||
$Settings['BoardUUID']===null) {
1252 $Settings['BoardUUID'] = rand_uuid("rand"); }
1253 $Settings['board_name'] = htmlspecialchars($Settings['board_name'], ENT_QUOTES
, $Settings['charset']);
1254 $Settings['board_name'] = fixbamps($Settings['board_name']);
1255 $Settings['board_name'] = remove_spaces($Settings['board_name']);
1256 $Settings['board_name'] = str_replace("\'", "'", $Settings['board_name']);
1257 $SettInfo['board_name'] = htmlspecialchars($SettInfo['board_name'], ENT_QUOTES
, $Settings['charset']);
1258 $SettInfo['board_name'] = fixbamps($SettInfo['board_name']);
1259 $SettInfo['board_name'] = remove_spaces($SettInfo['board_name']);
1260 $SettInfo['board_name'] = str_replace("\'", "'", $SettInfo['board_name']);
1261 $SettInfo['Author'] = htmlspecialchars($SettInfo['Author'], ENT_QUOTES
, $Settings['charset']);
1262 $SettInfo['Author'] = fixbamps($SettInfo['Author']);
1263 $SettInfo['Author'] = remove_spaces($SettInfo['Author']);
1264 $SettInfo['Author'] = str_replace("\'", "'", $SettInfo['Author']);
1265 $SettInfo['Keywords'] = htmlspecialchars($SettInfo['Keywords'], ENT_QUOTES
, $Settings['charset']);
1266 $SettInfo['Keywords'] = fixbamps($SettInfo['Keywords']);
1267 $SettInfo['Keywords'] = remove_spaces($SettInfo['Keywords']);
1268 $SettInfo['Keywords'] = str_replace("\'", "'", $SettInfo['Keywords']);
1269 $SettInfo['Description'] = htmlspecialchars($SettInfo['Description'], ENT_QUOTES
, $Settings['charset']);
1270 $SettInfo['Description'] = fixbamps($SettInfo['Description']);
1271 $SettInfo['Description'] = remove_spaces($SettInfo['Description']);
1272 $SettInfo['Description'] = str_replace("\'", "'", $SettInfo['Description']);
1273 $BoardSettings=$pretext2[0]."\n".
1274 "\$Settings['sqlhost'] = ".null_string($_POST['DatabaseHost']).";\n".
1275 "\$Settings['sqldb'] = ".null_string($_POST['DatabaseName']).";\n".
1276 "\$Settings['sqltable'] = ".null_string($_POST['tableprefix']).";\n".
1277 "\$Settings['sqluser'] = ".null_string($_POST['DatabaseUserName']).";\n".
1278 "\$Settings['sqlpass'] = ".null_string($_POST['DatabasePassword']).";\n".
1279 "\$Settings['sqltype'] = ".null_string($Settings['sqltype']).";\n".
1280 "\$Settings['board_name'] = ".null_string($Settings['board_name']).";\n".
1281 "\$Settings['idbdir'] = ".null_string($Settings['idbdir']).";\n".
1282 "\$Settings['idburl'] = ".null_string($Settings['idburl']).";\n".
1283 "\$Settings['enable_https'] = ".null_string($Settings['enable_https']).";\n".
1284 "\$Settings['weburl'] = ".null_string($Settings['weburl']).";\n".
1285 "\$Settings['SQLThemes'] = ".null_string($Settings['SQLThemes']).";\n".
1286 "\$Settings['use_gzip'] = ".null_string($Settings['use_gzip']).";\n".
1287 "\$Settings['html_type'] = ".null_string($Settings['html_type']).";\n".
1288 "\$Settings['html_level'] = ".null_string($Settings['html_level']).";\n".
1289 "\$Settings['output_type'] = ".null_string($Settings['output_type']).";\n".
1290 "\$Settings['GuestGroup'] = ".null_string($Settings['GuestGroup']).";\n".
1291 "\$Settings['MemberGroup'] = ".null_string($Settings['MemberGroup']).";\n".
1292 "\$Settings['ValidateGroup'] = ".null_string($Settings['ValidateGroup']).";\n".
1293 "\$Settings['AdminValidate'] = ".null_string($Settings['AdminValidate']).";\n".
1294 "\$Settings['TestReferer'] = ".null_string($Settings['TestReferer']).";\n".
1295 "\$Settings['DefaultTheme'] = ".null_string($Settings['DefaultTheme']).";\n".
1296 "\$Settings['DefaultTimeZone'] = ".null_string($Settings['DefaultTimeZone']).";\n".
1297 "\$Settings['start_date'] = ".null_string($Settings['start_date']).";\n".
1298 "\$Settings['idb_time_format'] = ".null_string($Settings['idb_time_format']).";\n".
1299 "\$Settings['idb_date_format'] = ".null_string($Settings['idb_date_format']).";\n".
1300 "\$Settings['use_hashtype'] = ".null_string($Settings['use_hashtype']).";\n".
1301 "\$Settings['charset'] = ".null_string($Settings['charset']).";\n".
1302 "\$Settings['sql_collate'] = ".null_string($Settings['sql_collate']).";\n".
1303 "\$Settings['sql_charset'] = ".null_string($Settings['sql_charset']).";\n".
1304 "\$Settings['add_power_by'] = ".null_string($Settings['add_power_by']).";\n".
1305 "\$Settings['send_pagesize'] = ".null_string($Settings['send_pagesize']).";\n".
1306 "\$Settings['max_posts'] = ".null_string($Settings['max_posts']).";\n".
1307 "\$Settings['max_topics'] = ".null_string($Settings['max_topics']).";\n".
1308 "\$Settings['max_memlist'] = ".null_string($Settings['max_memlist']).";\n".
1309 "\$Settings['max_pmlist'] = ".null_string($Settings['max_pmlist']).";\n".
1310 "\$Settings['hot_topic_num'] = ".null_string($Settings['hot_topic_num']).";\n".
1311 "\$Settings['qstr'] = ".null_string($Settings['qstr']).";\n".
1312 "\$Settings['qsep'] = ".null_string($Settings['qsep']).";\n".
1313 "\$Settings['file_ext'] = ".null_string($Settings['file_ext']).";\n".
1314 "\$Settings['rss_ext'] = ".null_string($Settings['rss_ext']).";\n".
1315 "\$Settings['js_ext'] = ".null_string($Settings['js_ext']).";\n".
1316 "\$Settings['showverinfo'] = ".null_string($Settings['showverinfo']).";\n".
1317 "\$Settings['vercheck'] = ".null_string($Settings['vercheck']).";\n".
1318 "\$Settings['enable_rss'] = ".null_string($Settings['enable_rss']).";\n".
1319 "\$Settings['enable_search'] = ".null_string($Settings['enable_search']).";\n".
1320 "\$Settings['sessionid_in_urls'] = ".null_string($Settings['sessionid_in_urls']).";\n".
1321 "\$Settings['fixpathinfo'] = ".null_string($OldSettings['fixpathinfo']).";\n".
1322 "\$Settings['fixbasedir'] = ".null_string($OldSettings['fixbasedir']).";\n".
1323 "\$Settings['fixcookiedir'] = ".null_string($OldSettings['fixcookiedir']).";\n".
1324 "\$Settings['fixredirectdir'] = ".null_string($OldSettings['fixredirectdir']).";\n".
1325 "\$Settings['enable_pathinfo'] = ".null_string($Settings['enable_pathinfo']).";\n".
1326 "\$Settings['rssurl'] = ".null_string($Settings['rssurl']).";\n".
1327 "\$Settings['board_offline'] = ".null_string($Settings['board_offline']).";\n".
1328 "\$Settings['VerCheckURL'] = ".null_string($Settings['VerCheckURL']).";\n".
1329 "\$Settings['IPCheckURL'] = ".null_string($Settings['IPCheckURL']).";\n".
1330 "\$Settings['log_http_request'] = ".null_string($Settings['log_http_request']).";\n".
1331 "\$Settings['log_config_format'] = ".null_string($Settings['log_config_format']).";\n".
1332 "\$Settings['BoardUUID'] = ".null_string(base64_encode($Settings['BoardUUID'])).";\n".
1333 "\$Settings['KarmaBoostDays'] = ".null_string($Settings['KarmaBoostDays']).";\n".
1334 "\$Settings['KBoostPercent'] = ".null_string($Settings['KBoostPercent']).";\n".$pretext2[1]."\n".
1335 "\$SettInfo['board_name'] = ".null_string($SettInfo['board_name']).";\n".
1336 "\$SettInfo['Author'] = ".null_string($SettInfo['Author']).";\n".
1337 "\$SettInfo['Keywords'] = ".null_string($SettInfo['Keywords']).";\n".
1338 "\$SettInfo['Description'] = ".null_string($SettInfo['Description']).";\n".$pretext2[2]."\n".
1339 "\$SettDir['maindir'] = ".null_string($SettDir['maindir']).";\n".
1340 "\$SettDir['inc'] = ".null_string($SettDir['inc']).";\n".
1341 "\$SettDir['logs'] = ".null_string($SettDir['logs']).";\n".
1342 "\$SettDir['archive'] = ".null_string($SettDir['archive']).";\n".
1343 "\$SettDir['misc'] = ".null_string($SettDir['misc']).";\n".
1344 "\$SettDir['sql'] = ".null_string($SettDir['sql']).";\n".
1345 "\$SettDir['admin'] = ".null_string($SettDir['admin']).";\n".
1346 "\$SettDir['sqldumper'] = ".null_string($SettDir['sqldumper']).";\n".
1347 "\$SettDir['mod'] = ".null_string($SettDir['mod']).";\n".
1348 "\$SettDir['themes'] = ".null_string($SettDir['themes']).";\n".$pretext2[3]."\n?>";
1349 $BoardSettingsBak = $pretext.$settcheck.$BoardSettings;
1350 $BoardSettings = $pretext.$settcheck.$BoardSettings;
1351 $fp = fopen("settings.php","w+");
1352 fwrite($fp, $BoardSettings);
1354 // cp("settings.php","settingsbak.php");
1355 $fp = fopen("settingsbak.php","w+");
1356 fwrite($fp, $BoardSettingsBak);
1357 fclose($fp); } if($_GET['act']=="info"&&$_POST['update']!="now") {
1358 $admincptitle = " ".$ThemeSet['TitleDivider']." Board Info Manager";
1360 <div
class="TableMenuBorder">
1361 <?php
if($ThemeSet['TableStyle']=="div") { ?
>
1362 <div
class="TableMenuRow1">
1363 <?php
echo $ThemeSet['TitleIcon']; ?
><a href
="<?php echo url_maker($exfile['admin'],$Settings['file_ext'],"act
=info
",$Settings['qstr'],$Settings['qsep'],$prexqstr['admin'],$exqstr['admin']); ?>">Board Info Manager
</a
></div
>
1365 <table
class="TableMenu" style
="width: 100%;">
1366 <?php
if($ThemeSet['TableStyle']=="table") { ?
>
1367 <tr
class="TableMenuRow1">
1368 <td
class="TableMenuColumn1"><span style
="float: left;">
1369 <?php
echo $ThemeSet['TitleIcon']; ?
><a href
="<?php echo url_maker($exfile['admin'],$Settings['file_ext'],"act
=info
",$Settings['qstr'],$Settings['qsep'],$prexqstr['admin'],$exqstr['admin']); ?>">Board Info Manager
</a
>
1370 </span
><span style
="float: right;"> 
;</span
></td
>
1372 <tr
class="TableMenuRow2">
1373 <th
class="TableMenuColumn2" style
="width: 100%; text-align: left;">
1374 <span style
="float: left;"> 
;Editing Board Info
: </span
>
1375 <span style
="float: right;"> 
;</span
>
1378 <tr
class="TableMenuRow3">
1379 <td
class="TableMenuColumn3">
1380 <form style
="display: inline;" method
="post" id
="acptool" action
="<?php echo url_maker($exfile['admin'],$Settings['file_ext'],"act
=info
",$Settings['qstr'],$Settings['qsep'],$prexqstr['admin'],$exqstr['admin']); ?>">
1381 <table style
="text-align: left;">
1382 <tr style
="text-align: left;">
1383 <td style
="width: 50%;"><label
class="TextBoxLabel" for="board_name">Insert board name
:</label
></td
>
1384 <td style
="width: 50%;"><input type
="text" name
="board_name" class="TextBox" id
="board_name" size
="20" value
="<?php echo $SettInfo['board_name']; ?>" /></td
>
1385 </tr
><tr style
="text-align: left;">
1386 <td style
="width: 50%;"><label
class="TextBoxLabel" for="Author">Insert boards admin name
:</label
></td
>
1387 <td style
="width: 50%;"><input type
="text" name
="Author" class="TextBox" id
="Author" size
="20" value
="<?php echo $SettInfo['Author']; ?>" /></td
>
1388 </tr
><tr style
="text-align: left;">
1389 <td style
="width: 50%;"><label
class="TextBoxLabel" for="Keywords">Insert keywords about this board
:</label
></td
>
1390 <td style
="width: 50%;"><input type
="text" name
="Keywords" class="TextBox" id
="Keywords" size
="20" value
="<?php echo $SettInfo['Keywords']; ?>" /></td
>
1391 </tr
><tr style
="text-align: left;">
1392 <td style
="width: 50%;"><label
class="TextBoxLabel" for="Description">Insert description about this board
:<br
/></label
></td
>
1393 <td style
="width: 50%;"><input type
="text" name
="Description" class="TextBox" id
="Description" size
="20" value
="<?php echo $SettInfo['Description']; ?>" /></td
>
1395 <table style
="text-align: left;">
1396 <tr style
="text-align: left;">
1397 <td style
="width: 100%;">
1398 <input type
="hidden" name
="act" value
="info" style
="display: none;" />
1399 <input type
="hidden" name
="update" value
="now" style
="display: none;" />
1400 <input type
="submit" class="Button" value
="Apply" name
="Apply_Changes" />
1401 <input type
="reset" value
="Reset Form" class="Button" name
="Reset_Form" />
1406 <tr
class="TableMenuRow4">
1407 <td
class="TableMenuColumn4"> 
;</td
>
1411 <?php
} if($_POST['act']=="info"&&$_POST['update']=="now"&&$_GET['act']=="info"&&
1412 $_SESSION['UserGroup']!=$Settings['GuestGroup']&&$GroupInfo['HasAdminCP']=="yes") {
1413 $_POST = array_map("rsq", $_POST);
1414 if(!isset($Settings['BoardUUID'])||
$Settings['BoardUUID']===null) {
1415 $Settings['BoardUUID'] = rand_uuid("rand"); }
1416 $_POST['board_name'] = htmlspecialchars($_POST['board_name'], ENT_QUOTES
, $Settings['charset']);
1417 $_POST['board_name'] = fixbamps($_POST['board_name']);
1418 $_POST['board_name'] = remove_spaces($_POST['board_name']);
1419 $_POST['board_name'] = str_replace("\'", "'", $_POST['board_name']);
1420 if($_POST['board_name']!=$Settings['board_name']&&
1421 $Settings['SQLThemes']=="on") {
1422 $logoquery = sql_pre_query("UPDATE \"".$Settings['sqltable']."themes\" SET \"Logo\"='%s' WHERE \"Logo\"='%s'", array($_POST['board_name'],$Settings['board_name']));
1423 sql_query($logo,$SQLStat); }
1424 $_POST['Author'] = htmlspecialchars($_POST['Author'], ENT_QUOTES
, $Settings['charset']);
1425 $_POST['Author'] = fixbamps($_POST['Author']);
1426 $_POST['Author'] = remove_spaces($_POST['Author']);
1427 $_POST['Author'] = str_replace("\'", "'", $_POST['Author']);
1428 $_POST['Keywords'] = htmlspecialchars($_POST['Keywords'], ENT_QUOTES
, $Settings['charset']);
1429 $_POST['Keywords'] = fixbamps($_POST['Keywords']);
1430 $_POST['Keywords'] = remove_spaces($_POST['Keywords']);
1431 $_POST['Keywords'] = str_replace("\'", "'", $_POST['Keywords']);
1432 $_POST['Description'] = htmlspecialchars($_POST['Description'], ENT_QUOTES
, $Settings['charset']);
1433 $_POST['Description'] = fixbamps($_POST['Description']);
1434 $_POST['Description'] = remove_spaces($_POST['Description']);
1435 $_POST['Description'] = str_replace("\'", "'", $_POST['Description']);
1436 $BoardSettings=$pretext2[0]."\n".
1437 "\$Settings['sqlhost'] = ".null_string($Settings['sqlhost']).";\n".
1438 "\$Settings['sqldb'] = ".null_string($Settings['sqldb']).";\n".
1439 "\$Settings['sqltable'] = ".null_string($Settings['sqltable']).";\n".
1440 "\$Settings['sqluser'] = ".null_string($Settings['sqluser']).";\n".
1441 "\$Settings['sqlpass'] = ".null_string($Settings['sqlpass']).";\n".
1442 "\$Settings['sqltype'] = ".null_string($Settings['sqltype']).";\n".
1443 "\$Settings['board_name'] = ".null_string($_POST['board_name']).";\n".
1444 "\$Settings['idbdir'] = ".null_string($Settings['idbdir']).";\n".
1445 "\$Settings['idburl'] = ".null_string($Settings['idburl']).";\n".
1446 "\$Settings['enable_https'] = ".null_string($Settings['enable_https']).";\n".
1447 "\$Settings['weburl'] = ".null_string($Settings['weburl']).";\n".
1448 "\$Settings['SQLThemes'] = ".null_string($Settings['SQLThemes']).";\n".
1449 "\$Settings['use_gzip'] = ".null_string($Settings['use_gzip']).";\n".
1450 "\$Settings['html_type'] = ".null_string($Settings['html_type']).";\n".
1451 "\$Settings['html_level'] = ".null_string($Settings['html_level']).";\n".
1452 "\$Settings['output_type'] = ".null_string($Settings['output_type']).";\n".
1453 "\$Settings['GuestGroup'] = ".null_string($Settings['GuestGroup']).";\n".
1454 "\$Settings['MemberGroup'] = ".null_string($Settings['MemberGroup']).";\n".
1455 "\$Settings['ValidateGroup'] = ".null_string($Settings['ValidateGroup']).";\n".
1456 "\$Settings['AdminValidate'] = ".null_string($Settings['AdminValidate']).";\n".
1457 "\$Settings['TestReferer'] = ".null_string($Settings['TestReferer']).";\n".
1458 "\$Settings['DefaultTheme'] = ".null_string($Settings['DefaultTheme']).";\n".
1459 "\$Settings['DefaultTimeZone'] = ".null_string($Settings['DefaultTimeZone']).";\n".
1460 "\$Settings['start_date'] = ".null_string($Settings['start_date']).";\n".
1461 "\$Settings['idb_time_format'] = ".null_string($Settings['idb_time_format']).";\n".
1462 "\$Settings['idb_date_format'] = ".null_string($Settings['idb_date_format']).";\n".
1463 "\$Settings['use_hashtype'] = ".null_string($Settings['use_hashtype']).";\n".
1464 "\$Settings['charset'] = ".null_string($Settings['charset']).";\n".
1465 "\$Settings['sql_collate'] = ".null_string($Settings['sql_collate']).";\n".
1466 "\$Settings['sql_charset'] = ".null_string($Settings['sql_charset']).";\n".
1467 "\$Settings['add_power_by'] = ".null_string($Settings['add_power_by']).";\n".
1468 "\$Settings['send_pagesize'] = ".null_string($Settings['send_pagesize']).";\n".
1469 "\$Settings['max_posts'] = ".null_string($Settings['max_posts']).";\n".
1470 "\$Settings['max_topics'] = ".null_string($Settings['max_topics']).";\n".
1471 "\$Settings['max_memlist'] = ".null_string($Settings['max_memlist']).";\n".
1472 "\$Settings['max_pmlist'] = ".null_string($Settings['max_pmlist']).";\n".
1473 "\$Settings['hot_topic_num'] = ".null_string($Settings['hot_topic_num']).";\n".
1474 "\$Settings['qstr'] = ".null_string($Settings['qstr']).";\n".
1475 "\$Settings['qsep'] = ".null_string($Settings['qsep']).";\n".
1476 "\$Settings['file_ext'] = ".null_string($Settings['file_ext']).";\n".
1477 "\$Settings['rss_ext'] = ".null_string($Settings['rss_ext']).";\n".
1478 "\$Settings['js_ext'] = ".null_string($Settings['js_ext']).";\n".
1479 "\$Settings['showverinfo'] = ".null_string($Settings['showverinfo']).";\n".
1480 "\$Settings['vercheck'] = ".null_string($Settings['vercheck']).";\n".
1481 "\$Settings['enable_rss'] = ".null_string($Settings['enable_rss']).";\n".
1482 "\$Settings['enable_search'] = ".null_string($Settings['enable_search']).";\n".
1483 "\$Settings['sessionid_in_urls'] = ".null_string($Settings['sessionid_in_urls']).";\n".
1484 "\$Settings['fixpathinfo'] = ".null_string($OldSettings['fixpathinfo']).";\n".
1485 "\$Settings['fixbasedir'] = ".null_string($OldSettings['fixbasedir']).";\n".
1486 "\$Settings['fixcookiedir'] = ".null_string($OldSettings['fixcookiedir']).";\n".
1487 "\$Settings['fixredirectdir'] = ".null_string($OldSettings['fixredirectdir']).";\n".
1488 "\$Settings['enable_pathinfo'] = ".null_string($Settings['enable_pathinfo']).";\n".
1489 "\$Settings['rssurl'] = ".null_string($Settings['rssurl']).";\n".
1490 "\$Settings['board_offline'] = ".null_string($Settings['board_offline']).";\n".
1491 "\$Settings['VerCheckURL'] = ".null_string($Settings['VerCheckURL']).";\n".
1492 "\$Settings['IPCheckURL'] = ".null_string($Settings['IPCheckURL']).";\n".
1493 "\$Settings['log_http_request'] = ".null_string($Settings['log_http_request']).";\n".
1494 "\$Settings['log_config_format'] = ".null_string($Settings['log_config_format']).";\n".
1495 "\$Settings['BoardUUID'] = ".null_string(base64_encode($Settings['BoardUUID'])).";\n".
1496 "\$Settings['KarmaBoostDays'] = ".null_string($Settings['KarmaBoostDays']).";\n".
1497 "\$Settings['KBoostPercent'] = ".null_string($Settings['KBoostPercent']).";\n".$pretext2[1]."\n".
1498 "\$SettInfo['board_name'] = ".null_string($_POST['board_name']).";\n".
1499 "\$SettInfo['Author'] = ".null_string($_POST['Author']).";\n".
1500 "\$SettInfo['Keywords'] = ".null_string($_POST['Keywords']).";\n".
1501 "\$SettInfo['Description'] = ".null_string($_POST['Description']).";\n".$pretext2[2]."\n".
1502 "\$SettDir['maindir'] = ".null_string($SettDir['maindir']).";\n".
1503 "\$SettDir['inc'] = ".null_string($SettDir['inc']).";\n".
1504 "\$SettDir['logs'] = ".null_string($SettDir['logs']).";\n".
1505 "\$SettDir['archive'] = ".null_string($SettDir['archive']).";\n".
1506 "\$SettDir['misc'] = ".null_string($SettDir['misc']).";\n".
1507 "\$SettDir['sql'] = ".null_string($SettDir['sql']).";\n".
1508 "\$SettDir['admin'] = ".null_string($SettDir['admin']).";\n".
1509 "\$SettDir['sqldumper'] = ".null_string($SettDir['sqldumper']).";\n".
1510 "\$SettDir['mod'] = ".null_string($SettDir['mod']).";\n".
1511 "\$SettDir['themes'] = ".null_string($SettDir['themes']).";\n".$pretext2[3]."\n?>";
1512 $BoardSettingsBak = $pretext.$settcheck.$BoardSettings;
1513 $BoardSettings = $pretext.$settcheck.$BoardSettings;
1514 $fp = fopen("settings.php","w+");
1515 fwrite($fp, $BoardSettings);
1517 // cp("settings.php","settingsbak.php");
1518 $fp = fopen("settingsbak.php","w+");
1519 fwrite($fp, $BoardSettingsBak);
1520 fclose($fp); } if($_POST['update']=="now"&&$_GET['act']!=null) {
1521 $profiletitle = " ".$ThemeSet['TitleDivider']." Updating Settings"; ?
>
1523 <tr id
="ProfileTitleEnd" class="TableMenuRow4">
1524 <td
class="TableMenuColumn4"> 
;</td
>
1525 </tr
></table
></div
><?php
} ?
>