This commit is contained in:
Paula Quispe
2017-08-10 15:50:36 -04:00
parent 4afaa5c134
commit c2c5d0e4ba
20 changed files with 1 additions and 81 deletions

View File

@@ -27,7 +27,6 @@
$xmlfile = '{className}/{className}OnTransitList'; $xmlfile = '{className}/{className}OnTransitList';
/* Render page */ /* Render page */
//require_once ( 'classes/class.extendGulliver.php' );
$G_PUBLISH = new Publisher; $G_PUBLISH = new Publisher;
$G_PUBLISH->AddContent( 'propeltable', '{className}/paged-table', '{className}/{className}OnTransitList', $Criteria ); $G_PUBLISH->AddContent( 'propeltable', '{className}/paged-table', '{className}/{className}OnTransitList', $Criteria );
G::RenderPage( "publish" ); G::RenderPage( "publish" );

View File

@@ -66,7 +66,6 @@ class PmBootstrap extends Bootstrap
// pm workflow classes (static load) // pm workflow classes (static load)
$this->autoloader->registerClass('System', PATH_CORE . 'classes/class.system'); $this->autoloader->registerClass('System', PATH_CORE . 'classes/class.system');
//$this->autoloader->registerClass('Services_JSON', PATH_THIRDPARTY .'pear/json/class.json');
$this->autoloader->registerClass('Smarty', PATH_THIRDPARTY . 'smarty/libs/Smarty.class'); $this->autoloader->registerClass('Smarty', PATH_THIRDPARTY . 'smarty/libs/Smarty.class');
$this->autoloader->registerClass('Propel', PATH_THIRDPARTY . 'propel/Propel'); $this->autoloader->registerClass('Propel', PATH_THIRDPARTY . 'propel/Propel');

View File

@@ -72,7 +72,6 @@ try {
$classLoader->add(PATH_TRUNK . 'workflow' . PATH_SEP . 'engine' . PATH_SEP . 'src' . PATH_SEP, 'ProcessMaker'); $classLoader->add(PATH_TRUNK . 'workflow' . PATH_SEP . 'engine' . PATH_SEP . 'src' . PATH_SEP, 'ProcessMaker');
$classLoader->add(PATH_TRUNK . 'workflow' . PATH_SEP . 'engine' . PATH_SEP . 'src' . PATH_SEP); $classLoader->add(PATH_TRUNK . 'workflow' . PATH_SEP . 'engine' . PATH_SEP . 'src' . PATH_SEP);
$classLoader->addClass('Bootstrap', PATH_TRUNK . 'gulliver' . PATH_SEP . 'system' . PATH_SEP . 'class.bootstrap.php'); $classLoader->addClass('Bootstrap', PATH_TRUNK . 'gulliver' . PATH_SEP . 'system' . PATH_SEP . 'class.bootstrap.php');
Bootstrap::initVendors();
$classLoader->addModelClassPath(PATH_TRUNK . 'workflow' . PATH_SEP . 'engine' . PATH_SEP . 'classes' . PATH_SEP . 'model' . PATH_SEP); $classLoader->addModelClassPath(PATH_TRUNK . 'workflow' . PATH_SEP . 'engine' . PATH_SEP . 'classes' . PATH_SEP . 'model' . PATH_SEP);
//Load classes //Load classes

View File

@@ -90,38 +90,6 @@ try {
spl_autoload_register(['Bootstrap', 'autoloadClass']); spl_autoload_register(['Bootstrap', 'autoloadClass']);
//DATABASE propel classes used in 'Cases' Options
Bootstrap::registerClass('AuthenticationSourcePeer', PATH_RBAC . 'model' . PATH_SEP . 'AuthenticationSourcePeer.php');
Bootstrap::registerClass('BaseAuthenticationSource', PATH_RBAC . 'model' . PATH_SEP . 'om' . PATH_SEP . 'BaseAuthenticationSource.php');
Bootstrap::registerClass('AuthenticationSource', PATH_RBAC . 'model' . PATH_SEP . 'AuthenticationSource.php');
Bootstrap::registerClass('RolesPeer', PATH_RBAC . 'model' . PATH_SEP . 'RolesPeer.php');
Bootstrap::registerClass('BaseRoles', PATH_RBAC . 'model' . PATH_SEP . 'om' . PATH_SEP . 'BaseRoles.php');
Bootstrap::registerClass('Roles', PATH_RBAC . 'model' . PATH_SEP . 'Roles.php');
require_once(PATH_RBAC . 'model' . PATH_SEP . 'UsersRolesPeer.php');
require_once(PATH_RBAC . 'model' . PATH_SEP . 'om' . PATH_SEP . 'BaseUsersRoles.php');
require_once(PATH_RBAC . 'model' . PATH_SEP . 'UsersRoles.php');
Bootstrap::registerClass('PMLicensedFeatures', PATH_CLASSES . 'class.licensedFeatures.php');
Bootstrap::registerClass('serverConf', PATH_CLASSES . 'class.serverConfiguration.php');
Bootstrap::registerClass('calendar', PATH_CLASSES . 'class.calendar.php');
Bootstrap::registerClass('groups', PATH_CLASSES . 'class.groups.php');
Bootstrap::registerClass('Entity_Base', PATH_HOME . 'engine/classes/entities/Base.php');
Bootstrap::registerClass('Entity_AppSolrQueue', PATH_HOME . 'engine/classes/entities/AppSolrQueue.php');
Bootstrap::registerClass('XMLDB', PATH_HOME . 'engine/classes/class.xmlDb.php');
Bootstrap::registerClass('DynaformHandler', PATH_GULLIVER . 'class.dynaformhandler.php');
Bootstrap::registerClass('DynaFormField', PATH_HOME . 'engine/classes/class.dynaFormField.php');
Bootstrap::registerClass('SolrRequestData', PATH_HOME . 'engine/classes/entities/SolrRequestData.php');
Bootstrap::registerClass('SolrUpdateDocument', PATH_HOME . 'engine/classes/entities/SolrUpdateDocument.php');
Bootstrap::registerClass('Xml_Node', PATH_GULLIVER . 'class.xmlDocument.php');
Bootstrap::registerClass('wsResponse', PATH_HOME . 'engine' . PATH_SEP . 'classes' . PATH_SEP . 'class.wsResponse.php');
Bootstrap::initVendors();
/*----------------------------------********---------------------------------*/
Bootstrap::registerClass('dashboards', PATH_HOME . 'engine/classes/class.dashboards.php');
/*----------------------------------********---------------------------------*/
//Set variables //Set variables
/*----------------------------------********---------------------------------*/ /*----------------------------------********---------------------------------*/
$dateInit = null; $dateInit = null;

View File

@@ -115,7 +115,6 @@ if (! defined ('PATH_HOME')) {
define( 'PATH_CLASSES', PATH_HOME . "engine" . PATH_SEP . "classes" . PATH_SEP ); define( 'PATH_CLASSES', PATH_HOME . "engine" . PATH_SEP . "classes" . PATH_SEP );
require_once (PATH_HOME . 'engine' . PATH_SEP . 'config' . PATH_SEP . 'paths.php'); require_once (PATH_HOME . 'engine' . PATH_SEP . 'config' . PATH_SEP . 'paths.php');
require_once (PATH_GULLIVER . "class.bootstrap.php");
spl_autoload_register(array('Bootstrap', 'autoloadClass')); spl_autoload_register(array('Bootstrap', 'autoloadClass'));
} }

View File

@@ -86,8 +86,6 @@ if (! defined ('PATH_HOME')) {
require_once PATH_TRUNK . "framework/src/Maveriks/Util/ClassLoader.php"; require_once PATH_TRUNK . "framework/src/Maveriks/Util/ClassLoader.php";
require_once (PATH_HOME . 'engine' . PATH_SEP . 'config' . PATH_SEP . 'paths.php'); require_once (PATH_HOME . 'engine' . PATH_SEP . 'config' . PATH_SEP . 'paths.php');
require_once (PATH_GULLIVER . "class.bootstrap.php");
Bootstrap::registerSystemClasses();
spl_autoload_register(array('Bootstrap', 'autoloadClass')); spl_autoload_register(array('Bootstrap', 'autoloadClass'));

View File

@@ -236,14 +236,6 @@ class Applications
$dateFrom = isset($dateFrom)? $dateFrom : ""; $dateFrom = isset($dateFrom)? $dateFrom : "";
$dateTo = isset($dateTo)? $dateTo : ""; $dateTo = isset($dateTo)? $dateTo : "";
//require_once ("classes/model/AppCacheView.php");
//require_once ("classes/model/AppDelegation.php");
//require_once ("classes/model/AdditionalTables.php");
//require_once ("classes/model/AppDelay.php");
//require_once ("classes/model/Fields.php");
//require_once ("classes/model/Users.php");
//require_once ("classes/model/Process.php");
$oAppCache = new AppCacheView(); $oAppCache = new AppCacheView();
if ($configuration == true) { if ($configuration == true) {

View File

@@ -210,9 +210,6 @@ class PMPluginRegistry
*/ */
public function registerPlugin ($sNamespace, $sFilename = null) public function registerPlugin ($sNamespace, $sFilename = null)
{ {
//require_once ($sFilename);
$sClassName = $sNamespace . "plugin"; $sClassName = $sNamespace . "plugin";
$plugin = new $sClassName( $sNamespace, $sFilename ); $plugin = new $sClassName( $sNamespace, $sFilename );
@@ -285,7 +282,6 @@ class PMPluginRegistry
$pluginSrcDir = PATH_PLUGINS . $detail->sNamespace . PATH_SEP . 'src'; $pluginSrcDir = PATH_PLUGINS . $detail->sNamespace . PATH_SEP . 'src';
if (is_dir($pluginSrcDir)) { if (is_dir($pluginSrcDir)) {
//Bootstrap::registerDir($detail->sNamespace.'/src', $pluginSrcDir);
$loader = \Maveriks\Util\ClassLoader::getInstance(); $loader = \Maveriks\Util\ClassLoader::getInstance();
$loader->add($pluginSrcDir); $loader->add($pluginSrcDir);
} }

View File

@@ -467,7 +467,6 @@ class workspaceTools
foreach ($information as $key => $value) { foreach ($information as $key => $value) {
$arrayLang[] = trim($value['LOCALE']); $arrayLang[] = trim($value['LOCALE']);
} }
//require_once ('classes/model/Content.php');
$regenerateContent = new Content(); $regenerateContent = new Content();
$regenerateContent->regenerateContent($arrayLang, $workSpace); $regenerateContent->regenerateContent($arrayLang, $workSpace);
} }
@@ -662,7 +661,6 @@ class workspaceTools
{ {
$this->initPropel(true); $this->initPropel(true);
//require_once ('classes/model/AppCacheView.php');
//check the language, if no info in config about language, the default is 'en' //check the language, if no info in config about language, the default is 'en'
$oConf = new Configurations(); $oConf = new Configurations();

View File

@@ -69,7 +69,6 @@
// include Gulliver Class // include Gulliver Class
require_once( PATH_GULLIVER . PATH_SEP . 'class.g.php'); require_once( PATH_GULLIVER . PATH_SEP . 'class.g.php');
// include Bootstrap Class // include Bootstrap Class
require_once (PATH_GULLIVER . PATH_SEP . 'class.bootstrap.php');
if(file_exists(FILE_PATHS_INSTALLED)) { if(file_exists(FILE_PATHS_INSTALLED)) {
// backward compatibility; parsing old definitions in the compiled path constant // backward compatibility; parsing old definitions in the compiled path constant

View File

@@ -91,8 +91,6 @@ class AppProxy extends HttpProxyController
); );
} }
//require_once ("classes/model/AppNotes.php");
$usrUid = isset( $_SESSION['USER_LOGGED'] ) ? $_SESSION['USER_LOGGED'] : ""; $usrUid = isset( $_SESSION['USER_LOGGED'] ) ? $_SESSION['USER_LOGGED'] : "";
$appNotes = new AppNotes(); $appNotes = new AppNotes();
$response = $appNotes->getNotesList( $appUid, '', $httpData->start, $httpData->limit ); $response = $appNotes->getNotesList( $appUid, '', $httpData->start, $httpData->limit );
@@ -113,9 +111,6 @@ class AppProxy extends HttpProxyController
*/ */
function postNote ($httpData) function postNote ($httpData)
{ {
//require_once ("classes/model/AppNotes.php");
//extract(getExtJSParams());
if (isset( $httpData->appUid ) && trim( $httpData->appUid ) != "") { if (isset( $httpData->appUid ) && trim( $httpData->appUid ) != "") {
$appUid = $httpData->appUid; $appUid = $httpData->appUid;
} else { } else {

View File

@@ -180,8 +180,6 @@ class Home extends Controller
public function indexSingle ($httpData) public function indexSingle ($httpData)
{ {
require_once 'classes/model/Step.php';
$step = new Step(); $step = new Step();
$solrEnabled = false; $solrEnabled = false;
@@ -377,7 +375,6 @@ class Home extends Controller
$sort = "APP_CACHE_VIEW.APP_NUMBER", $sort = "APP_CACHE_VIEW.APP_NUMBER",
$category = null) $category = null)
{ {
require_once ("classes/model/AppNotes.php");
$appNotes = new AppNotes(); $appNotes = new AppNotes();
@@ -638,7 +635,6 @@ class Home extends Controller
function getCategoryArray () function getCategoryArray ()
{ {
require_once 'classes/model/ProcessCategory.php';
$category = array(); $category = array();
$category[] = array ("",G::LoadTranslation( "ID_ALL_CATEGORIES" )); $category[] = array ("",G::LoadTranslation( "ID_ALL_CATEGORIES" ));

View File

@@ -122,7 +122,6 @@ class pmTables extends Controller
*/ */
public function data ($httpData) public function data ($httpData)
{ {
require_once 'classes/model/AdditionalTables.php';
$additionalTables = new AdditionalTables(); $additionalTables = new AdditionalTables();
$tableDef = $additionalTables->load( $httpData->id, true ); $tableDef = $additionalTables->load( $httpData->id, true );

View File

@@ -160,8 +160,6 @@ function sendJsonResultGeneric($response, $callback)
function expandNode() function expandNode()
{ {
//require_once ("classes/model/AppFolder.php");
extract(getExtJSParams()); extract(getExtJSParams());
$oPMFolder = new AppFolder(); $oPMFolder = new AppFolder();

View File

@@ -303,7 +303,6 @@ try {
} }
//Save files //Save files
//require_once ("classes/model/AppDocument.php");
if (isset( $_FILES["form"]["name"] ) && count( $_FILES["form"]["name"] ) > 0) { if (isset( $_FILES["form"]["name"] ) && count( $_FILES["form"]["name"] ) > 0) {
$oInputDocument = new \ProcessMaker\BusinessModel\Cases\InputDocument(); $oInputDocument = new \ProcessMaker\BusinessModel\Cases\InputDocument();

View File

@@ -128,8 +128,6 @@ if (isset( $_FILES["form"]["name"] ) && count( $_FILES["form"]["name"] ) > 0) {
} }
if ($indocUid != null) { if ($indocUid != null) {
//require_once ("classes/model/AppFolder.php");
//require_once ("classes/model/InputDocument.php");
$oInputDocument = new InputDocument(); $oInputDocument = new InputDocument();
$aID = $oInputDocument->load( $indocUid ); $aID = $oInputDocument->load( $indocUid );

View File

@@ -47,8 +47,6 @@ if (isset( $_SESSION['CURRENT_PAGE_INITILIZATION'] )) {
eval( $_SESSION['CURRENT_PAGE_INITILIZATION'] ); eval( $_SESSION['CURRENT_PAGE_INITILIZATION'] );
} }
//require_once (PATH_THIRDPARTY . 'pear/json/class.json.php');
//$json = new Services_JSON();
$G_FORM = new form( G::getUIDName( urlDecode( $_POST['form'] ) ) ); $G_FORM = new form( G::getUIDName( urlDecode( $_POST['form'] ) ) );
$G_FORM->id = urlDecode( $_POST['form'] ); $G_FORM->id = urlDecode( $_POST['form'] );
$G_FORM->values = $_SESSION[$G_FORM->id]; $G_FORM->values = $_SESSION[$G_FORM->id];

View File

@@ -45,9 +45,6 @@ try {
// Bootstrap::mylog("post:".$_POST['function']); // Bootstrap::mylog("post:".$_POST['function']);
switch ($sfunction) { switch ($sfunction) {
case 'lookForNameInput': case 'lookForNameInput':
//require_once ('classes/model/Content.php');
//require_once ("classes/model/InputDocument.php");
$snameInput = urldecode( $_POST['NAMEINPUT'] ); $snameInput = urldecode( $_POST['NAMEINPUT'] );
$sPRO_UID = urldecode( $_POST['proUid'] ); $sPRO_UID = urldecode( $_POST['proUid'] );

View File

@@ -390,8 +390,7 @@ class Dashboard {
$data['USR_UID'] = $usrUid; $data['USR_UID'] = $usrUid;
$data['PRO_UID'] = ""; $data['PRO_UID'] = "";
$data['APP_UID'] = ""; $data['APP_UID'] = "";
//require_once (PATH_HOME . "engine" . PATH_SEP . "classes" . PATH_SEP . "model" . PATH_SEP . "Configuration.php");
$oConfig = new \Configuration(); $oConfig = new \Configuration();
$response = $oConfig->create($data); $response = $oConfig->create($data);
@@ -409,7 +408,6 @@ class Dashboard {
*/ */
public function getConfig($usr_uid) public function getConfig($usr_uid)
{ {
//require_once (PATH_HOME . "engine" . PATH_SEP . "classes" . PATH_SEP . "model" . PATH_SEP . "Configuration.php");
$oConfig = new \Configuration(); $oConfig = new \Configuration();
$response = array(); $response = array();

View File

@@ -218,7 +218,6 @@ define( 'PATH_RBAC_MSSQL_DATA', PATH_RBAC_CORE . 'data' . PATH_SEP . 'mssql' . P
define( 'PATH_CONTROLLERS', PATH_CORE . 'controllers' . PATH_SEP ); define( 'PATH_CONTROLLERS', PATH_CORE . 'controllers' . PATH_SEP );
// include Gulliver Class // include Gulliver Class
require_once (PATH_GULLIVER . "class.bootstrap.php");
if (file_exists( FILE_PATHS_INSTALLED )) { if (file_exists( FILE_PATHS_INSTALLED )) {
@@ -651,8 +650,6 @@ if (file_exists( $sSerializedFile )) {
} }
// setup propel definitions and logging // setup propel definitions and logging
//changed to autoloader //changed to autoloader
//require_once ("propel/Propel.php");
//require_once ("creole/Creole.php");
if (defined( 'DEBUG_SQL_LOG' ) && DEBUG_SQL_LOG) { if (defined( 'DEBUG_SQL_LOG' ) && DEBUG_SQL_LOG) {
define( 'PM_PID', mt_rand( 1, 999999 ) ); define( 'PM_PID', mt_rand( 1, 999999 ) );
@@ -798,8 +795,6 @@ if (substr( SYS_COLLECTION, 0, 8 ) === 'gulliver') {
die(); die();
} }
Bootstrap::initVendors();
$isWebEntry = \ProcessMaker\BusinessModel\WebEntry::isWebEntry(SYS_COLLECTION, $phpFile); $isWebEntry = \ProcessMaker\BusinessModel\WebEntry::isWebEntry(SYS_COLLECTION, $phpFile);
if (\Bootstrap::getDisablePhpUploadExecution() === 1 && !$isWebEntry) { if (\Bootstrap::getDisablePhpUploadExecution() === 1 && !$isWebEntry) {
$message = \G::LoadTranslation('THE_PHP_FILES_EXECUTION_WAS_DISABLED'); $message = \G::LoadTranslation('THE_PHP_FILES_EXECUTION_WAS_DISABLED');