]> _ Git - fluidbook-v3.git/commitdiff
wip #1080 @2
authorvincent@cubedesigners.com <vincent@cubedesigners.com@f5622870-0f3c-0410-866d-9cb505b7a8ef>
Tue, 10 Jan 2017 17:50:39 +0000 (17:50 +0000)
committervincent@cubedesigners.com <vincent@cubedesigners.com@f5622870-0f3c-0410-866d-9cb505b7a8ef>
Tue, 10 Jan 2017 17:50:39 +0000 (17:50 +0000)
framework/application/Bootstrap.php
framework/application/configs/application.ini
framework/application/controllers/LandingController.php [new file with mode: 0644]
framework/application/views/scripts/landing/quinzemille.phtml [new file with mode: 0644]
translations_en.xlsx [deleted file]

index 576cb35e45a315647d16d98ad347c908b412e5bf..604ad7b1593c5e130c27d19acca60e73c0dfe2fa 100644 (file)
@@ -26,6 +26,14 @@ class Bootstrap extends CubeIT_Bootstrap {
                return $templates;
        }
 
+       public function _initRouter($initCms = true, $standard = true) {
+               profile(__FILE__, __LINE__, 'Init Router');
+               $router = parent::_initRouter($initCms, $standard);
+               $router->addStaticRoute('15000', 'landing', 'quinzemille');
+
+               return $router;
+       }
+
        public function handleRedirections($req) {
                profile(__FILE__, __LINE__, 'Handle redirection');
 
index 57419d7e0292ad716fd231521c7a0b72aa27d895..9baa8488a63c8b10a88efacabd939b6391935a20 100644 (file)
@@ -1,6 +1,7 @@
 [production]
 dev = false
 
+firephp = true
 minify.js = true
 minify.css = true
 
diff --git a/framework/application/controllers/LandingController.php b/framework/application/controllers/LandingController.php
new file mode 100644 (file)
index 0000000..9b45a11
--- /dev/null
@@ -0,0 +1,12 @@
+<?php\r
+\r
+class LandingController extends CubeIT_Controller_PageController {\r
+       public function quinzemilleAction() {\r
+               $this->getSession()->coupon = 'PROMO15000';\r
+               if (rand(0, 1000) > 500) {\r
+                       $this->redirect(CubeIT_View_Helper_Link::internal('devis-15000'));\r
+               } else {\r
+                       $this->redirect('/');\r
+               }\r
+       }\r
+}
\ No newline at end of file
diff --git a/framework/application/views/scripts/landing/quinzemille.phtml b/framework/application/views/scripts/landing/quinzemille.phtml
new file mode 100644 (file)
index 0000000..6fd199e
--- /dev/null
@@ -0,0 +1 @@
+<?php\r
diff --git a/translations_en.xlsx b/translations_en.xlsx
deleted file mode 100644 (file)
index 9e91a0d..0000000
Binary files a/translations_en.xlsx and /dev/null differ