BUG 8875 "ExtJS based Login & Main ProcessMaker interface" (1st commit)
This commit is contained in:
@@ -23,56 +23,6 @@
|
||||
*
|
||||
*/
|
||||
|
||||
/* Default configuration values (do not change these, use env.ini) */
|
||||
$default_config = array(
|
||||
'debug' => 0,
|
||||
'debug_sql' => 0,
|
||||
'debug_time' => 0,
|
||||
'debug_calendar' => 0,
|
||||
'wsdl_cache' => 1,
|
||||
'memory_limit' => '100M',
|
||||
'time_zone' => 'America/La_Paz',
|
||||
'memcached' => 0,
|
||||
'memcached_server' => ''
|
||||
);
|
||||
|
||||
/* Read the env.ini */
|
||||
$env_file = realpath(dirname(__FILE__) . "/env.ini");
|
||||
$config = $default_config;
|
||||
if ($env_file !== false && file_exists($env_file)) {
|
||||
$ini_contents = parse_ini_file($env_file, false);
|
||||
if ($ini_contents !== false)
|
||||
$config = array_merge($default_config, $ini_contents);
|
||||
}
|
||||
else {
|
||||
// if the env.ini file doesn't exist, and the current is a developemnt env, then force enable debug
|
||||
if (!file_exists ( PATH_TRUNK . 'workflow/engine/methods/login/version-pmos.php' )) {
|
||||
$config['debug'] = 1;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
//*** Do not change any of these settings directly, use env.ini instead
|
||||
ini_set('display_errors','On');
|
||||
|
||||
ini_set('short_open_tag', 'on');
|
||||
ini_set('asp_tags', 'on');
|
||||
// The register_globals feature has been DEPRECATED as of PHP 5.3.0. default value Off.
|
||||
// ini_set('register_globals', 'off');
|
||||
ini_set('default_charset', "UTF-8");
|
||||
$e_all = defined('E_DEPRECATED') ? E_ALL ^ E_DEPRECATED : E_ALL;
|
||||
ini_set('error_reporting', ($config['debug'] ? $e_all : $e_all ^ E_NOTICE) );
|
||||
ini_set('memory_limit', $config['memory_limit']);
|
||||
ini_set('soap.wsdl_cache_enabled', $config['wsdl_cache']);
|
||||
|
||||
define ('DEBUG_SQL_LOG', $config['debug_sql'] );
|
||||
define ('DEBUG_TIME_LOG', $config['debug_time'] );
|
||||
define ('DEBUG_CALENDAR_LOG', $config['debug_calendar'] );
|
||||
define ('MEMCACHED_ENABLED', $config['memcached']);
|
||||
define ('MEMCACHED_SERVER', $config['memcached_server']);
|
||||
|
||||
define ('TIME_ZONE', $config['time_zone']);
|
||||
|
||||
//***************** System Directories & Paths **************************
|
||||
|
||||
//***************** RBAC Paths **************************
|
||||
@@ -96,6 +46,7 @@
|
||||
define( 'PATH_SKIN_ENGINE', PATH_CORE . 'skinEngine' . PATH_SEP );
|
||||
define( 'PATH_METHODS', PATH_CORE . 'methods' . PATH_SEP );
|
||||
define( 'PATH_XMLFORM', PATH_CORE . 'xmlform' . PATH_SEP );
|
||||
define( 'PATH_CONFIG', PATH_CORE . 'config' . PATH_SEP );
|
||||
define( 'PATH_PLUGINS', PATH_CORE . 'plugins' . PATH_SEP );
|
||||
define( 'PATH_HTMLMAIL', PATH_CORE . 'html_templates' . PATH_SEP );
|
||||
define( 'PATH_TPL', PATH_CORE . 'templates' . PATH_SEP );
|
||||
|
||||
Reference in New Issue
Block a user