/protected/config/main.php
PHP | 209 lines | 126 code | 31 blank | 52 comment | 0 complexity | 5f2498853762163912345b7a2c553070 MD5 | raw file
Possible License(s): GPL-3.0, BSD-3-Clause, AGPL-1.0, GPL-2.0, MIT, LGPL-2.1
- <?php
- /*
- * This file is part of
- * ____ _ __
- * / __ )__ ______ _(_) /_____ _____
- * / __ / / / / __ `/ / __/ __ \/ ___/
- * / /_/ / /_/ / /_/ / / /_/ /_/ / /
- * /_____/\__,_/\__, /_/\__/\____/_/
- * /____/
- * A Yii powered issue tracker
- * http://bitbucket.org/jacmoe/bugitor/
- *
- * Copyright (C) 2009 - 2013 Bugitor Team
- *
- * Permission is hereby granted, free of charge, to any person
- * obtaining a copy of this software and associated documentation files
- * (the "Software"), to deal in the Software without restriction,
- * including without limitation the rights to use, copy, modify, merge,
- * publish, distribute, sublicense, and/or sell copies of the Software,
- * and to permit persons to whom the Software is furnished to do so,
- * subject to the following conditions:
- * The above copyright notice and this permission notice shall be included
- * in all copies or substantial portions of the Software.
- *
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
- * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
- * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
- * IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
- * DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT
- * OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE
- * OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
- */
- ?>
- <?php
- // uncomment the following to define a path alias
- // Yii::setPathOfAlias('local','path/to/local-folder');
- // This is the main Web application configuration. Any writable
- // CWebApplication properties can be configured here.
- return array(
- 'basePath' => dirname(__FILE__) . DIRECTORY_SEPARATOR . '..',
- 'name' => 'Bugitor Issue Tracker',
- 'theme' => 'bootstrap',
- 'defaultController' => 'site',
- 'sourceLanguage' => 'en_gb',
- 'language' => 'en_US',
- 'preload' => array('log', 'maintenanceMode', 'bootstrap'),
- 'import' => array(
- 'application.models.*',
- 'application.components.*',
- 'application.components.textile.*',
- 'application.components.scm.*',
- 'application.modules.user.models.*',
- 'application.modules.user.components.*',
- 'application.modules.rights.components.*',
- 'application.helpers.*',
- 'application.widgets.*',
- 'ext.simpleWorkflow.*',
- 'ext.editable.*',
- 'ext.yii-mail.YiiMailMessage',
- ),
- 'modules' => array(
- 'admin',
- 'rights' => array(
- 'install' => false,
- 'appLayout'=>'application.modules.admin.views.layouts.main',
- ),
- 'user' => array(
- 'returnLogoutUrl' => array('/project/index'),
- 'returnUrl' => array('/site/index'),
- ),
- ),
- // application components
- 'components' => array(
- 'user' => array(
- // enable cookie-based authentication
- 'class' => 'RWebUser',
- 'allowAutoLogin' => true,
- 'loginUrl' => array('/user/login'),
- ),
- 'assetManager'=>array(
- // change the path on disk
- 'basePath' => dirname(__FILE__).'/../../yiiassets',
- 'baseUrl' => '/yiiassets',
- ),
- 'db' => require(dirname(__FILE__) . '/db.php'),
- 'bootstrap' => array(
- 'class' => 'ext.yiibooster.components.Bootstrap',
- 'responsiveCss' => false,
- 'coreCss' => false,
- 'yiiCss' => false,
- ),
- 'mail' => require(dirname(__FILE__) . '/mail.php'),
- 'log'=>array(
- 'class'=>'CLogRouter',
- 'routes'=>array(
- array(
- 'class'=>'CFileLogRoute',
- 'levels'=>'trace, info',
- 'categories'=>'bugitor.*',
- ),
- array(
- 'class'=>'CFileLogRoute',
- 'levels'=>'error, warning',
- ),
- ),
- ),
- 'textile' => array(
- 'class' => 'application.components.textile.Textilizer',
- ),
- 'mutex' => array(
- 'class' => 'ext.EMutex',
- ),
- 'file' => array(
- 'class' => 'ext.CFile',
- ),
- 'scm' => array(
- 'class' => 'SCM',
- ),
- 'maintenanceMode' => array(
- 'class' => 'ext.MaintenanceMode.MaintenanceMode',
- 'enabledMode' => file_exists(dirname(__FILE__).'/.maintenance'),
- 'message' => 'This site is currently undergoing maintenance. It should be up and running pretty soon.<br/>Thanks for your patience.',
- // allowed users
- 'users' => array('jacmoe', ),
- // allowed roles
- //'roles' => array('Administrator', ),
- ),
- 'config' => array(
- 'class' => 'application.extensions.EConfig',
- 'configTableName' => '{{config}}',
- 'autoCreateConfigTable' => false,
- 'strictMode' => false,
- ),
- 'cache' => array(
- 'class' => 'system.caching.CFileCache',
- ),
- 'swSource' => array(
- 'class' => 'application.extensions.simpleWorkflow.SWPhpWorkflowSource',
- ),
- 'timezonekeeper' => array (
- 'class' => 'application.components.TimeZoneKeeper',
- ),
- 'gravatar' => array (
- 'class' => 'application.helpers.Gravatar',
- ),
- 'authManager' => array(
- // The authorization manager (default: CDbAuthManager)
- 'class' => 'RDbAuthManager',
- // The database component used
- 'connectionID' => 'db',
- // The itemTable name (default: AuthItem)
- 'itemTable' => '{{auth_item}}',
- // The assignmentTable name (default: AuthAssignment)
- 'assignmentTable' => '{{auth_assignment}}',
- // The itemChildTable name (default: AuthItemChild)
- 'itemChildTable' => '{{auth_item_child}}',
- // The itemWeightTable (default: AuthItemWeight)
- 'rightsTable' => '{{auth_item_weight}}',
- ),
- 'urlManager' => array(
- 'urlFormat' => 'path',
- 'showScriptName' => false,
- 'rules' => require(dirname(__FILE__) . '/url_rules.php'),
- ),
- 'errorHandler' => array(
- // use 'site/error' action to display errors
- 'errorAction' => 'site/error',
- ),
- ),
- // application-level parameters that can be accessed
- // using Yii::app()->params['paramName']
- 'params' => array(
- // this is used in contact page
- //'adminEmail' => 'jacmoe@mail.dk',
- 'adminEmail' => 'tracker@tracker.ogitor.org',
- 'adminEmailText' => 'Bugitor Issue Tracker',
- ),
- );