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' => ''
|
||||
);
|
||||
|
||||
@@ -26,7 +26,6 @@ if (($RBAC_Response = $RBAC->userCanAccess( "PM_SETUP" )) != 1)
|
||||
//$oSMTPJSON = new Services_JSON();
|
||||
//$oSMTPData = $oSMTPJSON->decode(stripslashes($_POST['data']));
|
||||
//$sOutput = '';
|
||||
G::LoadClass( 'setup' );
|
||||
|
||||
$oSMTPSetup = new Setup( new DBConnection() );
|
||||
|
||||
|
||||
@@ -28,7 +28,6 @@ $functionName();
|
||||
|
||||
function updatePageSize ()
|
||||
{
|
||||
G::LoadClass( 'configuration' );
|
||||
$c = new Configurations();
|
||||
$arr['pageSize'] = $_REQUEST['size'];
|
||||
$arr['dateSave'] = date( 'Y-m-d H:i:s' );
|
||||
@@ -47,8 +46,6 @@ function skinList ()
|
||||
$textFilter = '';
|
||||
}
|
||||
|
||||
G::loadClass( 'system' );
|
||||
|
||||
$skinList = System::getSkingList();
|
||||
$wildcard = '';
|
||||
if (isset( $_REQUEST['activeskin'] )) {
|
||||
|
||||
@@ -120,8 +120,6 @@ switch ($RBAC->userCanAccess( 'PM_SETUP' )) {
|
||||
break;
|
||||
}
|
||||
|
||||
G::LoadClass( "system" );
|
||||
|
||||
$id = $_GET['id'];
|
||||
|
||||
$fileObj = PATH_SKINS . $id . '.cnf';
|
||||
|
||||
@@ -35,7 +35,6 @@ $G_ID_SUB_MENU_SELECTED = 'CALENDAR';
|
||||
|
||||
$G_PUBLISH = new Publisher();
|
||||
|
||||
G::LoadClass( 'configuration' );
|
||||
$c = new Configurations();
|
||||
$configPage = $c->getConfiguration( 'skinList', 'pageSize', '', $_SESSION['USER_LOGGED'] );
|
||||
$Config['pageSize'] = isset( $configPage['pageSize'] ) ? $configPage['pageSize'] : 20;
|
||||
@@ -132,7 +131,6 @@ if ($handle = opendir( PATH_SKINS )) {
|
||||
$_DBArray['plugins'] = $items;
|
||||
$_SESSION['_DBArray'] = $_DBArray;
|
||||
|
||||
G::LoadClass( 'ArrayPeer' );
|
||||
$c = new Criteria( 'dbarray' );
|
||||
$c->setDBArrayTable( 'plugins' );
|
||||
$c->addAscendingOrderByColumn( 'id' );
|
||||
|
||||
@@ -52,8 +52,6 @@ switch ($RBAC->userCanAccess( 'PM_SETUP' )) {
|
||||
break;
|
||||
}
|
||||
|
||||
G::LoadClass( "system" );
|
||||
|
||||
$id = strip_tags( str_replace( ' ', '_', trim( $_POST['form']['NAME'] ) ) );
|
||||
$desc = $_POST['form']['DESCRIPTION'];
|
||||
|
||||
|
||||
@@ -61,8 +61,6 @@ $G_SUB_MENU = 'setup';
|
||||
$G_ID_MENU_SELECTED = 'SETUP';
|
||||
$G_ID_SUB_MENU_SELECTED = 'UPGRADE';
|
||||
|
||||
G::LoadClass( "system" );
|
||||
|
||||
$Fields['PM_VERSION'] = System::getVersion();
|
||||
$Fields['MAX_FILE_SIZE'] = $uploadMaxSize . " (" . $UPLOAD_MAX_SIZE . ") ";
|
||||
|
||||
|
||||
@@ -32,10 +32,6 @@ $id = '';
|
||||
if (isset( $_POST['id'] ))
|
||||
$id = $_POST['id'];
|
||||
|
||||
G::LoadClass( 'languages' );
|
||||
G::LoadSystem( 'database_mysql' );
|
||||
G::LoadSystem('inputfilter');
|
||||
|
||||
$aUpgradeData = unserialize( file_get_contents( PATH_DATA . 'log' . PATH_SEP . "upgrade.data.bin" ) );
|
||||
$aWorkspaces = $aUpgradeData['workspaces'];
|
||||
|
||||
|
||||
@@ -23,7 +23,6 @@
|
||||
*/
|
||||
|
||||
global $RBAC;
|
||||
G::LoadClass( 'replacementLogo' );
|
||||
|
||||
if ($RBAC->userCanAccess( 'PM_SETUP' ) != 1 && $RBAC->userCanAccess( 'PM_SETUP_ADVANCE' ) != 1) {
|
||||
G::SendTemporalMessage( 'ID_USER_HAVENT_RIGHTS_PAGE', 'error', 'labels' );
|
||||
|
||||
@@ -23,12 +23,10 @@
|
||||
*/
|
||||
ini_set( "soap.wsdl_cache_enabled", "0" ); // enabling WSDL cache
|
||||
|
||||
G::LoadSystem('inputfilter');
|
||||
$filter = new InputFilter();
|
||||
$_GET = $filter->xssFilterHard($_GET);
|
||||
//$_SESSION = $filter->xssFilterHard($_SESSION);
|
||||
|
||||
G::LoadClass( 'ArrayPeer' );
|
||||
if ($RBAC->userCanAccess( 'PM_SETUP' ) != 1 && $RBAC->userCanAccess( 'PM_FACTORY' ) != 1) {
|
||||
G::SendTemporalMessage( 'ID_USER_HAVENT_RIGHTS_PAGE', 'error', 'labels' );
|
||||
//G::header('location: ../login/login');
|
||||
@@ -60,7 +58,6 @@ switch ($_POST['action']) {
|
||||
}
|
||||
break;
|
||||
case 'showDetails':
|
||||
G::LoadClass( 'groups' );
|
||||
|
||||
$dbc = new DBConnection();
|
||||
$ses = new DBSession( $dbc );
|
||||
@@ -303,7 +300,6 @@ try {
|
||||
$_DBArray['role'] = $rows;
|
||||
$_SESSION['_DBArray'] = $_DBArray;
|
||||
|
||||
G::LoadClass( 'ArrayPeer' );
|
||||
$c = new Criteria( 'dbarray' );
|
||||
$c->setDBArrayTable( 'role' );
|
||||
$c->addAscendingOrderByColumn( 'name' );
|
||||
@@ -366,7 +362,6 @@ try {
|
||||
$_DBArray['group'] = $rows;
|
||||
$_SESSION['_DBArray'] = $_DBArray;
|
||||
|
||||
G::LoadClass( 'ArrayPeer' );
|
||||
$c = new Criteria( 'dbarray' );
|
||||
$c->setDBArrayTable( 'group' );
|
||||
$c->addAscendingOrderByColumn( 'name' );
|
||||
@@ -450,7 +445,6 @@ try {
|
||||
$_DBArray['case'] = $rows;
|
||||
$_SESSION['_DBArray'] = $_DBArray;
|
||||
|
||||
G::LoadClass( 'ArrayPeer' );
|
||||
$c = new Criteria( 'dbarray' );
|
||||
$c->setDBArrayTable( 'case' );
|
||||
//$c->addAscendingOrderByColumn ( 'name' );
|
||||
@@ -525,7 +519,6 @@ try {
|
||||
$_DBArray['case'] = $rows;
|
||||
$_SESSION['_DBArray'] = $_DBArray;
|
||||
|
||||
G::LoadClass( 'ArrayPeer' );
|
||||
$c = new Criteria( 'dbarray' );
|
||||
$c->setDBArrayTable( 'case' );
|
||||
$G_PUBLISH->AddContent( 'propeltable', 'paged-table', 'setup/wsrUnassignedCaseList', $c );
|
||||
@@ -590,7 +583,6 @@ try {
|
||||
$_DBArray['user'] = $rows;
|
||||
$_SESSION['_DBArray'] = $_DBArray;
|
||||
|
||||
G::LoadClass( 'ArrayPeer' );
|
||||
$c = new Criteria( 'dbarray' );
|
||||
$c->setDBArrayTable( 'user' );
|
||||
$c->addAscendingOrderByColumn( 'name' );
|
||||
@@ -873,7 +865,6 @@ try {
|
||||
$_DBArray['task'] = $rows;
|
||||
$_SESSION['_DBArray'] = $_DBArray;
|
||||
|
||||
G::LoadClass( 'ArrayPeer' );
|
||||
$c = new Criteria( 'dbarray' );
|
||||
$c->setDBArrayTable( 'task' );
|
||||
$c->addAscendingOrderByColumn( 'name' );
|
||||
@@ -958,7 +949,6 @@ try {
|
||||
$_DBArray['triggers'] = $rows;
|
||||
$_SESSION['_DBArray'] = $_DBArray;
|
||||
|
||||
G::LoadClass( 'ArrayPeer' );
|
||||
$c = new Criteria( 'dbarray' );
|
||||
$c->setDBArrayTable( 'triggers' );
|
||||
$c->addAscendingOrderByColumn( 'name' );
|
||||
@@ -1102,7 +1092,6 @@ try {
|
||||
$_DBArray['WS_TMP_CASE_UID'] = $frm["CASE_ID"];
|
||||
$_SESSION['_DBArray'] = $_DBArray;
|
||||
|
||||
G::LoadClass( 'ArrayPeer' );
|
||||
$c = new Criteria( 'dbarray' );
|
||||
$c->setDBArrayTable( 'inputDocument' );
|
||||
$c->addAscendingOrderByColumn( 'name' );
|
||||
@@ -1175,7 +1164,6 @@ try {
|
||||
$_DBArray['inputDocuments'] = $rows;
|
||||
$_SESSION['_DBArray'] = $_DBArray;
|
||||
|
||||
G::LoadClass( 'ArrayPeer' );
|
||||
$c = new Criteria( 'dbarray' );
|
||||
$c->setDBArrayTable( 'inputDocuments' );
|
||||
$c->addAscendingOrderByColumn( 'name' );
|
||||
@@ -1314,7 +1302,6 @@ try {
|
||||
$_DBArray['documents'] = $documentArray;
|
||||
$_SESSION['_DBArray'] = $_DBArray;
|
||||
|
||||
G::LoadClass( 'ArrayPeer' );
|
||||
$c = new Criteria( 'dbarray' );
|
||||
$c->setDBArrayTable( 'outputDocument' );
|
||||
$c->addAscendingOrderByColumn( 'name' );
|
||||
@@ -1425,7 +1412,6 @@ try {
|
||||
$_DBArray['taskCases'] = $rows;
|
||||
$_SESSION['_DBArray'] = $_DBArray;
|
||||
|
||||
G::LoadClass( 'ArrayPeer' );
|
||||
$c = new Criteria( 'dbarray' );
|
||||
$c->setDBArrayTable( 'taskCases' );
|
||||
$c->addAscendingOrderByColumn( 'name' );
|
||||
|
||||
@@ -24,8 +24,6 @@
|
||||
if (($RBAC_Response = $RBAC->userCanAccess( "PM_FACTORY" )) != 1)
|
||||
return $RBAC_Response;
|
||||
|
||||
G::LoadClass( 'groups' );
|
||||
|
||||
$dbc = new DBConnection();
|
||||
$ses = new DBSession( $dbc );
|
||||
|
||||
|
||||
@@ -25,8 +25,6 @@ if (($RBAC_Response = $RBAC->userCanAccess( "PM_SETUP" )) != 1)
|
||||
return $RBAC_Response;
|
||||
$G_ENABLE_BLANK_SKIN = true;
|
||||
|
||||
G::LoadClass( "workPeriod" );
|
||||
|
||||
$dbc = new DBConnection();
|
||||
$ses = new DBSession( $dbc );
|
||||
$obj = new workPeriod( $dbc );
|
||||
|
||||
@@ -25,8 +25,6 @@ if (($RBAC_Response = $RBAC->userCanAccess( "PM_SETUP" )) != 1)
|
||||
return $RBAC_Response;
|
||||
Header( "Content-type: image/jpeg" );
|
||||
|
||||
G::LoadClass( "workPeriod" );
|
||||
|
||||
$dbc = new DBConnection();
|
||||
$ses = new DBSession( $dbc );
|
||||
$obj = new workPeriod( $dbc );
|
||||
|
||||
@@ -23,7 +23,6 @@
|
||||
*/
|
||||
if (($RBAC_Response = $RBAC->userCanAccess( "PM_SETUP" )) != 1)
|
||||
return $RBAC_Response;
|
||||
G::LoadClass( "workPeriod" );
|
||||
|
||||
$frm = $_POST['form'];
|
||||
$noWorkingDays[0] = isset( $frm['SUNDAY'] ) && $frm['SUNDAY'] != '';
|
||||
|
||||
Reference in New Issue
Block a user