Yet another small bug fix. :o
[iDB.git] / inc / sqlthemes.php
blob4e318d68998a7c93308d1ebdbc9550be52dbac4c
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.
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-2011 iDB Support - http://idb.berlios.de/
12 Copyright 2004-2011 Game Maker 2k - http://gamemaker2k.org/
14 $FileInfo: sqlthemes.php - Last Update: 12/07/2010 SVN 600 - Author: cooldude2k $
16 $File3Name = basename($_SERVER['SCRIPT_NAME']);
17 if ($File3Name=="sqlthemes.php"||$File3Name=="/sqlthemes.php") {
18 require('index.php');
19 exit(); }
20 // Change SQLThemes to iDB Themes Settings
21 $ThemeSet = array();
22 $ThemeSet['ThemeName'] = sql_result($themeresult,0,"ThemeName");
23 if($ThemeSet['ThemeName']=="") { $ThemeSet['ThemeName'] = null; }
24 $ThemeSet['ThemeMaker'] = sql_result($themeresult,0,"ThemeMaker");
25 if($ThemeSet['ThemeMaker']=="") { $ThemeSet['ThemeMaker'] = null; }
26 $ThemeSet['ThemeVersion'] = sql_result($themeresult,0,"ThemeVersion");
27 if($ThemeSet['ThemeVersion']=="") { $ThemeSet['ThemeVersion'] = null; }
28 $ThemeSet['ThemeVersionType'] = sql_result($themeresult,0,"ThemeVersionType");
29 if($ThemeSet['ThemeVersionType']=="") { $ThemeSet['ThemeVersionType'] = null; }
30 $ThemeSet['ThemeSubVersion'] = sql_result($themeresult,0,"ThemeSubVersion");
31 if($ThemeSet['ThemeSubVersion']=="") { $ThemeSet['ThemeSubVersion'] = null; }
32 $ThemeSet['MakerURL'] = sql_result($themeresult,0,"MakerURL");
33 if($ThemeSet['MakerURL']=="") { $ThemeSet['MakerURL'] = null; }
34 $ThemeSet['CopyRight'] = sql_result($themeresult,0,"CopyRight");
35 if($ThemeSet['CopyRight']=="") { $ThemeSet['CopyRight'] = null; }
36 $ThemeSet['CSS'] = sql_result($themeresult,0,"CSS");
37 if($ThemeSet['CSS']=="") { $ThemeSet['CSS'] = null; }
38 $ThemeSet['CSSType'] = sql_result($themeresult,0,"CSSType");
39 if($ThemeSet['CSSType']=="") { $ThemeSet['CSSType'] = null; }
40 $ThemeSet['FavIcon'] = sql_result($themeresult,0,"FavIcon");
41 if($ThemeSet['FavIcon']=="") { $ThemeSet['FavIcon'] = null; }
42 $ThemeSet['TableStyle'] = sql_result($themeresult,0,"TableStyle");
43 if($ThemeSet['TableStyle']=="") { $ThemeSet['TableStyle'] = null; }
44 $ThemeSet['MiniPageAltStyle'] = sql_result($themeresult,0,"MiniPageAltStyle");
45 if($ThemeSet['MiniPageAltStyle']=="") { $ThemeSet['MiniPageAltStyle'] = null; }
46 $ThemeSet['PreLogo'] = sql_result($themeresult,0,"PreLogo");
47 if($ThemeSet['PreLogo']=="") { $ThemeSet['PreLogo'] = null; }
48 $ThemeSet['Logo'] = sql_result($themeresult,0,"Logo");
49 if($ThemeSet['Logo']=="") { $ThemeSet['Logo'] = null; }
50 $ThemeSet['LogoStyle'] = sql_result($themeresult,0,"LogoStyle");
51 if($ThemeSet['LogoStyle']=="") { $ThemeSet['LogoStyle'] = null; }
52 $ThemeSet['SubLogo'] = sql_result($themeresult,0,"SubLogo");
53 if($ThemeSet['SubLogo']=="") { $ThemeSet['SubLogo'] = null; }
54 $ThemeSet['TopicIcon'] = sql_result($themeresult,0,"TopicIcon");
55 if($ThemeSet['TopicIcon']=="") { $ThemeSet['TopicIcon'] = null; }
56 $ThemeSet['MovedTopicIcon'] = sql_result($themeresult,0,"MovedTopicIcon");
57 if($ThemeSet['MovedTopicIcon']=="") { $ThemeSet['MovedTopicIcon'] = $ThemeSet['TopicIcon']; }
58 $ThemeSet['HotTopic'] = sql_result($themeresult,0,"HotTopic");
59 if($ThemeSet['HotTopic']=="") { $ThemeSet['HotTopic'] = null; }
60 $ThemeSet['MovedHotTopic'] = sql_result($themeresult,0,"MovedHotTopic");
61 if($ThemeSet['MovedHotTopic']=="") { $ThemeSet['MovedHotTopic'] = $ThemeSet['HotTopic']; }
62 $ThemeSet['PinTopic'] = sql_result($themeresult,0,"PinTopic");
63 if($ThemeSet['PinTopic']=="") { $ThemeSet['PinTopic'] = null; }
64 $ThemeSet['AnnouncementTopic'] = sql_result($themeresult,0,"AnnouncementTopic");
65 if($ThemeSet['AnnouncementTopic']=="") { $ThemeSet['AnnouncementTopic'] = $ThemeSet['PinTopic']; }
66 $ThemeSet['MovedPinTopic'] = sql_result($themeresult,0,"MovedPinTopic");
67 if($ThemeSet['MovedPinTopic']=="") { $ThemeSet['MovedPinTopic'] = $ThemeSet['PinTopic']; }
68 $ThemeSet['HotPinTopic'] = sql_result($themeresult,0,"HotPinTopic");
69 if($ThemeSet['HotPinTopic']=="") { $ThemeSet['HotPinTopic'] = null; }
70 $ThemeSet['MovedHotPinTopic'] = sql_result($themeresult,0,"MovedHotPinTopic");
71 if($ThemeSet['MovedHotPinTopic']=="") { $ThemeSet['MovedHotPinTopic'] = $ThemeSet['HotPinTopic']; }
72 $ThemeSet['ClosedTopic'] = sql_result($themeresult,0,"ClosedTopic");
73 if($ThemeSet['ClosedTopic']=="") { $ThemeSet['ClosedTopic'] = null; }
74 $ThemeSet['MovedClosedTopic'] = sql_result($themeresult,0,"MovedClosedTopic");
75 if($ThemeSet['MovedClosedTopic']=="") { $ThemeSet['MovedClosedTopic'] = $ThemeSet['ClosedTopic']; }
76 $ThemeSet['HotClosedTopic'] = sql_result($themeresult,0,"HotClosedTopic");
77 if($ThemeSet['HotClosedTopic']=="") { $ThemeSet['HotClosedTopic'] = null; }
78 $ThemeSet['MovedHotClosedTopic'] = sql_result($themeresult,0,"MovedHotClosedTopic");
79 if($ThemeSet['MovedHotClosedTopic']=="") { $ThemeSet['MovedHotClosedTopic'] = $ThemeSet['HotClosedTopic']; }
80 $ThemeSet['PinClosedTopic'] = sql_result($themeresult,0,"PinClosedTopic");
81 if($ThemeSet['PinClosedTopic']=="") { $ThemeSet['PinClosedTopic'] = null; }
82 $ThemeSet['MovedPinClosedTopic'] = sql_result($themeresult,0,"MovedPinClosedTopic");
83 if($ThemeSet['MovedPinClosedTopic']=="") { $ThemeSet['MovedPinClosedTopic'] = $ThemeSet['PinClosedTopic']; }
84 $ThemeSet['HotPinClosedTopic'] = sql_result($themeresult,0,"HotPinClosedTopic");
85 if($ThemeSet['HotPinClosedTopic']=="") { $ThemeSet['HotPinClosedTopic'] = null; }
86 $ThemeSet['MovedHotPinClosedTopic'] = sql_result($themeresult,0,"MovedHotPinClosedTopic");
87 if($ThemeSet['MovedHotPinClosedTopic']=="") { $ThemeSet['MovedHotPinClosedTopic'] = $ThemeSet['HotPinClosedTopic']; }
88 $ThemeSet['MessageRead'] = sql_result($themeresult,0,"MessageRead");
89 if($ThemeSet['MessageRead']=="") { $ThemeSet['MessageRead'] = null; }
90 $ThemeSet['MessageUnread'] = sql_result($themeresult,0,"MessageUnread");
91 if($ThemeSet['MessageUnread']=="") { $ThemeSet['MessageUnread'] = null; }
92 $ThemeSet['Profile'] = sql_result($themeresult,0,"Profile");
93 if($ThemeSet['Profile']=="") { $ThemeSet['Profile'] = null; }
94 $ThemeSet['WWW'] = sql_result($themeresult,0,"WWW");
95 if($ThemeSet['WWW']=="") { $ThemeSet['WWW'] = null; }
96 $ThemeSet['PM'] = sql_result($themeresult,0,"PM");
97 if($ThemeSet['PM']=="") { $ThemeSet['PM'] = null; }
98 $ThemeSet['TopicLayout'] = sql_result($themeresult,0,"TopicLayout");
99 if($ThemeSet['TopicLayout']=="") { $ThemeSet['TopicLayout'] = null; }
100 $ThemeSet['AddReply'] = sql_result($themeresult,0,"AddReply");
101 if($ThemeSet['AddReply']=="") { $ThemeSet['AddReply'] = null; }
102 $ThemeSet['FastReply'] = sql_result($themeresult,0,"FastReply");
103 if($ThemeSet['FastReply']=="") { $ThemeSet['FastReply'] = null; }
104 $ThemeSet['NewTopic'] = sql_result($themeresult,0,"NewTopic");
105 if($ThemeSet['NewTopic']=="") { $ThemeSet['NewTopic'] = null; }
106 $ThemeSet['QuoteReply'] = sql_result($themeresult,0,"QuoteReply");
107 if($ThemeSet['QuoteReply']=="") { $ThemeSet['QuoteReply'] = null; }
108 $ThemeSet['EditReply'] = sql_result($themeresult,0,"EditReply");
109 if($ThemeSet['EditReply']=="") { $ThemeSet['EditReply'] = null; }
110 $ThemeSet['DeleteReply'] = sql_result($themeresult,0,"DeleteReply");
111 if($ThemeSet['DeleteReply']=="") { $ThemeSet['DeleteReply'] = null; }
112 $ThemeSet['Report'] = sql_result($themeresult,0,"Report");
113 if($ThemeSet['Report']=="") { $ThemeSet['Report'] = null; }
114 $ThemeSet['LineDivider'] = sql_result($themeresult,0,"LineDivider");
115 if($ThemeSet['LineDivider']=="") { $ThemeSet['LineDivider'] = null; }
116 $ThemeSet['ButtonDivider'] = sql_result($themeresult,0,"ButtonDivider");
117 if($ThemeSet['ButtonDivider']=="") { $ThemeSet['ButtonDivider'] = null; }
118 $ThemeSet['LineDividerTopic'] = sql_result($themeresult,0,"LineDividerTopic");
119 if($ThemeSet['LineDividerTopic']=="") { $ThemeSet['LineDividerTopic'] = null; }
120 $ThemeSet['TitleDivider'] = sql_result($themeresult,0,"TitleDivider");
121 if($ThemeSet['TitleDivider']=="") { $ThemeSet['TitleDivider'] = null; }
122 $ThemeSet['ForumStyle'] = sql_result($themeresult,0,"ForumStyle");
123 if($ThemeSet['ForumStyle']=="") { $ThemeSet['ForumStyle'] = null; }
124 $ThemeSet['ForumIcon'] = sql_result($themeresult,0,"ForumIcon");
125 if($ThemeSet['ForumIcon']=="") { $ThemeSet['ForumIcon'] = null; }
126 $ThemeSet['SubForumIcon'] = sql_result($themeresult,0,"SubForumIcon");
127 if($ThemeSet['SubForumIcon']=="") { $ThemeSet['SubForumIcon'] = null; }
128 $ThemeSet['RedirectIcon'] = sql_result($themeresult,0,"RedirectIcon");
129 if($ThemeSet['RedirectIcon']=="") { $ThemeSet['RedirectIcon'] = null; }
130 $ThemeSet['TitleIcon'] = sql_result($themeresult,0,"TitleIcon");
131 if($ThemeSet['TitleIcon']=="") { $ThemeSet['TitleIcon'] = null; }
132 $ThemeSet['NavLinkIcon'] = sql_result($themeresult,0,"NavLinkIcon");
133 if($ThemeSet['NavLinkIcon']=="") { $ThemeSet['NavLinkIcon'] = null; }
134 $ThemeSet['NavLinkDivider'] = sql_result($themeresult,0,"NavLinkDivider");
135 if($ThemeSet['NavLinkDivider']=="") { $ThemeSet['NavLinkDivider'] = null; }
136 $ThemeSet['StatsIcon'] = sql_result($themeresult,0,"StatsIcon");
137 if($ThemeSet['StatsIcon']=="") { $ThemeSet['StatsIcon'] = null; }
138 $ThemeSet['NoAvatar'] = sql_result($themeresult,0,"NoAvatar");
139 if($ThemeSet['NoAvatar']=="") { $ThemeSet['NoAvatar'] = null; }
140 $ThemeSet['NoAvatarSize'] = sql_result($themeresult,0,"NoAvatarSize");
141 if($ThemeSet['NoAvatarSize']=="") { $ThemeSet['NoAvatarSize'] = null; }