Skip to content
This repository has been archived by the owner on Nov 9, 2017. It is now read-only.

Commit

Permalink
Emmett site save
Browse files Browse the repository at this point in the history
  • Loading branch information
jay kabuki authored and jaymoulin committed Jun 5, 2016
0 parents commit 58660c6
Show file tree
Hide file tree
Showing 5,629 changed files with 1,068,947 additions and 0 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
EMMETT pop-rock band SITE
113 changes: 113 additions & 0 deletions application/Bootstrap.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,113 @@
<?php
class Bootstrap extends Zend_Application_Bootstrap_Bootstrap {

protected function _initHeader() {
error_reporting(E_ALL|E_STRICT);
date_default_timezone_set ( 'Europe/Paris' );
mb_internal_encoding('UTF-8');
}

protected function _initRegistry() {
$registry = new Zend_Registry(array(), ArrayObject::ARRAY_AS_PROPS);
Zend_Registry::setInstance($registry);
return $registry;
}

protected function _initConfig() {
$config = $this->getOptions();
$this->bootstrap('registry');
$registry = $this->getResource('registry');
$registry->set ( 'config', $config );
return $config;
}

/*protected function _initDatabase() {
$this->bootstrap('registry');
$registry = $this->getResource('registry');
$dbResource = $this->getPluginResource('db');
if ($dbResource) {
$db = $dbResource->getDbAdapter();
$db->setFetchMode(Zend_Db::FETCH_OBJ);
$registry->database = $db;
Zend_Db_Table::setDefaultAdapter($db);
return $registry->database;
}
}*/

protected function _initView() {
$view = new Zend_View();
$view->doctype(Zend_View_Helper_Doctype::HTML5);
$view->headTitle('EMMETT')->setSeparator(' | ');
$view->headMeta('FemtoPixel', 'author');
$view->headMeta('UTF-8', 'UTF-8', 'charset');
$view->headMeta('IE=edge,chrome=1', 'X-UA-Compatible');
$view->headMeta('height=device-height, width=device-width, initial-scale=1.0', 'viewport');
$view->navigation($this->getResource('nav'));

$this->bootstrap('config');
$config = $this->getResource('config');
if (isset($config['views']['helpers']) && count($config['views']['helpers'])) {
foreach ($config['views']['helpers'] as $prefix) {
$view->addHelperPath(str_replace('_', '/', $prefix), $prefix);
}
}
if (isset($config['appname']) && $config['appname']) {
$view->addHelperPath($config['appname'] . '/View/Helper', $config['appname'] . '_View_Helper');
}
$viewRenderer = new Zend_Controller_Action_Helper_ViewRenderer();
$viewRenderer->setView($view);
Zend_Controller_Action_HelperBroker::addHelper($viewRenderer);
return ($viewRenderer);
}

/* protected function _initRegistercache() {
$this->bootstrap('registry');
$this->bootstrap('config');
$registry = $this->getResource('registry');
$config = $this->getResource('config');
if ($config['cache']['active']) {
if ($this->getPluginResource('cachemanager')) {
$cache = $this->getPluginResource('cachemanager')->getCacheManager()->getCache('apc');
if ($cache) {
Zend_Db_Table_Abstract::setDefaultMetadataCache($cache);
$registry->set ( 'cache', $cache );
}
}
}
}*/

/*protected function _initSearch() {
Zend_Search_Lucene_Analysis_Analyzer::setDefault(new Zend_Search_Lucene_Analysis_Analyzer_Common_Utf8Num_CaseInsensitive());
//Permit number search *alleluia*
return $this;
}*/

protected function _initLayout() {
$this->bootstrap('config');
$config = $this->getResource('config');
$layout = Zend_Layout::startMvc($config['views']);
return $layout;
}

protected function _initPaginator() {
Zend_Paginator::setDefaultScrollingStyle('Elastic');
Zend_View_Helper_PaginationControl::setDefaultViewPartial('paginator.phtml');
}

protected function _initFront() {
// setup controller
$frontController = Zend_Controller_Front::getInstance ();

// load routing rules configuration
try {
$config = new Zend_Config_Ini ( ROOT_DIR . '/application/routes.ini', 'all' );
$router = $frontController->getRouter ();
$router->addConfig ( $config, 'routes' );

$frontController->setRouter ( $router );
} catch (Zend_Exception $e) {
}
return $frontController;
}
}
28 changes: 28 additions & 0 deletions application/acl.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
[roles]

guest = null
redactor = null
admin = null

[resources]
; définition des ressources dans le module par défaut
index = null
error = null

; definition des ressources dans le module backoffice
backoffice_index = null

[guest]
allow.index = null
allow.error = null

;allow module_controller = action1,action2
allow.backoffice_index = login

;redactor herite de guest
[redactor : guest]
allow.backoffice_index = null
deny.backoffice_index = login

[admin : redactor]
deny.backoffice_index = nothing ;delete the parent deny :)
129 changes: 129 additions & 0 deletions application/application.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1,129 @@
[settings]
phpSettings.display_errors = true
phpSettings.display_startup_errors = true
;phpSettings.memory_limit = 512M

cache.active = off

language.active = on
languages.english = en
languages.french = fr

minify.active = on
cache.active = on

appname = Emmett

;database configuration
;resources.db.params.host = localhost
;resources.db.params.username = orange_tribe2010
;resources.db.params.password = "BEbaRmeHybzXUxZv"
;resources.db.params.dbname = orange_tribe2010

;resources.frontcontroller.plugins.auth = Marcel_Plugin_Auth
;resources.frontcontroller.plugins.staticfier = Marcel_Plugin_Staticfier
;resources.frontcontroller.plugins.expire = Marcel_Plugin_Expire

imageresizer.formats.selectbrand.width = 16
imageresizer.formats.selectbrand.height = 16
imageresizer.formats.selectbrand.cropped = true
imageresizer.formats.selectbrand.full = auto
imageresizer.formats.selectbrand.default = ROOT_DIR "/www/img/back/mp3.gif"

;; DO NOT MODIFY BEHIND THIS LINE UNLESS YOU KNOW WHAT YOU'RE DOING
;; DO NOT MODIFY BEHIND THIS LINE UNLESS YOU KNOW WHAT YOU'RE DOING
;; DO NOT MODIFY BEHIND THIS LINE UNLESS YOU KNOW WHAT YOU'RE DOING
;; DO NOT MODIFY BEHIND THIS LINE UNLESS YOU KNOW WHAT YOU'RE DOING
;; DO NOT MODIFY BEHIND THIS LINE UNLESS YOU KNOW WHAT YOU'RE DOING
;; DO NOT MODIFY BEHIND THIS LINE UNLESS YOU KNOW WHAT YOU'RE DOING
;; DO NOT MODIFY BEHIND THIS LINE UNLESS YOU KNOW WHAT YOU'RE DOING
;; DO NOT MODIFY BEHIND THIS LINE UNLESS YOU KNOW WHAT YOU'RE DOING
;; DO NOT MODIFY BEHIND THIS LINE UNLESS YOU KNOW WHAT YOU'RE DOING
;; DO NOT MODIFY BEHIND THIS LINE UNLESS YOU KNOW WHAT YOU'RE DOING
;; DO NOT MODIFY BEHIND THIS LINE UNLESS YOU KNOW WHAT YOU'RE DOING

[common : settings]

includePaths.library = ROOT_DIR "/library"

autoloaderNamespaces.1 = "Marcel_"
autoloaderNamespaces.2 = "External_"

bootstrap.path = ROOT_DIR "/application/Bootstrap.php"
bootstrap.class = "Bootstrap"

;Declare plugins
resources.frontcontroller.plugins.firstaidbrowser = Emmett_Plugin_FirstAidBrowser
resources.frontcontroller.plugins.fightingfatepbrowser = Emmett_Plugin_FightingFateEpBrowser
resources.frontcontroller.plugins.newlogobrowser = Emmett_Plugin_NewLogoBrowser

resources.frontcontroller.plugins.boauth = Marcel_Backoffice_Plugin_Auth
resources.frontcontroller.plugins.ajax = Marcel_Plugin_Ajax
;resources.frontcontroller.plugins.encoding = Marcel_Plugin_Encoding
resources.frontcontroller.plugins.layout = Marcel_Plugin_Layout
resources.frontcontroller.plugins.locale = Marcel_Plugin_Locale

resources.frontcontroller.throwExceptions = true
resources.frontcontroller.params.disableOutputBuffering = true
resources.frontcontroller.moduleDirectory = ROOT_DIR "/application/modules"

;Allow modules, comment this line to set it off
resources.modules = On

;database configuration
;resources.db.adapter = Pdo_Mysql
;resources.db.params.charset = utf8

;layout configuration
views.layout = default
views.layoutPath = ROOT_DIR "/application/modules/:module/views/layouts"

views.helpers.marcel = Marcel_View_Helper
views.helpers.jquery = ZendX_JQuery_View_Helper

;cache life time in seconds
resources.cachemanager.file.frontend.name = Core
resources.cachemanager.file.frontend.options.lifetime = 7200 ; 2 Heures
resources.cachemanager.file.frontend.options.automatic_serialization = true
resources.cachemanager.file.frontend.options.cache_id_prefix = file

resources.cachemanager.file.backend.name = File
resources.cachemanager.file.backend.options.cache_dir = ROOT_DIR "/files/cache/"
resources.cachemanager.file.backend.options.hashed_directory_level = 2

;cache life time in seconds
resources.cachemanager.apc.frontend.name = Core
resources.cachemanager.apc.frontend.options.lifetime = 3600 ; 1 Heure
resources.cachemanager.apc.frontend.options.automatic_serialization = true
resources.cachemanager.apc.frontend.options.cache_id_prefix = metadata

resources.cachemanager.apc.backend.name = Apc


[dev : common]

resources.frontcontroller.throwExceptions = true
resources.frontcontroller.params.disableOutputBuffering = true

[preprod : common]

phpSettings.display_errors = true
phpSettings.display_startup_errors = true
resources.frontcontroller.throwExceptions = true
resources.frontcontroller.params.disableOutputBuffering = true

[prod : preprod]

phpSettings.display_errors = false
phpSettings.display_startup_errors = false
resources.frontcontroller.throwExceptions = false

[local : common]

;activate cache with on
cache.active = off

resources.frontcontroller.throwExceptions = true
resources.frontcontroller.params.disableOutputBuffering = true

[jay : local]
39 changes: 39 additions & 0 deletions application/backacl.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
[users]

;login monuser / password admin
marcel.password = "1A2Z3E4R"
marcel.role = "admin"

[roles]

guest = null
redactor = null
admin = null

[resources]
;controller_action = model1,model2
index_index = null
index_login = null
index_add = null
index_edit = null
index_list = null
index_search = null
index_delete = null

[guest]
;allow index_controller = action1,action2
allow.index_login = null

;redactor herite de guest
[redactor : guest]

[admin : redactor]
allow.index_index = null
allow.index_login = null
allow.index_add = null
allow.index_edit = null
allow.index_list = null
allow.index_search = null
allow.index_delete = null

;deny.index_list = dt_event
45 changes: 45 additions & 0 deletions application/backdefinition.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
[settings]

;use the autodiscover and retrieve assign names from the models section - else loads only what is described in models
autodiscover = off

;if form bind is on, applies section forms after the autodiscover - else, will construct the form with defined rules for forms section
formbind = on

[models]
;insert table name (in case of autodiscover) else model name / = "Label to display"

dt_registration = "Invitation"
dt_event = "Evénement"
[deny]
;this section will disallow described models for use in backoffice

;dt_invitation = null

[forms]

;delete the element/validator etc... selected
;delete.dt_invitation.elements.inv_id_pk = null
delete.dt_registration.elements.rgt_id_pk = null

;replace the element type
;dt_registration.elements.rgt_id_pk.type = hidden
;dt_registration.elements.rgt_id_pk.options.label = Primary

dt_registration.elements.evt_id_fk.type = customSelect
dt_registration.elements.evt_id_fk.options.label = "Evénement"
dt_registration.elements.evt_id_fk.options.tableName = dt_event
dt_registration.elements.evt_id_fk.options.keyField = evt_id_pk
dt_registration.elements.evt_id_fk.options.valueField = evt_label

;FilePreview
;replace the element type
dt_registration.elements.rgt_text.type = filePreview
dt_registration.elements.rgt_text.options.label = File Upload
dt_registration.elements.rgt_text.options.required = true
dt_registration.elements.rgt_text.options.destination = "C:\\wamp\\www\\orange_20110415_cineday\\trunk\\avant_premiere\\file"
dt_registration.elements.rgt_text.options.render.base = "../../../../../../../../../../../../../../../orange_20110415_cineday/trunk/avant_premiere/file"
;dt_registration.elements.rgt_text.options.render.placement = PREPEND

dt_registration.elements.rgt_date.type = datePicker
dt_registration.elements.rgt_date.options.label = Date
Loading

0 comments on commit 58660c6

Please sign in to comment.