BUG 8875 "Feature: New ExtJS based Login & Main ProcessMaker inte..." SOLVED
- windows on php ver. > 5.3.8 compatibility added
This commit is contained in:
@@ -1008,7 +1008,7 @@ class System {
|
||||
return $cities;
|
||||
}
|
||||
|
||||
public function getSystemConfiguration($iniFile='')
|
||||
public static function getSystemConfiguration($iniFile='')
|
||||
{
|
||||
$config = array(
|
||||
'debug' => 0,
|
||||
@@ -1030,11 +1030,14 @@ class System {
|
||||
|
||||
/* Read the env.ini */
|
||||
$ini_contents = parse_ini_file($iniFile, false);
|
||||
|
||||
// validation debug config, ony accept bynary values, 1 to enable
|
||||
$ini_contents['debug'] = $ini_contents['debug'] == 1 ? 1 : 0;
|
||||
|
||||
if ($ini_contents !== false) {
|
||||
$config = array_merge($config, $ini_contents);
|
||||
}
|
||||
//echo '<pre>'; print_r($config); die;
|
||||
|
||||
return $config;
|
||||
}
|
||||
|
||||
|
||||
@@ -1,11 +1,6 @@
|
||||
<html>
|
||||
<!-- #BeginTemplate "a_logo_izq_en.dwt" -->
|
||||
<head>
|
||||
<script type='text/javascript' src='/js/maborak/core/maborak.js'></script>
|
||||
<script type='text/javascript' src='/jsform/login/login.js'></script>
|
||||
<script type='text/javascript' src='/jscore/labels/en.js'></script>
|
||||
<script type='text/javascript' src='/js/widgets/js-calendar/unicode-letter.js'></script>
|
||||
<script type='text/javascript' src='/js/widgets/js-calendar/lang/en.js'></script>
|
||||
<script type='text/javascript' src='/js/maborak/core/maborak.js'></script>
|
||||
<script type='text/javascript'>
|
||||
var leimnud = new maborak();
|
||||
leimnud.make({
|
||||
@@ -21,11 +16,8 @@
|
||||
}
|
||||
}catch(e){}
|
||||
|
||||
</script>
|
||||
</script>
|
||||
|
||||
<!-- #BeginEditable "doctitle" -->
|
||||
<title>Get Started</title>
|
||||
<!-- #EndEditable -->
|
||||
<style type="text/css">
|
||||
body,table {
|
||||
FONT-FAMILY: Arial, Helvetica, sans-serif;
|
||||
@@ -50,7 +42,6 @@ span.cLow {
|
||||
}
|
||||
|
||||
</style>
|
||||
<meta http-equiv="Content-Language" content="en">
|
||||
</head>
|
||||
<body>
|
||||
<table width="600" border="0" cellspacing="0" cellpadding="0">
|
||||
@@ -71,7 +62,6 @@ span.cLow {
|
||||
</span></p>
|
||||
<p><span class="cLow">The ProcessMaker Team</span></p>
|
||||
<p><input type="checkbox" name="getStarted" id="getStarted" onclick="saveConfig();"><span class="cLow">Don't show me again</span></p>
|
||||
<!-- #EndEditable -->
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
@@ -54,14 +54,16 @@
|
||||
|
||||
require_once $pathhome . 'engine' . PATH_SEP . 'classes' . PATH_SEP . 'class.system.php';
|
||||
$config = System::getSystemConfiguration($pathhome . 'engine' . PATH_SEP . 'config' . PATH_SEP . 'env.ini');
|
||||
$e_all = defined('E_DEPRECATED') ? E_ALL ^ E_DEPRECATED : E_ALL;
|
||||
|
||||
$e_all = defined('E_DEPRECATED') ? E_ALL & ~E_DEPRECATED : E_ALL;
|
||||
$e_all = defined('E_STRICT') ? E_ALL & ~E_STRICT : $e_all;
|
||||
$e_all = $config['debug'] ? $e_all : $e_all & ~E_NOTICE;
|
||||
|
||||
// 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');
|
||||
ini_set('display_errors', $config['debug']);
|
||||
ini_set('error_reporting', $e_all);
|
||||
ini_set('short_open_tag', 'On');
|
||||
ini_set('default_charset', "UTF-8");
|
||||
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']);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user