OSDN Git Service

Small update to calendar and theme system.
[idb/iDB.git.git] / inc / misc / setcheck.php
1 <?php
2 /*
3     This program is free software; you can redistribute it and/or modify
4     it under the terms of the Revised BSD License.
5
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.
10
11     Copyright 2004-2007 Cool Dude 2k - http://intdb.sourceforge.net/
12     Copyright 2004-2007 Game Maker 2k - http://upload.idb.s1.jcink.com/
13
14     $FileInfo: setcheck.php - Last Update: 05/19/2007 SVN 10 - Author: cooldude2k $
15 */
16 if($Settings['DefaultTheme']==null) {
17         $Settings['DefaultTheme'] = "iDB"; }
18 if($Settings['DefaultTimeZone']==null) {
19         $Settings['DefaultTimeZone'] = SeverOffSet(null); }
20 if(!is_numeric($Settings['DefaultTimeZone'])) {
21         $Settings['DefaultTimeZone'] = SeverOffSet(null); }
22 if($Settings['DefaultDST']!="on"&&
23         $Settings['DefaultDST']!="off") { 
24         $Settings['DefaultDST'] = "off"; }
25 if($Settings['enable_rss']!="on"&&
26         $Settings['enable_rss']!=true) { 
27         $Settings['enable_rss'] = false; }
28 if($Settings['enable_rss']=="on") { 
29     $Settings['enable_rss'] = true; }
30 if($Settings['EnableToggle']!="on"&&
31         $Settings['EnableToggle']!="off") { 
32         $Settings['EnableToggle'] = "off"; }
33 if($Settings['EnableToggle']!="on"&&
34         $Settings['EnableToggle']!=true) { 
35         $Settings['EnableToggle'] = false; }
36 if($Settings['EnableToggle']=="on") { 
37     $Settings['EnableToggle'] = true; }
38 if($Settings['DefaultTheme']!=null) {
39 if (file_exists("themes/".$Settings['DefaultTheme']."/settings.php")) {
40 /* The file Skin Exists */ }
41 else { $Settings['DefaultTheme']="iDB";
42 /* The file Skin Dose Not Exists */ } }
43 if($Settings['TestReferer']!=true&&
44         $Settings['TestReferer']!=false) {
45         $Settings['TestReferer'] = false; }
46 if($Settings['charset']==null) {
47         $Settings['charset'] = "iso-8859-15"; }
48 if($Settings['qstr']==null) {
49         $Settings['qstr'] = "&"; }
50 if($Settings['qsep']==null) {
51         $Settings['qsep'] = "="; }
52 if($Settings['qsep']=="#"||
53         $Settings['qstr']=="#") {
54         $Settings['qstr'] = "&";
55         $Settings['qsep'] = "="; }
56 if($Settings['qsep']==$Settings['qstr']) {
57         $Settings['qstr'] = "&";
58         $Settings['qsep'] = "="; }
59 if($Settings['qstr']=="/"||
60         $Settings['qstr']=="&") {
61         $Settings['qsep'] = "="; }
62 if($Settings['qstr']!="&"&&
63         $Settings['qstr']!="/") {
64 @qstring($Settings['qstr'],$Settings['qsep']); }
65 if($Settings['file_ext']==null) {
66         $Settings['file_ext'] = ".php"; }
67 if($Settings['rss_ext']==null) {
68         $Settings['rss_ext'] = ".php"; }
69 if($Settings['js_ext']==null) {
70         $Settings['js_ext'] = ".js"; }
71 if($Settings['add_power_by']==true) {
72 $idbpowertitle = " (Powered by ".$iDB.")";
73 $itbpowertitle = " (Powered by ".$iTB.")"; }
74 if($Settings['add_power_by']!=true) {
75 $idbpowertitle = null;
76 $itbpowertitle = null; }
77 if($Settings['GuestGroup']==null) {
78         $Settings['GuestGroup'] = "Guest"; }
79 if($Settings['MemberGroup']==null) {
80         $Settings['MemberGroup'] = "Member"; }
81 if($Settings['ValidateGroup']==null&&
82         $Settings['AdminValidate']==true) {
83 $Settings['ValidateGroup'] = "Validate"; }
84 if($Settings['fixpathinfo']==null) {
85         $Settings['fixpathinfo'] = false; }
86 if($Settings['fixbasedir']==null) {
87         $Settings['fixbasedir'] = false; }
88 if($Settings['html_type']=="html4") { 
89         $Settings['html_type'] = "html10"; }
90 /*if($_GET['debug']=="true"||$_GET['debug']=="on") {
91         output_add_rewrite_var("amp;debug",$_GET['debug']); }*/
92 if ($_GET['act']==null&&$_GET['action']!=null) { $_GET['act']=$_GET['action']; }
93 if ($_GET['act']==null&&$_GET['activity']!=null) { $_GET['act']=$_GET['activity']; }
94 if ($_GET['act']==null&&$_GET['function']!=null) { $_GET['act']=$_GET['function']; }
95 if ($_GET['act']==null&&$_GET['mode']!=null) { $_GET['act']=$_GET['mode']; }
96 if ($_GET['act']==null&&$_GET['show']!=null) { $_GET['act']=$_GET['show']; }
97 if ($_GET['act']==null&&$_GET['do']!=null) { $_GET['act']=$_GET['do']; }
98 if ($_GET['act']=="idx"||$_GET['act']=="View") { $_GET['act']="view"; }
99 if ($_GET['act']=="iDBInfo") { @header('Location: http://sourceforge.net/projects/intdb/'); }
100 if ($_GET['act']=="iDBSite") { @header('Location: http://intdb.sourceforge.net/'); }
101 if ($_GET['act']=="OldiDBInfo") { @header('Location: http://developer.berlios.de/projects/idb/'); }
102 if ($_GET['act']=="OldiDBSite") { @header('Location: http://idb.berlios.de/'); }
103 if ($_GET['act']=="DF2kInfo") { @header('Location: http://developer.berlios.de/projects/df2k/'); }
104 if ($_GET['act']=="DF2kSite") { @header('Location: http://df2k.berlios.de/'); }
105 if ($_GET['act']=="GM2kSite") { @header('Location: http://upload.idb.s1.jcink.com/'); }
106 ?>