This commit is contained in:
dheeyi
2015-05-22 11:35:51 -04:00
parent 815d622258
commit 9e0e005c37
3 changed files with 9 additions and 1 deletions

View File

@@ -5354,11 +5354,13 @@ class G
$ipClient = G::getIpAddress();
$licensedFeatures = PMLicensedFeatures::getSingleton();
/*----------------------------------********---------------------------------*/
if ($sflagAudit && $licensedFeatures->verifyfeature('vtSeHNhT0JnSmo1bTluUVlTYUxUbUFSVStEeXVqc1pEUG5EeXc0MGd2Q3ErYz0=')) {
$username = isset($_SESSION['USER_LOGGED']) && $_SESSION['USER_LOGGED'] != '' ? $_SESSION['USER_LOGGED'] : 'Unknow User';
$fullname = isset($_SESSION['USR_FULLNAME']) && $_SESSION['USR_FULLNAME'] != '' ? $_SESSION['USR_FULLNAME'] : '-';
G::log("|". $workspace ."|". $ipClient ."|". $username . "|" . $fullname ."|" . $actionToLog . "|" . $valueToLog, PATH_DATA, "audit.log");
}
/*----------------------------------********---------------------------------*/
}
/**

View File

@@ -11,6 +11,7 @@ class ActionsByEmail
public function saveConfiguration($params)
{
/*----------------------------------********---------------------------------*/
if (\PMLicensedFeatures
::getSingleton()
->verifyfeature('zLhSk5TeEQrNFI2RXFEVktyUGpnczV1WEJNWVp6cjYxbTU3R29mVXVZNWhZQT0=')) {
@@ -31,10 +32,12 @@ class ActionsByEmail
break;
}
}
/*----------------------------------********---------------------------------*/
}
public function loadConfiguration($params)
{
/*----------------------------------********---------------------------------*/
if ($params['type'] != 'activity'
|| !\PMLicensedFeatures
::getSingleton()
@@ -42,6 +45,7 @@ class ActionsByEmail
{
return false;
}
/*----------------------------------********---------------------------------*/
require_once 'classes/model/AbeConfiguration.php';
$criteria = new \Criteria();

View File

@@ -52,7 +52,7 @@ class System extends Api
}
}
/**
/**t
* @return array
*
* @author Gustavo Cruz <gustavo.cruz@colosa.com>
@@ -64,6 +64,7 @@ class System extends Api
{
try {
$enabledFeatures = array();
/*----------------------------------********---------------------------------*/
$keys = array ('zLhSk5TeEQrNFI2RXFEVktyUGpnczV1WEJNWVp6cjYxbTU3R29mVXVZNWhZQT0=');
foreach ($keys as $key) {
if (\PMLicensedFeatures
@@ -72,6 +73,7 @@ class System extends Api
$enabledFeatures[] = $key;
}
}
/*----------------------------------********---------------------------------*/
return $enabledFeatures;
} catch (\Exception $e) {
throw (new RestException(Api::STAT_APP_EXCEPTION, $e->getMessage()));