]> _ Git - physioassist.git/commitdiff
Projet crée
authorvincent@cubedesigners.com <vincent@cubedesigners.com@f5622870-0f3c-0410-866d-9cb505b7a8ef>
Tue, 3 Mar 2015 17:59:51 +0000 (17:59 +0000)
committervincent@cubedesigners.com <vincent@cubedesigners.com@f5622870-0f3c-0410-866d-9cb505b7a8ef>
Tue, 3 Mar 2015 17:59:51 +0000 (17:59 +0000)
45 files changed:
.htaccess [new file with mode: 0644]
.ovhconfig [new file with mode: 0644]
desktop.ini [new file with mode: 0644]
framework/application/Bootstrap.php [new file with mode: 0644]
framework/application/configs/application.ini [new file with mode: 0644]
framework/application/configs/settings.ini [new file with mode: 0644]
framework/application/controllers/AdminController.php [new file with mode: 0644]
framework/application/controllers/AdminajaxController.php [new file with mode: 0644]
framework/application/controllers/AdminajaxpopupController.php [new file with mode: 0644]
framework/application/controllers/AjaxController.php [new file with mode: 0644]
framework/application/controllers/AjaxpopupController.php [new file with mode: 0644]
framework/application/controllers/DebugController.php [new file with mode: 0644]
framework/application/controllers/ErrorController.php [new file with mode: 0644]
framework/application/controllers/IndexController.php [new file with mode: 0644]
framework/application/controllers/MaintenanceController.php [new file with mode: 0644]
framework/application/forms/CMS.php [new file with mode: 0644]
framework/application/forms/CMS/Home.php [new file with mode: 0644]
framework/application/forms/Settings.php [new file with mode: 0644]
framework/application/forms/User.php [new file with mode: 0644]
framework/application/layouts/scripts/layout.phtml [new file with mode: 0644]
framework/application/models/Content.php [new file with mode: 0644]
framework/application/models/User.php [new file with mode: 0644]
framework/application/views/scripts/templates/home.phtml [new file with mode: 0644]
framework/languages/.php [new file with mode: 0644]
framework/languages/en.php [new file with mode: 0644]
framework/languages/fr.php [new file with mode: 0644]
images/close.png [new file with mode: 0644]
images/favicon/favicon-ios-114.png [new file with mode: 0644]
images/favicon/favicon-ios-120.png [new file with mode: 0644]
images/favicon/favicon-ios-144.png [new file with mode: 0644]
images/favicon/favicon-ios-152.png [new file with mode: 0644]
images/favicon/favicon-ios-57.png [new file with mode: 0644]
images/favicon/favicon-ios-72.png [new file with mode: 0644]
images/favicon/favicon-ios-76.png [new file with mode: 0644]
images/favicon/favicon.ico [new file with mode: 0644]
images/favicon/favicon.png [new file with mode: 0644]
images/order/ASC.png [new file with mode: 0644]
images/order/DESC.png [new file with mode: 0644]
index.php [new file with mode: 0644]
js/admin.js [new file with mode: 0644]
js/common.js [new file with mode: 0644]
less/admin.less [new file with mode: 0644]
less/common.less [new file with mode: 0644]
less/ie7.less [new file with mode: 0644]
less/ie8.less [new file with mode: 0644]

diff --git a/.htaccess b/.htaccess
new file mode 100644 (file)
index 0000000..a130dfb
--- /dev/null
+++ b/.htaccess
@@ -0,0 +1,95 @@
+# 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
diff --git a/.ovhconfig b/.ovhconfig
new file mode 100644 (file)
index 0000000..e976c42
--- /dev/null
@@ -0,0 +1,4 @@
+app.engine=php\r
+app.engine.version=5.5\r
+http.firewall=none\r
+environment=development
\ No newline at end of file
diff --git a/desktop.ini b/desktop.ini
new file mode 100644 (file)
index 0000000..648ef12
--- /dev/null
@@ -0,0 +1,2 @@
+[.ShellClassInfo]\r
+IconResource=H:\Works\ZendSample\images\favicon\favicon.ico,0\r
diff --git a/framework/application/Bootstrap.php b/framework/application/Bootstrap.php
new file mode 100644 (file)
index 0000000..e64d4ab
--- /dev/null
@@ -0,0 +1,25 @@
+<?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();
+       }
+
+}
diff --git a/framework/application/configs/application.ini b/framework/application/configs/application.ini
new file mode 100644 (file)
index 0000000..2aac767
--- /dev/null
@@ -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 (file)
index 0000000..bf3746a
--- /dev/null
@@ -0,0 +1 @@
+[production]
diff --git a/framework/application/controllers/AdminController.php b/framework/application/controllers/AdminController.php
new file mode 100644 (file)
index 0000000..00b0235
--- /dev/null
@@ -0,0 +1,6 @@
+<?php
+
+class AdminController extends CubeIT_Controller_Admin_AdminController {
+
+}
+
diff --git a/framework/application/controllers/AdminajaxController.php b/framework/application/controllers/AdminajaxController.php
new file mode 100644 (file)
index 0000000..6998418
--- /dev/null
@@ -0,0 +1,7 @@
+<?php
+
+class AdminajaxController extends CubeIT_Controller_Admin_AdminajaxController {
+
+}
+
+?>
diff --git a/framework/application/controllers/AdminajaxpopupController.php b/framework/application/controllers/AdminajaxpopupController.php
new file mode 100644 (file)
index 0000000..2a1039b
--- /dev/null
@@ -0,0 +1,7 @@
+<?php
+
+class AdminajaxpopupController extends CubeIT_Controller_Admin_AdminajaxpopupController {
+       
+}
+
+?>
diff --git a/framework/application/controllers/AjaxController.php b/framework/application/controllers/AjaxController.php
new file mode 100644 (file)
index 0000000..7cef670
--- /dev/null
@@ -0,0 +1,9 @@
+<?php
+
+class AjaxController extends CubeIT_Controller_AjaxController {
+
+
+
+}
+
+?>
diff --git a/framework/application/controllers/AjaxpopupController.php b/framework/application/controllers/AjaxpopupController.php
new file mode 100644 (file)
index 0000000..842bc4d
--- /dev/null
@@ -0,0 +1,8 @@
+<?php
+
+class AjaxpopupController extends CubeIT_Controller_AjaxpopupController {
+
+
+}
+
+?>
diff --git a/framework/application/controllers/DebugController.php b/framework/application/controllers/DebugController.php
new file mode 100644 (file)
index 0000000..2a00946
--- /dev/null
@@ -0,0 +1,7 @@
+<?php
+
+class DebugController extends CubeIT_Controller_Admin_DebugController {
+       
+}
+
+?>
diff --git a/framework/application/controllers/ErrorController.php b/framework/application/controllers/ErrorController.php
new file mode 100644 (file)
index 0000000..be15621
--- /dev/null
@@ -0,0 +1,6 @@
+<?php
+
+class ErrorController extends CubeIT_Controller_ErrorController
+{
+}
+
diff --git a/framework/application/controllers/IndexController.php b/framework/application/controllers/IndexController.php
new file mode 100644 (file)
index 0000000..d4df531
--- /dev/null
@@ -0,0 +1,6 @@
+<?php
+
+class IndexController extends CubeIT_Controller_IndexController {
+       
+}
+
diff --git a/framework/application/controllers/MaintenanceController.php b/framework/application/controllers/MaintenanceController.php
new file mode 100644 (file)
index 0000000..24e8354
--- /dev/null
@@ -0,0 +1,6 @@
+<?php
+
+class MaintenanceController extends CubeIT_Controller_MaintenanceController {
+}
+
+?>
diff --git a/framework/application/forms/CMS.php b/framework/application/forms/CMS.php
new file mode 100644 (file)
index 0000000..125bf48
--- /dev/null
@@ -0,0 +1,9 @@
+<?php
+
+class ZendSample_Form_CMS extends CubeIT_Form_CMS {
+       public function init(){
+               parent::init();
+       }
+}
+
+?>
diff --git a/framework/application/forms/CMS/Home.php b/framework/application/forms/CMS/Home.php
new file mode 100644 (file)
index 0000000..ae8a8e0
--- /dev/null
@@ -0,0 +1,9 @@
+<?php
+
+class ZendSample_Form_CMS_Home extends ZendSample_Form_CMS{
+       public function init(){
+               parent::init();
+       }
+}
+
+?>
diff --git a/framework/application/forms/Settings.php b/framework/application/forms/Settings.php
new file mode 100644 (file)
index 0000000..d2baf42
--- /dev/null
@@ -0,0 +1,21 @@
+<?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);
+       }
+
+}
+
+?>
diff --git a/framework/application/forms/User.php b/framework/application/forms/User.php
new file mode 100644 (file)
index 0000000..8f3fccf
--- /dev/null
@@ -0,0 +1,9 @@
+<?php
+
+class ZendSample_Form_User extends CubeIT_Form_User {
+       public function init(){
+               parent::init();
+       }
+}
+
+?>
diff --git a/framework/application/layouts/scripts/layout.phtml b/framework/application/layouts/scripts/layout.phtml
new file mode 100644 (file)
index 0000000..d43446c
--- /dev/null
@@ -0,0 +1,24 @@
+<?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();
diff --git a/framework/application/models/Content.php b/framework/application/models/Content.php
new file mode 100644 (file)
index 0000000..df6a828
--- /dev/null
@@ -0,0 +1,11 @@
+<?php
+
+class ZendSample_Model_Content extends CubeIT_Model {
+
+       protected $id;
+       protected $name;
+       protected $value;
+
+}
+
+?>
diff --git a/framework/application/models/User.php b/framework/application/models/User.php
new file mode 100644 (file)
index 0000000..8709809
--- /dev/null
@@ -0,0 +1,7 @@
+<?php
+
+class ZendSample_Model_User extends CubeIT_Model_User {
+       
+}
+
+?>
diff --git a/framework/application/views/scripts/templates/home.phtml b/framework/application/views/scripts/templates/home.phtml
new file mode 100644 (file)
index 0000000..e69de29
diff --git a/framework/languages/.php b/framework/languages/.php
new file mode 100644 (file)
index 0000000..5030bee
--- /dev/null
@@ -0,0 +1,3 @@
+<?php
+$translations = array (
+);
\ No newline at end of file
diff --git a/framework/languages/en.php b/framework/languages/en.php
new file mode 100644 (file)
index 0000000..e591340
--- /dev/null
@@ -0,0 +1,4 @@
+<?php
+$translations = array (
+
+);
\ No newline at end of file
diff --git a/framework/languages/fr.php b/framework/languages/fr.php
new file mode 100644 (file)
index 0000000..32617e5
--- /dev/null
@@ -0,0 +1,3 @@
+<?php\r
+\r
+$translations = array('dummy' => 'dummy');\r
diff --git a/images/close.png b/images/close.png
new file mode 100644 (file)
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 (file)
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 (file)
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 (file)
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 (file)
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 (file)
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 (file)
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 (file)
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 (file)
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 (file)
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 (file)
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 (file)
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 (file)
index 0000000..8c3ee78
--- /dev/null
+++ b/index.php
@@ -0,0 +1,13 @@
+<?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';
diff --git a/js/admin.js b/js/admin.js
new file mode 100644 (file)
index 0000000..e69de29
diff --git a/js/common.js b/js/common.js
new file mode 100644 (file)
index 0000000..e69de29
diff --git a/less/admin.less b/less/admin.less
new file mode 100644 (file)
index 0000000..e69de29
diff --git a/less/common.less b/less/common.less
new file mode 100644 (file)
index 0000000..e69de29
diff --git a/less/ie7.less b/less/ie7.less
new file mode 100644 (file)
index 0000000..e69de29
diff --git a/less/ie8.less b/less/ie8.less
new file mode 100644 (file)
index 0000000..e69de29