HOR-1091: CLONE - Clean The Code - rbac/engine/*

This commit is contained in:
mcuiza
2016-06-02 11:40:30 -04:00
parent 005ee3ef2b
commit 9897b42321
174 changed files with 0 additions and 10387 deletions

View File

@@ -1,172 +0,0 @@
<?xml version="1.0"?>
<dynaForm name="labels.xml" basedir="">xml destinado para los lenguages de los labels
<ID_AUTHOR>
<es>Autor</es>
<en>Author</en>
<po>Autor</po>
</ID_AUTHOR>
<ID_RPT_TYPE>
<es>Tipo</es>
<en>Type</en>
<po>Type</po>
</ID_RPT_TYPE>
<ID_UID>
<es>UID</es>
<en>UID</en>
<po>UID</po>
</ID_UID>
<ID_YES>
<es>Si</es>
<en>Yes</en>
<po>Si</po>
</ID_YES>
<ID_NOPE>
<es>No</es>
<en>No</en>
<po>No</po>
</ID_NOPE>
<ID_ROLE>
<es>Rol</es>
<en>Role</en>
<po>Rol</po>
</ID_ROLE>
<ID_UP>
<es>Subir</es>
<en>Up</en>
<po>Subir</po>
</ID_UP>
<ID_DOWN>
<es>Bajar</es>
<en>Down</en>
<po>Bajar</po>
</ID_DOWN>
<ID_CITY >
<es>Ciudad</es>
<en>City</en>
<po>Ciudad</po>
</ID_CITY>
<ID_USER_INACTIVE >
<es>El usuario se encuentra inactivo</es>
<en>The user is currently inactive</en>
<po>Usuario eu inactivo</po>
</ID_USER_INACTIVE>
<ID_WRONG_PASS >
<es>Contraseña incorrecta para el usuario</es>
<en>Incorrect Password for the user</en>
<po>Senha incorrecta do usurio</po>
</ID_WRONG_PASS>
<ID_USER_NOT_REGISTERED >
<es>El usuario no esta registrado en el sistema</es>
<en>The User is not registered in the system</en>
<po></po>
</ID_USER_NOT_REGISTERED>
<ID_NEW_PASS_SAME_OLD_PASS >
<es>La contraseña y la confirmacion deben ser iguales</es>
<en>The New Password and the Confirm Password must be equals</en>
<po></po>
</ID_NEW_PASS_SAME_OLD_PASS>
<ID_WRONG_OLD_PASS >
<es>Contraseña antigua incorrecta para el usuario</es>
<en>Incorrect Old Password for the user</en>
<po></po>
</ID_WRONG_OLD_PASS>
<ID_CANT_REMOVE_USER >
<es>Ud. no puede eliminar un usuario que tiene tramites</es>
<en>You can't remove a user with one or more Applications</en>
<po>voce no pode remover</po>
</ID_CANT_REMOVE_USER>
<ID_USER_HAVENT_RIGHTS_SYSTEM >
<es>El usuario no tiene derecho de ingresar al sistema</es>
<en>User haven't rights to login this system</en>
<po></po>
</ID_USER_HAVENT_RIGHTS_SYSTEM>
<ID_USER_HAVENT_RIGHTS_PAGE >
<es>El usuario no tiene derechos para ingresar a esta opcion</es>
<en>User haven't rights in this page</en>
<po></po>
</ID_USER_HAVENT_RIGHTS_PAGE>
<ID_USER_HAVENT_RIGHTS_APPLICATION >
<es>El usuario no tiene derecho para iniciar un nuevo Tramite</es>
<en>User haven't rights to start a New Application</en>
<po></po>
</ID_USER_HAVENT_RIGHTS_APPLICATION>
<ID_USER_ID_EXIST >
<es>Ya existe un usuario con el mismo Identificador de usuario</es>
<en>There is another user with the same User ID.</en>
<po></po>
</ID_USER_ID_EXIST>
<ID_PASS_CHANGED >
<es>Contraseña de inicio, cambiada correctamente</es>
<en>Password changed succesfully</en>
<po></po>
</ID_PASS_CHANGED>
<ID_PASS_RESET >
<es>Contraseña de inicio, reiniciada correctamente</es>
<en>Password reseted succesfully</en>
<po></po>
</ID_PASS_RESET>
<ID_NEW_EMPLOYEE_CREATED >
<es>Nuevo Empleado creado satisfactoriamente</es>
<en>New Employee created successfully</en>
<po></po>
</ID_NEW_EMPLOYEE_CREATED>
<ID_NEW_CLIENT_CREATED >
<es>Nuevo Cliente creado satisfactoriamente</es>
<en>New Client created successfully</en>
<po>Noivo cliente creado</po>
</ID_NEW_CLIENT_CREATED>
<ID_PAGE>
<es>Página</es>
<en>Page</en>
<po>Page</po>
</ID_PAGE>
<ID_OF>
<es>de</es>
<en>of</en>
<po>do</po>
</ID_OF>
<ID_NAME>
<es>Nombre</es>
<en>Name</en>
<po>Nome</po>
</ID_NAME>
<ID_SERVER_NAME>
<es>Nombre Servidor</es>
<en>Server Name</en>
<po>Nome Server</po>
</ID_SERVER_NAME>
<ID_PROVIDER>
<es>Proveedor</es>
<en>Provider</en>
<po>Proveedor</po>
</ID_PROVIDER>
<ID_ROLES >
<es>Roles</es>
<en>Roles</en>
<po>Roles</po>
</ID_ROLES>
<ID_PERMISSIONS >
<es>Permisos</es>
<en>Permissions</en>
<po>Permisos</po>
</ID_PERMISSIONS>
<ID_DELETE >
<es>Borrar</es>
<en>Delete</en>
<po>Supressão</po>
</ID_DELETE>
<ID_NO_RECORDS_FOUND>
<es>Sin registros</es>
<en>Records not found</en>
<po>UID_NO_RECORDS_FOUND</po>
</ID_NO_RECORDS_FOUND>
</dynaForm>

View File

@@ -1,64 +0,0 @@
<dynaForm name="menus.xml" basedir="">xml destinado para los lenguajes de los menus
<ID_MY_INFO >
<es>Mis datos</es>
<en>My info</en>
<po></po>
</ID_MY_INFO>
<ID_USERS >
<es>Usuarios</es>
<en>Users</en>
<po></po>
</ID_USERS>
<ID_ADD_USERS >
<es>Añadir Usuarios</es>
<en>Add Users</en>
<po>Adicionar Usuarios</po>
</ID_ADD_USERS>
<ID_NEW_APPLICATION >
<es>Añadir Nueva Applicación (sistema)</es>
<en>Add New Application</en>
<po>Inserir Novo Application</po>
</ID_NEW_APPLICATION>
<ID_NEW_AUTH_SOURCE >
<es>Añadir Fuente de Autenticación</es>
<en>New Authentication Source</en>
<po>Inserir Authentication</po>
</ID_NEW_AUTH_SOURCE>
<ID_EDIT >
<es>Editar</es>
<en>Edit</en>
<po>Editar</po>
</ID_EDIT>
<ID_TEST >
<es>Probar Conexión</es>
<en>Test Conectivity</en>
<po>Testar Conexion</po>
</ID_TEST>
<xxx >
<es></es>
<en></en>
<po></po>
</xxx>
<xxx >
<es></es>
<en></en>
<po></po>
</xxx>
<xxx >
<es></es>
<en></en>
<po></po>
</xxx>
</dynaForm>

View File

@@ -1,18 +0,0 @@
The User "$USER" is currently inactive
Incorrect Password for the user "$USER"
The User "$USER" is not registered in the system
The New Password and the Confirm Password must be equals
Incorrect Old Password for the user "$USER"
You can't remove a user with one or more Applications
There is another user with the same User ID.
Password changed succesfully
Password reseted succesfully
New User created successfully
Applications
Roles from Application $STR_APP.
Permissions from Application $STR_APP.
Permissions from Role $STR_ROL in Application $STR_APP
There is another role with the same Code.
There is another application with the same Code.
There is another permission with the same Code.
User haven't rights to login this system.

View File

@@ -1,18 +0,0 @@
El usuario "$USER" se encuentra inactivo
Clave de ingreso incorrecto para el usuario "$USER"
El usuario "$USER" no esta registrado en el sistema
El password nuevo y el de confirmacion deben ser iguales
Password antiguo incorrecto para el usuario "$USER"
Ud. no puede eliminar un usuario que tiene tramites
Ya existe un usuario con el mismo Identificador de usuario
Clave de inicio, cambiada correctamente
Clave de inicio, reiniciada correctamente
Nuevo Empleado creado satisfactoriamente
Aplicaciones
Roles de la Aplicación $STR_APP
Permisos de la Aplicación $STR_APP
Permisos del Rol $STR_APP en la Aplicación $STR_APP
Ya existe un Rol con el mismo código
Ya existe una Applicatión con el mismo código
Ya existe un Permiso con el mismo código
El usuario no tiene derechos para ejecutar esta aplicación

View File

@@ -1,18 +0,0 @@
El usuario "$USER" se encuentra inactivo
Clave de ingreso incorrecto para el usuario "$USER"
El usuario "$USER" no esta registrado en el sistema
El password nuevo y el de confirmacion deben ser iguales
Password antiguo incorrecto para el usuario "$USER"
Ud. no puede eliminar un usuario que tiene tramites
Ya existe un usuario con el mismo Identificador de usuario
Clave de inicio, cambiada correctamente
Clave de inicio, reiniciada correctamente
Nuevo Usuario creado satisfactoriamente
Applicaciones
Roles de la Aplicacion $STR_APP
Permisos de la Aplicaciones $STR_APP
Permisos del Rol $STR_ROL en $STR_APP
Ya existe un Rol con el mismo Codigo
Ya existe una Aplicacion con el mismo Codigo
Ya existe un Permiso con el mismo Codigo
El usuario no tiene derechos para ejecutar esta aplicacion

View File

@@ -1,26 +0,0 @@
%??.name=myApp.cnt basedir=content//files generic Mis tr<74>mites
%es.title
Administraci<EFBFBD>n de usuarios
%es.body.header
<center class=subtitle>.<center>
%es.body
%es.body.footer
<center><center>
%en.title
User Manager
%en.body.header
<center class=subtitle>.<center>
%en.body
%en.body.footer
<center><center>
%po.title
User Administrator
%en.body.header
<center class=subtitle>.<center>
%en.body
%en.body.footer
<center><center>

View File

@@ -1,64 +0,0 @@
INSERT INTO RBAC_PERMISSIONS VALUES ('00000000000000000000000000000001','PM_LOGIN','2007-08-03 12:24:36','2007-08-03 12:24:36',1,'00000000000000000000000000000002');
INSERT INTO RBAC_PERMISSIONS VALUES ('00000000000000000000000000000002','PM_SETUP','2007-08-03 12:24:36','2007-08-03 12:24:36',1,'00000000000000000000000000000002');
INSERT INTO RBAC_PERMISSIONS VALUES ('00000000000000000000000000000003','PM_USERS','2007-08-03 12:24:36','2007-08-03 12:24:36',1,'00000000000000000000000000000002');
INSERT INTO RBAC_PERMISSIONS VALUES ('00000000000000000000000000000004','PM_FACTORY','2007-08-03 12:24:36','2007-08-03 12:24:36',1,'00000000000000000000000000000002');
INSERT INTO RBAC_PERMISSIONS VALUES ('00000000000000000000000000000005','PM_CASES','2007-08-03 12:24:36','2007-08-03 12:24:36',1,'00000000000000000000000000000002');
INSERT INTO RBAC_PERMISSIONS VALUES ('00000000000000000000000000000006','PM_ALLCASES','2008-04-30 00:00:00','2008-04-30 00:00:00',1,'00000000000000000000000000000002');
INSERT INTO RBAC_PERMISSIONS VALUES ('00000000000000000000000000000008','PM_REPORTS','2008-05-12 00:00:00','2008-05-12 00:00:00',0,'00000000000000000000000000000002');
INSERT INTO RBAC_PERMISSIONS VALUES ('00000000000000000000000000000007','PM_REASSIGNCASE','2008-05-02 18:16:29','2008-05-02 18:16:29',1,'00000000000000000000000000000002');
INSERT INTO RBAC_PERMISSIONS VALUES ('00000000000000000000000000000009','PM_SUPERVISOR','0000-00-00 00:00:00','0000-00-00 00:00:00',1,'00000000000000000000000000000002');
INSERT INTO RBAC_PERMISSIONS VALUES ('00000000000000000000000000000010','PM_SETUP_ADVANCE','0000-00-00 00:00:00','0000-00-00 00:00:00',1,'00000000000000000000000000000002');
INSERT INTO RBAC_PERMISSIONS VALUES ('00000000000000000000000000000011','PM_DASHBOARD','2009-02-18 00:00:00','2009-02-18 00:00:00',1,'00000000000000000000000000000002');
INSERT INTO RBAC_PERMISSIONS VALUES ('00000000000000000000000000000012','PM_WEBDAV','2009-08-21 00:00:00','2009-08-21 00:00:00',1,'00000000000000000000000000000002');
INSERT INTO RBAC_PERMISSIONS VALUES ('00000000000000000000000000000013','PM_DELETECASE','2009-10-12 00:00:00','0000-00-00 00:00:00',0,'00000000000000000000000000000002');
INSERT INTO RBAC_PERMISSIONS VALUES ('00000000000000000000000000000014','PM_EDITPERSONALINFO','2009-10-12 00:00:00','0000-00-00 00:00:00',1,'00000000000000000000000000000002');
INSERT INTO RBAC_PERMISSIONS VALUES ('00000000000000000000000000000015','PM_FOLDERS_VIEW','2009-10-12 00:00:00','0000-00-00 00:00:00',1,'00000000000000000000000000000002');
INSERT INTO RBAC_PERMISSIONS VALUES ('00000000000000000000000000000016','PM_FOLDERS_ADD_FOLDER','2009-10-12 00:00:00','0000-00-00 00:00:00',1,'00000000000000000000000000000002');
INSERT INTO RBAC_PERMISSIONS VALUES ('00000000000000000000000000000017','PM_FOLDERS_ADD_FILE','2009-10-12 00:00:00','0000-00-00 00:00:00',1,'00000000000000000000000000000002');
INSERT INTO RBAC_ROLES VALUES ('00000000000000000000000000000001','','00000000000000000000000000000001','RBAC_ADMIN','2007-07-31 19:10:22','2007-08-03 12:24:36',1);
INSERT INTO RBAC_ROLES VALUES ('00000000000000000000000000000002','','00000000000000000000000000000002','PROCESSMAKER_ADMIN','2007-07-31 19:10:22','2007-08-03 12:24:36',1);
INSERT INTO RBAC_ROLES VALUES ('00000000000000000000000000000003','','00000000000000000000000000000002','PROCESSMAKER_OPERATOR','2007-07-31 19:10:22','2007-08-03 12:24:36',1);
INSERT INTO RBAC_ROLES VALUES ('00000000000000000000000000000004','','00000000000000000000000000000002','PROCESSMAKER_MANAGER', '2010-03-29 09:14:15', '2010-03-29 09:19:53', 1);
INSERT INTO RBAC_ROLES_PERMISSIONS VALUES ('00000000000000000000000000000002','00000000000000000000000000000001');
INSERT INTO RBAC_ROLES_PERMISSIONS VALUES ('00000000000000000000000000000002','00000000000000000000000000000002');
INSERT INTO RBAC_ROLES_PERMISSIONS VALUES ('00000000000000000000000000000002','00000000000000000000000000000003');
INSERT INTO RBAC_ROLES_PERMISSIONS VALUES ('00000000000000000000000000000002','00000000000000000000000000000004');
INSERT INTO RBAC_ROLES_PERMISSIONS VALUES ('00000000000000000000000000000002','00000000000000000000000000000005');
INSERT INTO RBAC_ROLES_PERMISSIONS VALUES ('00000000000000000000000000000002','00000000000000000000000000000006');
INSERT INTO RBAC_ROLES_PERMISSIONS VALUES ('00000000000000000000000000000002','00000000000000000000000000000007');
INSERT INTO RBAC_ROLES_PERMISSIONS VALUES ('00000000000000000000000000000002','00000000000000000000000000000008');
INSERT INTO RBAC_ROLES_PERMISSIONS VALUES ('00000000000000000000000000000002','00000000000000000000000000000009');
INSERT INTO RBAC_ROLES_PERMISSIONS VALUES ('00000000000000000000000000000002','00000000000000000000000000000010');
INSERT INTO RBAC_ROLES_PERMISSIONS VALUES ('00000000000000000000000000000002','00000000000000000000000000000011');
INSERT INTO RBAC_ROLES_PERMISSIONS VALUES ('00000000000000000000000000000002','00000000000000000000000000000012');
INSERT INTO RBAC_ROLES_PERMISSIONS VALUES ('00000000000000000000000000000002','00000000000000000000000000000013');
INSERT INTO RBAC_ROLES_PERMISSIONS VALUES ('00000000000000000000000000000002','00000000000000000000000000000014');
INSERT INTO RBAC_ROLES_PERMISSIONS VALUES ('00000000000000000000000000000002','00000000000000000000000000000015');
INSERT INTO RBAC_ROLES_PERMISSIONS VALUES ('00000000000000000000000000000002','00000000000000000000000000000016');
INSERT INTO RBAC_ROLES_PERMISSIONS VALUES ('00000000000000000000000000000002','00000000000000000000000000000017');
INSERT INTO RBAC_ROLES_PERMISSIONS VALUES ('00000000000000000000000000000003','00000000000000000000000000000001');
INSERT INTO RBAC_ROLES_PERMISSIONS VALUES ('00000000000000000000000000000003','00000000000000000000000000000005');
INSERT INTO RBAC_ROLES_PERMISSIONS VALUES ('00000000000000000000000000000004', '00000000000000000000000000000001');
INSERT INTO RBAC_ROLES_PERMISSIONS VALUES ('00000000000000000000000000000004', '00000000000000000000000000000003');
INSERT INTO RBAC_ROLES_PERMISSIONS VALUES ('00000000000000000000000000000004', '00000000000000000000000000000005');
INSERT INTO RBAC_ROLES_PERMISSIONS VALUES ('00000000000000000000000000000004', '00000000000000000000000000000006');
INSERT INTO RBAC_ROLES_PERMISSIONS VALUES ('00000000000000000000000000000004', '00000000000000000000000000000007');
INSERT INTO RBAC_ROLES_PERMISSIONS VALUES ('00000000000000000000000000000004', '00000000000000000000000000000008');
INSERT INTO RBAC_ROLES_PERMISSIONS VALUES ('00000000000000000000000000000004', '00000000000000000000000000000009');
INSERT INTO RBAC_ROLES_PERMISSIONS VALUES ('00000000000000000000000000000004', '00000000000000000000000000000011');
INSERT INTO RBAC_ROLES_PERMISSIONS VALUES ('00000000000000000000000000000004', '00000000000000000000000000000013');
INSERT INTO RBAC_ROLES_PERMISSIONS VALUES ('00000000000000000000000000000004', '00000000000000000000000000000014');
INSERT INTO RBAC_ROLES_PERMISSIONS VALUES ('00000000000000000000000000000004', '00000000000000000000000000000015');
INSERT INTO RBAC_ROLES_PERMISSIONS VALUES ('00000000000000000000000000000004', '00000000000000000000000000000016');
INSERT INTO RBAC_ROLES_PERMISSIONS VALUES ('00000000000000000000000000000004', '00000000000000000000000000000017');
INSERT INTO RBAC_ROLES_PERMISSIONS VALUES ('00000000000000000000000000000004', '00000000000000000000000000000018');
INSERT INTO RBAC_ROLES_PERMISSIONS VALUES ('00000000000000000000000000000004', '00000000000000000000000000000019');
INSERT INTO RBAC_SYSTEMS VALUES ('00000000000000000000000000000001','RBAC','2007-07-31 19:10:22','2007-08-03 12:24:36',1);
INSERT INTO RBAC_SYSTEMS VALUES ('00000000000000000000000000000002','PROCESSMAKER','2007-07-31 19:10:22','2007-08-03 12:24:36',1);
INSERT INTO RBAC_USERS VALUES ('00000000000000000000000000000001','admin','21232f297a57a5a743894a0e4a801fc3','Administrator','','admin@processmaker.com','2020-01-01','2007-08-03 12:24:36','2008-02-13 07:24:07',1,'MYSQL','00000000000000000000000000000000','','','','');
INSERT INTO RBAC_USERS_ROLES VALUES ('00000000000000000000000000000001','00000000000000000000000000000002');

File diff suppressed because it is too large Load Diff

View File

@@ -1,2 +0,0 @@
# Sqlfile -> Database map
schema.sql=rbac

View File

@@ -1,4 +0,0 @@
-- foreach ($databaseName in $databaseNames)
-- drop database $databaseName;
-- create database $databaseName;
-- end

View File

@@ -1,127 +0,0 @@
/* -----------------------------------------------------------------------
PERMISSIONS
----------------------------------------------------------------------- */
DROP TABLE "RBAC_PERMISSIONS" CASCADE CONSTRAINTS;
CREATE TABLE "RBAC_PERMISSIONS"
(
"PER_UID" VARCHAR2(32) default '' NOT NULL,
"PER_CODE" VARCHAR2(64) default '' NOT NULL,
"PER_CREATE_DATE" DATE default '0000-00-00 00:00:00' NOT NULL,
"PER_UPDATE_DATE" DATE default '0000-00-00 00:00:00' NOT NULL,
"PER_STATUS" NUMBER default 1 NOT NULL
);
ALTER TABLE "RBAC_PERMISSIONS"
ADD CONSTRAINT "PERMISSIONS_PK"
PRIMARY KEY ("PER_UID");
/* -----------------------------------------------------------------------
ROLES
----------------------------------------------------------------------- */
DROP TABLE "RBAC_ROLES" CASCADE CONSTRAINTS;
CREATE TABLE "RBAC_ROLES"
(
"ROL_UID" VARCHAR2(32) default '' NOT NULL,
"ROL_PARENT" VARCHAR2(32) default '' NOT NULL,
"ROL_SYSTEM" VARCHAR2(32) default '' NOT NULL,
"ROL_CODE" VARCHAR2(32) default '' NOT NULL,
"ROL_CREATE_DATE" DATE default '0000-00-00 00:00:00' NOT NULL,
"ROL_UPDATE_DATE" DATE default '0000-00-00 00:00:00' NOT NULL,
"ROL_STATUS" NUMBER default 1 NOT NULL
);
ALTER TABLE "RBAC_ROLES"
ADD CONSTRAINT "ROLES_PK"
PRIMARY KEY ("ROL_UID");
/* -----------------------------------------------------------------------
ROLES_PERMISSIONS
----------------------------------------------------------------------- */
DROP TABLE "RBAC_ROLES_PERMISSIONS" CASCADE CONSTRAINTS;
CREATE TABLE "RBAC_ROLES_PERMISSIONS"
(
"ROL_UID" VARCHAR2(32) default '' NOT NULL,
"PER_UID" VARCHAR2(32) default '' NOT NULL
);
ALTER TABLE "RBAC_ROLES_PERMISSIONS"
ADD CONSTRAINT "RBAC_ROLES_PERMISSIONS_PK"
PRIMARY KEY ("ROL_UID","PER_UID");
/* -----------------------------------------------------------------------
SYSTEMS
----------------------------------------------------------------------- */
DROP TABLE "RBAC_SYSTEMS" CASCADE CONSTRAINTS;
CREATE TABLE "RBAC_SYSTEMS"
(
"SYS_UID" VARCHAR2(32) default '' NOT NULL,
"SYS_CODE" VARCHAR2(32) default '' NOT NULL,
"SYS_CREATE_DATE" DATE default '0000-00-00 00:00:00' NOT NULL,
"SYS_UPDATE_DATE" DATE default '0000-00-00 00:00:00' NOT NULL,
"SYS_STATUS" NUMBER default 0 NOT NULL
);
ALTER TABLE "RBAC_SYSTEMS"
ADD CONSTRAINT "SYSTEMS_PK"
PRIMARY KEY ("SYS_UID");
/* -----------------------------------------------------------------------
USERS
----------------------------------------------------------------------- */
DROP TABLE "RBAC_USERS" CASCADE CONSTRAINTS;
CREATE TABLE "RBAC_USERS"
(
"USR_UID" VARCHAR2(32) default '' NOT NULL,
"USR_USERNAME" VARCHAR2(100) default '' NOT NULL,
"USR_PASSWORD" VARCHAR2(32) default '' NOT NULL,
"USR_FIRSTNAME" VARCHAR2(50) default '' NOT NULL,
"USR_LASTNAME" VARCHAR2(50) default '' NOT NULL,
"USR_EMAIL" VARCHAR2(100) default '' NOT NULL,
"USR_DUE_DATE" DATE default '0000-00-00' NOT NULL,
"USR_CREATE_DATE" DATE default '0000-00-00 00:00:00' NOT NULL,
"USR_UPDATE_DATE" DATE default '0000-00-00 00:00:00' NOT NULL,
"USR_STATUS" NUMBER default 1 NOT NULL
);
ALTER TABLE "RBAC_USERS"
ADD CONSTRAINT "USERS_PK"
PRIMARY KEY ("USR_UID");
/* -----------------------------------------------------------------------
USERS_ROLES
----------------------------------------------------------------------- */
DROP TABLE "RBAC_USERS_ROLES" CASCADE CONSTRAINTS;
CREATE TABLE "RBAC_USERS_ROLES"
(
"USR_UID" VARCHAR2(32) default '' NOT NULL,
"ROL_UID" VARCHAR2(32) default '' NOT NULL
);
ALTER TABLE "RBAC_USERS_ROLES"
ADD CONSTRAINT "USERS_ROLES_PK"
PRIMARY KEY ("USR_UID","ROL_UID");

View File

@@ -1,2 +0,0 @@
# Sqlfile -> Database map
schema.sql=rbac

View File

@@ -1,2 +0,0 @@
drop database rbac;
create database rbac;

View File

@@ -1,2 +0,0 @@
# Sqlfile -> Database map
schema.sql=rbac

View File

@@ -1,29 +0,0 @@
<?php
/**
* dbmodule_processmaker.php
*
* ProcessMaker Open Source Edition
* Copyright (C) 2004 - 2008 Colosa Inc.23
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as
* published by the Free Software Foundation, either version 3 of the
* License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
* For more information, contact Colosa Inc, 2566 Le Jeune Rd.,
* Coral Gables, FL, 33134, USA, or email info@colosa.com.
*
*/
$DB_INDEX++;
$DB_MODULE[$DB_INDEX]['name'] = 'ProcessMaker';
$DB_MODULE[$DB_INDEX]['type'] = 'multiple';
$DB_MODULE[$DB_INDEX]['path'] = '/shared/workflow_data/sites/';
?>

View File

@@ -1,118 +0,0 @@
<?php
/**
* inc.application.php
*
* ProcessMaker Open Source Edition
* Copyright (C) 2004 - 2008 Colosa Inc.23
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as
* published by the Free Software Foundation, either version 3 of the
* License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
* For more information, contact Colosa Inc, 2566 Le Jeune Rd.,
* Coral Gables, FL, 33134, USA, or email info@colosa.com.
*
*/
class App
{
function ForceLogin()
{
global $HTTP_SESSION_VARS;
global $G_MAIN_MENU;
global $G_SUB_MENU;
if( $HTTP_SESSION_VARS['LOGGED_IN'] == false)
{
header( "location: /sys/" . SYS_LANG . "/" . SYS_SKIN . "/login/login.html" );
die();
}
else
{
$cmptype = $HTTP_SESSION_VARS['USER_TYPE'];
switch( $cmptype )
{
case 'BUYER':
$G_MAIN_MENU = "buyer";
$G_SUB_MENU = "";
break;
case 'PROVIDER':
$G_MAIN_MENU = "provider";
$G_SUB_MENU = "";
break;
case 'REINSURANCE':
$G_MAIN_MENU = "reinsurance";
$G_SUB_MENU = "";
break;
case 'ADMIN':
$G_MAIN_MENU = "admin";
$G_SUB_MENU = "";
break;
case '':
header( "location: /sys/" . SYS_LANG . "/" . SYS_SKIN . "/login/login.html" );
die();
break;
default:
$G_MAIN_MENU = "default";
$G_SUB_MENU = "";
break;
}
}
}
function GetPartnerStatus()
{
global $HTTP_SESSION_VARS;
$slipid = $HTTP_SESSION_VARS['CURRENT_SLIP'];
$partnerid = $HTTP_SESSION_VARS['CURRENT_PARTNER'];
$mdbc = new DBConnection();
G::LoadClass( "slip" );
$slip = new Slip;
$slip->SetTo( $mdbc );
$slip->Load( $slipid );
$partner = $slip->GetPartner( $partnerid );
$res = $partner->Fields['SLP_PARTNER_STATUS'];
unset( $partner );
unset( $slip );
unset( $mdbc );
return $res;
}
function SetPartnerStatus( $intStatus = 0 )
{
global $HTTP_SESSION_VARS;
$slipid = $HTTP_SESSION_VARS['CURRENT_SLIP'];
$partnerid = $HTTP_SESSION_VARS['CURRENT_PARTNER'];
$mdbc = new DBConnection();
G::LoadClass( "slip" );
$slip = new Slip;
$slip->SetTo( $mdbc );
$slip->Load( $slipid );
$partner = $slip->GetPartner( $partnerid );
$partner->Fields = NULL;
$partner->Fields['UID_SLIP'] = $slipid;
$partner->Fields['UID_REINSURANCE'] = $partnerid;
$partner->Fields['SLP_PARTNER_STATUS'] = $intStatus;
$partner->Fields['SLP_PARTNER_UPDATED'] = G::CurDate();
$partner->Save();
unset( $partner );
unset( $slip );
unset( $mdbc );
}
}
?>

View File

@@ -1,224 +0,0 @@
<?php
/**
* inc.dynaForms.php
*
* ProcessMaker Open Source Edition
* Copyright (C) 2004 - 2008 Colosa Inc.23
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as
* published by the Free Software Foundation, either version 3 of the
* License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
* For more information, contact Colosa Inc, 2566 Le Jeune Rd.,
* Coral Gables, FL, 33134, USA, or email info@colosa.com.
*
*/
class Node {
var $name = "";
var $attribute = NULL;
var $value = NULL;
var $children = NULL;
}
$header = "";
$tree = NULL;
function read_config_file(){
global $home;
$directory = PATH_DYNAFORM;
$car = substr ($directory, strlen ($directory)-1, 1);
if ($car=='/' ) $directory = substr( $directory, 0, strlen($directory)- 1 );
$home = $directory;
global $showlang;
$showlang = "es,en";
}
function parseNodo1 ( $token ) {
//parse de <name atr=1 attr=2 ... > en un nuevo nodo.
$nodo = new Node;
$nodo->children = NULL;
$tok = ""; $n = 0;
for ($i=0; $i<strlen ($token); $i++) {
$car = $token[$i];
if ($car == ' ' || $car == "=") {
if (strlen($tok) > 0 ) { $tokens [$n++] = $tok; $tok = ""; }
if ($car == '=' ) { $tokens [$n++] = $car; }
}
else{
$tok .= $car;
}
}
if (strlen($tok) > 0 ) { $tokens [$n++] = $tok; $tok = ""; }
//asignar los valores para el nombre del nodo y sus attributos
$nodo->name = trim($tokens[0]);
for ($i=1; $i< $n; $i++ ) {
$aux = $tokens[$i+2];
if ($aux[0] == $aux[strlen($aux)-1] || $aux[0] == '"') $aux = substr ($aux,1,strlen($aux)-2);
$key = $tokens[$i]; $val = "true";
if ($tokens[$i+1]== "=") {$val = $aux; $i+=2;}
// $nodo->attribute = array_merge ( $nodo->attribute, array ( $key => $val ) );
$nodo->attribute[$key] = $val;
}
return $nodo;
}
function getTag () {
global $buffer;
global $bufIndex;
global $size;
global $header;
global $tree;
$token = "";
//PRIMER BUCLE buscar tag >
while ($bufIndex <= $size && $car !='>') {
$token .= $car;
$car = $buffer [$bufIndex++];
}
if ($token[0] == "?") {
$header = $token;
return;
}
$nodo = parseNodo1 ($token);
//SEGUNDO BUCLE buscar VALUE
$car = $buffer [$bufIndex++]; $token = "";
while ($bufIndex <= $size && $car !='<') {
$token .= $car;
$car = $buffer [$bufIndex++];
}
$nodo->value = trim($token);
//TERCER BUCLE buscar </tag>
$res = 0;
while ($res == 0) {
if ($car != "<") while ( ($car = trim( $buffer [$bufIndex++] )) == "");
if ($car=="<") {
$res = 0;
$car = $buffer [$bufIndex++];
//ADDCHILD nodo recien creado
if ($car != "/") {
$bufIndex --;
$n = count($nodo->children);
$nodo->children[$n] = getTag ();
} else $res = 1;
}
else die ("se esperaba '<' y se encontro $car");
}
//se supone que se ha leido "</" y continuamos con el nombre
$token = "";
$car = $buffer [$bufIndex++];
while ($bufIndex <= $size && $car !='>') {
$token .= $car;
$car = $buffer [$bufIndex++];
}
if ( strcmp ($nodo->name, trim($token)) != 0) die ("no corresponde fin de tag &lt;/$token> con &lt;" . $nodo->name. ">");
return $nodo;
}
function parseFile ($filename) {
global $tree;
global $buffer;
global $bufIndex;
global $size;
if (strlen($filename) <= 0) die ("invalid filename");
if ( ! file_exists ( $filename) ) die ("This file $filename does not exist");
if ( ! is_file ( $filename) ) die ("$filename is not a file");
$size = filesize ($filename);
$fp = fopen ($filename, "rb");
$i = 0;
$aux = fread($fp, $size);
$buffer = "";
for ($i = 0; $i < $size; $i++) {
if (!($aux[$i] == "\n" || $aux[$i] == "\r" || $aux[$i] == "\t")) $buffer .= $aux[$i];
}
fclose ($fp);
$bufIndex = 0;
$size = strlen ($buffer);
while ( $bufIndex <= $size ) {
$car = $buffer [$bufIndex++];
if ($car == '<' )
$tree = getTag();
}
}
function saveXml(){
global $tree;
global $header;
global $filename;
global $HTTP_POST_VARS;
global $curDir;
global $onlyName;
//crear el archivo Xml
// print "$filename <br>";
$fp = fopen ($filename, "w+");
fputs ($fp,"<$header>\n");
$aux = explode ( '/', $filename);
$onlyName = $aux[count($aux)-1];
$curDir = $HTTP_POST_VARS['curDir'];
fputs ($fp,"<dynaForm name=\"$onlyName\" basedir=\"$curDir\">$tree->value\n");
for ($i = 0; $i < count($tree->children); $i++) {
$nodo = $tree->children[$i];
fputs ($fp,"<$nodo->name ");
if ( is_array ($nodo->attribute) )
foreach ( $nodo->attribute as $attr=>$attrValue )
fputs ($fp,"$attr=\"$attrValue\" ");
fputs ($fp,">\n");
//si es un dropdown-SQL la sentencia select va como valor del nodo
if (strlen ($nodo->value) > 0) {
fputs ($fp,"$nodo->value\n");
}
for ($j = 0; $j < count($nodo->children); $j++) {
$lang = $nodo->children[$j];
fputs ($fp, " <$lang->name>$lang->value");
//si tiene etiquetas del tipo option
if (is_array($lang->children)) {
fputs ($fp, "\n");
for ($k = 0; $k < count($lang->children); $k++) {
$option = $lang->children[$k];
fputs ($fp, "<option name=\"" . $option->attribute['name'] . "\">$option->value</option>\n");
}
} //if tiene etiquetas del tipo opcion.
fputs ($fp, "</$lang->name>\n");
} //for j
fputs ($fp,"</$nodo->name>\n");
} //for i
fputs ($fp,"</dynaForm>\n");
fclose ($fp);
}
?>

View File

@@ -1,42 +0,0 @@
<?php
/**
* backApp.php
*
* ProcessMaker Open Source Edition
* Copyright (C) 2004 - 2008 Colosa Inc.23
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as
* published by the Free Software Foundation, either version 3 of the
* License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
* For more information, contact Colosa Inc, 2566 Le Jeune Rd.,
* Coral Gables, FL, 33134, USA, or email info@colosa.com.
*
*/
global $G_TMP_MENU;
global $G_BACK_PAGE;
$G_TMP_MENU->AddRawOption( $G_BACK_PAGE);
switch ( SYS_LANG ) {
case "es" :
$G_TMP_MENU->Labels = Array (
"Retornar al trámite"
);
break;
default :
$G_TMP_MENU->Labels = Array (
"Back to Application"
);
}
?>

View File

@@ -1,47 +0,0 @@
<?php
/**
* cancel.php
*
* ProcessMaker Open Source Edition
* Copyright (C) 2004 - 2008 Colosa Inc.23
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as
* published by the Free Software Foundation, either version 3 of the
* License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
* For more information, contact Colosa Inc, 2566 Le Jeune Rd.,
* Coral Gables, FL, 33134, USA, or email info@colosa.com.
*
*/
global $G_TMP_MENU;
global $G_BACK_PAGE;
$G_TMP_MENU->AddRawOption( $G_BACK_PAGE);
switch ( SYS_LANG ) {
case "es" :
$G_TMP_MENU->Labels = Array (
"Cancelar"
);
break;
case "po" :
$G_TMP_MENU->Labels = Array (
"Cancelar"
);
break;
default :
$G_TMP_MENU->Labels = Array (
"Cancel"
);
}
?>

View File

@@ -1,64 +0,0 @@
<?php
/**
* rbac.appEdit.php
*
* ProcessMaker Open Source Edition
* Copyright (C) 2004 - 2008 Colosa Inc.23
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as
* published by the Free Software Foundation, either version 3 of the
* License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
* For more information, contact Colosa Inc, 2566 Le Jeune Rd.,
* Coral Gables, FL, 33134, USA, or email info@colosa.com.
*
*/
global $G_TMP_MENU;
global $HTTP_SESSION_VARS;
$appid = $HTTP_SESSION_VARS['CURRENT_APPLICATION'];
$G_TMP_MENU->AddIdRawOption( "OP1", "rbac/appList.html" );
$G_TMP_MENU->AddIdRawOption( "OP2", "rbac/appDel.html" );
switch( SYS_LANG )
{
case 'es':
$G_TMP_MENU->Labels = array(
"Cancelar",
"Eliminar Applicación"
);
break;
case 'po':
$G_TMP_MENU->Labels = array(
"Cancelar",
"Eliminar Application"
);
break;
default:
$G_TMP_MENU->Labels = array(
"Cancel",
"Remove Application"
);
break;
}
//si no hay nada relacionado a esta aplicación se puede BORRAR!!
$dbc = new DBConnection(DB_HOST, DB_RBAC_USER, DB_RBAC_PASS, DB_RBAC_NAME );
//G::LoadClassRBAC ("applications");
$obj = New RBAC_Application;
$obj->SetTo ($dbc);
$sw = $obj->canRemoveApplication ($appid);
if ($sw > 0)
$G_TMP_MENU->disableOptionId ("OP2");
?>

View File

@@ -1,57 +0,0 @@
<?php
/**
* rbac.appView.php
*
* ProcessMaker Open Source Edition
* Copyright (C) 2004 - 2008 Colosa Inc.23
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as
* published by the Free Software Foundation, either version 3 of the
* License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
* For more information, contact Colosa Inc, 2566 Le Jeune Rd.,
* Coral Gables, FL, 33134, USA, or email info@colosa.com.
*
*/
global $G_TMP_MENU;
global $HTTP_SESSION_VARS;
$G_TMP_MENU->AddIdRawOption( "OP1", "rbac/roleList.html" );
$G_TMP_MENU->AddIdRawOption( "OP2", "rbac/permList.html" );
$G_TMP_MENU->AddIdRawOption( "OP3", "rbac/appList.html" );
switch( SYS_LANG )
{
case 'es':
$G_TMP_MENU->Labels = array(
"Ver Roles",
"Ver Permisos",
"Lista de Aplicaciones"
);
break;
case 'po':
$G_TMP_MENU->Labels = array(
"Ver Roles",
"Ver Permisos",
"Lista de Aplicaciones"
);
break;
default:
$G_TMP_MENU->Labels = array(
"View Roles",
"View Permissions",
"Applications List"
);
break;
}
?>

View File

@@ -1,34 +0,0 @@
<?php
/**
* rbac.application.php
*
* ProcessMaker Open Source Edition
* Copyright (C) 2004 - 2008 Colosa Inc.23
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as
* published by the Free Software Foundation, either version 3 of the
* License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
* For more information, contact Colosa Inc, 2566 Le Jeune Rd.,
* Coral Gables, FL, 33134, USA, or email info@colosa.com.
*
*/
global $G_TMP_MENU;
global $canCreateApp;
$G_TMP_MENU->AddOption( G::LoadMenuXml ('ID_NEW_APPLICATION'), "rbac/appNew.html" );
if ( $canCreateApp != 1 )
$G_TMP_MENU->DisableOptionPos (0);
?>

View File

@@ -1,33 +0,0 @@
<?php
/**
* rbac.authSource.php
*
* ProcessMaker Open Source Edition
* Copyright (C) 2004 - 2008 Colosa Inc.23
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as
* published by the Free Software Foundation, either version 3 of the
* License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
* For more information, contact Colosa Inc, 2566 Le Jeune Rd.,
* Coral Gables, FL, 33134, USA, or email info@colosa.com.
*
*/
global $G_TMP_MENU;
global $canCreateApp;
$G_TMP_MENU->AddOption( G::LoadMenuXml ('ID_EDIT'), "rbac/authEdit.html" );
$G_TMP_MENU->AddOption( G::LoadMenuXml ('ID_TEST'), "rbac/authTest.html" );
$G_TMP_MENU->AddOption( G::LoadMenuXml ('ID_ADD_USERS'), "rbac/authAddUser.html" );
?>

View File

@@ -1,33 +0,0 @@
<?php
/**
* rbac.authentication.php
*
* ProcessMaker Open Source Edition
* Copyright (C) 2004 - 2008 Colosa Inc.23
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as
* published by the Free Software Foundation, either version 3 of the
* License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
* For more information, contact Colosa Inc, 2566 Le Jeune Rd.,
* Coral Gables, FL, 33134, USA, or email info@colosa.com.
*
*/
global $G_TMP_MENU;
global $canCreateApp;
$G_TMP_MENU->AddOption( G::LoadMenuXml ('ID_NEW_AUTH_SOURCE'), "rbac/authNew.html" );
if ( $canCreateApp != 1 )
$G_TMP_MENU->DisableOptionPos (0);
?>

View File

@@ -1,54 +0,0 @@
<?php
/**
* rbac.login.php
*
* ProcessMaker Open Source Edition
* Copyright (C) 2004 - 2008 Colosa Inc.23
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as
* published by the Free Software Foundation, either version 3 of the
* License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
* For more information, contact Colosa Inc, 2566 Le Jeune Rd.,
* Coral Gables, FL, 33134, USA, or email info@colosa.com.
*
*/
global $G_TMP_MENU;
$G_TMP_MENU->AddRawOption( "login/login.html" );
$G_TMP_MENU->AddRawOption( "login/dbInfo.html" );
switch( SYS_LANG )
{
case 'po':
$G_TMP_MENU->Labels = array(
"login",
"about"
);
break;
case 'es':
$G_TMP_MENU->Labels = array(
"Iniciar Sesión",
"acerca de"
);
break;
default:
$G_TMP_MENU->Labels = array(
"login",
"about"
);
break;
}
?>

View File

@@ -1,48 +0,0 @@
<?php
/**
* rbac.permission.php
*
* ProcessMaker Open Source Edition
* Copyright (C) 2004 - 2008 Colosa Inc.23
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as
* published by the Free Software Foundation, either version 3 of the
* License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
* For more information, contact Colosa Inc, 2566 Le Jeune Rd.,
* Coral Gables, FL, 33134, USA, or email info@colosa.com.
*
*/
global $G_TMP_MENU;
$G_TMP_MENU->AddRawOption( "rbac/permNew.html" );
switch( SYS_LANG )
{
case 'es':
$G_TMP_MENU->Labels = array(
"Añadir Nuevo Permiso"
);
break;
case 'po':
$G_TMP_MENU->Labels = array(
"Inserir Novo Permisio"
);
break;
default:
$G_TMP_MENU->Labels = array(
"Add New Permission"
);
break;
}
?>

View File

@@ -1,66 +0,0 @@
<?php
/**
* rbac.php
*
* ProcessMaker Open Source Edition
* Copyright (C) 2004 - 2008 Colosa Inc.23
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as
* published by the Free Software Foundation, either version 3 of the
* License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
* For more information, contact Colosa Inc, 2566 Le Jeune Rd.,
* Coral Gables, FL, 33134, USA, or email info@colosa.com.
*
*/
global $G_TMP_MENU;
$G_TMP_MENU->AddRawOption( "rbac/userList.html" );
$G_TMP_MENU->AddRawOption( "rbac/appList.html" );
$G_TMP_MENU->AddRawOption( "rbac/authenticationList.html" );
$G_TMP_MENU->AddRawOption( "rbac/dbInfo.html" );
$G_TMP_MENU->AddRawOption( "login/login.html" );
switch( SYS_LANG )
{
case 'po':
$G_TMP_MENU->Labels = array(
"Usuarios",
"Applicaciones",
"Authentication Sources",
"Info Database",
"Saír do Sistema"
);
break;
case 'es':
$G_TMP_MENU->Labels = array(
"Usuarios",
"Applicaciones",
"Fuentes de Autenticación",
"Información de BD",
"Salir del Sistema"
);
break;
default:
$G_TMP_MENU->Labels = array(
"Users",
"Applications",
"Authentication Sources",
"DB Info",
"Logout"
);
break;
}
?>

View File

@@ -1,65 +0,0 @@
<?php
/**
* rbac.role.php
*
* ProcessMaker Open Source Edition
* Copyright (C) 2004 - 2008 Colosa Inc.23
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as
* published by the Free Software Foundation, either version 3 of the
* License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
* For more information, contact Colosa Inc, 2566 Le Jeune Rd.,
* Coral Gables, FL, 33134, USA, or email info@colosa.com.
*
*/
global $G_TMP_MENU;
$G_TMP_MENU->AddIdRawOption( "OP1", "rbac/roleNew.html" );
$G_TMP_MENU->AddIdRawOption( "OP2", "rbac/roleList.html" );
$G_TMP_MENU->AddIdRawOption( "OP3", "rbac/permList.html" );
$G_TMP_MENU->AddIdRawOption( "OP4", "rbac/appList.html" );
switch( SYS_LANG )
{
case 'es':
$G_TMP_MENU->Labels = array(
"Añadir Nuevo Rol",
"Ver Roles",
"Ver Permisos",
"Lista de Aplicaciones"
);
break;
case 'po':
$G_TMP_MENU->Labels = array(
"Inserir Novo Rol",
"Ver Roles",
"Ver Permisos",
"Lista de Aplicaciones"
);
break;
default:
$G_TMP_MENU->Labels = array(
"Add New Role",
"View Roles",
"View Permissions",
"Applications List"
);
break;
}
global $canCreateRole;
if ($canCreateRole != 1)
$G_TMP_MENU->DisableOptionID ("OP1");
?>

View File

@@ -1,52 +0,0 @@
<?php
/**
* rbac.user.php
*
* ProcessMaker Open Source Edition
* Copyright (C) 2004 - 2008 Colosa Inc.23
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as
* published by the Free Software Foundation, either version 3 of the
* License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
* For more information, contact Colosa Inc, 2566 Le Jeune Rd.,
* Coral Gables, FL, 33134, USA, or email info@colosa.com.
*
*/
global $G_TMP_MENU;
global $canCreateUsers;
$G_TMP_MENU->AddRawOption( "rbac/userNew.html" );
switch( SYS_LANG )
{
case 'es':
$G_TMP_MENU->Labels = array(
"Añadir Nuevo Usuario"
);
break;
case 'po':
$G_TMP_MENU->Labels = array(
"Inserir Novo Usuario"
);
break;
default:
$G_TMP_MENU->Labels = array(
"Add New User"
);
break;
}
if ($canCreateUsers != 1 )
$G_TMP_MENU->DisableOptionPos(0);
?>

View File

@@ -1,69 +0,0 @@
<?php
/**
* rbac.userEdit.php
*
* ProcessMaker Open Source Edition
* Copyright (C) 2004 - 2008 Colosa Inc.23
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as
* published by the Free Software Foundation, either version 3 of the
* License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
* For more information, contact Colosa Inc, 2566 Le Jeune Rd.,
* Coral Gables, FL, 33134, USA, or email info@colosa.com.
*
*/
global $G_TMP_MENU;
$G_TMP_MENU->AddIdRawOption("OP2b", "rbac/userChangeLdap.html" );
$G_TMP_MENU->AddIdRawOption("OP2c", "rbac/userTestLdap.html" );
$G_TMP_MENU->AddIdRawOption("OP4", "Javascript:go();", 'absolute' );
switch( SYS_LANG )
{
case 'es':
$G_TMP_MENU->Labels = array(
"LDAP/AD",
'Test Login',
"Asignar Roles"
);
break;
case 'po':
$G_TMP_MENU->Labels = array(
"LDAP/AD",
'Test Login',
"Asignar Roles"
);
break;
default:
$G_TMP_MENU->Labels = array(
"LDAP/AD",
'Test Login',
"Assign Role"
);
break;
}
global $access;
global $useLdap;
if ($access != 1) {
$G_TMP_MENU->DisableOptionId ("OP4");
}
if ( ! $useLdap ) {
$G_TMP_MENU->DisableOptionId ("OP2b");
$G_TMP_MENU->DisableOptionId ("OP2c");
}
?>

Some files were not shown because too many files have changed in this diff Show More