Permalink
Browse files

Added tech.woot

  • Loading branch information...
DarkstarDev committed Jul 16, 2012
1 parent 3e39bcd commit 7a94bbef1e2fbe46e68360b0a8b4f396551e71e2
Showing with 70 additions and 5 deletions.
  1. +36 −0 application/Bootstrap.php
  2. +3 −1 library/Ds/Service/WootFeed.php
  3. +11 −0 public/css/tech.css
  4. +12 −0 socketserver.js
  5. +3 −0 sql/3.0.2/tech.sql
  6. +5 −4 sql/RUNONCE.sql
View
@@ -335,6 +335,42 @@ protected function _initRoutes()
)
);
Zend_Controller_Front::getInstance()->getRouter()->addRoute('sportList', $route);
$route = new Zend_Controller_Router_Route(
"/tech",
array(
"controller" => "item",
"action" => "view",
"id" => "current",
"site" => "tech"
)
);
Zend_Controller_Front::getInstance()->getRouter()->addRoute('techIndex', $route);
$route = new Zend_Controller_Router_Route(
"/tech/view/:id",
array(
"controller" => "item",
"action" => "view",
"id" => "current",
"site" => "tech"
),
array(
'id' => '[0-9a-f]+'
)
);
Zend_Controller_Front::getInstance()->getRouter()->addRoute('techView', $route);
$route = new Zend_Controller_Router_Route(
"/tech/list/:page",
array(
"controller" => "item",
"action" => "list",
"site" => "tech",
"page" => 1
)
);
Zend_Controller_Front::getInstance()->getRouter()->addRoute('techList', $route);
}
protected function _initZFDebug()
@@ -24,6 +24,7 @@ class Ds_Service_WootFeed {
const SELLOUT = 'sellout';
const HOME = 'home';
const SPORT = 'sport';
const TECH = 'tech';
protected $_allowedSites = array(
self::WOOT => 'woot',
@@ -33,7 +34,8 @@ class Ds_Service_WootFeed {
self::MOOFI => 'moofi',
self::SELLOUT => 'sellout',
self::HOME => 'home',
self::SPORT => 'sport'
self::SPORT => 'sport',
self::TECH => 'tech'
);
public function __construct($dao, Zend_Db_Adapter_Abstract $db)
View
@@ -0,0 +1,11 @@
body {
background-color: #0B5E60;
}
#logo {
color: #0B5E60;
}
a, a:hover, a:visited, a:active {
color: #0B5E60;
}
View
@@ -80,6 +80,12 @@ var connections = {
.on('connection', function (socket) {
socket.join('sport');
}
),
tech: io.of('/tech')
.on('connection', function (socket) {
socket.join('tech');
}
)
}
@@ -137,6 +143,12 @@ var options = {
port: sitePort,
path: sitePath + '/sport',
headers: XMLHttpRequestHeader
},
tech: {
host: siteHost,
port: sitePort,
path: sitePath + '/tech',
headers: XMLHttpRequestHeader
}
};
View
@@ -0,0 +1,3 @@
ALTER TABLE `status` CHANGE `site` `site` ENUM('woot','shirt','wine','kids','moofi','sellout','home','sport','tech') NOT NULL;
ALTER TABLE `item` CHANGE `site` `site` ENUM('woot','shirt','wine','kids','moofi','sellout','home','sport','tech') NOT NULL DEFAULT 'woot';
INSERT INTO `status` (`site`, `locked`) VALUES ('tech', '0');
View
@@ -7,7 +7,7 @@
#
# Host: nataku (MySQL 5.5.24-0ubuntu0.12.04.1)
# Database: dswoot
# Generation Time: 2012-07-11 19:33:57 +0000
# Generation Time: 2012-07-16 15:53:57 +0000
# ************************************************************
@@ -57,7 +57,7 @@ CREATE TABLE `item` (
`title` varchar(1000) NOT NULL,
`subtitle` varchar(1000) NOT NULL,
`teaser` varchar(1000) NOT NULL,
`site` enum('woot','shirt','wine','kids','moofi','sellout','home','sport') NOT NULL DEFAULT 'woot',
`site` enum('woot','shirt','wine','kids','moofi','sellout','home','sport','tech') NOT NULL DEFAULT 'woot',
`file_extension` varchar(5) NOT NULL,
PRIMARY KEY (`id`),
KEY `site` (`site`)
@@ -88,7 +88,7 @@ CREATE TABLE `product` (
DROP TABLE IF EXISTS `status`;
CREATE TABLE `status` (
`site` enum('woot','shirt','wine','kids','moofi','sellout','home','sport') NOT NULL,
`site` enum('woot','shirt','wine','kids','moofi','sellout','home','sport','tech') NOT NULL,
`locked` tinyint(1) unsigned NOT NULL,
PRIMARY KEY (`site`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
@@ -105,7 +105,8 @@ VALUES
('moofi',0),
('sellout',0),
('home',0),
('sport',0);
('sport',0),
('tech',0);
/*!40000 ALTER TABLE `status` ENABLE KEYS */;
UNLOCK TABLES;

0 comments on commit 7a94bbe

Please sign in to comment.