OSDN Git Service

Added minute offset to User Time Zone.
[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: 06/27/2007 SVN 29 - Author: cooldude2k $
15 */
16 $File3Name = basename($_SERVER['SCRIPT_NAME']);
17 if ($File3Name=="setcheck.php"||$File3Name=="/setcheck.php") {
18         require('index.php');
19         exit(); }
20 if(!isset($_GET['debug'])) { $_GET['debug'] = false; }
21 if(!isset($GZipEncode)) { $GZipEncode = 'none'; }
22 if(!isset($preact)) { $preact = null; }
23 if(!isset($Settings['hash_type'])) { $Settings['hash_type'] = null; }
24 if(!isset($Error)) { $Error = null; }
25 if(!isset($passright)) { $passright = null; }
26 if(!isset($Settings['enable_pathinfo'])) {
27   $Settings['enable_pathinfo'] = false;  }
28 if($Settings['enable_pathinfo']!=true&&
29         $Settings['enable_pathinfo']!=false) {
30   $Settings['enable_pathinfo'] = false;  }
31 $oldusername = null; $oldtopicname = null; $ext = null;
32 if($Settings['DefaultTheme']==null) {
33         $Settings['DefaultTheme'] = "iDB"; }
34 if($Settings['DefaultTimeZone']==null) {
35         $Settings['DefaultTimeZone'] = SeverOffSet(null); }
36 if($Settings['DefaultDST']!="on"&&
37         $Settings['DefaultDST']!="off") { 
38         $Settings['DefaultDST'] = "off"; }
39 if($Settings['enable_rss']!="on"&&
40         $Settings['enable_rss']!=true) { 
41         $Settings['enable_rss'] = false; }
42 if($Settings['enable_rss']=="on") { 
43     $Settings['enable_rss'] = true; }
44 if (file_exists("themes/iDB/settings.php")) {
45         $FallBack['DefaultTheme'] = "iDB"; }
46 if (!file_exists("themes/iDB/settings.php")) {
47         $FallBack['DefaultTheme'] = "Gray"; }
48 if($Settings['DefaultTheme']!=null) {
49 if (file_exists("themes/".$Settings['DefaultTheme']."/settings.php")) {
50 /* The file Skin Exists */ }
51 else { $Settings['DefaultTheme']=$FallBack['DefaultTheme'];
52 /* The file Skin Dose Not Exists */ } }
53 if($Settings['TestReferer']!=true&&
54         $Settings['TestReferer']!=false) {
55         $Settings['TestReferer'] = false; }
56 if($Settings['charset']==null) {
57         $Settings['charset'] = "iso-8859-15"; }
58 if($Settings['qstr']==null) {
59         $Settings['qstr'] = "&"; }
60 if($Settings['qsep']==null) {
61         $Settings['qsep'] = "="; }
62 if($Settings['qsep']=="#"||
63         $Settings['qstr']=="#") {
64         $Settings['qstr'] = "&";
65         $Settings['qsep'] = "="; }
66 if($Settings['qsep']==$Settings['qstr']) {
67         $Settings['qstr'] = "&";
68         $Settings['qsep'] = "="; }
69 if($Settings['qstr']=="/"||
70         $Settings['qstr']=="&") {
71         $Settings['qsep'] = "="; }
72 if($Settings['qstr']!="&"&&
73         $Settings['qstr']!="/") {
74 @qstring($Settings['qstr'],$Settings['qsep']);
75 if(!isset($_GET['page'])) { $_GET['page'] = null; }
76 if(!isset($_GET['act'])) { $_GET['act'] = null; }
77 if(!isset($_POST['act'])) { $_POST['act'] = null; }
78 if(!isset($_GET['id'])) { $_GET['id'] = null; } 
79 if(!isset($_GET['debug'])) { $_GET['debug'] = false; } }
80 if($Settings['file_ext']==null) {
81         $Settings['file_ext'] = ".php"; }
82 if($Settings['rss_ext']==null) {
83         $Settings['rss_ext'] = ".php"; }
84 if($Settings['js_ext']==null) {
85         $Settings['js_ext'] = ".js"; }
86 if($Settings['add_power_by']==true) {
87 $idbpowertitle = " (Powered by ".$iDB.")";
88 $itbpowertitle = " (Powered by ".$iTB.")"; }
89 if($Settings['add_power_by']!=true) {
90 $idbpowertitle = null;
91 $itbpowertitle = null; }
92 if($Settings['GuestGroup']==null) {
93         $Settings['GuestGroup'] = "Guest"; }
94 if($Settings['MemberGroup']==null) {
95         $Settings['MemberGroup'] = "Member"; }
96 if($Settings['ValidateGroup']==null&&
97         $Settings['AdminValidate']==true) {
98 $Settings['ValidateGroup'] = "Validate"; }
99 if($Settings['fixpathinfo']==null) {
100         $Settings['fixpathinfo'] = false; }
101 if($Settings['fixbasedir']==null) {
102         $Settings['fixbasedir'] = false; }
103 if($Settings['html_type']=="html4") { 
104         $Settings['html_type'] = "html10"; }
105 /*if($_GET['debug']=="true"||$_GET['debug']=="on") {
106         output_add_rewrite_var("amp;debug",$_GET['debug']); }*/
107 if (!isset($_GET['action'])) { $_GET['action'] = null; }
108 if (!isset($_GET['activity'])) { $_GET['activity'] = null; }
109 if (!isset($_GET['function'])) { $_GET['function'] = null; }
110 if (!isset($_GET['mode'])) { $_GET['mode'] = null; }
111 if (!isset($_GET['show'])) { $_GET['show'] = null; }
112 if (!isset($_GET['do'])) { $_GET['do'] = null; }
113 if ($_GET['act']==null&&$_GET['action']!=null) { $_GET['act']=$_GET['action']; }
114 if ($_GET['act']==null&&$_GET['activity']!=null) { $_GET['act']=$_GET['activity']; }
115 if ($_GET['act']==null&&$_GET['function']!=null) { $_GET['act']=$_GET['function']; }
116 if ($_GET['act']==null&&$_GET['mode']!=null) { $_GET['act']=$_GET['mode']; }
117 if ($_GET['act']==null&&$_GET['show']!=null) { $_GET['act']=$_GET['show']; }
118 if ($_GET['act']==null&&$_GET['do']!=null) { $_GET['act']=$_GET['do']; }
119 if ($_GET['act']=="idx"||$_GET['act']=="View") { $_GET['act']="view"; }
120 if ($_GET['act']=="iDBInfo") { @header('Location: http://sourceforge.net/projects/intdb/'); }
121 if ($_GET['act']=="iDBSite") { @header('Location: http://intdb.sourceforge.net/'); }
122 if ($_GET['act']=="OldiDBInfo") { @header('Location: http://developer.berlios.de/projects/idb/'); }
123 if ($_GET['act']=="OldiDBSite") { @header('Location: http://idb.berlios.de/'); }
124 if ($_GET['act']=="DF2kInfo") { @header('Location: http://developer.berlios.de/projects/df2k/'); }
125 if ($_GET['act']=="DF2kSite") { @header('Location: http://df2k.berlios.de/'); }
126 if ($_GET['act']=="GM2kSite") { @header('Location: http://upload.idb.s1.jcink.com/'); }
127 ?>