diff --git a/rbac/engine/includes/inc.JSForms.php b/rbac/engine/includes/inc.JSForms.php deleted file mode 100644 index 1d173adea..000000000 --- a/rbac/engine/includes/inc.JSForms.php +++ /dev/null @@ -1,122 +0,0 @@ -. - * - * For more information, contact Colosa Inc, 2566 Le Jeune Rd., - * Coral Gables, FL, 33134, USA, or email info@colosa.com. - * - */ - -global $HTTP_SESSION_VARS; -global $G_FORM; -$path = ''; -$showFieldAjax = 'showFieldAjax.php'; - -$serverAjax = G::encryptLink($path.$showFieldAjax); - -?> - - \ No newline at end of file diff --git a/rbac/engine/includes/inc.ajax.php b/rbac/engine/includes/inc.ajax.php deleted file mode 100644 index 91b72f575..000000000 --- a/rbac/engine/includes/inc.ajax.php +++ /dev/null @@ -1,91 +0,0 @@ -. - * - * For more information, contact Colosa Inc, 2566 Le Jeune Rd., - * Coral Gables, FL, 33134, USA, or email info@colosa.com. - * - */ - define ('AJAX_PAGE', 1); - - function get_ajax_value ( $varName ) { - $_result = ''; - if(isset($_GET[ $varName ]) || isset($_POST[ $varName ])) { - $_result =(isset($_GET[ $varName ]))?$_GET[ $varName ]:$_POST[ $varName ]; - } - //linea comentada porque cuando llegaba un valor cero, se convertia en la cadena nula - //y eso provocaba muchos problemas.... - //$_result =(isset($_result) and !empty($_result)) ? $_result : ""; - $_result =(isset($_result) ) ? $_result : NULL; - return $_result; - } - - function ajax_show_xmlform ( $xmlform, $Fields, $template='xmlform') { - global $G_FORM; - $G_FORM = new Form; - G::LoadSystem("xmlform"); - $xml = new XmlForm; - $xml->home = PATH_DYNAFORM; - $xml->parseFile ( $xmlform ); - $xml->renderForm ($G_FORM); - $G_FORM->Values = $Fields; - $G_FORM->SetUp( '' ); //currently is not supported the action feature - $G_FORM->hideFormAction = 1; //to avoid the render of
- G::LoadTemplate( $template ); - } - - function ajax_show_menu ( $menu ) { - if ( $menu == '' ) return; - global $G_OP_MENU; - $G_OP_MENU = new Menu; - $G_OP_MENU->Load( $menu ); - G::LoadTemplate( 'submenu' ); - } - - function ajax_show_template ( $file ) { - if ( $file == '' ) return; - G::LoadTemplate( $file ); - } - function ajax_show_image ( $file ) { - global $G_IMAGE_FILENAME; - global $G_IMAGE_PARTS; - - if ( $file == '' ) return; - - $G_IMAGE_FILENAME = $file; - //$G_IMAGE_PARTS = $Part['Data']; - - G::LoadTemplate( 'viewProcessMap' ); - } - - function ajax_show_table ( $dbc, $file , $template) { - global $G_CONTENT; - global $G_TABLE; - $G_CONTENT = new Content; - //global $G_TMP_TARGET; - if ( $file == '' || $template == '' ) return; - //$G_TMP_TARGET = $Part['Target']; - $G_TABLE = G::LoadRawTable( $file, $dbc, $Fields ); - G::LoadTemplate( $template ); - } - - function ajax_LoadJavaScript( $phpMethod, $phpFile ) { - print ' LoadPopJavaScript ( "/sys' . SYS_SYS . '/' . SYS_LANG . '/' . SYS_SKIN . '/tools/loadJavaScript.html?method=' .$phpMethod . '&file=' . $phpFile . "\");\n"; - } -?> \ No newline at end of file diff --git a/rbac/engine/skins/blank.html b/rbac/engine/skins/blank.html deleted file mode 100644 index 04fc5adb3..000000000 --- a/rbac/engine/skins/blank.html +++ /dev/null @@ -1,21 +0,0 @@ - - - - {$header} - - - - - - -
- {php} - global $G_TEMPLATE; - if ($G_TEMPLATE != '') - { - G::LoadTemplate($G_TEMPLATE); - } - {/php} -
- - \ No newline at end of file diff --git a/rbac/engine/skins/blank.php b/rbac/engine/skins/blank.php deleted file mode 100644 index 9fd8d4e8c..000000000 --- a/rbac/engine/skins/blank.php +++ /dev/null @@ -1,46 +0,0 @@ -. - * - * For more information, contact Colosa Inc, 2566 Le Jeune Rd., - * Coral Gables, FL, 33134, USA, or email info@colosa.com. - * - */ - - G::verifyPath ( PATH_SMARTY_C, true ); - G::verifyPath ( PATH_SMARTY_CACHE, true ); - - // put full path to Smarty.class.php - require_once(PATH_THIRDPARTY . 'smarty/libs/Smarty.class.php'); - - -$smarty = new Smarty(); - -$smarty->template_dir = PATH_SKINS; -$smarty->compile_dir = PATH_SMARTY_C; -$smarty->cache_dir = PATH_SMARTY_CACHE; -$smarty->config_dir = PATH_THIRDPARTY . 'smarty/configs'; - -$oHeadPublisher =& headPublisher::getSingleton(); -if (isset($oHeadPublisher)) $header = $oHeadPublisher->printHeader(); -$smarty->assign('header', $header ); -//$smarty->assign('tpl_menu', PATH_TEMPLATE . 'menu.html' ); -//$smarty->assign('tpl_submenu', PATH_TEMPLATE . 'submenu.html' ); -$smarty->display('blank.html'); -?> \ No newline at end of file diff --git a/rbac/engine/skins/index.html b/rbac/engine/skins/index.html deleted file mode 100644 index 66cb60020..000000000 --- a/rbac/engine/skins/index.html +++ /dev/null @@ -1,408 +0,0 @@ - - - - {$header} - - - - - - - - - - - - -
- - -
- - - - - -
Welcome Fernando Ontiveros - Help | - My Info | - Todo | - Today | - Logout -
-
- - - - - - -
- - - - - - - - - -

Day View

- - - - Help - -
- -
- -
- -
- - - - - -
- - -
- - - - - - - - - - - - - - - -
Key:      =Future Task      =Started and on time   =Should have started      =Overdue
-
-
- - - - -
March 2007
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
SunMonTueWedThuFriSat
- - - - 1 - 2 - 3 -
4 - 5 - 6 - 7 - 8 - 9 - 10 -
11 - 12 - 13 - 14 - 15 - 16 - 17 -
18 - 19 - 20 - 21 - 22 - 23 - 24 -
25 - 26 - 27 - 28 - 29 - 30 - 31 -
-

- - - - -
April 2007
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
SunMonTueWedThuFriSat
1 - 2 - 3 - 4 - 5 - 6 - 7 -
8 - 9 - 10 - 11 - 12 - 13 - 14 -
15 - 16 - 17 - 18 - 19 - 20 - 21 -
22 - 23 - 24 - 25 - 26 - 27 - 28 -
29 - 30 - - - - - -
-

- - - - -
May 2007
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
SunMonTueWedThuFriSat
- - 1 - 2 - 3 - 4 - 5 -
6 - 7 - 8 - 9 - 10 - 11 - 12 -
13 - 14 - 15 - 16 - 17 - 18 - 19 -
20 - 21 - 22 - 23 - 24 - 25 - 26 -
27 - 28 - 29 - 30 - 31 - - -
- -
{php} - global $G_TEMPLATE; - if( $G_TEMPLATE != "" ) G::LoadTemplate($G_TEMPLATE); -{/php} - -
- - - - - \ No newline at end of file diff --git a/rbac/engine/skins/styles.html b/rbac/engine/skins/styles.html deleted file mode 100644 index dd3680cf4..000000000 --- a/rbac/engine/skins/styles.html +++ /dev/null @@ -1,53 +0,0 @@ - - - - {$header} - - - - - - - - - -
-
   
-
-
-
- - - - - - - - - - - - -
- - - {include file= "$tpl_menu"} - -
-
- {php} - global $G_TEMPLATE; - if ($G_TEMPLATE != '') - { - G::LoadTemplate($G_TEMPLATE); - } - {/php} -
- - \ No newline at end of file diff --git a/rbac/engine/skins/styles.php b/rbac/engine/skins/styles.php deleted file mode 100644 index 1fd6949d2..000000000 --- a/rbac/engine/skins/styles.php +++ /dev/null @@ -1,46 +0,0 @@ -. - * - * For more information, contact Colosa Inc, 2566 Le Jeune Rd., - * Coral Gables, FL, 33134, USA, or email info@colosa.com. - * - */ - - G::verifyPath ( PATH_SMARTY_C, true ); - G::verifyPath ( PATH_SMARTY_CACHE, true ); - - // put full path to Smarty.class.php - require_once(PATH_THIRDPARTY . 'smarty/libs/Smarty.class.php'); - - -$smarty = new Smarty(); - -$smarty->template_dir = PATH_SKINS; -$smarty->compile_dir = PATH_SMARTY_C; -$smarty->cache_dir = PATH_SMARTY_CACHE; -$smarty->config_dir = PATH_THIRDPARTY . 'smarty/configs'; - -$oHeadPublisher =& headPublisher::getSingleton(); -if (isset($oHeadPublisher)) $header = $oHeadPublisher->printHeader(); -$smarty->assign('header', $header ); -$smarty->assign('tpl_menu', PATH_TEMPLATE . 'menu.html' ); -$smarty->assign('tpl_submenu', PATH_TEMPLATE . 'submenu.html' ); -$smarty->display('styles.html'); -?> \ No newline at end of file diff --git a/rbac/engine/skins/stylesSimple.html b/rbac/engine/skins/stylesSimple.html deleted file mode 100644 index a3d4fbf6d..000000000 --- a/rbac/engine/skins/stylesSimple.html +++ /dev/null @@ -1,188 +0,0 @@ - - - - {$header} - - - - - - -
- - - - - - - - - - - - -
- - - {php} - global $G_MAIN_MENU; - global $G_MENU_SELECTED; - global $G_ID_MENU_SELECTED; - $externalInitiation = (isset($_SESSION['EXTERNAL_INITIATION_TYPE']) ? $_SESSION['EXTERNAL_INITIATION_TYPE'] : ''); - if ($externalInitiation != 'PLATAFORM') - { - if ($G_MAIN_MENU != '') - { - $G_MENU = new Menu; - $G_MENU->Load($G_MAIN_MENU); - $G_MENU->optionOn = $G_MENU_SELECTED; - $G_MENU->id_optionOn = $G_ID_MENU_SELECTED; - $G_MENU->Class = 'mnu'; - if (is_array($G_MENU->Options)) - { - for ($ncount = 0; $ncount < $G_MENU->OptionCount(); $ncount++) - { - $target = $G_MENU->Options[$ncount]; - if ($G_MENU->Types[$ncount] == 'absolute') - { - $target = G::encryptLink(str_replace('sys' . SYS_TEMP, SYS_TEMP, $G_MENU->Options[$ncount])); - } - if ($G_MENU->Types[$ncount] != 'absolute') - { - if (defined('SYS_SYS')) - { - $target = '/sys' . SYS_TEMP . G::encryptLink('/' . SYS_LANG . '/' . SYS_SKIN . '/' . $G_MENU->Options[$ncount]); - } - else - { - $target = '/sys/' . G::encryptLink(SYS_LANG . '/' . SYS_SKIN . '/' . $G_MENU->Options[$ncount]); - } - } - $label = $G_MENU->Labels[$ncount]; - if ($G_MENU->id_optionOn != '') - { - $onMenu = ($G_MENU->Id[$ncount] == $G_MENU->id_optionOn ? true : false); - } - else - { - $onMenu = ($ncount == $G_MENU->optionOn ? true : false); - } - $classname = ($onMenu ? 'SelectedTab' : 'Tab'); - if ( $G_MENU->Classes[$ncount] != '') - { - $classname = $G_MENU->Classes[$ncount]; - } - if ($onMenu) - { - {/php} - - {php} - } - else - { - {/php} - - {php} - } - } - } - } - } - {/php} - -
-   {php}echo strtoupper($label);{/php}   - -   {php}echo strtoupper($label);{/php}   -
-
- - - {php} - global $G_SUB_MENU; - global $G_MENU_SELECTED; - global $G_ID_MENU_SELECTED; - global $G_SUB_MENU_SELECTED; - global $G_ID_SUB_MENU_SELECTED; - $externalInitiation = (isset($_SESSION['EXTERNAL_INITIATION_TYPE']) ? $_SESSION['EXTERNAL_INITIATION_TYPE'] : ''); - if ($externalInitiation != 'PLATAFORM') - { - if ($G_SUB_MENU != '') - { - $G_MENU = new Menu; - $G_MENU->Load($G_SUB_MENU); - $G_MENU->optionOn = $G_SUB_MENU_SELECTED; - $G_MENU->id_optionOn = $G_ID_SUB_MENU_SELECTED; - $G_MENU->Class = 'subMnu'; - if (is_array($G_MENU->Options)) - { - for ($ncount = 0; $ncount < $G_MENU->OptionCount(); $ncount++) - { - $target = $G_MENU->Options[$ncount]; - if ($G_MENU->Types[$ncount] == 'absolute') - { - $target = G::encryptLink(str_replace('sys' . SYS_TEMP, SYS_TEMP, $G_MENU->Options[$ncount])); - } - if ($G_MENU->Types[$ncount] != 'absolute') - { - if (defined('SYS_SYS')) - { - $target = '/sys' . SYS_TEMP . G::encryptLink('/' . SYS_LANG . '/' . SYS_SKIN . '/' . $G_MENU->Options[$ncount]); - } - else - { - $target = '/sys/' . G::encryptLink(SYS_LANG . '/' . SYS_SKIN . '/' . $G_MENU->Options[$ncount]); - } - } - $label = $G_MENU->Labels[$ncount]; - if ($G_MENU->id_optionOn != '') - { - $onMenu = ($G_MENU->Id[$ncount] == $G_MENU->id_optionOn ? true : false); - } - else - { - $onMenu = ($ncount == $G_MENU->optionOn ? true : false); - } - $classname = ($onMenu ? 'selectedSubMenu' : 'subMenu'); - if ( $G_MENU->Classes[$ncount] != '') - { - $classname = $G_MENU->Classes[$ncount]; - } - if ($onMenu) - { - {/php} - - {php} - } - else - { - {/php} - - {php} - } - if (($ncount + 1) < $G_MENU->OptionCount()) - { - print ''; - } - } - } - } - } - {/php} - -
-   {php}echo strtoupper($label);{/php}   - -   {php}echo strtoupper($label);{/php}   - |
-
- {php} - global $G_TEMPLATE; - if ($G_TEMPLATE != '') - { - G::LoadTemplate($G_TEMPLATE); - } - {/php} -
- - \ No newline at end of file diff --git a/rbac/engine/skins/wf.php b/rbac/engine/skins/wf.php deleted file mode 100644 index 15c8780a7..000000000 --- a/rbac/engine/skins/wf.php +++ /dev/null @@ -1,170 +0,0 @@ -. - * - * For more information, contact Colosa Inc, 2566 Le Jeune Rd., - * Coral Gables, FL, 33134, USA, or email info@colosa.com. - * - */ - global $HTTP_SESSION_VARS; - global $G_MENU_SELECTED; - global $G_MAIN_MENU; - global $G_SUB_MENU; - global $G_MENU; - global $G_TEMPLATE; - global $SYS_COLLECTION; - global $SYS_TARGET; - global $CURRENT_PAGE; - G::LoadInclude ( 'ajax'); - G::LoadInclude ( 'JSForms'); - -?> - - -<?php if ( $HTTP_SESSION_VARS['USER_NAME'] != "") print " (" .$HTTP_SESSION_VARS['USER_NAME'] . ")" ?> - - - - - - - - - - - - - - - - -
-
   
-
-
-
-optionOn = $G_MENU_SELECTED; - $G_MENU->Load( $G_MAIN_MENU ); - $G_MENU->Class = "mnu"; - if( is_array( $G_MENU->Options ) ) { - print ""; - print ""; - print ""; - for( $ncount = 0 ; $ncount < $G_MENU->OptionCount() ; $ncount++ ) { - $OnOff = ($ncount==$G_MENU->optionOn ? "mnuOn": "mnuOff" ); - $target = $path . $G_MENU->Options[$ncount]; - $label = $G_MENU->Labels[ $ncount]; - //si es un url ABSOLUTO - if( $G_MENU->Types[$ncount] == "absolute" ) { - if (defined('ENABLE_ENCRYPT')) { - $target = str_replace ( 'sys' . SYS_SYS , SYS_SYS , $G_MENU->Options[$ncount] ); - $target = G::encryptUrlAbsolute ( $target , URL_KEY ); - } - else - $target = $path . $G_MENU->Options[$ncount]; - } - print ""; - } - print ""; - print ""; - print "
$label " . "
"; - } - } - - if( $G_SUB_MENU != "" ) { - $G_MENU = new Menu; - $G_MENU->Load( $G_SUB_MENU ); - $G_MENU->Class = "subMnu"; - if( is_array( $G_MENU->Options ) ) { - print "
"; - for( $ncount = 0 ; $ncount < $G_MENU->OptionCount() ; $ncount++ ) { - $target = $path . $G_MENU->Options[$ncount]; - $label = $G_MENU->Labels[ $ncount]; - //si es un url ABSOLUTO - if( $G_MENU->Types[$ncount] == "absolute" ) { - if (defined('ENABLE_ENCRYPT')) { - $target = str_replace ( 'sys' . SYS_SYS , SYS_SYS , $G_MENU->Options[$ncount] ); - $target = G::encryptUrlAbsolute ( $target , URL_KEY ); - } - else - $target = $path . $G_MENU->Options[$ncount]; - } - print " $label    "; - //$G_MENU->RenderOption( $ncount ); print "   "; - } - print "
"; - } - } -?> - - - - -
- - - - - - - - - - - - - -
-
-
-
- -
Copyright © 2002 www.colosa.com. - All rights reserved. -
-
-
- - - diff --git a/rbac/engine/skins/wf5.php b/rbac/engine/skins/wf5.php deleted file mode 100644 index 2641f0841..000000000 --- a/rbac/engine/skins/wf5.php +++ /dev/null @@ -1,45 +0,0 @@ -. - * - * For more information, contact Colosa Inc, 2566 Le Jeune Rd., - * Coral Gables, FL, 33134, USA, or email info@colosa.com. - * - */ - - G::verifyPath ( '/tmp/smarty/c', true ); - G::verifyPath ( '/tmp/smarty/cache', true ); - // put full path to Smarty.class.php - require_once(PATH_THIRDPARTY . 'smarty/libs/Smarty.class.php'); - - -$smarty = new Smarty(); - -$smarty->template_dir = PATH_SKINS; -$smarty->compile_dir = '/tmp/smarty/c'; //'/web/www.domain.com/smarty/templates_c'; -$smarty->cache_dir = '/tmp/smarty/cache'; //web/www.domain.com/smarty/cache'; -$smarty->config_dir = PATH_THIRDPARTY . 'smarty/configs'; -$smarty->caching = false; - -$oHeadPublisher =& headPublisher::getSingleton(); -if (isset($oHeadPublisher)) $header = $oHeadPublisher->printHeader(); -$smarty->assign('header', $header ); -$smarty->display('index.html'); - -?> \ No newline at end of file diff --git a/rbac/engine/templates/testAuthenticationUser.php b/rbac/engine/templates/testAuthenticationUser.php deleted file mode 100644 index f22b244e9..000000000 --- a/rbac/engine/templates/testAuthenticationUser.php +++ /dev/null @@ -1,66 +0,0 @@ -. - * - * For more information, contact Colosa Inc, 2566 Le Jeune Rd., - * Coral Gables, FL, 33134, USA, or email info@colosa.com. - * - */ - - $strPass = $_POST['form'][PASS]; - - if ( $strPass == '' ) - return; - - $userId = $_SESSION['CURRENT_USER']; - - $tpl = new TemplatePower( PATH_TPL . 'testAuthenticationSource.html' ); - $tpl->prepare(); - $tpl->assign( "STYLE_CSS" , STYLE_CSS ); - $tpl->assign( "title" , $G_TABLE->title ); - - $curAuthSource = $HTTP_SESSION_VARS['CURRENT_AUTH_SOURCE']; - $dbc = new DBConnection(DB_HOST, DB_RBAC_USER, DB_RBAC_PASS, DB_RBAC_NAME ); - - //Class user - G::LoadClassRBAC ("user"); - $user = new RBAC_User; - $user->SetTo ($dbc); - $user->Load ($userId); - - //crear nueva authentication source - G::LoadClassRBAC ('authentication'); - $obj = new authenticationSource; - $obj->SetTo( $dbc ); - $res = $obj->verifyPassword ( $userId, $user->Fields['USR_LDAP_DN'] , $strPass, $user->Fields['USR_LDAP_SOURCE'] ); - -//print ""; - - foreach ( $obj->vlog as $line ) { - if ( stristr ($line, 'error' ) !== false ) $line = "" . $line . ''; - if ( stristr ($line, 'sucess' ) !== false ) $line = "" . $line . ''; - - $tpl->newBlock( "lines" ); - $tpl->assign( "text" , $line ); - } - $tpl->gotoBlock( "_ROOT" ); - $tpl->printToScreen(); - -?> \ No newline at end of file diff --git a/rbac/engine/templates/treePerm.php b/rbac/engine/templates/treePerm.php deleted file mode 100644 index b874381de..000000000 --- a/rbac/engine/templates/treePerm.php +++ /dev/null @@ -1,170 +0,0 @@ -. - * - * For more information, contact Colosa Inc, 2566 Le Jeune Rd., - * Coral Gables, FL, 33134, USA, or email info@colosa.com. - * - */ - global $G_TABLE; - global $G_CONTENT; - global $collapsed; - global $URI_VARS; - global $dbc; - global $ses; - global $pathViewChart; - global $appid; - global $canCreatePerm; - - - $appid = $_SESSION['CURRENT_APPLICATION']; - - $pathViewChart = ""; - $nodo = isset($_GET['UID'])?$_GET['UID']:''; - if ($nodo == "") $pathViewChart = ""; - - if ( ! session_is_registered ("CHART_COLLAPSED") ) $_SESSION['CHART_COLLAPSED'] = Array (); - - $collapsed = $_SESSION['CHART_COLLAPSED']; - if ( in_array ( $nodo, $collapsed) ) - $collapsed [ array_search ($nodo, $collapsed) ] = NULL; - else - array_push ( $collapsed, $nodo); - - $_SESSION['CHART_COLLAPSED'] = $collapsed; - - //Obtener nombre de la applicacion - -$dbc = new DBConnection(DB_HOST, DB_RBAC_USER, DB_RBAC_PASS, DB_RBAC_NAME ); - - G::LoadClassRBAC ('applications'); - $obj = new RBAC_Application; - $obj->SetTo ($dbc); - $obj->Load ($appid); - $_SESSION['STR_APP'] = $obj->Fields['APP_CODE'];; - $appCode = G::LoadMessage (12); - print "
$appCode
"; - - $ses = new DBSession; - $ses->SetTo ($dbc); - - function showLevel ( $i, $label1, $texto1, $texto2, $uid) { - global $pathViewChart; - global $collapsed; - global $appid; - global $dbc; - global $canCreatePerm; - - $ses = new DBSession; - $ses->SetTo ($dbc); - - $MAX_LEVEL = 10; - $sql = "SELECT count(*) as CANT from PERMISSION WHERE PRM_APPLICATION = $appid AND PRM_PARENT = $uid "; - $dset = $ses->Execute($sql); - $row2 = $dset->Read(); - - $icon = "browse"; - if ($row2['CANT'] > 0 ) $icon = "minus"; - if ( in_array ( $uid, $collapsed) ) $icon = "plus"; - - $link = ""; - if ($icon != "browse" ) - $link = ""; - - print ""; - for ( $j = 1; $j <= $i; $j ++) - print ""; - - print "" . $link . ""; - print "  "; - if ($canCreatePerm==1) - print "$texto1" ; - else - print "$texto1"; - if ($canCreatePerm==1) print ""; - print " " . $texto2 . " "; - - if ($canCreatePerm==1) { - print " "; - if ($icon == "browse" ) - print ""; - } - print ""; - print ""; - - } - - function walkLevel ( $level, $label, $parent ) { - global $collapsed; - global $appid; - global $dbc; - - $ses = new DBSession; - $ses->SetTo ($dbc); - $sql = "SELECT UID, PRM_CODE, PRM_DESCRIPTION from PERMISSION WHERE PRM_APPLICATION = $appid AND PRM_PARENT = " . $parent ; - $dset = $ses->Execute($sql); - $row = $dset->Read(); - - $c = 1; - while ( is_array ($row) ) { - - if ($label === "*" ) - { $label = ""; $locLabel = $c; } - else - $locLabel = $label . "." . $c; - - showLevel ( $level , $locLabel, $row['PRM_CODE'], $row['PRM_DESCRIPTION'], $row['UID'] ); - - if ( ! in_array ( $row['UID'], $collapsed) ) - walkLevel ( $level + 1, $locLabel, $row['UID']); - $c++; - $row = $dset->Read(); - } - } - - - -?> - - - - - - - - -
Output ("body.header");*/ ?>
- - - - - - - - - - - - - - -
-
diff --git a/rbac/engine/templates/treeRole.php b/rbac/engine/templates/treeRole.php deleted file mode 100644 index 29ffc0503..000000000 --- a/rbac/engine/templates/treeRole.php +++ /dev/null @@ -1,172 +0,0 @@ -. - * - * For more information, contact Colosa Inc, 2566 Le Jeune Rd., - * Coral Gables, FL, 33134, USA, or email info@colosa.com. - * - */ - global $G_TABLE; - global $G_CONTENT; - global $collapsed; - global $URI_VARS; - global $dbc; - global $ses; - global $pathViewChart; - global $appid; - - $appid = $_SESSION['CURRENT_APPLICATION']; - - $pathViewChart = ""; - $nodo = isset($_GET[0])?$_GET[0]:''; - - - if ( ! session_is_registered ("CHART_COLLAPSED") ) $_SESSION['CHART_COLLAPSED'] = Array (); - - $collapsed = $_SESSION['CHART_COLLAPSED']; - if ( in_array ( $nodo, $collapsed) ) - $collapsed [ array_search ($nodo, $collapsed) ] = NULL; - else - array_push ( $collapsed, $nodo); - - $_SESSION['CHART_COLLAPSED'] = $collapsed; - - //Obtener nombre de la applicacion - - $dbc = new DBConnection(DB_HOST, DB_RBAC_USER, DB_RBAC_PASS, DB_RBAC_NAME ); - G::LoadClassRBAC ('applications'); - $obj = new RBAC_Application; - $obj->SetTo ($dbc); - $obj->Load ($appid); - $_SESSION['STR_APP'] = $obj->Fields['APP_CODE'];; - $appCode = G::LoadMessage (11); - print "
$appCode
"; - - $ses = new DBSession; - $ses->SetTo ($dbc); - - - - - function showLevel ( $i, $label1, $texto1, $texto2, $uid) { - global $pathViewChart; - global $collapsed; - global $appid; - global $dbc; - global $canCreateRole; - - $MAX_LEVEL = 10; - - $ses = new DBSession; - $ses->SetTo ($dbc); - $sql = "SELECT count(*) as CANT from ROLE WHERE ROL_APPLICATION = $appid AND ROL_PARENT = $uid "; - $dset = $ses->Execute($sql); - $row = $dset->Read(); - $rolStatus = $row['CANT']; - - $icon = "browse"; - if ($row['CANT'] > 0 ) $icon = "minus"; - if ( in_array ( $uid, $collapsed) ) $icon = "plus"; - - $link = ""; - if ($icon != "browse" ) - $link = ""; - - print ""; - for ( $j = 1; $j <= $i; $j ++) - print ""; - - print "" . $link . ""; - print ""; - print "  "; - if ($canCreateRole == 1) - print "" . $texto1 .""; - else - print "$texto1"; - print " " . $texto2 . " "; - - print " "; - if ($canCreateRole == 1) { - print " "; - if ($icon == "browse" ) - print ""; - } - print ""; - print ""; - - } - - function walkLevel ( $level, $label, $parent ) { - global $collapsed; - global $appid; - global $dbc; - - $ses = new DBSession; - $ses->SetTo ($dbc); - $sql = "SELECT UID, ROL_CODE, ROL_DESCRIPTION from ROLE WHERE ROL_APPLICATION = $appid AND ROL_PARENT = " . $parent ; - $dset = $ses->Execute($sql); - $row = $dset->Read(); - - $c = 1; - while ( is_array ($row) ) { - - if ($label === "*" ) - { $label = ""; $locLabel = $c; } - else - $locLabel = $label . "." . $c; - - showLevel ( $level , $locLabel, $row['ROL_CODE'], $row['ROL_DESCRIPTION'], $row['UID'] ); - - if ( ! in_array ( $row['UID'], $collapsed) ) - walkLevel ( $level + 1, $locLabel, $row['UID']); - $c++; - $row = $dset->Read(); - } - } - - - -?> - - - - - - - - -
Output ("body.header");*/ ?>
- - - - - - - - - - - - - - -
-
diff --git a/workflow/engine/methods/cases/cases_Redirect.php b/workflow/engine/methods/cases/cases_Redirect.php index 2343ed102..c18ecc45c 100644 --- a/workflow/engine/methods/cases/cases_Redirect.php +++ b/workflow/engine/methods/cases/cases_Redirect.php @@ -1,4 +1,4 @@ -basename( $filename ) ); $value = G::replaceDataField( $value , $aFields ); $aOrigin = file( $filename); - //It suposse that allway start with =2)&&(substr($line,-2,2)=="\r\n")? "\r\n": @@ -154,7 +154,7 @@ function add_permission($filename,$value) { $aOrigin = file( $filename); - //It suposse that allway start with =2)&&(substr($line,-2,2)=="\r\n")? diff --git a/workflow/engine/templates/cases/cases_DynaformHistory.php b/workflow/engine/templates/cases/cases_DynaformHistory.php index eed7f4033..4d55f2529 100644 --- a/workflow/engine/templates/cases/cases_DynaformHistory.php +++ b/workflow/engine/templates/cases/cases_DynaformHistory.php @@ -1,4 +1,4 @@ - -
- 0 ) {?> +
+ 0 ) {?> - $trigger) {?> + $trigger) {?> - + - +
#Name 
     -   -
+   +
- - + +
- + @@ -199,49 +199,49 @@ function Only1br($string) {   - -   - + +   + - + - 0 ) {?> + 0 ) {?>
Errors
- Error - ', '',$DEBUG_POST[$i]['ERROR'])?> + ', '',$DEBUG_POST[$i]['ERROR'])?>
- - + Fatal error - ', '',$DEBUG_POST[$i]['FATAL'])?> + ', '',$DEBUG_POST[$i]['FATAL'])?>
-
No errors reported
- +
- - - + + + - diff --git a/workflow/engine/templates/dynaforms/fieldsHandlerViewer.php b/workflow/engine/templates/dynaforms/fieldsHandlerViewer.php index b18d0f9da..b3c521f89 100755 --- a/workflow/engine/templates/dynaforms/fieldsHandlerViewer.php +++ b/workflow/engine/templates/dynaforms/fieldsHandlerViewer.php @@ -101,7 +101,7 @@ body {