<?php
//=============ApplicationId========================
$application['application_id'] = 600;
//=============directory============================

// do not edit this config
$application['gtfw_base'] = GTFW_BASE_DIR;
$application['docroot'] = GTFW_APP_DIR;
///

$application['basedir'] = '/apmd/testing/gtaset21/'; // with trailling slash
$application['baseaddress'] = 'http://'.$_SERVER['SERVER_ADDR']; // without trailling slash
//$application['domain'] = NULL; // name of domain

//============database============================
// connection number 0 Aset
	$application['db_conn'][0]['db_driv'] = 'adodb';
	$application['db_conn'][0]['db_type'] = 'mysqlt';
	$application['db_conn'][0]['db_host'] = 'acs.gamatechno.net';
	$application['db_conn'][0]['db_user'] = 'apmd';
	$application['db_conn'][0]['db_pass'] = 'apmdPASS';
	$application['db_conn'][0]['db_name'] = 'apmd_testing_gtaset21';
	$application['db_conn'][0]['db_result_cache_lifetime'] = '';
	$application['db_conn'][0]['db_result_cache_path'] = '';
	//$application['db_conn'][0]['db_debug_enabled'] = true;
	$application['db_conn'][0]['db_port'] = '5020';

// connection number 1 Finansi
	$application['db_conn'][1]['db_driv'] = 'adodb';
	$application['db_conn'][1]['db_type'] = 'mysqlt';
	$application['db_conn'][1]['db_host'] = 'localhost';
	$application['db_conn'][1]['db_user'] = '';
	$application['db_conn'][1]['db_pass'] = '';
	$application['db_conn'][1]['db_name'] = '';
	$application['db_conn'][1]['db_result_cache_lifetime'] = '';
	$application['db_conn'][1]['db_result_cache_path'] = '';
	//$application['db_conn'][1]['db_debug_enabled'] = true;
	$application['db_conn'][1]['db_port'] = '';
	
// connection number 2 SIA
	$application['db_conn'][2]['db_driv'] = 'adodb';
	$application['db_conn'][2]['db_type'] = 'mysqlt';
	$application['db_conn'][2]['db_host'] = 'localhost';
	$application['db_conn'][2]['db_user'] = '';
	$application['db_conn'][2]['db_pass'] = '';
	$application['db_conn'][2]['db_name'] = '';
	$application['db_conn'][2]['db_result_cache_lifetime'] = '';
	$application['db_conn'][2]['db_result_cache_path'] = '';
	//$application['db_conn'][2]['db_debug_enabled'] = true;
	$application['db_conn'][2]['db_port'] = '';
	
// connection number 3
	$application['db_conn'][3]['db_driv'] = 'adodb';
	$application['db_conn'][3]['db_type'] = 'ldap';
	$application['db_conn'][3]['db_host'] = '192.168.1.243';
	$application['db_conn'][3]['db_user'] = 'cn=root,dc=gamatechno,dc=net';
	$application['db_conn'][3]['db_pass'] = 'secret';
	$application['db_conn'][3]['db_name'] = 'dc=gamatechno,dc=net'; // ldap base
	
//============session============================
	$application['use_session'] = TRUE;
	$application['session_name'] = 'GTFWSessID';
	$application['session_save_path'] = NULL; ///TODO: should not be here!!!, and pelase, support NULL value to fallback to PHP INI's session save path
	$application['session_expire'] = 180; // in minutes
	$application['session_cookie_params']['lifetime'] = 60 * $application['session_expire']; // in seconds
	$application['session_cookie_params']['path'] = $application['basedir'];
	$application['session_cookie_params']['domain'] = $application['domain'];
	$application['session_cookie_params']['secure'] = FALSE; // needs secure connection?

//============default page============================
	$application['default_module'] = 'login_default';
	$application['default_submodule'] = 'login';
	$application['default_action'] = 'view';
	$application['default_type'] = 'html';

//============security===========================
	$application['enable_security'] = true;
	$application['default_user'] = 'nobody';
	$application['enable_url_obfuscator'] = FALSE;
	$application['url_obfuscator_exception'] = array('soap'); // list of exeption request/response type
	$application['url_type'] = 'Long'; // type: Long or Short
	$application['login_method'] = 'TRUE';

//============development============================
	$application['debug_mode'] = FALSE;

//=========== Single Sign On ========================
	$application['system_id'] = 'com.gamatechno.gtfw';
	$application['sso_group'] = 'com_gamatechno_academica'; //FIXME: what if this system is associated with more than one sso group

//=========== Single Sign On Server ========================
	$application['sso_ldap_connection'] = 3; // connection number available for ldap access, see db_conn above

//============== syslog =============================
	$application['syslog_category'] = array(); // what category permitted to be printed out, array() equals all category
	$application['syslog_enabled'] = false;
	$application['syslog_io_engine'] = 'std'; //tcp, file, std
	$application['syslog_log_path'] = '/tmp/';
	$application['syslog_tcp_host'] = 'localhost';
	$application['syslog_tcp_port'] = 9777;

//================ soapgateway ========================
	$application['wsdl_use_cache'] = false; // use cached wsdl if available
	$application['wsdl_cache_path'] = '/tmp/'; // use cached wsdl if available
	$application['wsdl_cache_lifetime'] = 60 * 60 * 24 /* one day!*/; // invalidate wsdl cache every x seconds

//================ additional config =====================
	$application['company_name'] ="APMD YOGYAKARTA";
	$application['application_name'] ="gtAset";
	$application['company_address'] ="none";
	$application['menu_version'] = "2";
	$application['company_type'] = "1"; # 1(PTN),2(PTS)
	$application['city'] = "Yogyakarta";
	$application['language'] = "indonesia";
	$application['university_code'] = '000000'; #use for convertion, default : 000000
	$application['max_upload_size'] = 2; #in MB
	
//================== koneksi ke db lain ===========
	#$application['aset']=true;
	$application['finansi']=false;
	$application['sia']=false;
	
//================config tahun pembukuan=========================
	$application['tahun_pembukuan']="yearly"; #monthly, yearly

//===================== config auto verivikasi =====================
	$application['auto_verifikation']="false";#true / 
	
//===================== config auto approve jurnal dan auto posting =====================
	$application['auto_approve']=true;#true
	$application['auto_posting']=false;#true
	
//===================== configurasi enkripsi atau dekripsi Qrcode ======================-//
	$application['qr_code_encrypt']=true;
?>
