MMCT TEAM
Server IP : 103.53.40.154  /  Your IP : 18.188.219.131
Web Server : Apache
System : Linux md-in-35.webhostbox.net 4.19.286-203.ELK.el7.x86_64 #1 SMP Wed Jun 14 04:33:55 CDT 2023 x86_64
User : ppcad7no ( 715)
PHP Version : 8.2.25
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON
Directory (0755) :  /var/softaculous/phpsch/../mootools/../openx/../slims/../ninja4/../sitecake/../myt/

[  Home  ][  C0mmand  ][  Upload File  ]

Current File : //var/softaculous/phpsch/../mootools/../openx/../slims/../ninja4/../sitecake/../myt/main.php
<?php

return array(
    'basePath' => dirname(__FILE__) . DIRECTORY_SEPARATOR . '..',
    'name' => '[[site_name]]',
    'preload' => array('log'),
    // autoloading model and component classes
    'import' => array(
        'application.models.*',
        'application.components.*',
        'ext.easyimage.EasyImage',
        'ext.EExcelView',
        'ext.TaskExcelView',
    ),
    // i18n
    'language' => '[[language]]',
    'sourceLanguage' => 'en',
    'theme' => 'fluid',
    'modules' => array(
        'gii' => array(
            'class' => 'system.gii.GiiModule',
            'password' => 'Ah!',
            'ipFilters' => array('127.0.0.1', '::1', '*'),
        ),
    ),
    // application components
    'components' => array(
        'widgetFactory' => array(
            'widgets' => array(
                'CLinkPager' => array(
                    'cssFile' => false,
                    'header' => false
                )
            )
        ),
        'user' => array(
            'class' => 'RWebUser',
            'allowAutoLogin' => true,
        ),
        'cache' => array(
            'class' => 'system.caching.CFileCache',
        ),
        'counter' => array(
            'class' => 'ext.mySession.UserCounter',
        ),
        'mail' => array(
            'class' => 'ext.yii-mail.YiiMail',
            'transportType' => 'php',
            'logging' => false,
            'dryRun' => false
        ),
        
          'urlManager' => array(
          'urlFormat' => 'path',
          'showScriptName' => false,
          'rules' => array(
          '<controller:\w+>/<id:\d+>' => '<controller>/view',
          '<controller:\w+>/<action:\w+>/<id:\d+>' => '<controller>/<action>',
          '<controller:authItem>/<action:\w+>/<id:(?:[a-zA-Z0-9]+[ ]?)+[a-zA-Z0-9]+>' => '<controller>/<action>', //this is only for auth manager
          '<controller:\w+>/<action:\w+>' => '<controller>/<action>',
          '<controller:charge>/<action:create>/<month:[\w-]+>/<user:\d+>/<project:\d+>' => '<controller>/<action>', //custom rule for months
          ),
          ),
          
        'db' => array(
            'connectionString' => 'mysql:host=[[softdbhost]];dbname=[[softdb]]',
            'emulatePrepare' => true,
            'username' => '[[softdbuser]]',
            'password' => '[[softdbpass]]',
            'tablePrefix' => '[[dbprefix]]',
            'charset' => 'utf8',
            'enableProfiling' => true,
            'enableParamLogging' => true,
        ),
        'authManager' => array(
            'class' => 'CDbAuthManager',
            'connectionID' => 'db',
            'itemTable' => '{{auth_item}}',
            'itemChildTable' => '{{auth_item_child}}',
            'assignmentTable' => '{{auth_assignment}}',
        ),
        'errorHandler' => array(
            'errorAction' => 'site/error',
        ),
        'log' => array(
            'class' => 'CLogRouter',
            'routes' => array(
                array(
                    'class' => 'CFileLogRoute',
                    'levels' => 'error, warning',
                ),
                array(
                    'class' => 'ext.yii-debug-toolbar.YiiDebugToolbarRoute',
                    'ipFilters' => array('127.0.0.1', '*'),
                ),
            ),
        ),
        'session' => array(
            'class' => 'ext.mySession.DbHttpSession',
            'connectionID' => 'db',
            'sessionTableName' => '{{session}}',
            'autoCreateSessionTable' => false,
            'timeout' => 3600
        ),
        'format' => array(
            'class' => 'ELocalizedFormatter',
        ),
        'easyImage' => array(
            'class' => 'application.extensions.easyimage.EasyImage'
        ),
        'mega' => array(
            'class' => 'application.extensions.yii-mega-api.Mega'
        ),
        'messages' => array(
            'class' => 'CPhpMessageSource',
            'forceTranslation' => true,
            'language' => 'en',
            'cachingDuration' => 604800, // 1 week
        ),
    ),
    'params' => require(dirname(__FILE__) . '/params.php'),
);

MMCT - 2023