diff --git a/workflow/engine/methods/setup/weekend.php b/workflow/engine/methods/setup/weekend.php deleted file mode 100644 index 8a8b32a26..000000000 --- a/workflow/engine/methods/setup/weekend.php +++ /dev/null @@ -1,94 +0,0 @@ -. - * - * For more information, contact Colosa Inc, 2566 Le Jeune Rd., - * Coral Gables, FL, 33134, USA, or email info@colosa.com. - */ -if (($RBAC_Response = $RBAC->userCanAccess( "PM_SETUP" )) != 1) - return $RBAC_Response; -$G_ENABLE_BLANK_SKIN = true; - -$ARR_WEEKDAYS[0] = array ('SUNDAY','MONDAY','TUESDAY','WEDNESDAY','THURSDAY','FRIDAY','SATURDAY' -); -$ARR_WEEKDAYS['es'] = array ("Domingo?","Lunes?","Martes?","Miércoles?","Jueves?","Viernes?","Sábado?" -); -$ARR_WEEKDAYS['en'] = array ("Sunday?","Monday?","Tuesday?","Wednesday?","Thursday?","Friday?","Saturday?" -); -$ARR_WEEKDAYS['fa'] = array ('یکشنبه','دوشنبه','سه شنبه','چهارشنبه','پنجشنبه ','جمعه','آدینه' -); - -$dbc = new DBConnection(); -$ses = new DBSession( $dbc ); - -$holidays = $ses->execute( "SELECT LEX_VALUE FROM LEXICO WHERE LEX_TOPIC ='NOWORKINGDAY' " ); - -$config = array (); -for ($id = 0; $id < 7; $id ++) { - $res = $ses->execute( " SELECT * FROM LEXICO WHERE LEX_KEY = '" . $ARR_WEEKDAYS[0][$id] . "' AND LEX_TOPIC ='HOLIDAY' " ); - $res = $res->read(); - $config[$ARR_WEEKDAYS[0][$id]] = $res['LEX_VALUE']; -} -$G_PUBLISH = new Publisher(); -$G_PUBLISH->AddContent( 'xmlform', 'xmlform', 'setup/weekend', '', $config, '' ); -G::RenderPage( 'publish' ); -?> - \ No newline at end of file