From: vincent@cubedesigners.com Date: Fri, 22 Jan 2016 15:13:58 +0000 (+0000) Subject: Projet crée X-Git-Url: http://git.cubedesigners.com/?a=commitdiff_plain;h=f0dd102c7bf6e5b597693d506a76c62fae33f011;p=fluidbook-v3.git Projet crée --- f0dd102c7bf6e5b597693d506a76c62fae33f011 diff --git a/.htaccess b/.htaccess new file mode 100644 index 0000000..a130dfb --- /dev/null +++ b/.htaccess @@ -0,0 +1,95 @@ +# PHP Configuration + + 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 + + +# Specific OVH Environnement variables + + SetEnv PHP_VER 5_4 + SetEnv ZEND_OPTIMIZER 1 + SetEnv REGISTER_GLOBALS 0 + SetEnv MAGIC_QUOTES 0 + SetEnv SESSION_USE_TRANS_SID 0 + + +# Rewrite for Zend Framework + + 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] + + + + Header Set Cache-Control "max-age=2592000" + Header Set X-UA-Compatible "IE=edge" + + +# Mime types + + 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 + + + + ExpiresByType text/cache-manifest "access plus 0 seconds" + + +# Output compression + + 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 + + + Header append Vary User-Agent + + + BrowserMatch ^Mozilla/4 gzip-only-text/html + BrowserMatch ^Mozilla/4\.0[678] no-gzip + BrowserMatch \bMSIE !no-gzip !gzip-only-text/html + + +# Set Default Charset +AddDefaultCharset UTF-8 \ No newline at end of file diff --git a/.ovhconfig b/.ovhconfig new file mode 100644 index 0000000..e976c42 --- /dev/null +++ b/.ovhconfig @@ -0,0 +1,4 @@ +app.engine=php +app.engine.version=5.5 +http.firewall=none +environment=development \ No newline at end of file diff --git a/desktop.ini b/desktop.ini new file mode 100644 index 0000000..648ef12 --- /dev/null +++ b/desktop.ini @@ -0,0 +1,2 @@ +[.ShellClassInfo] +IconResource=H:\Works\ZendSample\images\favicon\favicon.ico,0 diff --git a/framework/application/Bootstrap.php b/framework/application/Bootstrap.php new file mode 100644 index 0000000..e64d4ab --- /dev/null +++ b/framework/application/Bootstrap.php @@ -0,0 +1,25 @@ +bootstrap('doctype'); + $this->bootstrap('scripts'); + } + + /** + * + * @return array + */ + public function getCMSTemplates() { + $templates = parent::getCMSTemplates(); + return $templates; + } + + function __destroy() { + endProfile(); + } + +} diff --git a/framework/application/configs/application.ini b/framework/application/configs/application.ini new file mode 100644 index 0000000..2aac767 --- /dev/null +++ b/framework/application/configs/application.ini @@ -0,0 +1,70 @@ +[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 diff --git a/framework/application/configs/settings.ini b/framework/application/configs/settings.ini new file mode 100644 index 0000000..bf3746a --- /dev/null +++ b/framework/application/configs/settings.ini @@ -0,0 +1 @@ +[production] diff --git a/framework/application/controllers/AdminController.php b/framework/application/controllers/AdminController.php new file mode 100644 index 0000000..00b0235 --- /dev/null +++ b/framework/application/controllers/AdminController.php @@ -0,0 +1,6 @@ + diff --git a/framework/application/controllers/AdminajaxpopupController.php b/framework/application/controllers/AdminajaxpopupController.php new file mode 100644 index 0000000..2a1039b --- /dev/null +++ b/framework/application/controllers/AdminajaxpopupController.php @@ -0,0 +1,7 @@ + diff --git a/framework/application/controllers/AjaxController.php b/framework/application/controllers/AjaxController.php new file mode 100644 index 0000000..46730e3 --- /dev/null +++ b/framework/application/controllers/AjaxController.php @@ -0,0 +1,6 @@ + diff --git a/framework/application/controllers/DebugController.php b/framework/application/controllers/DebugController.php new file mode 100644 index 0000000..2a00946 --- /dev/null +++ b/framework/application/controllers/DebugController.php @@ -0,0 +1,7 @@ + diff --git a/framework/application/controllers/ErrorController.php b/framework/application/controllers/ErrorController.php new file mode 100644 index 0000000..be15621 --- /dev/null +++ b/framework/application/controllers/ErrorController.php @@ -0,0 +1,6 @@ + diff --git a/framework/application/forms/CMS.php b/framework/application/forms/CMS.php new file mode 100644 index 0000000..125bf48 --- /dev/null +++ b/framework/application/forms/CMS.php @@ -0,0 +1,9 @@ + diff --git a/framework/application/forms/CMS/Home.php b/framework/application/forms/CMS/Home.php new file mode 100644 index 0000000..ae8a8e0 --- /dev/null +++ b/framework/application/forms/CMS/Home.php @@ -0,0 +1,9 @@ + diff --git a/framework/application/forms/Settings.php b/framework/application/forms/Settings.php new file mode 100644 index 0000000..d2baf42 --- /dev/null +++ b/framework/application/forms/Settings.php @@ -0,0 +1,21 @@ +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); + } + +} + +?> diff --git a/framework/application/forms/User.php b/framework/application/forms/User.php new file mode 100644 index 0000000..8f3fccf --- /dev/null +++ b/framework/application/forms/User.php @@ -0,0 +1,9 @@ + diff --git a/framework/application/layouts/scripts/layout.phtml b/framework/application/layouts/scripts/layout.phtml new file mode 100644 index 0000000..d43446c --- /dev/null +++ b/framework/application/layouts/scripts/layout.phtml @@ -0,0 +1,24 @@ +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(); diff --git a/framework/application/models/Content.php b/framework/application/models/Content.php new file mode 100644 index 0000000..df6a828 --- /dev/null +++ b/framework/application/models/Content.php @@ -0,0 +1,11 @@ + diff --git a/framework/application/models/User.php b/framework/application/models/User.php new file mode 100644 index 0000000..8709809 --- /dev/null +++ b/framework/application/models/User.php @@ -0,0 +1,7 @@ + diff --git a/framework/application/views/scripts/templates/home.phtml b/framework/application/views/scripts/templates/home.phtml new file mode 100644 index 0000000..e69de29 diff --git a/framework/languages/.php b/framework/languages/.php new file mode 100644 index 0000000..5030bee --- /dev/null +++ b/framework/languages/.php @@ -0,0 +1,3 @@ + 'dummy'); diff --git a/images/close.png b/images/close.png new file mode 100644 index 0000000..1f98bf5 Binary files /dev/null and b/images/close.png differ diff --git a/images/favicon/favicon-ios-114.png b/images/favicon/favicon-ios-114.png new file mode 100644 index 0000000..341f77c Binary files /dev/null and b/images/favicon/favicon-ios-114.png differ diff --git a/images/favicon/favicon-ios-120.png b/images/favicon/favicon-ios-120.png new file mode 100644 index 0000000..0e4c9c4 Binary files /dev/null and b/images/favicon/favicon-ios-120.png differ diff --git a/images/favicon/favicon-ios-144.png b/images/favicon/favicon-ios-144.png new file mode 100644 index 0000000..1fed203 Binary files /dev/null and b/images/favicon/favicon-ios-144.png differ diff --git a/images/favicon/favicon-ios-152.png b/images/favicon/favicon-ios-152.png new file mode 100644 index 0000000..34c21b6 Binary files /dev/null and b/images/favicon/favicon-ios-152.png differ diff --git a/images/favicon/favicon-ios-57.png b/images/favicon/favicon-ios-57.png new file mode 100644 index 0000000..9016e3c Binary files /dev/null and b/images/favicon/favicon-ios-57.png differ diff --git a/images/favicon/favicon-ios-72.png b/images/favicon/favicon-ios-72.png new file mode 100644 index 0000000..41f38c1 Binary files /dev/null and b/images/favicon/favicon-ios-72.png differ diff --git a/images/favicon/favicon-ios-76.png b/images/favicon/favicon-ios-76.png new file mode 100644 index 0000000..abf913e Binary files /dev/null and b/images/favicon/favicon-ios-76.png differ diff --git a/images/favicon/favicon.ico b/images/favicon/favicon.ico new file mode 100644 index 0000000..c6f0635 Binary files /dev/null and b/images/favicon/favicon.ico differ diff --git a/images/favicon/favicon.png b/images/favicon/favicon.png new file mode 100644 index 0000000..f9c9d49 Binary files /dev/null and b/images/favicon/favicon.png differ diff --git a/images/order/ASC.png b/images/order/ASC.png new file mode 100644 index 0000000..bc9fe55 Binary files /dev/null and b/images/order/ASC.png differ diff --git a/images/order/DESC.png b/images/order/DESC.png new file mode 100644 index 0000000..94c53d2 Binary files /dev/null and b/images/order/DESC.png differ diff --git a/index.php b/index.php new file mode 100644 index 0000000..8c3ee78 --- /dev/null +++ b/index.php @@ -0,0 +1,13 @@ +