HOR-2689 Removed references to G::LoadClass, Bootstrap::LoadClass and various references to class loading methods and require_once

This commit is contained in:
Chloe Deguzman
2017-02-14 21:24:08 +00:00
committed by davidcallizaya
parent d72b7aa561
commit 60efcf7ac7
461 changed files with 289 additions and 3170 deletions

View File

@@ -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'];

View File

@@ -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', '', '', '', '' );

View File

@@ -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'] )) {

View File

@@ -3,7 +3,6 @@ try {
$CalendarUid = $_GET['id'];
G::LoadClass( 'calendar' );
$calendarObj = new calendar();
$calendarObj->deleteCalendar( $CalendarUid );

View File

@@ -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 );

View File

@@ -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;

View File

@@ -37,7 +37,6 @@ switch ($RBAC->userCanAccess( 'PM_SETUP_ADVANCE' )) {
try {
$form = $_POST['form'];
G::LoadClass( 'calendar' );
$calendarObj = new calendar();
$calendarObj->saveCalendarInfo( $form );

View File

@@ -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}';

View File

@@ -1,7 +1,4 @@
<?php
G::LoadClass( "system" );
G::LoadClass( "wsTools" );
G::LoadClass( "configuration" );
global $RBAC;

View File

@@ -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' );

View File

@@ -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 );

View File

@@ -20,8 +20,6 @@
if (isset( $_POST['form'] )) {
$frm = "{$_POST['form']}";
G::LoadClass( 'insert' );
$db_spool = array ();
$db_spool['msg_uid'] = 'msg_uid';

View File

@@ -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'];

View File

@@ -2,7 +2,6 @@
global $RBAC;
$RBAC->requirePermissions( 'PM_SETUP' );
G::loadClass( 'configuration' );
$c = new Configurations();
$oHeadPublisher = & headPublisher::getSingleton();
$oHeadPublisher->addExtJsScript( 'setup/environmentSettings', true );

View File

@@ -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();

View File

@@ -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');

View File

@@ -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();

View File

@@ -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();

View File

@@ -23,8 +23,7 @@
*/
global $RBAC;
$RBAC->requirePermissions( 'PM_SETUP' );
G::loadClass( 'configuration' );
$oConf = new Configurations();
$oHeadPublisher = & headPublisher::getSingleton();

View File

@@ -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', '' );

View File

@@ -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);

View File

@@ -42,7 +42,6 @@ if ($access != 1) {
break;
}
}
G::LoadClass( 'plugin' );
$oPluginRegistry = & PMPluginRegistry::getSingleton();
$G_MAIN_MENU = 'processmaker';

View File

@@ -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');

View File

@@ -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);

View File

@@ -24,8 +24,6 @@
$pluginFile = $_GET['id'];
G::LoadClass( 'plugin' );
$oPluginRegistry = & PMPluginRegistry::getSingleton();
$details = $oPluginRegistry->getPluginDetails( $pluginFile );

View File

@@ -23,7 +23,6 @@
*/
$pluginFile = $_GET['id'];
G::LoadClass( 'plugin' );
$oPluginRegistry = & PMPluginRegistry::getSingleton();

View File

@@ -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*/

View File

@@ -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

View File

@@ -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'];

View File

@@ -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' => ''
);

View File

@@ -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() );

View File

@@ -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'] )) {

View File

@@ -120,8 +120,6 @@ switch ($RBAC->userCanAccess( 'PM_SETUP' )) {
break;
}
G::LoadClass( "system" );
$id = $_GET['id'];
$fileObj = PATH_SKINS . $id . '.cnf';

View File

@@ -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' );

View File

@@ -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'];

View File

@@ -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 . ") ";

View File

@@ -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'];

View File

@@ -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' );

View File

@@ -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' );

View File

@@ -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 );

View File

@@ -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 );

View File

@@ -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 );

View File

@@ -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'] != '';