AnonSec Team
Server IP : 127.0.0.1  /  Your IP : 127.0.0.1
Web Server : Apache/2.4.10 (Win32) OpenSSL/1.0.1i PHP/5.6.3
System : Windows NT WIN-R7LTCC7BPLI 6.3 build 9200 (Windows Server 2012 R2 Datacenter Edition) i586
User : GerbangSIPAD ( 0)
PHP Version : 5.6.3
Disable Function : NONE
MySQL : ON  |  cURL : ON  |  WGET : OFF  |  Perl : OFF  |  Python : OFF
Directory (0777) :  C:/xampp5/htdocs/sip-pad/protected/config/

[  Home  ][  C0mmand  ][  Upload File  ]

Current File : C:/xampp5/htdocs/sip-pad/protected/config/main.php
<?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. 
require_once dirname(__FILE__) . '/../components/Setting.php';
require_once dirname(__FILE__) . '/../components/DBSetting.php';
//Yii::setPathOfAlias('bootstrap', dirname(__FILE__).'/../extensions/bootstrap');
return array(
    'basePath' => dirname(__FILE__) . DIRECTORY_SEPARATOR . '..',
    'name' => 'Aplikasi SIP-PAD',

    // preloading 'log' component
    'preload' => array(
        'log',
        //'bootstrap', // preload the bootstrap component
    ),

    'aliases'=>array(
        'ktp'=>'D:/PAD UPLOAD/ktp',
        'lampiran'=>'D:/PAD UPLOAD/lampiran',
        'setoran'=>'D:/PAD UPLOAD/setoran',
    ),

    // autoloading model and component classes
    'import' => array(
        'application.models.*',
        'application.components.*',
        'application.modules.pad.*',
        'application.modules.pad.models.*',
        'application.modules.pad.components.*',
        'application.modules.pad.controllers.*',
        'application.modules.bphtb.*',
        'application.modules.bphtb.models.*',
        'application.modules.bphtb.components.*',
        'application.modules.bphtb.controllers.*',
        'application.modules.user.*',
        'application.modules.user.models.*',
        'application.modules.user.components.*',
        'application.modules.user.controllers.*',
        'application.modules.rights.*',
        'application.modules.rights.models.*',
        'application.modules.rights.components.*',
        'application.modules.rights.controllers*',
        'application.modules.Wewenang.*',
        'application.modules.Wewenang.components.*',
        'application.modules.Wewenang.models.*',


    ),
    'modules' => array(
        // uncomment the following to enable the Gii tool

        'gii' => array(
            'class' => 'system.gii.GiiModule',
            'password' => 'password',
            // If removed, Gii defaults to localhost only. Edit carefully to taste.
            'ipFilters' => array('127.0.0.1', '::1'),
            'generatorPaths' => array(//'ext.phpextjs' // load phpextjs extension
            ),
        ),
        'pad' => array(
            'modules' => array(
                'RefWilayah',
            ),
        ),
        'bphtb' => array(
            'modules' => array(
                'Pembayaran',
            ),
        ),
        'user' => array(
            'returnUrl' => array('/user/profile/profile?app=pad'),
            //'returnUrl' => array('/side/index'),
        ),
        'rights' => array(
            'install' => false, // Enables the installer.
        ),
        'Wewenang',
    ),

    // application components
    'components' => array(
        'globalvar' => array('class' => 'GlobalId'),
        'authUtils' => array('class' => 'AuthUtils'),
        'printUtils' => array('class' => 'PrintUtils'),
        'user' => array(
            // enable cookie-based authentication
            'allowAutoLogin' => true,
            //'class' => 'RWebUser',
            //'loginUrl' => array('/user/login'),
            //'returnUrl' => array('/user/profile'),
        ),
        'authManager' => array(
            'class' => 'RDbAuthManager',
            'itemTable' => 'wewenang.authitem',
            'assignmentTable' => 'wewenang.authassignment',
            'itemChildTable' => 'wewenang.authitemchild',
            'rightsTable' => 'wewenang.rights'
        ),
        'bootstrap' => array(
            //'class'=>'bootstrap.components.Bootstrap', // assuming you extracted bootstrap under extensions
            //'class' => 'ext.bootstrap.components.Bootstrap', // assuming you extracted bootstrap under extensions
        ),
        // uncomment the following to enable URLs in path-format
        'urlManager' => array(
            'urlFormat' => 'path',
            'rules' => array(
                //'<controller:\w+>/<id:\d+>'=>'<controller>/view',
                //'<controller:\w+>/<action:\w+>/<id:\d+>'=>'<controller>/<action>',
                //'<controller:\w+>/<action:\w+>'=>'<controller>/<action>',

                //'admin/<controller:\w+>/<action:\w+>/*' => 'admin/<controller>/<action>',
                //'<module:\w+>/<controller:\w+>/<action:\w+>' => '<module>/<controller>/<action>',
                //'admin/<controller:\w+>/<action:\w+>/*' => 'admin/<controller>/<action>',
                '<module:\w+>/<controller:\w+>/<action:\w+>' => '<module>/<controller>/<action>',
            ),
            'appendParams'=>false,
        ),
        /*'db'=>array(
            'connectionString' => 'sqlite:'.dirname(__FILE__).'/../data/testdrive.db',
        ), */
        'db' => array(
            'connectionString' => 'pgsql:host=' . $databaseAddress . ';port='. $port .';dbname='.$databaseName,
            'emulatePrepare' => true,
            'username' => $userName,
            'password' => $password,
            'charset' => 'utf8',
        ),
        // uncomment the following to use a MySQL database
        /*
        'db'=>array(
            'connectionString' => 'mysql:host=localhost;dbname=testdrive',
            'emulatePrepare' => true,
            'username' => 'root',
            'password' => '',
            'charset' => 'utf8',
        ),
        */
        'errorHandler' => array(
            // use 'site/error' action to display errors
            'errorAction' => 'site/error',
        ),
        'log' => array(
            'class' => 'CLogRouter',
            'routes' => array(
                array(
                    'class' => 'CFileLogRoute',
                    'levels' => 'error, warning',
                ),
                // uncomment the following to show log messages on web pages
                
                /*array(
                    'class'=>'CWebLogRoute',
                ),
                */
            ),
        ),
        'ePdf' => array(
            'class' => 'application.modules.pad.extensions.yii-pdf.EYiiPdf',
            'params' => array(
                'mpdf' => array(
                    'librarySourcePath' => 'application.modules.pad.vendors.mpdf.*',
                    'constants' => array(
                        '_MPDF_TEMP_PATH' => Yii::getPathOfAlias('application.runtime'),
                    ),
                    'class' => 'mpdf',
                    'defaultParams' => array(
                        'mode' => 'c',
                        'format' => 'A4',
                        'default_font_size' => 12,
                        'default_font' => 'arial',
                        'mgl' => 15, // margin_left. Sets the page margins for the new document.
                        'mgr' => 15, // margin_right
                        'mgt' => 16, // margin_top
                        'mgb' => 16, // margin_bottom
                        'mgh' => 0, // margin_header
                        'mgf' => 0, // margin_footer
                        'orientation' => 'P',
                    )
                ),
            ),
        ),
    ),
    'language' => 'id',
    // application-level parameters that can be accessed
    // using Yii::app()->params['paramName']
    'params' => array(
        // this is used in contact page
        'adminEmail' => 'webmaster@example.com',
    ),
);

AnonSec - 2021