From 6afd7372075f4bb245b5f2b77a933a03361dbc61 Mon Sep 17 00:00:00 2001 From: "bruno@cubedesigners.com" Date: Fri, 17 Jan 2014 13:06:01 +0000 Subject: [PATCH] --- framework/application/configs/application.ini | 21 +++++++++---------- framework/application/models/User.php | 4 ++-- .../views/scripts/common/content.phtml | 10 +++++++++ .../views/scripts/common/footer.phtml | 4 ++++ .../views/scripts/common/header.phtml | 4 ++++ index.php | 6 +++--- 6 files changed, 33 insertions(+), 16 deletions(-) create mode 100644 framework/application/views/scripts/common/content.phtml create mode 100644 framework/application/views/scripts/common/footer.phtml create mode 100644 framework/application/views/scripts/common/header.phtml diff --git a/framework/application/configs/application.ini b/framework/application/configs/application.ini index 7a736c4..febcaa7 100644 --- a/framework/application/configs/application.ini +++ b/framework/application/configs/application.ini @@ -8,11 +8,11 @@ bin.mysqldump = /usr/bin/mysqldump bin.mysql = /usr/bin/mysql bin.zip = /usr/bin/zip bin.unzip = /usr/bin/unzip -;bin.imagemagick=convert +bin.imagemagick=convert bin.cp = /bin/cp bin.rm = /bin/rm -appnamespace = "ZendSample" +appnamespace = "Cubedesigners" timezone = 'Europe/Paris' @@ -23,9 +23,9 @@ webhost = www. database.adapter = pdo_mysql database.params.host = localhost -database.params.username = $username -database.params.password = $password -database.params.dbname = $username +database.params.username = cubev6 +database.params.password = Y0k3C5c51N +database.params.dbname = cubev6 ;former.database.adapter = pdo_mysql ;former.database.params.host = @@ -45,10 +45,9 @@ navigation.containers[]=-2; navigation.containers[]=-3; locales.fr = -;locales.en = +locales.en = - -acl.perpage = true +acl.perpage = false acl.roles[] = superadmin acl.roles[] = admin @@ -58,7 +57,7 @@ mail.test = APPLICATION_PATH "/../data/email/test" dev = true -;httpauth.username = username -;httpauth.password = password +httpauth.username = cubedesigners +httpauth.password = cubedesigners -webhost = $devdomain \ No newline at end of file +webhost = cubev6.dev.cubedesigners.com \ No newline at end of file diff --git a/framework/application/models/User.php b/framework/application/models/User.php index 8709809..c3c84ac 100644 --- a/framework/application/models/User.php +++ b/framework/application/models/User.php @@ -1,7 +1,7 @@ diff --git a/framework/application/views/scripts/common/content.phtml b/framework/application/views/scripts/common/content.phtml new file mode 100644 index 0000000..b5a2dc8 --- /dev/null +++ b/framework/application/views/scripts/common/content.phtml @@ -0,0 +1,10 @@ +layout()->content . "\n"; + +echo $this->render('common/header.phtml'); +echo '
'; +echo $content; +echo '
'; +echo $this->render('common/footer.phtml'); +?> \ No newline at end of file diff --git a/framework/application/views/scripts/common/footer.phtml b/framework/application/views/scripts/common/footer.phtml new file mode 100644 index 0000000..4cf4158 --- /dev/null +++ b/framework/application/views/scripts/common/footer.phtml @@ -0,0 +1,4 @@ +headLink()->appendStylesheet('/less/footer.less'); +?> + \ No newline at end of file diff --git a/framework/application/views/scripts/common/header.phtml b/framework/application/views/scripts/common/header.phtml new file mode 100644 index 0000000..7d15c25 --- /dev/null +++ b/framework/application/views/scripts/common/header.phtml @@ -0,0 +1,4 @@ +headLink()->appendStylesheet('/less/header.less'); +?> + \ No newline at end of file diff --git a/index.php b/index.php index 8c3ee78..f859f1a 100644 --- a/index.php +++ b/index.php @@ -4,10 +4,10 @@ $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'); +if ($_SERVER['HTTP_HOST'] == 'cubev6.dev.cubedesigners.com') { + define('APPLICATION_ENV', 'testing'); } else if ($_SERVER['HTTP_HOST'] == 'www.') { - define('APPLICATION_ENV', 'production'); + define('APPLICATION_ENV', 'production'); } include dirname(__FILE__) . '/CubeIT/common.php'; -- 2.39.5