--- /dev/null
+# PHP Configuration
+<IfModule mod_php5.c>
+ php_value post_max_size "128M"
+ php_value upload_max_filesize "128M"
+ php_value date.timezone "Europe/Paris"
+ php_flag session.use_trans_sid off
+ php_flag magic_quotes_gpc off
+ php_flag magic_quotes_runtime off
+ php_flag magic_quotes_sybase off
+</IfModule>
+
+# Specific OVH Environnement variables
+<IfModule mod_env.c>
+ SetEnv PHP_VER 5_4
+ SetEnv ZEND_OPTIMIZER 1
+ SetEnv REGISTER_GLOBALS 0
+ SetEnv MAGIC_QUOTES 0
+ SetEnv SESSION_USE_TRANS_SID 0
+</IfModule>
+
+# Rewrite for Zend Framework
+<IfModule mod_rewrite.c>
+ Options +FollowSymlinks
+ RewriteEngine on
+ RewriteBase /
+ # Redirection to www. subdomain
+ RewriteCond %{HTTP_HOST} ^example.com$
+ RewriteRule ^(.*)$ http://www.example.com/$1 [R=301,L]
+ # Protect framework
+ RewriteRule ^framework/.*$ - [F]
+ RewriteRule ^.*\.ini$ - [F]
+ # Redirect auth header to env
+ RewriteRule ^.*$ - [E=REMOTE_USER:%{HTTP:Authorization}]
+ # Skip static files
+ RewriteRule ^css/ - [NC,L]
+ RewriteRule ^js/ - [NC,L]
+ RewriteRule ^images/ - [NC,L]
+ RewriteRule ^files/ - [NC,L]
+ # Redirect CMS files to the right URL
+ RewriteRule ^([a-f0-9]{6,})-([a-z0-9-._])([a-z0-9-._])([a-z0-9-._]*)$ files/$2/$3/$1-$2$3$4 [NC,L]
+ # Ignore static files or directories
+ RewriteCond %{REQUEST_FILENAME} -s [OR]
+ RewriteCond %{REQUEST_FILENAME} -l [OR]
+ RewriteCond %{REQUEST_FILENAME} -d
+ RewriteRule ^.*$ - [NC,L]
+ # Finally, redirect all other cases to the index.php
+ RewriteRule ^.*$ index.php [NC,L]
+</IfModule>
+
+<IfModule mod_headers.c>
+ Header Set Cache-Control "max-age=2592000"
+ Header Set X-UA-Compatible "IE=edge"
+</IfModule>
+
+# Mime types
+<IfModule mod_mime.c>
+ AddType video/ogg .ogm
+ AddType video/ogg .ogv
+ AddType video/ogg .ogg
+ AddType video/mp4 .mp4
+ AddType video/webm .webm
+ AddType image/svg+xml .svg
+ AddType image/svg+xml .svgz
+ AddType application/json .json
+ AddType application/vnd.ms-fontobject .eot
+ AddType application/octet-stream .otf
+ AddType application/octet-stream .ttf
+ AddType application/x-font-woff .woff
+ AddType application/font-woff2 .woff2
+ AddType text/cache-manifest .appcache
+ AddType text/x-component .htc
+
+ AddEncoding gzip svgz
+</IfModule>
+
+<IfModule mod_expires.c>
+ ExpiresByType text/cache-manifest "access plus 0 seconds"
+</IfModule>
+
+# Output compression
+<IfModule mod_deflate.c>
+ SetOutputFilter DEFLATE
+ SetEnvIfNoCase Request_URI \.(?:gif|jpe?g|png|swf|zip|exe|mp3|f4v|mp4|flv|gz|pdf|swc|ogv|ogm|ogg|webm|svgz|eot|otf|ttf|woff)$ no-gzip dont-vary
+
+ <IfModule mod_headers.c>
+ Header append Vary User-Agent
+ </IfModule>
+
+ BrowserMatch ^Mozilla/4 gzip-only-text/html
+ BrowserMatch ^Mozilla/4\.0[678] no-gzip
+ BrowserMatch \bMSIE !no-gzip !gzip-only-text/html
+</IfModule>
+
+# Set Default Charset
+AddDefaultCharset UTF-8
\ No newline at end of file
--- /dev/null
+app.engine=php\r
+app.engine.version=5.5\r
+http.firewall=none\r
+environment=development
\ No newline at end of file
--- /dev/null
+[.ShellClassInfo]\r
+IconResource=H:\Works\ZendSample\images\favicon\favicon.ico,0\r
--- /dev/null
+<?php
+
+class Bootstrap extends CubeIT_Bootstrap {
+
+ protected function _initMinimum() {
+ parent::_initMinimum();
+ // If a project with html display (don't activate by default for web services apps)
+ $this->bootstrap('doctype');
+ $this->bootstrap('scripts');
+ }
+
+ /**
+ *
+ * @return array
+ */
+ public function getCMSTemplates() {
+ $templates = parent::getCMSTemplates();
+ return $templates;
+ }
+
+ function __destroy() {
+ endProfile();
+ }
+
+}
--- /dev/null
+[production]
+dev = false
+
+minify.js = true
+minify.css = true
+
+bin.mysqldump = /usr/bin/mysqldump
+bin.mysql = /usr/bin/mysql
+bin.zip = /usr/bin/zip
+bin.unzip = /usr/bin/unzip
+;bin.imagemagick=convert
+bin.cp = /bin/cp
+bin.rm = /bin/rm
+
+appnamespace = "ZendSample"
+
+timezone = 'Europe/Paris'
+
+session.lifetime = 31536000 ;1 year
+session.adapter = cache
+
+webhost = www.
+
+database.adapter = pdo_mysql
+database.params.host = localhost
+database.params.username = $username
+database.params.password = $password
+database.params.dbname = $username
+
+;former.database.adapter = pdo_mysql
+;former.database.params.host =
+;former.database.params.username =
+;former.database.params.password =
+;former.database.params.dbname =
+
+;former.home =
+
+seo.universalAnalytics =
+seo.google =
+seo.bing =
+
+navigation.containers[] = 0;
+;navigation.containers[]=-1;
+navigation.containers[] = -2;
+navigation.containers[] = -3;
+
+locales.fr =
+;locales.en =
+
+
+acl.perpage = true
+acl.roles[] = superadmin
+acl.roles[] = admin
+
+mail.test = APPLICATION_PATH "/../data/email/test"
+
+compat_ie = 8
+
+[testing : production]
+
+dev = true
+
+seo.universalAnalytics =
+
+;httpauth.username = username
+;httpauth.password = password
+
+robots = false
+
+webhost = $devdomain
\ No newline at end of file
--- /dev/null
+[production]
--- /dev/null
+<?php
+
+class AdminController extends CubeIT_Controller_Admin_AdminController {
+
+}
+
--- /dev/null
+<?php
+
+class AdminajaxController extends CubeIT_Controller_Admin_AdminajaxController {
+
+}
+
+?>
--- /dev/null
+<?php
+
+class AdminajaxpopupController extends CubeIT_Controller_Admin_AdminajaxpopupController {
+
+}
+
+?>
--- /dev/null
+<?php
+
+class AjaxController extends CubeIT_Controller_AjaxController {
+
+
+
+}
+
+?>
--- /dev/null
+<?php
+
+class AjaxpopupController extends CubeIT_Controller_AjaxpopupController {
+
+
+}
+
+?>
--- /dev/null
+<?php
+
+class DebugController extends CubeIT_Controller_Admin_DebugController {
+
+}
+
+?>
--- /dev/null
+<?php
+
+class ErrorController extends CubeIT_Controller_ErrorController
+{
+}
+
--- /dev/null
+<?php
+
+class IndexController extends CubeIT_Controller_IndexController {
+
+}
+
--- /dev/null
+<?php
+
+class MaintenanceController extends CubeIT_Controller_MaintenanceController {
+}
+
+?>
--- /dev/null
+<?php
+
+class ZendSample_Form_CMS extends CubeIT_Form_CMS {
+ public function init(){
+ parent::init();
+ }
+}
+
+?>
--- /dev/null
+<?php
+
+class ZendSample_Form_CMS_Home extends ZendSample_Form_CMS{
+ public function init(){
+ parent::init();
+ }
+}
+
+?>
--- /dev/null
+<?php
+
+class ZendSample_Form_Settings extends CubeIT_Form_Settings {
+
+ public function init() {
+ parent::init();
+
+ $this->setTitle('Edition des paramètres du site');
+
+ $longTitle = new Zend_Form_Element_Text('longTitle');
+ $longTitle->setLabel('Titre long par défaut');
+ $this->addElementLocalized($longTitle);
+
+ $description = new CubeIT_Form_Element_Textarea('description');
+ $description->setLabel('Description de la page par défaut');
+ $this->addElementLocalized($description);
+ }
+
+}
+
+?>
--- /dev/null
+<?php
+
+class ZendSample_Form_User extends CubeIT_Form_User {
+ public function init(){
+ parent::init();
+ }
+}
+
+?>
--- /dev/null
+<?php
+
+if ($this->acl()->isAllowed('edition')) {
+ $this->headScript()->addCommonsAdmin();
+}
+$this->headScript()->addIEConditionnals();
+$this->headScript()->appendFile('/js/common.js');
+$this->headLink()->appendStylesheet('/less/common.less', 'all');
+
+/**
+ * Exemples d'intégrations de webfonts
+ *
+ * // Font déclarée dans une css locale
+ * $fonts = array('custom' => array('families' => array('Roboto'), 'urls' => array('/css/fonts/fonts.css')));
+ * // Google Font
+ * $fonts = array('google' => array('families' => array('Roboto+Condensed:400,300,700:latin')));
+ * $this->headScript()->addWebFont($fonts);
+ *
+ */
+profile(__FILE__, __LINE__, 'Before rendering body');
+$res = $this->htmlPage($this->render('common/body.phtml'));
+profile(__FILE__, __LINE__, 'Body rendered');
+echo $res;
+endProfile();
--- /dev/null
+<?php
+
+class ZendSample_Model_Content extends CubeIT_Model {
+
+ protected $id;
+ protected $name;
+ protected $value;
+
+}
+
+?>
--- /dev/null
+<?php
+
+class ZendSample_Model_User extends CubeIT_Model_User {
+
+}
+
+?>
--- /dev/null
+<?php
+$translations = array (
+);
\ No newline at end of file
--- /dev/null
+<?php
+$translations = array (
+
+);
\ No newline at end of file
--- /dev/null
+<?php\r
+\r
+$translations = array('dummy' => 'dummy');\r
--- /dev/null
+<?php
+
+$start = microtime(true);
+ini_set('log_errors', '1');
+ini_set('error_log', dirname(__FILE__) . '/log/php_error.log');
+
+if ($_SERVER['HTTP_HOST'] == '$devdomain') {
+ define('APPLICATION_ENV', 'testing');
+} else if ($_SERVER['HTTP_HOST'] == 'www.') {
+ define('APPLICATION_ENV', 'production');
+}
+
+include dirname(__FILE__) . '/CubeIT/common.php';