HOR-2689 Removed references to G::LoadClass, Bootstrap::LoadClass and various references to class loading methods and require_once
This commit is contained in:
committed by
davidcallizaya
parent
d72b7aa561
commit
60efcf7ac7
@@ -27,9 +27,7 @@ function testConnection($type, $server, $user, $passwd, $port = 'none', $dbName
|
||||
}
|
||||
}
|
||||
|
||||
G::LoadClass('net');
|
||||
$Server = new NET($server);
|
||||
G::LoadSystem('inputfilter');
|
||||
$filter = new InputFilter();
|
||||
|
||||
if ($Server->getErrno() == 0) {
|
||||
@@ -113,7 +111,6 @@ switch ($request) {
|
||||
$result->info = array();
|
||||
|
||||
//check the language, if no info in config about language, the default is 'en'
|
||||
G::loadClass('configuration');
|
||||
$oConf = new Configurations();
|
||||
$oConf->loadConfig($x, 'APP_CACHE_VIEW_ENGINE', '', '', '', '');
|
||||
$appCacheViewEngine = $oConf->aConfig;
|
||||
@@ -216,7 +213,6 @@ switch ($request) {
|
||||
break;
|
||||
case 'build':
|
||||
$sqlToExe = array();
|
||||
G::LoadClass('configuration');
|
||||
$conf = new Configurations();
|
||||
|
||||
//DEPRECATED $lang = $_POST['lang'];
|
||||
|
||||
@@ -12,9 +12,6 @@ $oHeadPublisher = & headPublisher::getSingleton();
|
||||
$oHeadPublisher->addExtJsScript( 'setup/appCacheViewConf', false ); //adding a javascript file .js
|
||||
$oHeadPublisher->addContent( 'setup/appCacheViewConf' ); //adding a html file .html.
|
||||
|
||||
|
||||
require_once ('classes/model/AppCacheView.php');
|
||||
G::loadClass( 'configuration' );
|
||||
$oConf = new Configurations();
|
||||
$oConf->loadConfig( $x, 'APP_CACHE_VIEW_ENGINE', '', '', '', '' );
|
||||
|
||||
|
||||
@@ -4,10 +4,8 @@ global $G_TMP_MENU;
|
||||
switch ($_GET['action']) {
|
||||
case 'saveOption':
|
||||
try {
|
||||
G::LoadClass( 'serverConfiguration' );
|
||||
$oServerConf = & serverConf::getSingleton();
|
||||
$response = new $oServerConf;
|
||||
G::LoadClass("configuration");
|
||||
$conf = new Configurations();
|
||||
/*you can use SYS_TEMP or SYS_SYS ON AUDIT_LOG_CONF to save for each workspace*/
|
||||
if (isset( $_POST['acceptAL'] )) {
|
||||
|
||||
@@ -3,7 +3,6 @@ try {
|
||||
|
||||
$CalendarUid = $_GET['id'];
|
||||
|
||||
G::LoadClass( 'calendar' );
|
||||
$calendarObj = new calendar();
|
||||
$calendarObj->deleteCalendar( $CalendarUid );
|
||||
|
||||
|
||||
@@ -34,7 +34,6 @@ $G_ID_SUB_MENU_SELECTED = 'CALENDAR';
|
||||
|
||||
$CalendarUid = str_replace( '"', '', isset( $_GET['id'] ) ? $_GET['id'] : G::GenerateUniqueID() );
|
||||
//TODO: Add validation before save for all fields
|
||||
G::LoadClass( 'calendar' );
|
||||
$calendarObj = new calendar();
|
||||
if ((isset( $_GET['id'] )) && ($_GET['id'] != "")) {
|
||||
$fields = $calendarObj->getCalendarInfoE( $CalendarUid );
|
||||
|
||||
@@ -36,7 +36,6 @@ $G_ID_SUB_MENU_SELECTED = 'CALENDAR';
|
||||
|
||||
$G_PUBLISH = new Publisher();
|
||||
|
||||
G::LoadClass( 'configuration' );
|
||||
$c = new Configurations();
|
||||
$configPage = $c->getConfiguration( 'calendarList', 'pageSize', '', $_SESSION['USER_LOGGED'] );
|
||||
$Config['pageSize'] = isset( $configPage['pageSize'] ) ? $configPage['pageSize'] : 20;
|
||||
|
||||
@@ -37,7 +37,6 @@ switch ($RBAC->userCanAccess( 'PM_SETUP_ADVANCE' )) {
|
||||
try {
|
||||
$form = $_POST['form'];
|
||||
|
||||
G::LoadClass( 'calendar' );
|
||||
$calendarObj = new calendar();
|
||||
$calendarObj->saveCalendarInfo( $form );
|
||||
|
||||
|
||||
@@ -30,8 +30,6 @@ $_POST['action'] = $_REQUEST['action'];
|
||||
|
||||
switch ($_POST['action']) {
|
||||
case 'calendarList':
|
||||
G::LoadClass( 'configuration' );
|
||||
G::LoadClass( 'calendar' );
|
||||
|
||||
$co = new Configurations();
|
||||
$config = $co->getConfiguration( 'calendarList', 'pageSize', '', $_SESSION['USER_LOGGED'] );
|
||||
@@ -64,7 +62,6 @@ switch ($_POST['action']) {
|
||||
echo '{cals: ' . G::json_encode( $aCals ) . ', total_cals: ' . $total_cals . '}';
|
||||
break;
|
||||
case 'updatePageSize':
|
||||
G::LoadClass( 'configuration' );
|
||||
$c = new Configurations();
|
||||
$arr['pageSize'] = $_REQUEST['size'];
|
||||
$arr['dateSave'] = date( 'Y-m-d H:i:s' );
|
||||
@@ -76,7 +73,6 @@ switch ($_POST['action']) {
|
||||
break;
|
||||
case 'canDeleteCalendar':
|
||||
$cal_uid = $_POST['CAL_UID'];
|
||||
G::LoadClass( 'calendar' );
|
||||
$cal = new calendar();
|
||||
$total = 0;
|
||||
$u = $cal->getAllCounterByCalendar( 'USER' );
|
||||
@@ -91,7 +87,6 @@ switch ($_POST['action']) {
|
||||
break;
|
||||
case 'deleteCalendar':
|
||||
$CalendarUid = $_POST['CAL_UID'];
|
||||
G::LoadClass( 'calendar' );
|
||||
$calendarObj = new calendar();
|
||||
$calendarObj->deleteCalendar( $CalendarUid );
|
||||
echo '{success: true}';
|
||||
|
||||
@@ -1,7 +1,4 @@
|
||||
<?php
|
||||
G::LoadClass( "system" );
|
||||
G::LoadClass( "wsTools" );
|
||||
G::LoadClass( "configuration" );
|
||||
|
||||
global $RBAC;
|
||||
|
||||
|
||||
@@ -28,7 +28,6 @@ $G_ENABLE_BLANK_SKIN = true;
|
||||
$dbc = new DBConnection();
|
||||
$G_PUBLISH = new Publisher();
|
||||
|
||||
G::LoadClass( 'lexico' );
|
||||
$lex = new Lexico( $dbc );
|
||||
$Fields['SESSION_PC'] = $lex->getFluidValue( 'SESSION_PC', 'Y' );
|
||||
$Fields['SESSION_BROWSER'] = $lex->getFluidValue( 'SESSION_BROWSER', 'Y' );
|
||||
|
||||
@@ -26,10 +26,6 @@ $G_SUB_MENU = 'setup';
|
||||
$G_ID_MENU_SELECTED = 'SETUP';
|
||||
$G_ID_SUB_MENU_SELECTED = 'MAILSYSTEM';
|
||||
|
||||
G::LoadClass( 'package' );
|
||||
G::LoadClass( 'smtp' );
|
||||
G::LoadClass( 'spool' );
|
||||
|
||||
$run = new spoolRun();
|
||||
unset( $run );
|
||||
|
||||
|
||||
@@ -20,8 +20,6 @@
|
||||
if (isset( $_POST['form'] )) {
|
||||
$frm = "{$_POST['form']}";
|
||||
|
||||
G::LoadClass( 'insert' );
|
||||
|
||||
$db_spool = array ();
|
||||
|
||||
$db_spool['msg_uid'] = 'msg_uid';
|
||||
|
||||
@@ -62,8 +62,6 @@ switch ($request) {
|
||||
}
|
||||
break;
|
||||
case 'testConnection':
|
||||
G::LoadClass( 'net' );
|
||||
G::LoadThirdParty( 'phpmailer', 'class.smtp' );
|
||||
|
||||
define( "SUCCESSFUL", 'SUCCESSFUL' );
|
||||
define( "FAILED", 'FAILED' );
|
||||
@@ -233,7 +231,6 @@ switch ($request) {
|
||||
|
||||
function sendTestMail ()
|
||||
{
|
||||
G::LoadClass( "system" );
|
||||
$sFrom = ($_POST['FROM_NAME'] != '' ? $_POST['FROM_NAME'] . ' ' : '') . '<' . $_POST['FROM_EMAIL'] . '>';
|
||||
$sSubject = G::LoadTranslation( 'ID_MESS_TEST_SUBJECT' );
|
||||
$msg = G::LoadTranslation( 'ID_MESS_TEST_BODY' );
|
||||
@@ -259,7 +256,6 @@ function sendTestMail ()
|
||||
<a href='http://www.processmaker.com' style='color:#c40000;'>www.processmaker.com</a><br /></td>
|
||||
</tr></tbody></table>";
|
||||
|
||||
G::LoadClass( 'spool' );
|
||||
$oSpool = new spoolRun();
|
||||
|
||||
$passwd = $_POST['MESS_PASSWORD'];
|
||||
|
||||
@@ -2,7 +2,6 @@
|
||||
global $RBAC;
|
||||
$RBAC->requirePermissions( 'PM_SETUP' );
|
||||
|
||||
G::loadClass( 'configuration' );
|
||||
$c = new Configurations();
|
||||
$oHeadPublisher = & headPublisher::getSingleton();
|
||||
$oHeadPublisher->addExtJsScript( 'setup/environmentSettings', true );
|
||||
|
||||
@@ -5,7 +5,6 @@
|
||||
* @date Sept 13th, 2010
|
||||
*
|
||||
*/
|
||||
G::LoadClass( "configuration" );
|
||||
|
||||
$request = isset( $_POST["request"] ) ? $_POST["request"] : (isset( $_GET["request"] ) ? $_GET["request"] : null);
|
||||
$result = new stdclass();
|
||||
|
||||
@@ -46,10 +46,6 @@ try {
|
||||
}
|
||||
break;
|
||||
case 'languagesList':
|
||||
require_once 'classes/model/Language.php';
|
||||
require_once 'classes/model/IsoCountry.php';
|
||||
require_once 'classes/model/Translation.php';
|
||||
G::loadClass( 'configuration' );
|
||||
|
||||
$isoCountry = new isoCountry();
|
||||
$translationRow = new Translation();
|
||||
@@ -69,8 +65,6 @@ try {
|
||||
$countryName = G::LoadTranslation( 'ID_INTERNATIONAL' );
|
||||
}
|
||||
|
||||
G::LoadClass( 'configuration' );
|
||||
|
||||
$conf = new Configurations();
|
||||
$confCasesList = $conf->getConfiguration( 'casesList', 'todo' );
|
||||
//echo date($confCasesList['dateformat'], '2010-01-01');
|
||||
|
||||
@@ -55,8 +55,7 @@ try {
|
||||
|
||||
$sMaxExecutionTime = ini_get( 'max_execution_time' );
|
||||
ini_set( 'max_execution_time', '0' );
|
||||
G::LoadClass( 'configuration' );
|
||||
G::LoadSystem('inputfilter');
|
||||
|
||||
$filter = new InputFilter();
|
||||
|
||||
$languageFile = $_FILES['form']['tmp_name']['LANGUAGE_FILENAME'];
|
||||
@@ -79,7 +78,6 @@ try {
|
||||
$configuration = new Configurations();
|
||||
$importResults = $language->import( $languageFile );
|
||||
|
||||
G::LoadClass( "wsTools" );
|
||||
$renegerateContent = new workspaceTools( SYS_SYS );
|
||||
$messs = $renegerateContent->upgradeContent();
|
||||
|
||||
|
||||
@@ -31,8 +31,6 @@ $uid = $_SESSION['USER_LOGGED'];
|
||||
$dbc = new DBConnection();
|
||||
$ses = new DBSession( $dbc );
|
||||
|
||||
G::LoadClass( 'templateTable' );
|
||||
|
||||
$query = $ses->execute( 'select USR_COUNTRY ,USR_CITY ,USR_LOCATION from USER where UID = "' . $uid . '"' );
|
||||
$param = $query->read();
|
||||
|
||||
|
||||
@@ -23,8 +23,7 @@
|
||||
*/
|
||||
global $RBAC;
|
||||
$RBAC->requirePermissions( 'PM_SETUP' );
|
||||
|
||||
G::loadClass( 'configuration' );
|
||||
|
||||
$oConf = new Configurations();
|
||||
|
||||
$oHeadPublisher = & headPublisher::getSingleton();
|
||||
|
||||
@@ -20,7 +20,7 @@ switch ($request) {
|
||||
break;
|
||||
case 'saveSettings':
|
||||
$memcache = & PMmemcached::getSingleton( defined( 'SYS_SYS' ) ? SYS_SYS : '' );
|
||||
G::LoadClass( 'configuration' );
|
||||
|
||||
$conf = new Configurations();
|
||||
$conf->loadConfig( $obj, 'ENVIRONMENT_SETTINGS', '' );
|
||||
|
||||
|
||||
@@ -27,9 +27,7 @@ $pluginFile = $_GET['id'];
|
||||
$pluginStatus = $_GET['status'];
|
||||
|
||||
$items = array ();
|
||||
G::LoadClass( 'plugin' );
|
||||
//here we are enabling or disabling the plugin and all related options registered.
|
||||
G::LoadSystem('inputfilter');
|
||||
$filter = new InputFilter();
|
||||
$path = PATH_PLUGINS . $pluginFile;
|
||||
$path = $filter->validateInput($path, 'path');
|
||||
@@ -56,7 +54,6 @@ if ($handle = opendir( PATH_PLUGINS )) {
|
||||
PMLicensedFeatures::getSingleton()->verifyfeature('B0oWlBLY3hHdWY0YUNpZEtFQm5CeTJhQlIwN3IxMEkwaG4=')
|
||||
) {
|
||||
//Check disabled code
|
||||
G::LoadClass("codeScanner");
|
||||
|
||||
$cs = new CodeScanner(SYS_SYS);
|
||||
|
||||
|
||||
@@ -42,7 +42,6 @@ if ($access != 1) {
|
||||
break;
|
||||
}
|
||||
}
|
||||
G::LoadClass( 'plugin' );
|
||||
|
||||
$oPluginRegistry = & PMPluginRegistry::getSingleton();
|
||||
$G_MAIN_MENU = 'processmaker';
|
||||
|
||||
@@ -29,7 +29,6 @@ $RBAC->requirePermissions( 'PM_SETUP_ADVANCE' );
|
||||
|
||||
try {
|
||||
//load the variables
|
||||
G::LoadClass( 'plugin' );
|
||||
if (! isset( $_FILES['form']['error']['PLUGIN_FILENAME'] ) || $_FILES['form']['error']['PLUGIN_FILENAME'] == 1) {
|
||||
throw (new Exception( G::loadTranslation( 'ID_ERROR_UPLOADING_PLUGIN_FILENAME' ) ));
|
||||
}
|
||||
@@ -250,7 +249,6 @@ try {
|
||||
/*----------------------------------********---------------------------------*/
|
||||
if (PMLicensedFeatures::getSingleton()->verifyfeature("B0oWlBLY3hHdWY0YUNpZEtFQm5CeTJhQlIwN3IxMEkwaG4=")) {
|
||||
//Check disabled code
|
||||
G::LoadClass("codeScanner");
|
||||
|
||||
$cs = new CodeScanner(SYS_SYS);
|
||||
|
||||
@@ -282,7 +280,6 @@ try {
|
||||
$oClass->iPMVersion = 0;
|
||||
}
|
||||
if ($oClass->iPMVersion > 0) {
|
||||
G::LoadClass( "system" );
|
||||
if (System::getVersion() > 0) {
|
||||
if ($oClass->iPMVersion > System::getVersion()) {
|
||||
//throw new Exception('This plugin needs version ' . $oClass->iPMVersion . ' or higher of ProcessMaker');
|
||||
|
||||
@@ -38,8 +38,6 @@ switch ($RBAC->userCanAccess('PM_SETUP_ADVANCE'))
|
||||
break;
|
||||
}*/
|
||||
|
||||
G::LoadClass( "plugin" );
|
||||
G::LoadSystem('inputfilter');
|
||||
$filter = new InputFilter();
|
||||
$pluginName = $_REQUEST['pluginUid'];
|
||||
$pluginName = $filter->xssFilterHard($pluginName);
|
||||
|
||||
@@ -24,8 +24,6 @@
|
||||
|
||||
$pluginFile = $_GET['id'];
|
||||
|
||||
G::LoadClass( 'plugin' );
|
||||
|
||||
$oPluginRegistry = & PMPluginRegistry::getSingleton();
|
||||
|
||||
$details = $oPluginRegistry->getPluginDetails( $pluginFile );
|
||||
|
||||
@@ -23,7 +23,6 @@
|
||||
*/
|
||||
|
||||
$pluginFile = $_GET['id'];
|
||||
G::LoadClass( 'plugin' );
|
||||
|
||||
$oPluginRegistry = & PMPluginRegistry::getSingleton();
|
||||
|
||||
|
||||
@@ -3,7 +3,6 @@
|
||||
switch ($_GET['action']) {
|
||||
case 'saveOption':
|
||||
try {
|
||||
G::LoadClass( 'serverConfiguration' );
|
||||
$oServerConf = & serverConf::getSingleton();
|
||||
$response = new stdclass();
|
||||
/*you can use SYS_TEMP or SYS_SYS ON HEAR_BEAT_CONF to save for each workspace*/
|
||||
|
||||
@@ -25,7 +25,6 @@ global $RBAC;
|
||||
$RBAC->requirePermissions( 'PM_SETUP', 'PM_SETUP_HEART_BEAT');
|
||||
|
||||
$oHeadPublisher = & headPublisher::getSingleton();
|
||||
G::LoadClass( 'serverConfiguration' );
|
||||
$oServerConf = & serverConf::getSingleton();
|
||||
|
||||
//you can use SYS_TEMP or SYS_SYS ON HEAR_BEAT_CONF to save for each workspace
|
||||
|
||||
@@ -6,8 +6,6 @@ if ($RBAC->userCanAccess( 'PM_SETUP' ) != 1 && $RBAC->userCanAccess( 'PM_SETUP_A
|
||||
die();
|
||||
}
|
||||
try {
|
||||
|
||||
G::LoadClass( 'serverConfiguration' );
|
||||
$oServerConf = & serverConf::getSingleton();
|
||||
/*you can use SYS_TEMP or SYS_SYS ON HEAR_BEAT_CONF to save for each workspace*/
|
||||
$sflag = $_POST['HB_OPTION'];
|
||||
|
||||
@@ -72,7 +72,7 @@ try { //ini_set('display_errors','1');
|
||||
$snameLogo = urldecode( $_GET['NAMELOGO'] );
|
||||
$snameLogo = trim( $snameLogo );
|
||||
$snameLogo = changeNamelogo( $snameLogo );
|
||||
G::loadClass( 'configuration' );
|
||||
|
||||
$oConf = new Configurations();
|
||||
$aConf = Array ('WORKSPACE_LOGO_NAME' => SYS_SYS,'DEFAULT_LOGO_NAME' => $snameLogo
|
||||
);
|
||||
@@ -86,7 +86,7 @@ try { //ini_set('display_errors','1');
|
||||
break;
|
||||
case 'restoreLogo':
|
||||
$snameLogo = $_GET['NAMELOGO'];
|
||||
G::loadClass( 'configuration' );
|
||||
|
||||
$oConf = new Configurations();
|
||||
$aConf = Array ('WORKSPACE_LOGO_NAME' => '','DEFAULT_LOGO_NAME' => ''
|
||||
);
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user