Merge remote branch 'upstream/master'
This commit is contained in:
@@ -20,14 +20,13 @@
|
|||||||
*
|
*
|
||||||
* For more information, contact Colosa Inc, 2566 Le Jeune Rd.,
|
* For more information, contact Colosa Inc, 2566 Le Jeune Rd.,
|
||||||
* Coral Gables, FL, 33134, USA, or email info@colosa.com.
|
* Coral Gables, FL, 33134, USA, or email info@colosa.com.
|
||||||
*
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
global $RBAC;
|
global $RBAC;
|
||||||
if ($RBAC->userCanAccess( 'PM_SETUP_ADVANCE' ) != 1) {
|
if ($RBAC->userCanAccess( 'PM_SETUP_ADVANCE' ) != 1) {
|
||||||
G::SendTemporalMessage( 'ID_USER_HAVENT_RIGHTS_PAGE', 'error', 'labels' );
|
G::SendTemporalMessage( 'ID_USER_HAVENT_RIGHTS_PAGE', 'error', 'labels' );
|
||||||
G::header( 'location: ../login/login' );
|
G::header( 'location: ../login/login' );
|
||||||
die;
|
die();
|
||||||
}
|
}
|
||||||
|
|
||||||
G::LoadClass( 'configuration' );
|
G::LoadClass( 'configuration' );
|
||||||
@@ -40,7 +39,7 @@ $G_SUB_MENU = 'users';
|
|||||||
$G_ID_MENU_SELECTED = 'USERS';
|
$G_ID_MENU_SELECTED = 'USERS';
|
||||||
$G_ID_SUB_MENU_SELECTED = 'AUTH_SOURCES';
|
$G_ID_SUB_MENU_SELECTED = 'AUTH_SOURCES';
|
||||||
|
|
||||||
$G_PUBLISH = new Publisher;
|
$G_PUBLISH = new Publisher();
|
||||||
|
|
||||||
$oHeadPublisher = & headPublisher::getSingleton();
|
$oHeadPublisher = & headPublisher::getSingleton();
|
||||||
$oHeadPublisher->addExtJsScript( 'authSources/authSourcesList', false ); //adding a javascript file .js
|
$oHeadPublisher->addExtJsScript( 'authSources/authSourcesList', false ); //adding a javascript file .js
|
||||||
@@ -48,4 +47,4 @@ $oHeadPublisher->addContent('authSources/authSourcesList'); //adding a html file
|
|||||||
$oHeadPublisher->assign( 'FORMATS', $c->getFormats() );
|
$oHeadPublisher->assign( 'FORMATS', $c->getFormats() );
|
||||||
$oHeadPublisher->assign( 'CONFIG', $Config );
|
$oHeadPublisher->assign( 'CONFIG', $Config );
|
||||||
G::RenderPage( 'publish', 'extJs' );
|
G::RenderPage( 'publish', 'extJs' );
|
||||||
?>
|
|
||||||
|
|||||||
@@ -20,14 +20,13 @@
|
|||||||
*
|
*
|
||||||
* For more information, contact Colosa Inc, 2566 Le Jeune Rd.,
|
* For more information, contact Colosa Inc, 2566 Le Jeune Rd.,
|
||||||
* Coral Gables, FL, 33134, USA, or email info@colosa.com.
|
* Coral Gables, FL, 33134, USA, or email info@colosa.com.
|
||||||
*
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
global $RBAC;
|
global $RBAC;
|
||||||
if ($RBAC->userCanAccess( 'PM_SETUP_ADVANCE' ) != 1) {
|
if ($RBAC->userCanAccess( 'PM_SETUP_ADVANCE' ) != 1) {
|
||||||
G::SendTemporalMessage( 'ID_USER_HAVENT_RIGHTS_PAGE', 'error', 'labels' );
|
G::SendTemporalMessage( 'ID_USER_HAVENT_RIGHTS_PAGE', 'error', 'labels' );
|
||||||
G::header( 'location: ../login/login' );
|
G::header( 'location: ../login/login' );
|
||||||
die;
|
die();
|
||||||
}
|
}
|
||||||
|
|
||||||
$G_MAIN_MENU = 'processmaker';
|
$G_MAIN_MENU = 'processmaker';
|
||||||
@@ -37,22 +36,18 @@
|
|||||||
|
|
||||||
$fields = array ('AUTH_SOURCE_PROVIDER' => $_REQUEST['AUTH_SOURCE_PROVIDER']);
|
$fields = array ('AUTH_SOURCE_PROVIDER' => $_REQUEST['AUTH_SOURCE_PROVIDER']);
|
||||||
|
|
||||||
|
|
||||||
$G_PUBLISH = new Publisher();
|
$G_PUBLISH = new Publisher();
|
||||||
|
|
||||||
if (file_exists( PATH_PLUGINS . $fields['AUTH_SOURCE_PROVIDER'] . PATH_SEP . $fields['AUTH_SOURCE_PROVIDER'] . 'Edit.xml' )) {
|
if (file_exists( PATH_PLUGINS . $fields['AUTH_SOURCE_PROVIDER'] . PATH_SEP . $fields['AUTH_SOURCE_PROVIDER'] . 'Edit.xml' )) {
|
||||||
if (class_exists( $fields['AUTH_SOURCE_PROVIDER'] )) {
|
if (class_exists( $fields['AUTH_SOURCE_PROVIDER'] )) {
|
||||||
$G_PUBLISH->AddContent( 'xmlform', 'xmlform', $fields['AUTH_SOURCE_PROVIDER'] . PATH_SEP . $fields['AUTH_SOURCE_PROVIDER'] . 'Edit.xml', '', $fields, '../authSources/authSources_Save' );
|
$G_PUBLISH->AddContent( 'xmlform', 'xmlform', $fields['AUTH_SOURCE_PROVIDER'] . PATH_SEP . $fields['AUTH_SOURCE_PROVIDER'] . 'Edit.xml', '', $fields, '../authSources/authSources_Save' );
|
||||||
}
|
} else {
|
||||||
else {
|
|
||||||
$G_PUBLISH->AddContent( 'xmlform', 'xmlform', 'login/showMessage', '', array ('MESSAGE' => G::LoadTranslation( 'ID_AUTH_SOURCE_MISSING' )) );
|
$G_PUBLISH->AddContent( 'xmlform', 'xmlform', 'login/showMessage', '', array ('MESSAGE' => G::LoadTranslation( 'ID_AUTH_SOURCE_MISSING' )) );
|
||||||
}
|
}
|
||||||
}
|
} else {
|
||||||
else {
|
|
||||||
if (file_exists( PATH_XMLFORM . 'authSources/' . $fields['AUTH_SOURCE_PROVIDER'] . 'Edit.xml' )) {
|
if (file_exists( PATH_XMLFORM . 'authSources/' . $fields['AUTH_SOURCE_PROVIDER'] . 'Edit.xml' )) {
|
||||||
$G_PUBLISH->AddContent( 'xmlform', 'xmlform', 'authSources/' . $fields['AUTH_SOURCE_PROVIDER'] . 'Edit', '', $fields, '../authSources/authSources_Save' );
|
$G_PUBLISH->AddContent( 'xmlform', 'xmlform', 'authSources/' . $fields['AUTH_SOURCE_PROVIDER'] . 'Edit', '', $fields, '../authSources/authSources_Save' );
|
||||||
}
|
} else {
|
||||||
else {
|
|
||||||
$G_PUBLISH->AddContent( 'xmlform', 'xmlform', 'login/showMessage', '', array ('MESSAGE' => 'File: ' . $fields['AUTH_SOURCE_PROVIDER'] . 'Edit.xml' . ' not exists.') );
|
$G_PUBLISH->AddContent( 'xmlform', 'xmlform', 'login/showMessage', '', array ('MESSAGE' => 'File: ' . $fields['AUTH_SOURCE_PROVIDER'] . 'Edit.xml' . ' not exists.') );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -20,38 +20,24 @@
|
|||||||
*
|
*
|
||||||
* For more information, contact Colosa Inc, 2566 Le Jeune Rd.,
|
* For more information, contact Colosa Inc, 2566 Le Jeune Rd.,
|
||||||
* Coral Gables, FL, 33134, USA, or email info@colosa.com.
|
* Coral Gables, FL, 33134, USA, or email info@colosa.com.
|
||||||
*
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
global $RBAC;
|
global $RBAC;
|
||||||
if ($RBAC->userCanAccess( 'PM_SETUP_ADVANCE' ) != 1) {
|
if ($RBAC->userCanAccess( 'PM_SETUP_ADVANCE' ) != 1) {
|
||||||
G::SendTemporalMessage( 'ID_USER_HAVENT_RIGHTS_PAGE', 'error', 'labels' );
|
G::SendTemporalMessage( 'ID_USER_HAVENT_RIGHTS_PAGE', 'error', 'labels' );
|
||||||
G::header( 'location: ../login/login' );
|
G::header( 'location: ../login/login' );
|
||||||
die;
|
die();
|
||||||
}
|
}
|
||||||
|
|
||||||
unset( $_POST['form']['btnSave'] );
|
unset( $_POST['form']['btnSave'] );
|
||||||
|
|
||||||
$aCommonFields = array('AUTH_SOURCE_UID',
|
$aCommonFields = array ('AUTH_SOURCE_UID','AUTH_SOURCE_NAME','AUTH_SOURCE_PROVIDER','AUTH_SOURCE_SERVER_NAME','AUTH_SOURCE_PORT','AUTH_SOURCE_ENABLED_TLS','AUTH_ANONYMOUS','AUTH_SOURCE_SEARCH_USER','AUTH_SOURCE_PASSWORD','AUTH_SOURCE_VERSION','AUTH_SOURCE_BASE_DN','AUTH_SOURCE_OBJECT_CLASSES','AUTH_SOURCE_ATTRIBUTES');
|
||||||
'AUTH_SOURCE_NAME',
|
|
||||||
'AUTH_SOURCE_PROVIDER',
|
|
||||||
'AUTH_SOURCE_SERVER_NAME',
|
|
||||||
'AUTH_SOURCE_PORT',
|
|
||||||
'AUTH_SOURCE_ENABLED_TLS',
|
|
||||||
'AUTH_ANONYMOUS',
|
|
||||||
'AUTH_SOURCE_SEARCH_USER',
|
|
||||||
'AUTH_SOURCE_PASSWORD',
|
|
||||||
'AUTH_SOURCE_VERSION',
|
|
||||||
'AUTH_SOURCE_BASE_DN',
|
|
||||||
'AUTH_SOURCE_OBJECT_CLASSES',
|
|
||||||
'AUTH_SOURCE_ATTRIBUTES');
|
|
||||||
|
|
||||||
$aFields = $aData = array ();
|
$aFields = $aData = array ();
|
||||||
foreach ($_POST['form'] as $sField => $sValue) {
|
foreach ($_POST['form'] as $sField => $sValue) {
|
||||||
if (in_array( $sField, $aCommonFields )) {
|
if (in_array( $sField, $aCommonFields )) {
|
||||||
$aFields[$sField] = $sValue;
|
$aFields[$sField] = $sValue;
|
||||||
}
|
} else {
|
||||||
else {
|
|
||||||
$aData[$sField] = $sValue;
|
$aData[$sField] = $sValue;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -59,9 +45,9 @@
|
|||||||
|
|
||||||
if ($aFields['AUTH_SOURCE_UID'] == '') {
|
if ($aFields['AUTH_SOURCE_UID'] == '') {
|
||||||
$RBAC->createAuthSource( $aFields );
|
$RBAC->createAuthSource( $aFields );
|
||||||
}
|
} else {
|
||||||
else {
|
|
||||||
$RBAC->updateAuthSource( $aFields );
|
$RBAC->updateAuthSource( $aFields );
|
||||||
}
|
}
|
||||||
|
|
||||||
G::header( 'location: authSources_List' );
|
G::header( 'location: authSources_List' );
|
||||||
|
|
||||||
|
|||||||
@@ -20,13 +20,12 @@
|
|||||||
*
|
*
|
||||||
* For more information, contact Colosa Inc, 2566 Le Jeune Rd.,
|
* For more information, contact Colosa Inc, 2566 Le Jeune Rd.,
|
||||||
* Coral Gables, FL, 33134, USA, or email info@colosa.com.
|
* Coral Gables, FL, 33134, USA, or email info@colosa.com.
|
||||||
*
|
|
||||||
*/
|
*/
|
||||||
global $RBAC;
|
global $RBAC;
|
||||||
if ($RBAC->userCanAccess( 'PM_SETUP_ADVANCE' ) != 1) {
|
if ($RBAC->userCanAccess( 'PM_SETUP_ADVANCE' ) != 1) {
|
||||||
G::SendTemporalMessage( 'ID_USER_HAVENT_RIGHTS_PAGE', 'error', 'labels' );
|
G::SendTemporalMessage( 'ID_USER_HAVENT_RIGHTS_PAGE', 'error', 'labels' );
|
||||||
G::header( 'location: ../login/login' );
|
G::header( 'location: ../login/login' );
|
||||||
die;
|
die();
|
||||||
}
|
}
|
||||||
|
|
||||||
$G_MAIN_MENU = 'processmaker';
|
$G_MAIN_MENU = 'processmaker';
|
||||||
@@ -37,3 +36,4 @@ $G_ID_SUB_MENU_SELECTED = 'AUTH_SOURCES';
|
|||||||
$G_PUBLISH = new Publisher();
|
$G_PUBLISH = new Publisher();
|
||||||
$G_PUBLISH->AddContent( 'xmlform', 'xmlform', 'authSources/authSources_SearchUsers', '', array ('AUTH_SOURCE_UID' => $_GET['sUID']), '../authSources/authSources_ImportUsers' );
|
$G_PUBLISH->AddContent( 'xmlform', 'xmlform', 'authSources/authSources_SearchUsers', '', array ('AUTH_SOURCE_UID' => $_GET['sUID']), '../authSources/authSources_ImportUsers' );
|
||||||
G::RenderPage( 'publish', 'blank' );
|
G::RenderPage( 'publish', 'blank' );
|
||||||
|
|
||||||
|
|||||||
@@ -20,13 +20,12 @@
|
|||||||
*
|
*
|
||||||
* For more information, contact Colosa Inc, 2566 Le Jeune Rd.,
|
* For more information, contact Colosa Inc, 2566 Le Jeune Rd.,
|
||||||
* Coral Gables, FL, 33134, USA, or email info@colosa.com.
|
* Coral Gables, FL, 33134, USA, or email info@colosa.com.
|
||||||
*
|
|
||||||
*/
|
*/
|
||||||
global $RBAC;
|
global $RBAC;
|
||||||
if ($RBAC->userCanAccess( 'PM_SETUP_ADVANCE' ) != 1) {
|
if ($RBAC->userCanAccess( 'PM_SETUP_ADVANCE' ) != 1) {
|
||||||
G::SendTemporalMessage( 'ID_USER_HAVENT_RIGHTS_PAGE', 'error', 'labels' );
|
G::SendTemporalMessage( 'ID_USER_HAVENT_RIGHTS_PAGE', 'error', 'labels' );
|
||||||
G::header( 'location: ../login/login' );
|
G::header( 'location: ../login/login' );
|
||||||
die;
|
die();
|
||||||
}
|
}
|
||||||
|
|
||||||
$G_MAIN_MENU = 'processmaker';
|
$G_MAIN_MENU = 'processmaker';
|
||||||
@@ -52,3 +51,4 @@ $G_PUBLISH = new Publisher();
|
|||||||
$oHeadPublisher = & headPublisher::getSingleton();
|
$oHeadPublisher = & headPublisher::getSingleton();
|
||||||
$oHeadPublisher->addExtJsScript( 'authSources/authSourcesListNew', true ); //adding a javascript file .js
|
$oHeadPublisher->addExtJsScript( 'authSources/authSourcesListNew', true ); //adding a javascript file .js
|
||||||
G::RenderPage( 'publish', 'extJs' );
|
G::RenderPage( 'publish', 'extJs' );
|
||||||
|
|
||||||
|
|||||||
@@ -27,7 +27,6 @@ if ($RBAC->userCanAccess( 'PM_SETUP_ADVANCE' ) != 1) {
|
|||||||
G::header( 'location: ../login/login' );
|
G::header( 'location: ../login/login' );
|
||||||
die();
|
die();
|
||||||
}
|
}
|
||||||
|
|
||||||
$G_MAIN_MENU = 'processmaker';
|
$G_MAIN_MENU = 'processmaker';
|
||||||
$G_SUB_MENU = 'users';
|
$G_SUB_MENU = 'users';
|
||||||
$G_ID_MENU_SELECTED = 'USERS';
|
$G_ID_MENU_SELECTED = 'USERS';
|
||||||
|
|||||||
@@ -20,16 +20,15 @@
|
|||||||
*
|
*
|
||||||
* For more information, contact Colosa Inc, 2566 Le Jeune Rd.,
|
* For more information, contact Colosa Inc, 2566 Le Jeune Rd.,
|
||||||
* Coral Gables, FL, 33134, USA, or email info@colosa.com.
|
* Coral Gables, FL, 33134, USA, or email info@colosa.com.
|
||||||
*
|
|
||||||
*/
|
*/
|
||||||
if (($RBAC_Response=$RBAC->userCanAccess("PM_SETUP"))!=1) return $RBAC_Response;
|
if (($RBAC_Response = $RBAC->userCanAccess( "PM_SETUP" )) != 1)
|
||||||
|
return $RBAC_Response;
|
||||||
$G_ENABLE_BLANK_SKIN = true;
|
$G_ENABLE_BLANK_SKIN = true;
|
||||||
|
|
||||||
$dbc = new DBConnection;
|
$dbc = new DBConnection();
|
||||||
$G_PUBLISH = new Publisher;
|
$G_PUBLISH = new Publisher();
|
||||||
|
|
||||||
$G_PUBLISH->AddContent( 'pagedtable', 'paged-table', "setup/holidayList" );
|
$G_PUBLISH->AddContent( 'pagedtable', 'paged-table', "setup/holidayList" );
|
||||||
|
|
||||||
G::RenderPage( 'publish' );
|
G::RenderPage( 'publish' );
|
||||||
|
|
||||||
?>
|
|
||||||
@@ -20,17 +20,16 @@
|
|||||||
*
|
*
|
||||||
* For more information, contact Colosa Inc, 2566 Le Jeune Rd.,
|
* For more information, contact Colosa Inc, 2566 Le Jeune Rd.,
|
||||||
* Coral Gables, FL, 33134, USA, or email info@colosa.com.
|
* Coral Gables, FL, 33134, USA, or email info@colosa.com.
|
||||||
*
|
|
||||||
*/
|
*/
|
||||||
if (($RBAC_Response=$RBAC->userCanAccess("PM_SETUP"))!=1) return $RBAC_Response;
|
if (($RBAC_Response = $RBAC->userCanAccess( "PM_SETUP" )) != 1)
|
||||||
|
return $RBAC_Response;
|
||||||
$G_ENABLE_BLANK_SKIN = true;
|
$G_ENABLE_BLANK_SKIN = true;
|
||||||
|
|
||||||
$dbc = new DBConnection;
|
$dbc = new DBConnection();
|
||||||
$G_PUBLISH = new Publisher;
|
$G_PUBLISH = new Publisher();
|
||||||
|
|
||||||
$fields['DATE'] = date( 'Y-m-d' );
|
$fields['DATE'] = date( 'Y-m-d' );
|
||||||
$G_PUBLISH->AddContent( 'xmlform', 'xmlform', "setup/holiday", '', $fields, "holidaySave" );
|
$G_PUBLISH->AddContent( 'xmlform', 'xmlform', "setup/holiday", '', $fields, "holidaySave" );
|
||||||
|
|
||||||
G::RenderPage( 'publish' );
|
G::RenderPage( 'publish' );
|
||||||
|
|
||||||
?>
|
|
||||||
@@ -20,9 +20,7 @@
|
|||||||
*
|
*
|
||||||
* For more information, contact Colosa Inc, 2566 Le Jeune Rd.,
|
* For more information, contact Colosa Inc, 2566 Le Jeune Rd.,
|
||||||
* Coral Gables, FL, 33134, USA, or email info@colosa.com.
|
* Coral Gables, FL, 33134, USA, or email info@colosa.com.
|
||||||
*
|
|
||||||
*/
|
*/
|
||||||
$newFile = str_replace( 'index.php', 'setup.php', __FILE__ );
|
$newFile = str_replace( 'index.php', 'setup.php', __FILE__ );
|
||||||
return $newFile;
|
return $newFile;
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -6,8 +6,7 @@
|
|||||||
|
|
||||||
if (is_object( $response ) && get_class( $response ) == 'SOAP_Fault') {
|
if (is_object( $response ) && get_class( $response ) == 'SOAP_Fault') {
|
||||||
$errorMessage = $response->getFault()->faultstring;
|
$errorMessage = $response->getFault()->faultstring;
|
||||||
}
|
} else {
|
||||||
else {
|
|
||||||
$folders = $oJasper->getResourceDescriptors( $response );
|
$folders = $oJasper->getResourceDescriptors( $response );
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -16,13 +15,13 @@
|
|||||||
|
|
||||||
//execute a report
|
//execute a report
|
||||||
|
|
||||||
|
|
||||||
$currentUri = "/reports/samples/Employees";
|
$currentUri = "/reports/samples/Employees";
|
||||||
$result = $oJasper->ws_get( $currentUri );
|
$result = $oJasper->ws_get( $currentUri );
|
||||||
|
|
||||||
$folders = $oJasper->getResourceDescriptors( $result );
|
$folders = $oJasper->getResourceDescriptors( $result );
|
||||||
|
|
||||||
if (count($folders) != 1 || $folders[0]['type'] != 'reportUnit')
|
if (count( $folders ) != 1 || $folders[0]['type'] != 'reportUnit') {
|
||||||
{
|
|
||||||
echo "<H1>Invalid RU ($currentUri)</H1>";
|
echo "<H1>Invalid RU ($currentUri)</H1>";
|
||||||
echo "<pre>$result</pre>";
|
echo "<pre>$result</pre>";
|
||||||
exit();
|
exit();
|
||||||
@@ -34,11 +33,12 @@
|
|||||||
// starting with PARAM_ ...
|
// starting with PARAM_ ...
|
||||||
//
|
//
|
||||||
|
|
||||||
|
|
||||||
$report_params = array ();
|
$report_params = array ();
|
||||||
|
|
||||||
$moveToPage = "jasper?uri=$currentUri";
|
$moveToPage = "jasper?uri=$currentUri";
|
||||||
|
|
||||||
foreach (array_keys($_GET) AS $param_name) {
|
foreach (array_keys( $_GET ) as $param_name) {
|
||||||
if (strncmp( "PARAM_", $param_name, 6 ) == 0) {
|
if (strncmp( "PARAM_", $param_name, 6 ) == 0) {
|
||||||
$report_params[substr( $param_name, 6 )] = $_GET[$param_name];
|
$report_params[substr( $param_name, 6 )] = $_GET[$param_name];
|
||||||
}
|
}
|
||||||
@@ -82,16 +82,15 @@
|
|||||||
exit();
|
exit();
|
||||||
}
|
}
|
||||||
|
|
||||||
if (is_array($attachments))
|
if (is_array( $attachments )) {
|
||||||
{
|
|
||||||
//krumo ($attachments);
|
//krumo ($attachments);
|
||||||
|
|
||||||
|
|
||||||
switch ($formatReport) {
|
switch ($formatReport) {
|
||||||
case RUN_OUTPUT_FORMAT_PDF:
|
case RUN_OUTPUT_FORMAT_PDF:
|
||||||
header( "Content-type: application/pdf" );
|
header( "Content-type: application/pdf" );
|
||||||
echo ($attachments["cid:report"]);
|
echo ($attachments["cid:report"]);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case RUN_OUTPUT_FORMAT_HTML:
|
case RUN_OUTPUT_FORMAT_HTML:
|
||||||
// 1. Save attachments....
|
// 1. Save attachments....
|
||||||
// 2. Print the report....
|
// 2. Print the report....
|
||||||
@@ -114,20 +113,17 @@
|
|||||||
echo $attachments["cid:report"];
|
echo $attachments["cid:report"];
|
||||||
//print_r(array_keys($attachments));
|
//print_r(array_keys($attachments));
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case RUN_OUTPUT_FORMAT_CSV:
|
case RUN_OUTPUT_FORMAT_CSV:
|
||||||
case RUN_OUTPUT_FORMAT_XLS:
|
case RUN_OUTPUT_FORMAT_XLS:
|
||||||
header( 'Content-type: application/xls' );
|
header( 'Content-type: application/xls' );
|
||||||
header( 'Content-Disposition: attachment; filename="report.xls"' );
|
header( 'Content-Disposition: attachment; filename="report.xls"' );
|
||||||
echo ($attachments["cid:report"]);
|
echo ($attachments["cid:report"]);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case RUN_OUTPUT_FORMAT_RTF:
|
case RUN_OUTPUT_FORMAT_RTF:
|
||||||
header( 'Content-type: text/rtf' );
|
header( 'Content-type: text/rtf' );
|
||||||
header( 'Content-Disposition: attachment; filename="report.rtf"' );
|
header( 'Content-Disposition: attachment; filename="report.rtf"' );
|
||||||
echo ($attachments["cid:report"]);
|
echo ($attachments["cid:report"]);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
default:
|
default:
|
||||||
//header ( 'Content-type: application/xls' );
|
//header ( 'Content-type: application/xls' );
|
||||||
//header ( 'Content-Disposition: attachment; filename="report.xls"');
|
//header ( 'Content-Disposition: attachment; filename="report.xls"');
|
||||||
@@ -135,5 +131,6 @@
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
exit();
|
exit();
|
||||||
}
|
} else
|
||||||
else echo "No attachment found!";
|
echo "No attachment found!";
|
||||||
|
|
||||||
|
|||||||
@@ -20,13 +20,13 @@
|
|||||||
*
|
*
|
||||||
* For more information, contact Colosa Inc, 2566 Le Jeune Rd.,
|
* For more information, contact Colosa Inc, 2566 Le Jeune Rd.,
|
||||||
* Coral Gables, FL, 33134, USA, or email info@colosa.com.
|
* Coral Gables, FL, 33134, USA, or email info@colosa.com.
|
||||||
*
|
|
||||||
*/
|
*/
|
||||||
if (($RBAC_Response=$RBAC->userCanAccess("PM_SETUP"))!=1) return $RBAC_Response;
|
if (($RBAC_Response = $RBAC->userCanAccess( "PM_SETUP" )) != 1)
|
||||||
|
return $RBAC_Response;
|
||||||
$G_ENABLE_BLANK_SKIN = true;
|
$G_ENABLE_BLANK_SKIN = true;
|
||||||
|
|
||||||
$dbc = new DBConnection;
|
$dbc = new DBConnection();
|
||||||
$G_PUBLISH = new Publisher;
|
$G_PUBLISH = new Publisher();
|
||||||
$G_PUBLISH->AddContent( "xmlform", "xmlform", "setup/language", "", "", "language_save" );
|
$G_PUBLISH->AddContent( "xmlform", "xmlform", "setup/language", "", "", "language_save" );
|
||||||
$G_PUBLISH->AddContent( "xmlform", "pagedTable", "setup/language_table", "", "", "../setup/languageAjax.php" );
|
$G_PUBLISH->AddContent( "xmlform", "pagedTable", "setup/language_table", "", "", "../setup/languageAjax.php" );
|
||||||
G::RenderPage( 'publish' );
|
G::RenderPage( 'publish' );
|
||||||
@@ -56,3 +56,4 @@ if (($RBAC_Response=$RBAC->userCanAccess("PM_SETUP"))!=1) return $RBAC_Response;
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
|||||||
@@ -20,7 +20,6 @@
|
|||||||
*
|
*
|
||||||
* For more information, contact Colosa Inc, 2566 Le Jeune Rd.,
|
* For more information, contact Colosa Inc, 2566 Le Jeune Rd.,
|
||||||
* Coral Gables, FL, 33134, USA, or email info@colosa.com.
|
* Coral Gables, FL, 33134, USA, or email info@colosa.com.
|
||||||
*
|
|
||||||
*/
|
*/
|
||||||
try {
|
try {
|
||||||
|
|
||||||
@@ -33,14 +32,14 @@ try {
|
|||||||
case 'savePredetermined':
|
case 'savePredetermined':
|
||||||
require_once "classes/model/Translation.php";
|
require_once "classes/model/Translation.php";
|
||||||
$tranlationsList = Translation::getTranslationEnvironments();
|
$tranlationsList = Translation::getTranslationEnvironments();
|
||||||
g::pr($tranlationsList); die;
|
g::pr( $tranlationsList );
|
||||||
|
die();
|
||||||
if (isset( $meta['LAN_ID'] ) && $meta['LAN_ID'] == $_POST['lang']) {
|
if (isset( $meta['LAN_ID'] ) && $meta['LAN_ID'] == $_POST['lang']) {
|
||||||
echo 'The Setting was saved successfully!';
|
echo 'The Setting was saved successfully!';
|
||||||
} else {
|
} else {
|
||||||
echo 'Some error occured while the setting was being save, try later please.';
|
echo 'Some error occured while the setting was being save, try later please.';
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case 'languagesList':
|
case 'languagesList':
|
||||||
require_once 'classes/model/Language.php';
|
require_once 'classes/model/Language.php';
|
||||||
require_once 'classes/model/IsoCountry.php';
|
require_once 'classes/model/IsoCountry.php';
|
||||||
@@ -71,6 +70,7 @@ try {
|
|||||||
$confCasesList = $conf->getConfiguration( 'casesList', 'todo' );
|
$confCasesList = $conf->getConfiguration( 'casesList', 'todo' );
|
||||||
//echo date($confCasesList['dateformat'], '2010-01-01');
|
//echo date($confCasesList['dateformat'], '2010-01-01');
|
||||||
|
|
||||||
|
|
||||||
if (isset( $confCasesList['dateformat'] )) {
|
if (isset( $confCasesList['dateformat'] )) {
|
||||||
$datetime = explode( ' ', $translationRow['DATE'] );
|
$datetime = explode( ' ', $translationRow['DATE'] );
|
||||||
|
|
||||||
@@ -127,7 +127,6 @@ try {
|
|||||||
|
|
||||||
print (G::json_encode( $response )) ;
|
print (G::json_encode( $response )) ;
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case 'delete':
|
case 'delete':
|
||||||
include_once 'classes/model/Translation.php';
|
include_once 'classes/model/Translation.php';
|
||||||
include_once 'classes/model/Content.php';
|
include_once 'classes/model/Content.php';
|
||||||
@@ -170,4 +169,4 @@ try {
|
|||||||
} catch (Exception $oException) {
|
} catch (Exception $oException) {
|
||||||
die( $oException->getMessage() );
|
die( $oException->getMessage() );
|
||||||
}
|
}
|
||||||
?>
|
|
||||||
|
|||||||
@@ -20,19 +20,16 @@
|
|||||||
*
|
*
|
||||||
* For more information, contact Colosa Inc, 2566 Le Jeune Rd.,
|
* For more information, contact Colosa Inc, 2566 Le Jeune Rd.,
|
||||||
* Coral Gables, FL, 33134, USA, or email info@colosa.com.
|
* Coral Gables, FL, 33134, USA, or email info@colosa.com.
|
||||||
*
|
|
||||||
*/
|
*/
|
||||||
$RBAC->requirePermissions( 'PM_SETUP_ADVANCE' );
|
$RBAC->requirePermissions( 'PM_SETUP_ADVANCE' );
|
||||||
|
|
||||||
$oHeadPublisher->addExtJsScript( 'setup/languages', false ); //adding a javascript file .js
|
$oHeadPublisher->addExtJsScript( 'setup/languages', false ); //adding a javascript file .js
|
||||||
$oHeadPublisher->addContent( 'setup/languages' ); //adding a html file .html.
|
$oHeadPublisher->addContent( 'setup/languages' ); //adding a html file .html.
|
||||||
|
|
||||||
$labels = G::getTranslations(Array(
|
|
||||||
'ID_LAN_PREDETERMINED', 'ID_LANG_INSTALL_UPDATE', 'ID_LAN_LANGUAGE', 'ID_LAN_COUNTRY', 'ID_LAN_UPDATE_DATE',
|
$labels = G::getTranslations( Array ('ID_LAN_PREDETERMINED','ID_LANG_INSTALL_UPDATE','ID_LAN_LANGUAGE','ID_LAN_COUNTRY','ID_LAN_UPDATE_DATE','ID_LAN_REV_DATE','ID_LAN_FILE','ID_LAN_REV_DATE','ID_LAN_VERSION','ID_LAN_GRID_TITLE','ID_LAN_UPLOAD_TITLE','ID_LAN_FILE_WATER_LABEL','ID_EXPORT','ID_UPLOAD','ID_CANCEL','ID_DELETE_LANGUAGE','ID_DELETE_LANGUAGE_CONFIRM','ID_DELETE_LANGUAGE_WARNING','ID_ACTIONS','ID_LAN_LOCALE','ID_LAN_TRANSLATOR','ID_LAN_NUM_RECORDS','ID_UPLOADING_TRANSLATION_FILE'
|
||||||
'ID_LAN_REV_DATE', 'ID_LAN_FILE', 'ID_LAN_REV_DATE', 'ID_LAN_VERSION', 'ID_LAN_GRID_TITLE', 'ID_LAN_UPLOAD_TITLE',
|
|
||||||
'ID_LAN_FILE_WATER_LABEL', 'ID_EXPORT', 'ID_UPLOAD', 'ID_CANCEL', 'ID_DELETE_LANGUAGE', 'ID_DELETE_LANGUAGE_CONFIRM',
|
|
||||||
'ID_DELETE_LANGUAGE_WARNING', 'ID_ACTIONS', 'ID_LAN_LOCALE', 'ID_LAN_TRANSLATOR', 'ID_LAN_NUM_RECORDS', 'ID_UPLOADING_TRANSLATION_FILE'
|
|
||||||
) );
|
) );
|
||||||
|
|
||||||
//$oHeadPublisher->assign('TRANSLATIONS', $labels);
|
//$oHeadPublisher->assign('TRANSLATIONS', $labels);
|
||||||
G::RenderPage( 'publish', 'extJs' );
|
G::RenderPage( 'publish', 'extJs' );
|
||||||
|
|
||||||
|
|||||||
@@ -20,14 +20,13 @@
|
|||||||
*
|
*
|
||||||
* For more information, contact Colosa Inc, 2566 Le Jeune Rd.,
|
* For more information, contact Colosa Inc, 2566 Le Jeune Rd.,
|
||||||
* Coral Gables, FL, 33134, USA, or email info@colosa.com.
|
* Coral Gables, FL, 33134, USA, or email info@colosa.com.
|
||||||
*
|
|
||||||
*/
|
*/
|
||||||
//print_r($_GET['LAN_ID']);
|
//print_r($_GET['LAN_ID']);
|
||||||
|
|
||||||
|
|
||||||
require_once 'classes/model/Language.php';
|
require_once 'classes/model/Language.php';
|
||||||
require_once 'classes/model/Content.php';
|
require_once 'classes/model/Content.php';
|
||||||
|
|
||||||
|
|
||||||
$kk = new Criteria();
|
$kk = new Criteria();
|
||||||
$kk->add( ContentPeer::CON_LANG, $_GET['LAN_ID'] );
|
$kk->add( ContentPeer::CON_LANG, $_GET['LAN_ID'] );
|
||||||
$oDataset = ContentPeer::doSelectRS( $kk );
|
$oDataset = ContentPeer::doSelectRS( $kk );
|
||||||
@@ -38,7 +37,7 @@ $aRow1 = $oDataset->getRow();
|
|||||||
|
|
||||||
if (is_array( $aRow1 )) {
|
if (is_array( $aRow1 )) {
|
||||||
|
|
||||||
$G_PUBLISH = new Publisher;
|
$G_PUBLISH = new Publisher();
|
||||||
$G_MAIN_MENU = 'processmaker';
|
$G_MAIN_MENU = 'processmaker';
|
||||||
$G_ID_MENU_SELECTED = 'SETUP';
|
$G_ID_MENU_SELECTED = 'SETUP';
|
||||||
$G_SUB_MENU = 'setup';
|
$G_SUB_MENU = 'setup';
|
||||||
@@ -71,3 +70,4 @@ if(is_array($aRow1)) {
|
|||||||
|
|
||||||
G::header( 'Location: languages' );
|
G::header( 'Location: languages' );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -20,7 +20,6 @@
|
|||||||
*
|
*
|
||||||
* For more information, contact Colosa Inc, 2566 Le Jeune Rd.,
|
* For more information, contact Colosa Inc, 2566 Le Jeune Rd.,
|
||||||
* Coral Gables, FL, 33134, USA, or email info@colosa.com.
|
* Coral Gables, FL, 33134, USA, or email info@colosa.com.
|
||||||
*
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
require_once "classes/model/Language.php";
|
require_once "classes/model/Language.php";
|
||||||
@@ -31,4 +30,3 @@ if( ! isset($_GET['LOCALE']) )
|
|||||||
$language = new Language();
|
$language = new Language();
|
||||||
$language->export();
|
$language->export();
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -20,7 +20,6 @@
|
|||||||
*
|
*
|
||||||
* For more information, contact Colosa Inc, 2566 Le Jeune Rd.,
|
* For more information, contact Colosa Inc, 2566 Le Jeune Rd.,
|
||||||
* Coral Gables, FL, 33134, USA, or email info@colosa.com.
|
* Coral Gables, FL, 33134, USA, or email info@colosa.com.
|
||||||
*
|
|
||||||
*/
|
*/
|
||||||
require_once "classes/model/Language.php";
|
require_once "classes/model/Language.php";
|
||||||
|
|
||||||
@@ -29,9 +28,15 @@ $access = $RBAC->userCanAccess('PM_SETUP_ADVANCE');
|
|||||||
|
|
||||||
if ($access != 1) {
|
if ($access != 1) {
|
||||||
switch ($access) {
|
switch ($access) {
|
||||||
case -1: G::SendTemporalMessage('ID_USER_HAVENT_RIGHTS_PAGE', 'error', 'labels'); break;
|
case - 1:
|
||||||
case -2: G::SendTemporalMessage('ID_USER_HAVENT_RIGHTS_SYSTEM', 'error', 'labels'); break;
|
G::SendTemporalMessage( 'ID_USER_HAVENT_RIGHTS_PAGE', 'error', 'labels' );
|
||||||
default: G::SendTemporalMessage('ID_USER_HAVENT_RIGHTS_PAGE', 'error', 'labels'); break;
|
break;
|
||||||
|
case - 2:
|
||||||
|
G::SendTemporalMessage( 'ID_USER_HAVENT_RIGHTS_SYSTEM', 'error', 'labels' );
|
||||||
|
break;
|
||||||
|
default:
|
||||||
|
G::SendTemporalMessage( 'ID_USER_HAVENT_RIGHTS_PAGE', 'error', 'labels' );
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
G::header( 'location: ../login/login' );
|
G::header( 'location: ../login/login' );
|
||||||
exit( 0 );
|
exit( 0 );
|
||||||
@@ -68,7 +73,7 @@ try {
|
|||||||
}
|
}
|
||||||
|
|
||||||
$language = new Language();
|
$language = new Language();
|
||||||
$configuration = new Configurations;
|
$configuration = new Configurations();
|
||||||
$importResults = $language->import( $languageFile );
|
$importResults = $language->import( $languageFile );
|
||||||
|
|
||||||
G::LoadClass( "wsTools" );
|
G::LoadClass( "wsTools" );
|
||||||
@@ -88,12 +93,7 @@ try {
|
|||||||
$result->success = true;
|
$result->success = true;
|
||||||
|
|
||||||
//saving metadata
|
//saving metadata
|
||||||
$configuration->aConfig = Array(
|
$configuration->aConfig = Array ('headers' => $importResults->headers,'language' => $importResults->lang,'import-date' => date( 'Y-m-d H:i:s' ),'user' => '','version' => '1.0'
|
||||||
'headers' => $importResults->headers,
|
|
||||||
'language' => $importResults->lang,
|
|
||||||
'import-date' => date('Y-m-d H:i:s'),
|
|
||||||
'user' => '',
|
|
||||||
'version' => '1.0'
|
|
||||||
);
|
);
|
||||||
$configuration->saveConfig( 'LANGUAGE_META', $importResults->lang );
|
$configuration->saveConfig( 'LANGUAGE_META', $importResults->lang );
|
||||||
|
|
||||||
@@ -108,6 +108,3 @@ try {
|
|||||||
}
|
}
|
||||||
echo G::json_encode( $result );
|
echo G::json_encode( $result );
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -20,27 +20,25 @@
|
|||||||
*
|
*
|
||||||
* For more information, contact Colosa Inc, 2566 Le Jeune Rd.,
|
* For more information, contact Colosa Inc, 2566 Le Jeune Rd.,
|
||||||
* Coral Gables, FL, 33134, USA, or email info@colosa.com.
|
* Coral Gables, FL, 33134, USA, or email info@colosa.com.
|
||||||
*
|
|
||||||
*/
|
*/
|
||||||
global $RBAC;
|
global $RBAC;
|
||||||
$access = $RBAC->userCanAccess( 'PM_SETUP_ADVANCE' );
|
$access = $RBAC->userCanAccess( 'PM_SETUP_ADVANCE' );
|
||||||
if ($access != 1) {
|
if ($access != 1) {
|
||||||
switch ($access)
|
switch ($access) {
|
||||||
{
|
|
||||||
case - 1:
|
case - 1:
|
||||||
G::SendTemporalMessage( 'ID_USER_HAVENT_RIGHTS_PAGE', 'error', 'labels' );
|
G::SendTemporalMessage( 'ID_USER_HAVENT_RIGHTS_PAGE', 'error', 'labels' );
|
||||||
G::header( 'location: ../login/login' );
|
G::header( 'location: ../login/login' );
|
||||||
die;
|
die();
|
||||||
break;
|
break;
|
||||||
case - 2:
|
case - 2:
|
||||||
G::SendTemporalMessage( 'ID_USER_HAVENT_RIGHTS_SYSTEM', 'error', 'labels' );
|
G::SendTemporalMessage( 'ID_USER_HAVENT_RIGHTS_SYSTEM', 'error', 'labels' );
|
||||||
G::header( 'location: ../login/login' );
|
G::header( 'location: ../login/login' );
|
||||||
die;
|
die();
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
G::SendTemporalMessage( 'ID_USER_HAVENT_RIGHTS_PAGE', 'error', 'labels' );
|
G::SendTemporalMessage( 'ID_USER_HAVENT_RIGHTS_PAGE', 'error', 'labels' );
|
||||||
G::header( 'location: ../login/login' );
|
G::header( 'location: ../login/login' );
|
||||||
die;
|
die();
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -56,11 +54,7 @@ echo '<link rel="stylesheet" type="text/css" href="/skins/' . SYS_SKIN . '/style
|
|||||||
$oForm->render(PATH_CORE . 'templates/xmlform.html', $scriptCode = '');
|
$oForm->render(PATH_CORE . 'templates/xmlform.html', $scriptCode = '');
|
||||||
*/
|
*/
|
||||||
|
|
||||||
$G_PUBLISH = new Publisher;
|
$G_PUBLISH = new Publisher();
|
||||||
$G_PUBLISH->AddContent( 'xmlform', 'xmlform', 'setup/languages_ImportForm', '', '', 'languages_Import' );
|
$G_PUBLISH->AddContent( 'xmlform', 'xmlform', 'setup/languages_ImportForm', '', '', 'languages_Import' );
|
||||||
G::RenderPage( 'publishBlank', 'blank' );
|
G::RenderPage( 'publishBlank', 'blank' );
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -20,15 +20,15 @@
|
|||||||
*
|
*
|
||||||
* For more information, contact Colosa Inc, 2566 Le Jeune Rd.,
|
* For more information, contact Colosa Inc, 2566 Le Jeune Rd.,
|
||||||
* Coral Gables, FL, 33134, USA, or email info@colosa.com.
|
* Coral Gables, FL, 33134, USA, or email info@colosa.com.
|
||||||
*
|
|
||||||
*/
|
*/
|
||||||
if (($RBAC_Response=$RBAC->userCanAccess("PM_SETUP"))!=1) return $RBAC_Response;
|
if (($RBAC_Response = $RBAC->userCanAccess( "PM_SETUP" )) != 1)
|
||||||
|
return $RBAC_Response;
|
||||||
|
|
||||||
$G_ENABLE_BLANK_SKIN = true;
|
$G_ENABLE_BLANK_SKIN = true;
|
||||||
|
|
||||||
$uid = $_SESSION['USER_LOGGED'];
|
$uid = $_SESSION['USER_LOGGED'];
|
||||||
|
|
||||||
$dbc = new DBConnection;
|
$dbc = new DBConnection();
|
||||||
$ses = new DBSession( $dbc );
|
$ses = new DBSession( $dbc );
|
||||||
|
|
||||||
G::LoadClass( 'templateTable' );
|
G::LoadClass( 'templateTable' );
|
||||||
@@ -61,10 +61,11 @@ $table->addRowTag($r,'lastRow','','');
|
|||||||
));
|
));
|
||||||
*/
|
*/
|
||||||
|
|
||||||
$G_PUBLISH = new Publisher;
|
$G_PUBLISH = new Publisher();
|
||||||
$G_PUBLISH->AddContent( 'xmlform', 'xmlform', 'setup/location', '', $param );
|
$G_PUBLISH->AddContent( 'xmlform', 'xmlform', 'setup/location', '', $param );
|
||||||
//$G_PUBLISH->AddContent('template', '', '', '', $table->tpl);
|
//$G_PUBLISH->AddContent('template', '', '', '', $table->tpl);
|
||||||
|
|
||||||
|
|
||||||
G::RenderPage( 'publish' );
|
G::RenderPage( 'publish' );
|
||||||
|
|
||||||
?>
|
?>
|
||||||
@@ -160,3 +161,4 @@ function ajax_function(ajax_server, funcion, parameters)
|
|||||||
return objetus.responseText;
|
return objetus.responseText;
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
|||||||
@@ -20,10 +20,9 @@
|
|||||||
*
|
*
|
||||||
* For more information, contact Colosa Inc, 2566 Le Jeune Rd.,
|
* For more information, contact Colosa Inc, 2566 Le Jeune Rd.,
|
||||||
* Coral Gables, FL, 33134, USA, or email info@colosa.com.
|
* Coral Gables, FL, 33134, USA, or email info@colosa.com.
|
||||||
*
|
|
||||||
*/
|
*/
|
||||||
G::loadClass( 'configuration' );
|
G::loadClass( 'configuration' );
|
||||||
$oConf = new Configurations;
|
$oConf = new Configurations();
|
||||||
|
|
||||||
$oHeadPublisher = & headPublisher::getSingleton();
|
$oHeadPublisher = & headPublisher::getSingleton();
|
||||||
$oServerConf = & serverConf::getSingleton();
|
$oServerConf = & serverConf::getSingleton();
|
||||||
@@ -31,13 +30,13 @@
|
|||||||
$oHeadPublisher->addExtJsScript( 'setup/loginSettings', true ); //adding a javascript file .js
|
$oHeadPublisher->addExtJsScript( 'setup/loginSettings', true ); //adding a javascript file .js
|
||||||
$oHeadPublisher->addContent( 'setup/loginSettings' ); //adding a html file .html.
|
$oHeadPublisher->addContent( 'setup/loginSettings' ); //adding a html file .html.
|
||||||
|
|
||||||
|
|
||||||
$oConf->loadConfig( $obj, 'ENVIRONMENT_SETTINGS', '' );
|
$oConf->loadConfig( $obj, 'ENVIRONMENT_SETTINGS', '' );
|
||||||
|
|
||||||
$forgotPasswd = isset( $oConf->aConfig['login_enableForgotPassword'] ) ? $oConf->aConfig['login_enableForgotPassword'] : false;
|
$forgotPasswd = isset( $oConf->aConfig['login_enableForgotPassword'] ) ? $oConf->aConfig['login_enableForgotPassword'] : false;
|
||||||
$virtualKeyboad = isset( $oConf->aConfig['login_enableVirtualKeyboard'] ) ? $oConf->aConfig['login_enableVirtualKeyboard'] : false;
|
$virtualKeyboad = isset( $oConf->aConfig['login_enableVirtualKeyboard'] ) ? $oConf->aConfig['login_enableVirtualKeyboard'] : false;
|
||||||
$defaultLanguaje = isset( $oConf->aConfig['login_defaultLanguage'] ) ? $oConf->aConfig['login_defaultLanguage'] : 'en';
|
$defaultLanguaje = isset( $oConf->aConfig['login_defaultLanguage'] ) ? $oConf->aConfig['login_defaultLanguage'] : 'en';
|
||||||
|
|
||||||
|
|
||||||
$oHeadPublisher->assign( 'currentLang', $defaultLanguaje );
|
$oHeadPublisher->assign( 'currentLang', $defaultLanguaje );
|
||||||
$oHeadPublisher->assign( 'forgotPasswd', $forgotPasswd );
|
$oHeadPublisher->assign( 'forgotPasswd', $forgotPasswd );
|
||||||
$oHeadPublisher->assign( 'virtualKeyboad', $virtualKeyboad );
|
$oHeadPublisher->assign( 'virtualKeyboad', $virtualKeyboad );
|
||||||
|
|||||||
@@ -10,16 +10,16 @@
|
|||||||
|
|
||||||
$langs = $Translations->getTranslationEnvironments();
|
$langs = $Translations->getTranslationEnvironments();
|
||||||
foreach ($langs as $lang) {
|
foreach ($langs as $lang) {
|
||||||
$result->rows[] = Array('LAN_ID'=>$lang['LOCALE'], 'LAN_NAME'=>$lang['LANGUAGE']);
|
$result->rows[] = Array ('LAN_ID' => $lang['LOCALE'],'LAN_NAME' => $lang['LANGUAGE']
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
print (G::json_encode( $result )) ;
|
print (G::json_encode( $result )) ;
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case 'saveSettings':
|
case 'saveSettings':
|
||||||
$memcache = & PMmemcached::getSingleton( defined( 'SYS_SYS' ) ? SYS_SYS : '' );
|
$memcache = & PMmemcached::getSingleton( defined( 'SYS_SYS' ) ? SYS_SYS : '' );
|
||||||
G::LoadClass( 'configuration' );
|
G::LoadClass( 'configuration' );
|
||||||
$conf = new Configurations;
|
$conf = new Configurations();
|
||||||
$conf->loadConfig( $obj, 'ENVIRONMENT_SETTINGS', '' );
|
$conf->loadConfig( $obj, 'ENVIRONMENT_SETTINGS', '' );
|
||||||
|
|
||||||
$conf->aConfig['login_enableForgotPassword'] = isset( $_REQUEST['forgotPasswd'] );
|
$conf->aConfig['login_enableForgotPassword'] = isset( $_REQUEST['forgotPasswd'] );
|
||||||
@@ -36,3 +36,4 @@
|
|||||||
|
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -20,21 +20,19 @@
|
|||||||
*
|
*
|
||||||
* For more information, contact Colosa Inc, 2566 Le Jeune Rd.,
|
* For more information, contact Colosa Inc, 2566 Le Jeune Rd.,
|
||||||
* Coral Gables, FL, 33134, USA, or email info@colosa.com.
|
* Coral Gables, FL, 33134, USA, or email info@colosa.com.
|
||||||
*
|
|
||||||
*/
|
*/
|
||||||
try {
|
try {
|
||||||
global $RBAC;
|
global $RBAC;
|
||||||
switch ($RBAC->userCanAccess('PM_FACTORY'))
|
switch ($RBAC->userCanAccess( 'PM_FACTORY' )) {
|
||||||
{
|
|
||||||
case - 2:
|
case - 2:
|
||||||
G::SendTemporalMessage( 'ID_USER_HAVENT_RIGHTS_SYSTEM', 'error', 'labels' );
|
G::SendTemporalMessage( 'ID_USER_HAVENT_RIGHTS_SYSTEM', 'error', 'labels' );
|
||||||
G::header( 'location: ../login/login' );
|
G::header( 'location: ../login/login' );
|
||||||
die;
|
die();
|
||||||
break;
|
break;
|
||||||
case - 1:
|
case - 1:
|
||||||
G::SendTemporalMessage( 'ID_USER_HAVENT_RIGHTS_PAGE', 'error', 'labels' );
|
G::SendTemporalMessage( 'ID_USER_HAVENT_RIGHTS_PAGE', 'error', 'labels' );
|
||||||
G::header( 'location: ../login/login' );
|
G::header( 'location: ../login/login' );
|
||||||
die;
|
die();
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -45,7 +43,8 @@ try {
|
|||||||
unlink( $sfileDir );
|
unlink( $sfileDir );
|
||||||
//header('location: uplogo.php');
|
//header('location: uplogo.php');
|
||||||
|
|
||||||
|
|
||||||
} catch (Exception $oException) {
|
} catch (Exception $oException) {
|
||||||
die( $oException->getMessage() );
|
die( $oException->getMessage() );
|
||||||
}
|
}
|
||||||
?>
|
|
||||||
|
|||||||
@@ -20,14 +20,13 @@
|
|||||||
*
|
*
|
||||||
* For more information, contact Colosa Inc, 2566 Le Jeune Rd.,
|
* For more information, contact Colosa Inc, 2566 Le Jeune Rd.,
|
||||||
* Coral Gables, FL, 33134, USA, or email info@colosa.com.
|
* Coral Gables, FL, 33134, USA, or email info@colosa.com.
|
||||||
*
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
$RBAC->requirePermissions( 'PM_SETUP', 'PM_USERS' );
|
$RBAC->requirePermissions( 'PM_SETUP', 'PM_USERS' );
|
||||||
|
|
||||||
$G_MAIN_MENU = 'processmaker';
|
$G_MAIN_MENU = 'processmaker';
|
||||||
$G_ID_MENU_SELECTED = 'SETUP';
|
$G_ID_MENU_SELECTED = 'SETUP';
|
||||||
$G_PUBLISH = new Publisher;
|
$G_PUBLISH = new Publisher();
|
||||||
|
|
||||||
if (isset( $_GET['i18'] ))
|
if (isset( $_GET['i18'] ))
|
||||||
$_SESSION['DEV_FLAG'] = $_SESSION['TOOLS_VIEWTYPE'] = isset( $_GET['i18'] );
|
$_SESSION['DEV_FLAG'] = $_SESSION['TOOLS_VIEWTYPE'] = isset( $_GET['i18'] );
|
||||||
|
|||||||
@@ -17,44 +17,28 @@ switch ($request) {
|
|||||||
|
|
||||||
foreach ($oMenu->Options as $i => $option) {
|
foreach ($oMenu->Options as $i => $option) {
|
||||||
if ($oMenu->Types[$i] == $_GET['menu']) {
|
if ($oMenu->Types[$i] == $_GET['menu']) {
|
||||||
$items[] = array(
|
$items[] = array ('id' => $oMenu->Id[$i],'url' => ($oMenu->Options[$i] != '') ? $oMenu->Options[$i] : '#',
|
||||||
'id' => $oMenu->Id[$i],
|
|
||||||
'url' => ($oMenu->Options[$i] != '')? $oMenu->Options[$i] : '#',
|
|
||||||
//'onclick' => ($oMenu->JS[$i] != '')? $oMenu->JS[$i] : '',
|
//'onclick' => ($oMenu->JS[$i] != '')? $oMenu->JS[$i] : '',
|
||||||
'text' => $oMenu->Labels[$i],
|
'text' => $oMenu->Labels[$i],
|
||||||
//'icon' => ($oMenu->Icons[$i] != '')? $oMenu->Icons[$i] : 'icon-pmlogo.png',
|
//'icon' => ($oMenu->Icons[$i] != '')? $oMenu->Icons[$i] : 'icon-pmlogo.png',
|
||||||
//'target'=> ($oMenu->Types[$i] == 'admToolsContent')? 'admToolsContent' : ''
|
//'target'=> ($oMenu->Types[$i] == 'admToolsContent')? 'admToolsContent' : ''
|
||||||
'loaded' => true,
|
'loaded' => true,'leaf' => true,'cls' => 'pm-tree-node','iconCls' => 'ICON_' . $oMenu->Id[$i]
|
||||||
'leaf' => true,
|
|
||||||
'cls' => 'pm-tree-node',
|
|
||||||
'iconCls' => 'ICON_' . $oMenu->Id[$i]
|
|
||||||
);
|
);
|
||||||
} else if (in_array($oMenu->Types[$i], array('', 'admToolsContent')) && $_GET['menu'] == 'plugins') {
|
} else if (in_array( $oMenu->Types[$i], array ('','admToolsContent'
|
||||||
$items[] = array(
|
) ) && $_GET['menu'] == 'plugins') {
|
||||||
'id' => $oMenu->Id[$i],
|
$items[] = array ('id' => $oMenu->Id[$i],'url' => ($oMenu->Options[$i] != '') ? $oMenu->Options[$i] : '#',
|
||||||
'url' => ($oMenu->Options[$i] != '')? $oMenu->Options[$i] : '#',
|
|
||||||
//'onclick' => ($oMenu->JS[$i] != '')? $oMenu->JS[$i] : '',
|
//'onclick' => ($oMenu->JS[$i] != '')? $oMenu->JS[$i] : '',
|
||||||
'text' => $oMenu->Labels[$i],
|
'text' => $oMenu->Labels[$i],
|
||||||
//'icon' => ($oMenu->Icons[$i] != '')? $oMenu->Icons[$i] : 'icon-pmlogo.png',
|
//'icon' => ($oMenu->Icons[$i] != '')? $oMenu->Icons[$i] : 'icon-pmlogo.png',
|
||||||
//'target'=> ($oMenu->Types[$i] == 'admToolsContent')? 'admToolsContent' : ''
|
//'target'=> ($oMenu->Types[$i] == 'admToolsContent')? 'admToolsContent' : ''
|
||||||
'loaded' => true,
|
'loaded' => true,'leaf' => true,'cls' => 'pm-tree-node','iconCls' => 'ICON_' . $oMenu->Id[$i]
|
||||||
'leaf' => true,
|
|
||||||
'cls' => 'pm-tree-node',
|
|
||||||
'iconCls' => 'ICON_'.$oMenu->Id[$i]
|
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (isset( $_SESSION['DEV_FLAG'] ) && $_SESSION['DEV_FLAG'] && $_GET['menu'] == 'settings') {
|
if (isset( $_SESSION['DEV_FLAG'] ) && $_SESSION['DEV_FLAG'] && $_GET['menu'] == 'settings') {
|
||||||
unset( $_SESSION['DEV_FLAG'] );
|
unset( $_SESSION['DEV_FLAG'] );
|
||||||
$items[] = array(
|
$items[] = array ('id' => 'translations','url' => '../tools/main','text' => 'Translations','loaded' => true,'leaf' => true,'cls' => 'pm-tree-node','iconCls' => 'ICON_'
|
||||||
'id' => 'translations',
|
|
||||||
'url' => '../tools/main',
|
|
||||||
'text' => 'Translations',
|
|
||||||
'loaded' => true,
|
|
||||||
'leaf' => true,
|
|
||||||
'cls' => 'pm-tree-node',
|
|
||||||
'iconCls' => 'ICON_'
|
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -82,3 +66,4 @@ switch ($request) {
|
|||||||
echo G::json_encode( $items );
|
echo G::json_encode( $items );
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -20,7 +20,6 @@
|
|||||||
*
|
*
|
||||||
* For more information, contact Colosa Inc, 2566 Le Jeune Rd.,
|
* For more information, contact Colosa Inc, 2566 Le Jeune Rd.,
|
||||||
* Coral Gables, FL, 33134, USA, or email info@colosa.com.
|
* Coral Gables, FL, 33134, USA, or email info@colosa.com.
|
||||||
*
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
$RBAC->requirePermissions( "PM_SETUP", "PM_USERS" );
|
$RBAC->requirePermissions( "PM_SETUP", "PM_USERS" );
|
||||||
@@ -30,8 +29,7 @@ $adminSelected = null;
|
|||||||
|
|
||||||
if (isset( $_REQUEST["s"] )) {
|
if (isset( $_REQUEST["s"] )) {
|
||||||
$adminSelected = $_REQUEST["s"];
|
$adminSelected = $_REQUEST["s"];
|
||||||
}
|
} else {
|
||||||
else {
|
|
||||||
if (isset( $_SESSION["ADMIN_SELECTED"] )) {
|
if (isset( $_SESSION["ADMIN_SELECTED"] )) {
|
||||||
$adminSelected = $_SESSION["ADMIN_SELECTED"];
|
$adminSelected = $_SESSION["ADMIN_SELECTED"];
|
||||||
}
|
}
|
||||||
@@ -56,6 +54,7 @@ foreach ($menuTypes as $i => $v) {
|
|||||||
|
|
||||||
//sort($menuTypes);
|
//sort($menuTypes);
|
||||||
|
|
||||||
|
|
||||||
$tabItems = array ();
|
$tabItems = array ();
|
||||||
$i = 0;
|
$i = 0;
|
||||||
|
|
||||||
@@ -65,8 +64,7 @@ foreach ($menuTypes as $menuType) {
|
|||||||
|
|
||||||
if (substr( $LABEL_TRANSLATION, 0, 2 ) !== "**") {
|
if (substr( $LABEL_TRANSLATION, 0, 2 ) !== "**") {
|
||||||
$title = $LABEL_TRANSLATION;
|
$title = $LABEL_TRANSLATION;
|
||||||
}
|
} else {
|
||||||
else {
|
|
||||||
$title = str_replace( "_", " ", ucwords( $menuType ) );
|
$title = str_replace( "_", " ", ucwords( $menuType ) );
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -80,7 +78,8 @@ $tabActive = "";
|
|||||||
if ($adminSelected != null) {
|
if ($adminSelected != null) {
|
||||||
foreach ($oMenu->Options as $i => $option) {
|
foreach ($oMenu->Options as $i => $option) {
|
||||||
if ($oMenu->Id[$i] == $adminSelected) {
|
if ($oMenu->Id[$i] == $adminSelected) {
|
||||||
$tabActive = (in_array($oMenu->Types[$i], array("", "admToolsContent")))? "plugins" : $oMenu->Types[$i];
|
$tabActive = (in_array( $oMenu->Types[$i], array ("","admToolsContent"
|
||||||
|
) )) ? "plugins" : $oMenu->Types[$i];
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -103,3 +102,4 @@ if (isset($_GET["action"]) && $_GET["action"] == "pluginsList") {
|
|||||||
</script>
|
</script>
|
||||||
";
|
";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -20,7 +20,6 @@
|
|||||||
*
|
*
|
||||||
* For more information, contact Colosa Inc, 2566 Le Jeune Rd.,
|
* For more information, contact Colosa Inc, 2566 Le Jeune Rd.,
|
||||||
* Coral Gables, FL, 33134, USA, or email info@colosa.com.
|
* Coral Gables, FL, 33134, USA, or email info@colosa.com.
|
||||||
*
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
// lets display the items
|
// lets display the items
|
||||||
@@ -31,6 +30,7 @@
|
|||||||
G::LoadClass( 'plugin' );
|
G::LoadClass( 'plugin' );
|
||||||
//here we are enabling or disabling the plugin and all related options registered.
|
//here we are enabling or disabling the plugin and all related options registered.
|
||||||
|
|
||||||
|
|
||||||
$oPluginRegistry = & PMPluginRegistry::getSingleton();
|
$oPluginRegistry = & PMPluginRegistry::getSingleton();
|
||||||
|
|
||||||
if ($handle = opendir( PATH_PLUGINS )) {
|
if ($handle = opendir( PATH_PLUGINS )) {
|
||||||
|
|||||||
@@ -20,27 +20,25 @@
|
|||||||
*
|
*
|
||||||
* For more information, contact Colosa Inc, 2566 Le Jeune Rd.,
|
* For more information, contact Colosa Inc, 2566 Le Jeune Rd.,
|
||||||
* Coral Gables, FL, 33134, USA, or email info@colosa.com.
|
* Coral Gables, FL, 33134, USA, or email info@colosa.com.
|
||||||
*
|
|
||||||
*/
|
*/
|
||||||
global $RBAC;
|
global $RBAC;
|
||||||
$access = $RBAC->userCanAccess( 'PM_SETUP_ADVANCE' );
|
$access = $RBAC->userCanAccess( 'PM_SETUP_ADVANCE' );
|
||||||
if ($access != 1) {
|
if ($access != 1) {
|
||||||
switch ($access)
|
switch ($access) {
|
||||||
{
|
|
||||||
case - 1:
|
case - 1:
|
||||||
G::SendTemporalMessage( 'ID_USER_HAVENT_RIGHTS_PAGE', 'error', 'labels' );
|
G::SendTemporalMessage( 'ID_USER_HAVENT_RIGHTS_PAGE', 'error', 'labels' );
|
||||||
G::header( 'location: ../login/login' );
|
G::header( 'location: ../login/login' );
|
||||||
die;
|
die();
|
||||||
break;
|
break;
|
||||||
case - 2:
|
case - 2:
|
||||||
G::SendTemporalMessage( 'ID_USER_HAVENT_RIGHTS_SYSTEM', 'error', 'labels' );
|
G::SendTemporalMessage( 'ID_USER_HAVENT_RIGHTS_SYSTEM', 'error', 'labels' );
|
||||||
G::header( 'location: ../login/login' );
|
G::header( 'location: ../login/login' );
|
||||||
die;
|
die();
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
G::SendTemporalMessage( 'ID_USER_HAVENT_RIGHTS_PAGE', 'error', 'labels' );
|
G::SendTemporalMessage( 'ID_USER_HAVENT_RIGHTS_PAGE', 'error', 'labels' );
|
||||||
G::header( 'location: ../login/login' );
|
G::header( 'location: ../login/login' );
|
||||||
die;
|
die();
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -52,7 +50,6 @@ if( $access != 1 ){
|
|||||||
$G_SUB_MENU = 'setup';
|
$G_SUB_MENU = 'setup';
|
||||||
$G_ID_SUB_MENU_SELECTED = 'PLUGINS';
|
$G_ID_SUB_MENU_SELECTED = 'PLUGINS';
|
||||||
|
|
||||||
|
|
||||||
//calculating the max upload file size;
|
//calculating the max upload file size;
|
||||||
$POST_MAX_SIZE = ini_get( 'post_max_size' );
|
$POST_MAX_SIZE = ini_get( 'post_max_size' );
|
||||||
$mul = substr( $POST_MAX_SIZE, - 1 );
|
$mul = substr( $POST_MAX_SIZE, - 1 );
|
||||||
@@ -64,15 +61,16 @@ if( $access != 1 ){
|
|||||||
$mul = ($mul == 'M' ? 1048576 : ($mul == 'K' ? 1024 : ($mul == 'G' ? 1073741824 : 1)));
|
$mul = ($mul == 'M' ? 1048576 : ($mul == 'K' ? 1024 : ($mul == 'G' ? 1073741824 : 1)));
|
||||||
$uploadMaxSize = (int) $UPLOAD_MAX_SIZE * $mul;
|
$uploadMaxSize = (int) $UPLOAD_MAX_SIZE * $mul;
|
||||||
|
|
||||||
if ( $postMaxSize < $uploadMaxSize ) $uploadMaxSize = $postMaxSize;
|
if ($postMaxSize < $uploadMaxSize)
|
||||||
|
$uploadMaxSize = $postMaxSize;
|
||||||
$Fields['MAX_FILE_SIZE'] = $uploadMaxSize . " (" . $UPLOAD_MAX_SIZE . ") ";
|
$Fields['MAX_FILE_SIZE'] = $uploadMaxSize . " (" . $UPLOAD_MAX_SIZE . ") ";
|
||||||
|
|
||||||
$G_PUBLISH = new Publisher;
|
$G_PUBLISH = new Publisher();
|
||||||
try {
|
try {
|
||||||
$G_PUBLISH->AddContent( 'xmlform', 'xmlform', 'setup/pluginImport', '', $Fields, 'pluginsImportFile' );
|
$G_PUBLISH->AddContent( 'xmlform', 'xmlform', 'setup/pluginImport', '', $Fields, 'pluginsImportFile' );
|
||||||
}
|
} catch (Exception $e) {
|
||||||
catch ( Exception $e ){
|
|
||||||
$aMessage['MESSAGE'] = $e->getMessage();
|
$aMessage['MESSAGE'] = $e->getMessage();
|
||||||
$G_PUBLISH->AddContent( 'xmlform', 'xmlform', 'login/showMessage', '', $aMessage );
|
$G_PUBLISH->AddContent( 'xmlform', 'xmlform', 'login/showMessage', '', $aMessage );
|
||||||
}
|
}
|
||||||
G::RenderPage( 'publishBlank', 'blank' );
|
G::RenderPage( 'publishBlank', 'blank' );
|
||||||
|
|
||||||
|
|||||||
@@ -20,7 +20,6 @@
|
|||||||
*
|
*
|
||||||
* For more information, contact Colosa Inc, 2566 Le Jeune Rd.,
|
* For more information, contact Colosa Inc, 2566 Le Jeune Rd.,
|
||||||
* Coral Gables, FL, 33134, USA, or email info@colosa.com.
|
* Coral Gables, FL, 33134, USA, or email info@colosa.com.
|
||||||
*
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
global $RBAC;
|
global $RBAC;
|
||||||
@@ -42,10 +41,10 @@ try {
|
|||||||
}
|
}
|
||||||
if (! $_FILES['form']['type']['PLUGIN_FILENAME'] == 'application/octet-stream') {
|
if (! $_FILES['form']['type']['PLUGIN_FILENAME'] == 'application/octet-stream') {
|
||||||
$pluginFilename = $_FILES['form']['type']['PLUGIN_FILENAME'];
|
$pluginFilename = $_FILES['form']['type']['PLUGIN_FILENAME'];
|
||||||
throw ( new Exception ( G::loadTranslation('ID_FILES_INVALID_PLUGIN_FILENAME', SYS_LANG, array("pluginFilename"=>$pluginFilename)) ));
|
throw (new Exception( G::loadTranslation( 'ID_FILES_INVALID_PLUGIN_FILENAME', SYS_LANG, array ("pluginFilename" => $pluginFilename
|
||||||
|
) ) ));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
G::LoadThirdParty( 'pear/Archive', 'Tar' );
|
G::LoadThirdParty( 'pear/Archive', 'Tar' );
|
||||||
$tar = new Archive_Tar( $path . $filename );
|
$tar = new Archive_Tar( $path . $filename );
|
||||||
$sFileName = substr( $filename, 0, strrpos( $filename, '.' ) );
|
$sFileName = substr( $filename, 0, strrpos( $filename, '.' ) );
|
||||||
@@ -55,11 +54,14 @@ try {
|
|||||||
$bMainFile = false;
|
$bMainFile = false;
|
||||||
$bClassFile = false;
|
$bClassFile = false;
|
||||||
if (! is_array( $aFiles )) {
|
if (! is_array( $aFiles )) {
|
||||||
throw ( new Exception (G::loadTranslation('ID_FAILED_IMPORT_PLUGINS', SYS_LANG, array("filename"=>$filename)) ) ) ;
|
throw (new Exception( G::loadTranslation( 'ID_FAILED_IMPORT_PLUGINS', SYS_LANG, array ("filename" => $filename
|
||||||
|
) ) ));
|
||||||
}
|
}
|
||||||
foreach ($aFiles as $key => $val) {
|
foreach ($aFiles as $key => $val) {
|
||||||
if ( $val['filename'] == $sClassName . '.php' ) $bMainFile = true;
|
if ($val['filename'] == $sClassName . '.php')
|
||||||
if ( $val['filename'] == $sClassName . PATH_SEP . 'class.' . $sClassName . '.php' ) $bClassFile = true;
|
$bMainFile = true;
|
||||||
|
if ($val['filename'] == $sClassName . PATH_SEP . 'class.' . $sClassName . '.php')
|
||||||
|
$bClassFile = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
$oPluginRegistry = & PMPluginRegistry::getSingleton();
|
$oPluginRegistry = & PMPluginRegistry::getSingleton();
|
||||||
@@ -81,7 +83,6 @@ try {
|
|||||||
}
|
}
|
||||||
$res = $tar->extract( $path );
|
$res = $tar->extract( $path );
|
||||||
|
|
||||||
|
|
||||||
$sContent = file_get_contents( $path . $pluginFile );
|
$sContent = file_get_contents( $path . $pluginFile );
|
||||||
$chain = preg_quote( 'extends enterprisePlugin' );
|
$chain = preg_quote( 'extends enterprisePlugin' );
|
||||||
if (strpos( $sContent, $chain )) {
|
if (strpos( $sContent, $chain )) {
|
||||||
@@ -121,12 +122,13 @@ try {
|
|||||||
require_once PATH_PLUGINS . $aDependence['sClassName'] . '.php';
|
require_once PATH_PLUGINS . $aDependence['sClassName'] . '.php';
|
||||||
if (! $oPluginRegistry->getPluginDetails( $aDependence['sClassName'] . '.php' )) {
|
if (! $oPluginRegistry->getPluginDetails( $aDependence['sClassName'] . '.php' )) {
|
||||||
$sDependence = $aDependence['sClassName'];
|
$sDependence = $aDependence['sClassName'];
|
||||||
throw new Exception( G::loadTranslation('ID_PLUGIN_DEPENDENCE_PLUGIN', SYS_LANG, array("Dependence"=>$sDependence )) );
|
throw new Exception( G::loadTranslation( 'ID_PLUGIN_DEPENDENCE_PLUGIN', SYS_LANG, array ("Dependence" => $sDependence
|
||||||
|
) ) );
|
||||||
}
|
}
|
||||||
}
|
} else {
|
||||||
else {
|
|
||||||
$sDependence = $aDependence['sClassName'];
|
$sDependence = $aDependence['sClassName'];
|
||||||
throw new Exception( G::loadTranslation('ID_PLUGIN_DEPENDENCE_PLUGIN', SYS_LANG, array("Dependence"=>$sDependence )) );
|
throw new Exception( G::loadTranslation( 'ID_PLUGIN_DEPENDENCE_PLUGIN', SYS_LANG, array ("Dependence" => $sDependence
|
||||||
|
) ) );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -135,13 +137,14 @@ try {
|
|||||||
throw new Exception( G::loadTranslation( 'ID_RECENT_VERSION_PLUGIN' ) );
|
throw new Exception( G::loadTranslation( 'ID_RECENT_VERSION_PLUGIN' ) );
|
||||||
}
|
}
|
||||||
$res = $tar->extract( PATH_PLUGINS );
|
$res = $tar->extract( PATH_PLUGINS );
|
||||||
}
|
} else {
|
||||||
else {
|
throw (new Exception( G::loadTranslation( 'ID_FILE_CONTAIN_CLASS_PLUGIN', SYS_LANG, array ("filename" => $filename,"className" => $sClassName
|
||||||
throw ( new Exception ( G::loadTranslation('ID_FILE_CONTAIN_CLASS_PLUGIN', SYS_LANG, array("filename"=>$filename, "className"=>$sClassName )) ) ) ;
|
) ) ));
|
||||||
}
|
}
|
||||||
|
|
||||||
if (! file_exists( PATH_PLUGINS . $sClassName . '.php' )) {
|
if (! file_exists( PATH_PLUGINS . $sClassName . '.php' )) {
|
||||||
throw ( new Exception( G::loadTranslation('ID_FILE_PLUGIN_NOT_EXISTS', SYS_LANG, array("pluginFile"=>$pluginFile )) ) );
|
throw (new Exception( G::loadTranslation( 'ID_FILE_PLUGIN_NOT_EXISTS', SYS_LANG, array ("pluginFile" => $pluginFile
|
||||||
|
) ) ));
|
||||||
}
|
}
|
||||||
|
|
||||||
require_once (PATH_PLUGINS . $pluginFile);
|
require_once (PATH_PLUGINS . $pluginFile);
|
||||||
@@ -157,10 +160,10 @@ try {
|
|||||||
$size = file_put_contents( PATH_DATA_SITE . "plugin.singleton", $oPluginRegistry->serializeInstance() );
|
$size = file_put_contents( PATH_DATA_SITE . "plugin.singleton", $oPluginRegistry->serializeInstance() );
|
||||||
|
|
||||||
G::header( "Location: pluginsMain" );
|
G::header( "Location: pluginsMain" );
|
||||||
die;
|
die();
|
||||||
}
|
} catch (Exception $e) {
|
||||||
catch (Exception $e) {
|
|
||||||
$_SESSION['__PLUGIN_ERROR__'] = $e->getMessage();
|
$_SESSION['__PLUGIN_ERROR__'] = $e->getMessage();
|
||||||
G::header( 'Location: pluginsMain' );
|
G::header( 'Location: pluginsMain' );
|
||||||
die();
|
die();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -20,7 +20,6 @@
|
|||||||
*
|
*
|
||||||
* For more information, contact Colosa Inc, 2566 Le Jeune Rd.,
|
* For more information, contact Colosa Inc, 2566 Le Jeune Rd.,
|
||||||
* Coral Gables, FL, 33134, USA, or email info@colosa.com.
|
* Coral Gables, FL, 33134, USA, or email info@colosa.com.
|
||||||
*
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
$RBAC->requirePermissions( 'PM_SETUP_ADVANCE' );
|
$RBAC->requirePermissions( 'PM_SETUP_ADVANCE' );
|
||||||
@@ -54,7 +53,8 @@ $items = Array();
|
|||||||
//print_R ($pluginDetail );
|
//print_R ($pluginDetail );
|
||||||
//die;
|
//die;
|
||||||
//$status = $pluginDetail->enabled ? 'Enabled' : 'Disabled';
|
//$status = $pluginDetail->enabled ? 'Enabled' : 'Disabled';
|
||||||
if($pluginDetail==NULL) continue; //When for some reason we gen NULL plugin
|
if ($pluginDetail == null)
|
||||||
|
continue; //When for some reason we gen NULL plugin
|
||||||
$status_label = $pluginDetail->enabled ? G::LoadTranslation( 'ID_ENABLED' ) : G::LoadTranslation( 'ID_DISABLED' );
|
$status_label = $pluginDetail->enabled ? G::LoadTranslation( 'ID_ENABLED' ) : G::LoadTranslation( 'ID_DISABLED' );
|
||||||
$status = $pluginDetail->enabled ? 1 : 0;
|
$status = $pluginDetail->enabled ? 1 : 0;
|
||||||
if (isset( $pluginDetail->aWorkspaces )) {
|
if (isset( $pluginDetail->aWorkspaces )) {
|
||||||
@@ -74,20 +74,9 @@ $items = Array();
|
|||||||
// $linkRemove = 'pluginsRemove?id='.$pluginId.'.php&status=1';
|
// $linkRemove = 'pluginsRemove?id='.$pluginId.'.php&status=1';
|
||||||
if (isset( $pluginDetail )) {
|
if (isset( $pluginDetail )) {
|
||||||
if (! $pluginDetail->bPrivate) {
|
if (! $pluginDetail->bPrivate) {
|
||||||
$items[] = array (
|
$items[] = array ('id' => (count( $items ) + 1),'namespace' => $pluginDetail->sNamespace,'title' => $pluginDetail->sFriendlyName . "\n(" . $pluginDetail->sNamespace . '.php)','className' => $pluginDetail->sNamespace,'description' => $pluginDetail->sDescription,'version' => $pluginDetail->iVersion,'setupPage' => $pluginDetail->sSetupPage,'status_label' => $status_label,'status' => $status,'setup' => $setup,
|
||||||
'id' => (count($items) + 1),
|
|
||||||
'namespace'=>$pluginDetail->sNamespace,
|
|
||||||
'title'=>$pluginDetail->sFriendlyName . "\n(" . $pluginDetail->sNamespace . '.php)',
|
|
||||||
'className' => $pluginDetail->sNamespace,
|
|
||||||
'description' => $pluginDetail->sDescription,
|
|
||||||
'version' => $pluginDetail->iVersion,
|
|
||||||
'setupPage' => $pluginDetail->sSetupPage,
|
|
||||||
'status_label'=> $status_label,
|
|
||||||
'status'=> $status,
|
|
||||||
'setup'=>$setup,
|
|
||||||
|
|
||||||
'sFile' => $file,
|
'sFile' => $file,'sStatusFile' => $pluginDetail->enabled
|
||||||
'sStatusFile' => $pluginDetail->enabled
|
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -100,7 +89,7 @@ $items = Array();
|
|||||||
$folders['items'] = $items;
|
$folders['items'] = $items;
|
||||||
//g::pr($items);
|
//g::pr($items);
|
||||||
echo G::json_encode( $items );
|
echo G::json_encode( $items );
|
||||||
die;
|
die();
|
||||||
$_DBArray['plugins'] = $items;
|
$_DBArray['plugins'] = $items;
|
||||||
$_SESSION['_DBArray'] = $_DBArray;
|
$_SESSION['_DBArray'] = $_DBArray;
|
||||||
|
|
||||||
@@ -109,12 +98,13 @@ $items = Array();
|
|||||||
$c->setDBArrayTable( 'plugins' );
|
$c->setDBArrayTable( 'plugins' );
|
||||||
//$c->addAscendingOrderByColumn ('id');
|
//$c->addAscendingOrderByColumn ('id');
|
||||||
|
|
||||||
|
|
||||||
$G_MAIN_MENU = 'processmaker';
|
$G_MAIN_MENU = 'processmaker';
|
||||||
$G_ID_MENU_SELECTED = 'SETUP';
|
$G_ID_MENU_SELECTED = 'SETUP';
|
||||||
$G_SUB_MENU = 'setup';
|
$G_SUB_MENU = 'setup';
|
||||||
$G_ID_SUB_MENU_SELECTED = 'PLUGINS';
|
$G_ID_SUB_MENU_SELECTED = 'PLUGINS';
|
||||||
|
|
||||||
$G_PUBLISH = new Publisher;
|
$G_PUBLISH = new Publisher();
|
||||||
|
|
||||||
$oHeadPublisher = & headPublisher::getSingleton();
|
$oHeadPublisher = & headPublisher::getSingleton();
|
||||||
$oHeadPublisher->addScriptFile( '/jscore/setup/pluginList.js' );
|
$oHeadPublisher->addScriptFile( '/jscore/setup/pluginList.js' );
|
||||||
@@ -122,4 +112,3 @@ $items = Array();
|
|||||||
$G_PUBLISH->AddContent( 'propeltable', 'paged-table', 'setup/pluginList', $c );
|
$G_PUBLISH->AddContent( 'propeltable', 'paged-table', 'setup/pluginList', $c );
|
||||||
G::RenderPage( 'publishBlank', 'blank' );
|
G::RenderPage( 'publishBlank', 'blank' );
|
||||||
|
|
||||||
?>
|
|
||||||
|
|||||||
@@ -20,19 +20,13 @@
|
|||||||
*
|
*
|
||||||
* For more information, contact Colosa Inc, 2566 Le Jeune Rd.,
|
* For more information, contact Colosa Inc, 2566 Le Jeune Rd.,
|
||||||
* Coral Gables, FL, 33134, USA, or email info@colosa.com.
|
* Coral Gables, FL, 33134, USA, or email info@colosa.com.
|
||||||
*
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
$headPublisher = & headPublisher::getSingleton();
|
$headPublisher = & headPublisher::getSingleton();
|
||||||
$headPublisher->addExtJsScript( 'setup/pluginsMain', false );
|
$headPublisher->addExtJsScript( 'setup/pluginsMain', false );
|
||||||
$headPublisher->assign( "PROCESSMAKER_URL", "/sys" . SYS_SYS . "/" . SYS_LANG . "/" . SYS_SKIN );
|
$headPublisher->assign( "PROCESSMAKER_URL", "/sys" . SYS_SYS . "/" . SYS_LANG . "/" . SYS_SKIN );
|
||||||
$headPublisher->assign( "SYS_SKIN", SYS_SKIN );
|
$headPublisher->assign( "SYS_SKIN", SYS_SKIN );
|
||||||
$translations = G::getTranslations(array(
|
$translations = G::getTranslations( array ('ID_CONFIGURE','ID_STATUS','ID_DELETE','ID_IMPORT','ID_SELECT','ID_STATUS','ID_ACTIVATE','ID_DEACTIVATE','ID_PLUGINS','ID_SELECT','ID_NO_SELECTION_WARNING','ID_MSG_REMOVE_PLUGIN','ID_TITLE','ID_VERSION','ID_STATUS','ID_TITLE','ID_VERSION','ID_DESCRIPTION','ID_STATUS','ID_PLUGIN_CANT_DELETE','ID_XPDL_IMPORT','ID_DISABLE','ID_ENABLE','ID_CONFIRM'
|
||||||
'ID_CONFIGURE', 'ID_STATUS', 'ID_DELETE', 'ID_IMPORT', 'ID_SELECT',
|
|
||||||
'ID_STATUS', 'ID_ACTIVATE', 'ID_DEACTIVATE', 'ID_PLUGINS',
|
|
||||||
'ID_SELECT', 'ID_NO_SELECTION_WARNING', 'ID_MSG_REMOVE_PLUGIN',
|
|
||||||
'ID_TITLE', 'ID_VERSION', 'ID_STATUS', 'ID_TITLE', 'ID_VERSION', 'ID_DESCRIPTION',
|
|
||||||
'ID_STATUS', 'ID_PLUGIN_CANT_DELETE', 'ID_XPDL_IMPORT', 'ID_DISABLE', 'ID_ENABLE', 'ID_CONFIRM'
|
|
||||||
) );
|
) );
|
||||||
$headPublisher->assign( 'TRANSLATIONS', $translations );
|
$headPublisher->assign( 'TRANSLATIONS', $translations );
|
||||||
if (isset( $_SESSION['__PLUGIN_ERROR__'] )) {
|
if (isset( $_SESSION['__PLUGIN_ERROR__'] )) {
|
||||||
|
|||||||
@@ -20,7 +20,6 @@
|
|||||||
*
|
*
|
||||||
* For more information, contact Colosa Inc, 2566 Le Jeune Rd.,
|
* For more information, contact Colosa Inc, 2566 Le Jeune Rd.,
|
||||||
* Coral Gables, FL, 33134, USA, or email info@colosa.com.
|
* Coral Gables, FL, 33134, USA, or email info@colosa.com.
|
||||||
*
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/*
|
/*
|
||||||
@@ -41,10 +40,6 @@ switch ($RBAC->userCanAccess('PM_SETUP_ADVANCE'))
|
|||||||
|
|
||||||
G::LoadClass( "plugin" );
|
G::LoadClass( "plugin" );
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
$pluginName = $_REQUEST["pluginUid"];
|
$pluginName = $_REQUEST["pluginUid"];
|
||||||
|
|
||||||
if (file_exists( PATH_PLUGINS . $pluginName . ".php" )) {
|
if (file_exists( PATH_PLUGINS . $pluginName . ".php" )) {
|
||||||
@@ -56,3 +51,4 @@ if (file_exists(PATH_PLUGINS . $pluginName . ".php")) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
echo $pluginName . " " . nl2br( G::LoadTranslation( "ID_MSG_REMOVE_PLUGIN_SUCCESS" ) );
|
echo $pluginName . " " . nl2br( G::LoadTranslation( "ID_MSG_REMOVE_PLUGIN_SUCCESS" ) );
|
||||||
|
|
||||||
|
|||||||
@@ -20,7 +20,6 @@
|
|||||||
*
|
*
|
||||||
* For more information, contact Colosa Inc, 2566 Le Jeune Rd.,
|
* For more information, contact Colosa Inc, 2566 Le Jeune Rd.,
|
||||||
* Coral Gables, FL, 33134, USA, or email info@colosa.com.
|
* Coral Gables, FL, 33134, USA, or email info@colosa.com.
|
||||||
*
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
$pluginFile = $_GET['id'];
|
$pluginFile = $_GET['id'];
|
||||||
@@ -36,23 +35,23 @@
|
|||||||
$G_ID_MENU_SELECTED = 'SETUP';
|
$G_ID_MENU_SELECTED = 'SETUP';
|
||||||
$G_SUB_MENU = 'setup';
|
$G_SUB_MENU = 'setup';
|
||||||
$G_ID_SUB_MENU_SELECTED = 'PLUGINS';
|
$G_ID_SUB_MENU_SELECTED = 'PLUGINS';
|
||||||
$G_PUBLISH = new Publisher;
|
$G_PUBLISH = new Publisher();
|
||||||
try {
|
try {
|
||||||
//the setup page is a special page
|
//the setup page is a special page
|
||||||
if (substr( $xmlform, - 4 ) == '.php' && file_exists( PATH_PLUGINS . $xmlform )) {
|
if (substr( $xmlform, - 4 ) == '.php' && file_exists( PATH_PLUGINS . $xmlform )) {
|
||||||
require_once (PATH_PLUGINS . $xmlform);
|
require_once (PATH_PLUGINS . $xmlform);
|
||||||
die;
|
die();
|
||||||
}
|
}
|
||||||
|
|
||||||
//the setup page is a xmlform and using the default showform and saveform function to serialize data
|
//the setup page is a xmlform and using the default showform and saveform function to serialize data
|
||||||
if ( !file_exists ( PATH_PLUGINS.$xmlform.'.xml' ) ) throw ( new Exception ('setup .xml file is not defined for this plugin') );
|
if (! file_exists( PATH_PLUGINS . $xmlform . '.xml' ))
|
||||||
|
throw (new Exception( 'setup .xml file is not defined for this plugin' ));
|
||||||
|
|
||||||
$Fields = $oPluginRegistry->getFieldsForPageSetup( $details->sNamespace );
|
$Fields = $oPluginRegistry->getFieldsForPageSetup( $details->sNamespace );
|
||||||
$G_PUBLISH->AddContent( 'xmlform', 'xmlform', $xmlform, '', $Fields, 'pluginsSetupSave?id=' . $pluginFile );
|
$G_PUBLISH->AddContent( 'xmlform', 'xmlform', $xmlform, '', $Fields, 'pluginsSetupSave?id=' . $pluginFile );
|
||||||
}
|
} catch (Exception $e) {
|
||||||
catch ( Exception $e ){
|
|
||||||
$aMessage['MESSAGE'] = $e->getMessage();
|
$aMessage['MESSAGE'] = $e->getMessage();
|
||||||
$G_PUBLISH->AddContent( 'xmlform', 'xmlform', 'login/showMessage', '', $aMessage );
|
$G_PUBLISH->AddContent( 'xmlform', 'xmlform', 'login/showMessage', '', $aMessage );
|
||||||
}
|
}
|
||||||
G::RenderPage( 'publishBlank', 'blank' );
|
G::RenderPage( 'publishBlank', 'blank' );
|
||||||
|
|
||||||
|
|||||||
@@ -20,7 +20,6 @@
|
|||||||
*
|
*
|
||||||
* For more information, contact Colosa Inc, 2566 Le Jeune Rd.,
|
* For more information, contact Colosa Inc, 2566 Le Jeune Rd.,
|
||||||
* Coral Gables, FL, 33134, USA, or email info@colosa.com.
|
* Coral Gables, FL, 33134, USA, or email info@colosa.com.
|
||||||
*
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
$pluginFile = $_GET['id'];
|
$pluginFile = $_GET['id'];
|
||||||
@@ -40,7 +39,7 @@
|
|||||||
$G_SUB_MENU = 'setup';
|
$G_SUB_MENU = 'setup';
|
||||||
$G_ID_SUB_MENU_SELECTED = 'PLUGINS';
|
$G_ID_SUB_MENU_SELECTED = 'PLUGINS';
|
||||||
|
|
||||||
$G_PUBLISH = new Publisher;
|
$G_PUBLISH = new Publisher();
|
||||||
$aMessage['MESSAGE'] = $e->getMessage();
|
$aMessage['MESSAGE'] = $e->getMessage();
|
||||||
$G_PUBLISH->AddContent( 'xmlform', 'xmlform', 'login/showMessage', '', $aMessage );
|
$G_PUBLISH->AddContent( 'xmlform', 'xmlform', 'login/showMessage', '', $aMessage );
|
||||||
G::RenderPage( 'publish' );
|
G::RenderPage( 'publish' );
|
||||||
|
|||||||
@@ -12,8 +12,7 @@ switch($_GET['action']){
|
|||||||
$oServerConf->setHeartbeatProperty( 'HB_OPTION', 1, 'HEART_BEAT_CONF' );
|
$oServerConf->setHeartbeatProperty( 'HB_OPTION', 1, 'HEART_BEAT_CONF' );
|
||||||
$oServerConf->unsetHeartbeatProperty( 'HB_NEXT_BEAT_DATE', 'HEART_BEAT_CONF' );
|
$oServerConf->unsetHeartbeatProperty( 'HB_NEXT_BEAT_DATE', 'HEART_BEAT_CONF' );
|
||||||
$response->enable = true;
|
$response->enable = true;
|
||||||
}
|
} else {
|
||||||
else {
|
|
||||||
$oServerConf->setHeartbeatProperty( 'HB_OPTION', 0, 'HEART_BEAT_CONF' );
|
$oServerConf->setHeartbeatProperty( 'HB_OPTION', 0, 'HEART_BEAT_CONF' );
|
||||||
$oServerConf->unsetHeartbeatProperty( 'HB_NEXT_BEAT_DATE', 'HEART_BEAT_CONF' );
|
$oServerConf->unsetHeartbeatProperty( 'HB_NEXT_BEAT_DATE', 'HEART_BEAT_CONF' );
|
||||||
$oServerConf->setHeartbeatProperty( 'HB_BEAT_TYPE', 'endbeat', 'HEART_BEAT_CONF' );
|
$oServerConf->setHeartbeatProperty( 'HB_BEAT_TYPE', 'endbeat', 'HEART_BEAT_CONF' );
|
||||||
@@ -28,3 +27,4 @@ switch($_GET['action']){
|
|||||||
echo G::json_encode( $response );
|
echo G::json_encode( $response );
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -20,7 +20,6 @@
|
|||||||
*
|
*
|
||||||
* For more information, contact Colosa Inc, 2566 Le Jeune Rd.,
|
* For more information, contact Colosa Inc, 2566 Le Jeune Rd.,
|
||||||
* Coral Gables, FL, 33134, USA, or email info@colosa.com.
|
* Coral Gables, FL, 33134, USA, or email info@colosa.com.
|
||||||
*
|
|
||||||
*/
|
*/
|
||||||
$oHeadPublisher = & headPublisher::getSingleton();
|
$oHeadPublisher = & headPublisher::getSingleton();
|
||||||
G::LoadClass( 'serverConfiguration' );
|
G::LoadClass( 'serverConfiguration' );
|
||||||
@@ -32,7 +31,7 @@ $heartBeatChecked = $sflag == 1? true: false;
|
|||||||
|
|
||||||
$oHeadPublisher->addExtJsScript( 'setup/processHeartBeatConfig', true ); //adding a javascript file .js
|
$oHeadPublisher->addExtJsScript( 'setup/processHeartBeatConfig', true ); //adding a javascript file .js
|
||||||
|
|
||||||
|
|
||||||
$oHeadPublisher->assign( 'heartBeatChecked', $heartBeatChecked );
|
$oHeadPublisher->assign( 'heartBeatChecked', $heartBeatChecked );
|
||||||
G::RenderPage( 'publish', 'extJs' );
|
G::RenderPage( 'publish', 'extJs' );
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -3,7 +3,7 @@
|
|||||||
if ($RBAC->userCanAccess( 'PM_SETUP' ) != 1 && $RBAC->userCanAccess( 'PM_SETUP_ADVANCE' ) != 1) {
|
if ($RBAC->userCanAccess( 'PM_SETUP' ) != 1 && $RBAC->userCanAccess( 'PM_SETUP_ADVANCE' ) != 1) {
|
||||||
G::SendTemporalMessage( 'ID_USER_HAVENT_RIGHTS_PAGE', 'error', 'labels' );
|
G::SendTemporalMessage( 'ID_USER_HAVENT_RIGHTS_PAGE', 'error', 'labels' );
|
||||||
//G::header('location: ../login/login');
|
//G::header('location: ../login/login');
|
||||||
die;
|
die();
|
||||||
}
|
}
|
||||||
try {
|
try {
|
||||||
|
|
||||||
@@ -22,14 +22,14 @@ if($RBAC->userCanAccess('PM_SETUP') != 1 && $RBAC->userCanAccess('PM_SETUP_ADVAN
|
|||||||
$oServerConf->setHeartbeatProperty( 'HB_BEAT_TYPE', 'endbeat', 'HEART_BEAT_CONF' );
|
$oServerConf->setHeartbeatProperty( 'HB_BEAT_TYPE', 'endbeat', 'HEART_BEAT_CONF' );
|
||||||
echo "inactive";
|
echo "inactive";
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
//$oServerConf->setHeartbeatProperty('HB_OPTION',$_POST['HB_OPTION'],'HEART_BEAT_CONF');
|
//$oServerConf->setHeartbeatProperty('HB_OPTION',$_POST['HB_OPTION'],'HEART_BEAT_CONF');
|
||||||
|
|
||||||
}
|
|
||||||
catch ( Exception $e ) {
|
} catch (Exception $e) {
|
||||||
$G_PUBLISH = new Publisher;
|
$G_PUBLISH = new Publisher();
|
||||||
$aMessage['MESSAGE'] = $e->getMessage();
|
$aMessage['MESSAGE'] = $e->getMessage();
|
||||||
$G_PUBLISH->AddContent( 'xmlform', 'xmlform', 'login/showMessage', '', $aMessage );
|
$G_PUBLISH->AddContent( 'xmlform', 'xmlform', 'login/showMessage', '', $aMessage );
|
||||||
G::RenderPage( 'publishBlank', 'blank' );
|
G::RenderPage( 'publishBlank', 'blank' );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -20,50 +20,49 @@
|
|||||||
*
|
*
|
||||||
* For more information, contact Colosa Inc, 2566 Le Jeune Rd.,
|
* For more information, contact Colosa Inc, 2566 Le Jeune Rd.,
|
||||||
* Coral Gables, FL, 33134, USA, or email info@colosa.com.
|
* Coral Gables, FL, 33134, USA, or email info@colosa.com.
|
||||||
*
|
|
||||||
*/
|
*/
|
||||||
try { //ini_set('display_errors','1');
|
try { //ini_set('display_errors','1');
|
||||||
global $RBAC;
|
global $RBAC;
|
||||||
switch ($RBAC->userCanAccess('PM_LOGIN'))
|
switch ($RBAC->userCanAccess( 'PM_LOGIN' )) {
|
||||||
{
|
|
||||||
case - 2:
|
case - 2:
|
||||||
G::SendTemporalMessage( 'ID_USER_HAVENT_RIGHTS_SYSTEM', 'error', 'labels' );
|
G::SendTemporalMessage( 'ID_USER_HAVENT_RIGHTS_SYSTEM', 'error', 'labels' );
|
||||||
G::header( 'location: ../login/login' );
|
G::header( 'location: ../login/login' );
|
||||||
die;
|
die();
|
||||||
break;
|
break;
|
||||||
case - 1:
|
case - 1:
|
||||||
G::SendTemporalMessage( 'ID_USER_HAVENT_RIGHTS_PAGE', 'error', 'labels' );
|
G::SendTemporalMessage( 'ID_USER_HAVENT_RIGHTS_PAGE', 'error', 'labels' );
|
||||||
G::header( 'location: ../login/login' );
|
G::header( 'location: ../login/login' );
|
||||||
die;
|
die();
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
function changeNamelogo ($snameLogo)
|
function changeNamelogo ($snameLogo)
|
||||||
{
|
{
|
||||||
// The ereg_replace function has been DEPRECATED as of PHP 5.3.0.
|
// The ereg_replace function has been DEPRECATED as of PHP 5.3.0.
|
||||||
// $snameLogo = ereg_replace("[áàâãª]","a",$snameLogo);
|
// $snameLogo = ereg_replace("[áà âãª]","a",$snameLogo);
|
||||||
// $snameLogo = ereg_replace("[ÁÀÂÃ]","A",$snameLogo);
|
// $snameLogo = ereg_replace("[Ã<EFBFBD>ÀÂÃ]","A",$snameLogo);
|
||||||
// $snameLogo = ereg_replace("[ÍÌÎ]","I",$snameLogo);
|
// $snameLogo = ereg_replace("[Ã<EFBFBD>ÌÎ]","I",$snameLogo);
|
||||||
// $snameLogo = ereg_replace("[íìî]","i",$snameLogo);
|
// $snameLogo = ereg_replace("[Ãìî]","i",$snameLogo);
|
||||||
// $snameLogo = ereg_replace("[éèê]","e",$snameLogo);
|
// $snameLogo = ereg_replace("[éèê]","e",$snameLogo);
|
||||||
// $snameLogo = ereg_replace("[ÉÈÊ]","E",$snameLogo);
|
// $snameLogo = ereg_replace("[ÉÈÊ]","E",$snameLogo);
|
||||||
// $snameLogo = ereg_replace("[óòôõº]","o",$snameLogo);
|
// $snameLogo = ereg_replace("[óòôõº]","o",$snameLogo);
|
||||||
// $snameLogo = ereg_replace("[ÓÒÔÕ]","O",$snameLogo);
|
// $snameLogo = ereg_replace("[ÓÒÔÕ]","O",$snameLogo);
|
||||||
// $snameLogo = ereg_replace("[úùû]","u",$snameLogo);
|
// $snameLogo = ereg_replace("[úùû]","u",$snameLogo);
|
||||||
// $snameLogo = ereg_replace("[ÚÙÛ]","U",$snameLogo);
|
// $snameLogo = ereg_replace("[ÚÙÛ]","U",$snameLogo);
|
||||||
$snameLogo = preg_replace("/[áàâãª]/", "a", $snameLogo);
|
$snameLogo = preg_replace( "/[áà âãª]/", "a", $snameLogo );
|
||||||
$snameLogo = preg_replace("/[ÁÀÂÃ]/", "A", $snameLogo);
|
$snameLogo = preg_replace( "/[Ã<EFBFBD>ÀÂÃ]/", "A", $snameLogo );
|
||||||
$snameLogo = preg_replace("/[ÍÌÎ]/", "I", $snameLogo);
|
$snameLogo = preg_replace( "/[Ã<EFBFBD>ÌÎ]/", "I", $snameLogo );
|
||||||
$snameLogo = preg_replace("/[íìî]/", "i", $snameLogo);
|
$snameLogo = preg_replace( "/[Ãìî]/", "i", $snameLogo );
|
||||||
$snameLogo = preg_replace("/[éèê]/", "e", $snameLogo);
|
$snameLogo = preg_replace( "/[éèê]/", "e", $snameLogo );
|
||||||
$snameLogo = preg_replace("/[ÉÈÊ]/", "E", $snameLogo);
|
$snameLogo = preg_replace( "/[ÉÈÊ]/", "E", $snameLogo );
|
||||||
$snameLogo = preg_replace("/[óòôõº]/", "o", $snameLogo);
|
$snameLogo = preg_replace( "/[óòôõº]/", "o", $snameLogo );
|
||||||
$snameLogo = preg_replace("/[ÓÒÔÕ]/", "O", $snameLogo);
|
$snameLogo = preg_replace( "/[ÓÒÔÕ]/", "O", $snameLogo );
|
||||||
$snameLogo = preg_replace("/[úùû]/", "u", $snameLogo);
|
$snameLogo = preg_replace( "/[úùû]/", "u", $snameLogo );
|
||||||
$snameLogo = preg_replace("/[ÚÙÛ]/", "U", $snameLogo);
|
$snameLogo = preg_replace( "/[ÚÙÛ]/", "U", $snameLogo );
|
||||||
$snameLogo = str_replace("ç","c",$snameLogo);
|
$snameLogo = str_replace( "ç", "c", $snameLogo );
|
||||||
$snameLogo = str_replace("Ç","C",$snameLogo);
|
$snameLogo = str_replace( "Ç", "C", $snameLogo );
|
||||||
$snameLogo = str_replace("[ñ]","n",$snameLogo);
|
$snameLogo = str_replace( "[ñ]", "n", $snameLogo );
|
||||||
$snameLogo = str_replace("[Ñ]","N",$snameLogo);
|
$snameLogo = str_replace( "[Ñ]", "N", $snameLogo );
|
||||||
return ($snameLogo);
|
return ($snameLogo);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -74,10 +73,8 @@ try {//ini_set('display_errors','1');
|
|||||||
$snameLogo = trim( $snameLogo );
|
$snameLogo = trim( $snameLogo );
|
||||||
$snameLogo = changeNamelogo( $snameLogo );
|
$snameLogo = changeNamelogo( $snameLogo );
|
||||||
G::loadClass( 'configuration' );
|
G::loadClass( 'configuration' );
|
||||||
$oConf = new Configurations;
|
$oConf = new Configurations();
|
||||||
$aConf = Array(
|
$aConf = Array ('WORKSPACE_LOGO_NAME' => SYS_SYS,'DEFAULT_LOGO_NAME' => $snameLogo
|
||||||
'WORKSPACE_LOGO_NAME' => SYS_SYS,
|
|
||||||
'DEFAULT_LOGO_NAME' => $snameLogo
|
|
||||||
);
|
);
|
||||||
|
|
||||||
$oConf->aConfig = $aConf;
|
$oConf->aConfig = $aConf;
|
||||||
@@ -90,23 +87,19 @@ try {//ini_set('display_errors','1');
|
|||||||
case 'restoreLogo':
|
case 'restoreLogo':
|
||||||
$snameLogo = $_GET['NAMELOGO'];
|
$snameLogo = $_GET['NAMELOGO'];
|
||||||
G::loadClass( 'configuration' );
|
G::loadClass( 'configuration' );
|
||||||
$oConf = new Configurations;
|
$oConf = new Configurations();
|
||||||
$aConf = Array(
|
$aConf = Array ('WORKSPACE_LOGO_NAME' => '','DEFAULT_LOGO_NAME' => ''
|
||||||
'WORKSPACE_LOGO_NAME' => '',
|
|
||||||
'DEFAULT_LOGO_NAME' => ''
|
|
||||||
);
|
);
|
||||||
|
|
||||||
$oConf->aConfig = $aConf;
|
$oConf->aConfig = $aConf;
|
||||||
$oConf->saveConfig( 'USER_LOGO_REPLACEMENT', '', '', '' );
|
$oConf->saveConfig( 'USER_LOGO_REPLACEMENT', '', '', '' );
|
||||||
|
|
||||||
|
|
||||||
G::SendTemporalMessage( 'ID_REPLACED_LOGO', 'tmp-info', 'labels' );
|
G::SendTemporalMessage( 'ID_REPLACED_LOGO', 'tmp-info', 'labels' );
|
||||||
break;
|
break;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
} catch (Exception $oException) {
|
||||||
catch (Exception $oException) {
|
|
||||||
die( $oException->getMessage() );
|
die( $oException->getMessage() );
|
||||||
}
|
}
|
||||||
?>
|
|
||||||
|
|||||||
Reference in New Issue
Block a user