| Server IP : 180.180.241.3 / Your IP : 216.73.216.35 Web Server : Microsoft-IIS/7.5 System : Windows NT NETWORK-NHRC 6.1 build 7601 (Windows Server 2008 R2 Standard Edition Service Pack 1) i586 User : IUSR ( 0) PHP Version : 5.3.28 Disable Function : NONE MySQL : ON | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /AppServ/www/app/Config/ |
Upload File : |
<?php
/**
* This file is loaded automatically by the app/webroot/index.php file after core.php
*
* This file should load/create any application wide configuration settings, such as
* Caching, Logging, loading additional configuration files.
*
* You should also use this file to include any files that provide global functions/constants
* that your application uses.
*
* PHP 5
*
* CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
* Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
*
* Licensed under The MIT License
* For full copyright and license information, please see the LICENSE.txt
* Redistributions of files must retain the above copyright notice.
*
* @copyright Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
* @link http://cakephp.org CakePHP(tm) Project
* @package app.Config
* @since CakePHP(tm) v 0.10.8.2117
* @license http://www.opensource.org/licenses/mit-license.php MIT License
*/
// Setup a 'default' cache configuration for use in the application.
Cache::config('default', array('engine' => 'File'));
/**
* The settings below can be used to set additional paths to models, views and controllers.
*
* App::build(array(
* 'Model' => array('/path/to/models/', '/next/path/to/models/'),
* 'Model/Behavior' => array('/path/to/behaviors/', '/next/path/to/behaviors/'),
* 'Model/Datasource' => array('/path/to/datasources/', '/next/path/to/datasources/'),
* 'Model/Datasource/Database' => array('/path/to/databases/', '/next/path/to/database/'),
* 'Model/Datasource/Session' => array('/path/to/sessions/', '/next/path/to/sessions/'),
* 'Controller' => array('/path/to/controllers/', '/next/path/to/controllers/'),
* 'Controller/Component' => array('/path/to/components/', '/next/path/to/components/'),
* 'Controller/Component/Auth' => array('/path/to/auths/', '/next/path/to/auths/'),
* 'Controller/Component/Acl' => array('/path/to/acls/', '/next/path/to/acls/'),
* 'View' => array('/path/to/views/', '/next/path/to/views/'),
* 'View/Helper' => array('/path/to/helpers/', '/next/path/to/helpers/'),
* 'Console' => array('/path/to/consoles/', '/next/path/to/consoles/'),
* 'Console/Command' => array('/path/to/commands/', '/next/path/to/commands/'),
* 'Console/Command/Task' => array('/path/to/tasks/', '/next/path/to/tasks/'),
* 'Lib' => array('/path/to/libs/', '/next/path/to/libs/'),
* 'Locale' => array('/path/to/locales/', '/next/path/to/locales/'),
* 'Vendor' => array('/path/to/vendors/', '/next/path/to/vendors/'),
* 'Plugin' => array('/path/to/plugins/', '/next/path/to/plugins/'),
* ));
*
*/
/**
* Custom Inflector rules, can be set to correctly pluralize or singularize table, model, controller names or whatever other
* string is passed to the inflection functions
*
* Inflector::rules('singular', array('rules' => array(), 'irregular' => array(), 'uninflected' => array()));
* Inflector::rules('plural', array('rules' => array(), 'irregular' => array(), 'uninflected' => array()));
*
*/
/**
* Plugins need to be loaded manually, you can either load them one by one or all of them in a single call
* Uncomment one of the lines below, as you need. make sure you read the documentation on CakePlugin to use more
* advanced ways of loading plugins
*
* CakePlugin::loadAll(); // Loads all plugins at once
* CakePlugin::load('DebugKit'); //Loads a single plugin named DebugKit
*
*/
/**
* You can attach event listeners to the request lifecycle as Dispatcher Filter . By Default CakePHP bundles two filters:
*
* - AssetDispatcher filter will serve your asset files (css, images, js, etc) from your themes and plugins
* - CacheDispatcher filter will read the Cache.check configure variable and try to serve cached content generated from controllers
*
* Feel free to remove or add filters as you see fit for your application. A few examples:
*
* Configure::write('Dispatcher.filters', array(
* 'MyCacheFilter', // will use MyCacheFilter class from the Routing/Filter package in your app.
* 'MyPlugin.MyFilter', // will use MyFilter class from the Routing/Filter package in MyPlugin plugin.
* array('callable' => $aFunction, 'on' => 'before', 'priority' => 9), // A valid PHP callback type to be called on beforeDispatch
* array('callable' => $anotherMethod, 'on' => 'after'), // A valid PHP callback type to be called on afterDispatch
*
* ));
*/
Configure::write('Dispatcher.filters', array(
'AssetDispatcher',
'CacheDispatcher'
));
/**
* Configures default file logging options
*/
App::uses('CakeLog', 'Log');
CakeLog::config('debug', array(
'engine' => 'FileLog',
'types' => array('notice', 'info', 'debug'),
'file' => 'debug',
));
CakeLog::config('error', array(
'engine' => 'FileLog',
'types' => array('warning', 'error', 'critical', 'alert', 'emergency'),
'file' => 'error',
));
// use debugkit plugin for development
// CakePlugin::load('DebugKit');
CakePlugin::load('AclExtras');
// CakePHP Inflector plural form of `mou` becomes `mouses`, force it to be `mous`
Inflector::rules('plural', array('irregular' => array('mou' => 'mous')));
// same problem with `chief` becoming `chieves`
Inflector::rules('plural', array('irregular' => array('chief' => 'chiefs')));
// menu items in backend
Configure::write('ADMIN_MENU', array(
__('จัดการเครือข่ายองค์กร') => array(
'controller' => 'organizations',
'action' => 'index',
'admin' => true
),
__('จัดการองค์กรต่างประเทศ') => array(
'controller' => 'foreign_organizations',
'action' => 'index',
'admin' => true
),
__('จัดการเครือข่ายบุคคล') => array(
'controller' => 'people',
'action' => 'index',
'admin' => true
),
__('จัดการกิจกรรม') => array(
'controller' => 'activities',
'action' => 'index',
'admin' => true
),
__('จัดการข้อมูลประธานกิจกรรม') => array(
'controller' => 'chiefs',
'action' => 'index',
'admin' => true
),
__('จัดการข้อมูลผู้ประสานงาน') => array(
'controller' => 'contacts',
'action' => 'index',
'admin' => true
),
));
Configure::write('ADMIN_MENU2', array(
__('จัดการประเภทสิทธิหลัก') => array(
'controller' => 'topics',
'action' => 'index',
'admin' => true
),
__('จัดการประเภทสิทธิย่อย') => array(
'controller' => 'subtopics',
'action' => 'index',
'admin' => true
),
__('จัดการกลุ่มเป้าหมาย') => array(
'controller' => 'targets',
'action' => 'index',
'admin' => true
),
__('จัดการประเภทเครือข่าย') => array(
'controller' => 'types',
'action' => 'index',
'admin' => true
),
__('จัดการสถานะที่เกี่ยวข้องกับ กสม.') => array(
'controller' => 'positions',
'action' => 'index',
'admin' => true
),
__('จัดการข้อมูลโครงการพิเศษ') => array(
'controller' => 'members',
'action' => 'index',
'admin' => true
),
__('จัดการข้อมูลกลุ่มผู้ใช้งาน') => array(
'controller' => 'groups',
'action' => 'index',
'admin' => true
),
__('จัดการข้อมูลผู้ใช้งาน') => array(
'controller' => 'users',
'action' => 'index',
'admin' => true
),
__('ตั้งค่าทั่วไป') => array(
'controller' => 'settings',
'action' => 'index',
'admin' => true
)
)
);
// images that can be attached to organizations, people and activities
$imageTypesAllowed = array(
IMAGETYPE_GIF,
IMAGETYPE_JPEG,
IMAGETYPE_PNG,
);
Configure::write('image_types_allowed', $imageTypesAllowed);
// currently there is no native php constant for video types
$videoTypesAllowed = array(
'video/mp4',
'video/avi',
'video/mpeg',
'video/x-ms-wmv',
'video/ogg',
'video/webm'
);
Configure::write('video_types_allowed', $videoTypesAllowed);
Configure::write('MAIN_MENU', array(
__('หน้าแรก') => array(
'controller' => 'pages',
'action' => 'index'
),
__('เครือข่ายองค์กร') => array(
'controller' => 'organizations',
'action' => 'index',
// 'submenu' => array(
// __('เครือข่ายองค์กร') => array(
// 'controller' => 'organizations',
// 'action' => 'index'
// ),
// __('เครือข่ายองค์กรที่ทำ MOU') => array(
// 'controller' => 'organizations',
// 'action' => 'index_mou'
// )
// )
),
__('เครือข่ายบุคคล') => array(
'controller' => 'people',
'action' => 'index',
// 'submenu' => array(
// __('เครือข่ายบุคคล') => array(
// 'controller' => 'people',
// 'action' => 'index'
// ),
// __('เครือข่ายบุคคลรับเรื่องร้องเรียน') => array(
// 'controller' => 'people',
// 'action' => 'index_member'
// )
// )
),
__('รายงานกิจกรรม') => array(
'controller' => 'activities',
'action' => 'index',
// 'submenu' => array(
// __('รายงานกิจกรรม') => array(
// 'controller' => 'activities',
// 'action' => 'index'
// ),
// __('ผู้เข้าร่วมกิจกรรม') => array(
// 'controller' => 'activities',
// 'action' => 'index_member'
// )
// )
),
__('รายงานสถิติเครือข่าย') => array(
'controller' => 'pages',
'action' => 'reports',
'submenu' => array(
__('กราฟสถิติจำนวนเครือข่าย / กิจกรรม') => array(
'controller' => 'pages',
'action' => 'reports_organizations'
),
__('ตารางจำนวนเครือข่าย หรือ กิจกรรมตามเงื่อนไขที่ระบุ') => array(
'controller' => 'pages',
'action' => 'allinfo_reports_organizations'
),
__('ตารางภาพรวมจำนวนเครือข่ายและกิจกรรมทั้งหมด') => array(
'controller' => 'reports',
'action' => 'period'
),
__('ตารางจำนวนเครือข่ายองค์กรที่เพิ่มขึ้นรายเดือน/รายปี') => array(
'controller' => 'reports',
'action' => 'growth'
)
)
),
__('ติดต่อเรา') => array(
'controller' => 'pages',
'action' => 'contact'
),
// __('แนะนำติชม') => '#',
// __('ข่าว/กิจกรรมเครือข่าย') => '../app/webroot/news',
));
// 2014-01-05 - Mike - The map settings are stored in a separate file
$settingsPath = dirname( __FILE__ ) . '/map_settings.php';
if( file_exists( $settingsPath ) ) {
include( $settingsPath );
} else {
// 2013-11-12 - Mike - The colors used by the map to show the density of results (lowest to highest)
$MAP_COLORS = array(
'FE7100',
'FEFD00',
'669900',
'0195D8',
'00477B',
);
$MAP_RANGE = 15;
Configure::write( 'MAP_COLORS', $MAP_COLORS );
Configure::write( 'MAP_RANGE', $MAP_RANGE );
}
$months = array(
'1' => __( 'มกราคม' ),
'2' => __( 'กุมภาพันธ์' ),
'3' => __( 'มีนาคม' ),
'4' => __( 'เมษายน' ),
'5' => __( 'พฤษภาคม' ),
'6' => __( 'มิถุนายน' ),
'7' => __( 'กรกฎาคม' ),
'8' => __( 'สิงหาคม' ),
'9' => __( 'กันยายน' ),
'10' => __( 'ตุลาคม' ),
'11' => __( 'พฤศจิกายน' ),
'12' => __( 'ธันวาคม' ),
);
Configure::write( 'MONTHS', $months );
$years = array();
$maxYear = date( 'Y' ) + 543;
for( $i = $maxYear; $i >= 2545; $i-- ) {
$years[$i] = $i;
}
Configure::write( 'YEARS', $years );
//Contact email
Configure::write( 'CONTACT_EMAIL', 'network@nhrc.or.th');
// Configure::write( 'CONTACT_EMAIL', 'choedchai@nhrc.or.th');
// Configure::write( 'CONTACT_EMAIL', 'aunchalee.ni@gmail.com');
Configure::write( 'SENDER_EMAIL', 'no-reply@somewhere.com');