[go: up one dir, main page]

Menu

[ab7a0e]: / doc / update_themes.sql  Maximize  Restore  History

Download this file

181 lines (146 with data), 4.9 kB

  1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
--
-- $Id: update_themes.sql,v 1.5 2002/12/27 00:51:39 nighty Exp $
-- Use this file to update your db structure if you dont have "themes" enabled.
-- run /usr/local/pgsql/bin/psql local_db < update_themes.sql
-- ** run this only ONCE **
--
-- If you want to update your theme, its advised to edit the 'website/docs/gnuworld/themes/data/default/default.sql' file
-- and apply the changes using 'psql local_db < website/docs/gnuworld/themes/data/default/default.sql'
--
-- The default theme logo was done by SiRVulcaN <sirvulcan@xtra.co.nz>.
--
-- 12/27/2002 : <nighty@undernet.org>
--
CREATE TABLE themes (
id SERIAL,
name VARCHAR(50) NOT NULL,
tstart VARCHAR(5) DEFAULT '01/01' NOT NULL,
tend VARCHAR(5) DEFAULT '12/31' NOT NULL,
created_ts INT4 NOT NULL,
created_by INT4 DEFAULT 0 NOT NULL,
sub_dir VARCHAR(128) NOT NULL, -- Must be a real directory name, alone, with no slashes or spaces or weird chars.
-- This will indicate in which [...]gnuworld/docs/website/themes/data/<sub_dir> the themes files will be found.
left_bgcolor VARCHAR(6) NOT NULL,
left_bgimage VARCHAR(255) DEFAULT '' NOT NULL,
left_textcolor VARCHAR(6) NOT NULL,
left_linkcolor VARCHAR(6) NOT NULL,
left_linkover VARCHAR(6) NOT NULL, -- Visable on Internet Explorer Only.
left_loadavg0 VARCHAR(6) NOT NULL, -- LoadAvg color when status is "OK" (<5)
left_loadavg1 VARCHAR(6) NOT NULL, -- LoadAvg color when status is "HEAVY" (>=5 && <=15)
left_loadavg2 VARCHAR(6) NOT NULL, -- LoadAvg color when status is "CRITICAL" (>15)
top_bgcolor VARCHAR(6) NOT NULL,
top_bgimage VARCHAR(255) DEFAULT '' NOT NULL,
top_logo VARCHAR(255) NOT NULL,
bottom_bgcolor VARCHAR(6) NOT NULL,
bottom_bgimage VARCHAR(255) DEFAULT '' NOT NULL,
bottom_textcolor VARCHAR(6) NOT NULL,
bottom_linkcolor VARCHAR(6) NOT NULL,
bottom_linkover VARCHAR(6) NOT NULL, -- Visable on Internet Explorer Only.
main_bgcolor VARCHAR(6) NOT NULL,
main_bgimage VARCHAR(255) DEFAULT '' NOT NULL,
main_textcolor VARCHAR(6) NOT NULL,
main_textlight VARCHAR(6) NOT NULL,
main_linkcolor VARCHAR(6) NOT NULL,
main_linkover VARCHAR(6) NOT NULL, -- Visable on Internet Explorer Only.
main_warnmsg VARCHAR(6) NOT NULL, -- Color of some warning message, usually those you put in red, but depends on other colors ;P
main_no VARCHAR(6) NOT NULL, -- color of word 'No'.
main_yes VARCHAR(6) NOT NULL, -- color of word 'Yes'.
main_appst0 VARCHAR(6) NOT NULL, -- color for application in (Incoming (status = 0)).
main_appst1 VARCHAR(6) NOT NULL, -- color for application in (Pending (traffic check) (status = 1)).
main_appst2 VARCHAR(6) NOT NULL, -- color for application in (Pending (notification) (status = 2)).
main_appst3 VARCHAR(6) NOT NULL, -- color for application in (Accepted (status = 3)).
main_appst4 VARCHAR(6) NOT NULL, -- color for application in (Cancelled (status = 4)).
main_appst8 VARCHAR(6) NOT NULL, -- color for application in (Ready for review (status = 8)).
main_appst9 VARCHAR(6) NOT NULL, -- color for application in (Rejected (status = 9)).
main_vlinkcolor VARCHAR(6) NOT NULL, -- color for links that need to be displayed as 'visited'.
main_support VARCHAR(6) NOT NULL, -- color for a person supporting the channel in "view_app"
main_nonsupport VARCHAR(6) NOT NULL, -- color for a person NOT supporting the channel in "view_app"
main_notyet VARCHAR(6) NOT NULL, -- color for a person that has made no choice regarding support in "view_app"
main_frauduser VARCHAR(6) NOT NULL, -- color for Fraud Usernames representation
main_xat_revert VARCHAR(6) NOT NULL,
main_xat_goperm VARCHAR(6) NOT NULL,
main_xat_deny VARCHAR(6) NOT NULL,
main_xat_accept VARCHAR(6) NOT NULL,
main_acl_create VARCHAR(6) NOT NULL,
main_acl_edit VARCHAR(6) NOT NULL,
table_bgcolor VARCHAR(6) NOT NULL,
table_bgimage VARCHAR(255) DEFAULT '' NOT NULL,
table_headcolor VARCHAR(6) NOT NULL,
table_headtextcolor VARCHAR(6) NOT NULL,
table_sepcolor VARCHAR(6) NOT NULL,
table_septextcolor VARCHAR(6) NOT NULL,
table_tr_enlighten VARCHAR(6) NOT NULL,
table_tr_enlighten2 VARCHAR(6) NOT NULL,
table_tr_enlighten3 VARCHAR(6) NOT NULL,
table_headimage VARCHAR(255) DEFAULT '' NOT NULL,
PRIMARY KEY (name)
);
INSERT INTO themes VALUES (
-- head
'1',
'default',
'01/01',
'12/31',
'31337',
'0',
'default',
-- left
'60659c',
'',
'000000',
'aaaaaa',
'ffffff',
'aaaaaa',
'000000',
'ffff00',
-- top
'60659c',
'',
'default_logo.jpg',
-- bottom (footer)
'60659c',
'',
'000000',
'aaaaaa',
'ffffff',
-- main
'aaafe4',
'',
'000000',
'505050',
'60659c',
'ff7700',
'ff0000',
'990000',
'009900',
-- main/regproc
'ffff00',
'0000ff',
'0000ff',
'00ff00',
'eeeeee',
'990099',
'ff0000',
'60659c',
'00ff00',
'ff0000',
'ffffff',
'ffeeff',
'00ffff',
'eeeeee',
'990000',
'007700',
'ddffdd',
'ffdddd',
-- tables
'ffffff',
'',
'60659c',
'ffffff',
'dddddd',
'4c4c4c',
'ffff00',
'777777',
'60659c',
''
);