Merge branch 'master' of bitbucket.org:colosa/processmaker into PM-816

This commit is contained in:
Luis Fernando Saisa Lopez
2014-11-04 09:25:26 -04:00
2 changed files with 15 additions and 3 deletions

View File

@@ -1257,13 +1257,24 @@ class workspaceTools
{
mysql_query("CREATE DATABASE IF NOT EXISTS " . mysql_real_escape_string($database));
// Check for safe mode and if mysql exist on server
//check function shell_exec
$disabled_functions = ini_get('disable_functions');
$flag = false;
if ($disabled_functions!='') {
$arr = explode(',', $disabled_functions);
sort($arr);
if (in_array("shell_exec", $arr)) {
$flag = true;
}
}
// Check if mysql exist on server
$flagFunction = null;
if ( !ini_get('safe_mode') ) {
if ( !$flag ) {
$flagFunction = shell_exec('mysql --version');
}
if ( !ini_get('safe_mode') && !is_null($flagFunction) ) {
if ( !$flag && !is_null($flagFunction) ) {
$command = 'mysql'
. ' --host=' . $parameters['dbHost']
. ' --user=' . $parameters['dbUser']

View File

@@ -34,6 +34,7 @@ switch ($request) {
//remove from memcache when this value is updated/created
$memcache->delete( 'flagForgotPassword' );
$response = new stdclass();
$response->success = true;
G::auditLog("UpdateLoginSettings", "DefaultLanguage->".$lang." EnableForgotPassword->".$conf->aConfig['login_enableForgotPassword']);