implemented very simple ad rotation support, good enough for our rotating
quote banners - also included quote banners (20 from Webb, 4 new)
This commit is contained in:
@@ -405,6 +405,15 @@ CREATE TABLE postpublish (
|
||||
INDEX display_order (on_date, postid)
|
||||
);
|
||||
|
||||
# Advertisement (actually quote, for now) banners
|
||||
CREATE TABLE adverts (
|
||||
adid INT NOT NULL PRIMARY KEY AUTO_INCREMENT,
|
||||
imagepath VARCHAR(255) NOT NULL,
|
||||
pathstyle SMALLINT NOT NULL DEFAULT 0,
|
||||
caption VARCHAR(255),
|
||||
linkurl VARCHAR(255)
|
||||
);
|
||||
|
||||
##############################################################################
|
||||
# Set table access rights
|
||||
##############################################################################
|
||||
@@ -1331,6 +1340,33 @@ INSERT INTO refsigftr (ftr_code, is_default, is_locked, is_hidden, require_read,
|
||||
(2, 0, 1, 1, 0, 10000, 63000, 'SYSA', 'System Administration', 'sysadmin'),
|
||||
(3, 1, 0, 0, 1, 500, 0, 'CONF', 'Conferences', 'confops');
|
||||
|
||||
# Create the initial advertisements (quotes).
|
||||
INSERT INTO adverts (imagepath) VALUES
|
||||
('images/ads/Brown.gif'),
|
||||
('images/ads/Caine.gif'),
|
||||
('images/ads/Frost.gif'),
|
||||
('images/ads/Keller.gif'),
|
||||
('images/ads/Letterman.gif'),
|
||||
('images/ads/Pooh.gif'),
|
||||
('images/ads/Shakespeare.gif'),
|
||||
('images/ads/Thomas.gif'),
|
||||
('images/ads/WolinskiTeamwork.gif'),
|
||||
('images/ads/Wonder.gif'),
|
||||
('images/ads/bonaparte.gif'),
|
||||
('images/ads/buscaglia.gif'),
|
||||
('images/ads/dana.gif'),
|
||||
('images/ads/deadpoets.gif'),
|
||||
('images/ads/ford.gif'),
|
||||
('images/ads/karen.gif'),
|
||||
('images/ads/lynett.gif'),
|
||||
('images/ads/mcauliffe.gif'),
|
||||
('images/ads/midler.gif'),
|
||||
('images/ads/sophocles.gif'),
|
||||
('images/ads/talbert.gif'),
|
||||
('images/ads/torvalds.gif'),
|
||||
('images/ads/wonka.gif'),
|
||||
('images/ads/worf.gif');
|
||||
|
||||
##############################################################################
|
||||
# Database Initialization
|
||||
##############################################################################
|
||||
|
||||
Reference in New Issue
Block a user