Changeset 5316 for trunk/calendar
- Timestamp:
- 01/06/12 08:52:37 (12 years ago)
- Location:
- trunk/calendar/inc
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/calendar/inc/class.bocalendar.inc.php
r5281 r5316 974 974 $l_participants = (@$params['participants']?$params['participants']:$_POST['participants']); 975 975 976 require_once( $_SESSION['rootPath'].'/calendar/inc/class.ex_participants.inc.php');976 require_once(dirname(__FILE__).'/class.ex_participants.inc.php'); 977 977 $this->ex_participants = new exParticipants(); 978 978 $this->ex_participants->setParticipantsByString(@$params['ex_participants']?$params['ex_participants']:$_POST['ex_participants']); … … 3253 3253 function getLdap() 3254 3254 { 3255 require_once( $_SESSION['rootPath'].'/header.inc.php');3256 require_once( $_SESSION['rootPath'].'/phpgwapi/inc/class.common.inc.php');3255 require_once(dirname(__FILE__).'/../../header.inc.php'); 3256 require_once(dirname(__FILE__).'/../../phpgwapi/inc/class.common.inc.php'); 3257 3257 3258 3258 $common = new common(); … … 3769 3769 if(!is_object($this->ex_participants)) 3770 3770 { 3771 include_once( $_SESSION['rootPath'].'/calendar/inc/class.ex_participants.inc.php');3771 include_once(dirname(__FILE__).'/class.ex_participants.inc.php'); 3772 3772 $objexP = new exParticipants(); 3773 3773 $objexP->setParticipantsBySerializable($this->ex_participants); … … 3825 3825 * Cria Arqvuio ICS 3826 3826 */ 3827 require_once $_SESSION['rootPath'].'/API/class.servicelocator.php';3827 require_once dirname(__FILE__).'/../../API/class.servicelocator.php'; 3828 3828 $icalService = ServiceLocator::getService('ical'); 3829 3829 … … 3991 3991 } 3992 3992 3993 require_once $_SESSION['rootPath'] . '/API/class.servicelocator.php';3993 require_once dirname(__FILE__) . '/../../API/class.servicelocator.php'; 3994 3994 $icalService = ServiceLocator::getService('ical'); 3995 3995 $dia_inicio = $array_data_inicio[0]; … … 4157 4157 } 4158 4158 //Verificando alterações em usuarios externos 4159 include_once( $_SESSION['rootPath'].'/calendar/inc/class.ex_participants.inc.php');4159 include_once(dirname(__FILE__).'/class.ex_participants.inc.php'); 4160 4160 $extOld = new exParticipants(); 4161 4161 $extNew = new exParticipants(); -
trunk/calendar/inc/class.boicalendar.inc.php
r5132 r5316 2785 2785 /*-------------------------------------------------------------*/ 2786 2786 2787 require_once ( $_SESSION['rootPath'] . '/calendar/inc/class.ex_participants.inc.php');2787 require_once (dirname(__FILE__) . '/class.ex_participants.inc.php'); 2788 2788 2789 2789 $c_events = count($ical['event']); … … 3058 3058 3059 3059 if (!isset ($this->bo)) { 3060 require_once ( $_SESSION['rootPath'] . '/calendar/inc/class.bocalendar.inc.php');3060 require_once (dirname(__FILE__) . '/class.bocalendar.inc.php'); 3061 3061 $this->bo = new bocalendar(); 3062 3062 } … … 3415 3415 return false; 3416 3416 3417 include_once ( $_SESSION['rootPath'] . '/calendar/inc/class.ex_participants.inc.php');3417 include_once (dirname(__FILE__) . '/class.ex_participants.inc.php'); 3418 3418 $exParticipants = new exParticipants(); 3419 3419 $exParticipants->setParticipantsBySerializable($row['ex_participants']); -
trunk/calendar/inc/class.socalendar_sql.inc.php
r5281 r5316 13 13 * option) any later version. * 14 14 \**************************************************************************/ 15 if($_SESSION['isCrun']){ 15 require_once dirname(__FILE__).'/../../API/class.servicelocator.php'; 16 17 if(isset($_SESSION['isCrun'])) 16 18 $_SESSION['isCrun'] = false; 17 $_SESSION['rootPath'] = PHPGW_INCLUDE_ROOT; 18 require_once $_SESSION['rootPath'].'/API/class.servicelocator.php'; 19 }else if($_SESSION['rootPath']){ 20 require_once $_SESSION['rootPath'].'/API/class.servicelocator.php'; 21 }else{ 22 require_once PHPGW_INCLUDE_ROOT.'/API/class.servicelocator.php'; 23 } 24 19 25 20 if (@$GLOBALS['phpgw_info']['flags']['included_classes']['socalendar_']) 26 21 { -
trunk/calendar/inc/class.uicalendar.inc.php
r5269 r5316 95 95 $GLOBALS['phpgw_info']['flags']['noappfooter'] = True; 96 96 $GLOBALS['phpgw_info']['flags']['currentapp'] = 'calendar'; 97 include_once( $_SESSION['rootPath'].'/header.inc.php' );97 include_once( dirname(__FILE__).'/../../header.inc.php' ); 98 98 99 99 $GLOBALS['phpgw']->nextmatchs = CreateObject('phpgwapi.nextmatchs'); … … 1028 1028 ); 1029 1029 1030 include_once( $_SESSION['rootPath'].'/calendar/inc/class.ex_participants.inc.php');1030 include_once(dirname(__FILE__).'/class.ex_participants.inc.php'); 1031 1031 $exParticipants = new exParticipants(); 1032 1032 $exParticipants->setParticipantsBySerializable($event['ex_participants']); … … 3899 3899 $porig = $GLOBALS['phpgw']->template; 3900 3900 3901 $GLOBALS['phpgw']->template->root = $_SESSION['rootPath'].'/calendar/templates/'.$GLOBALS['phpgw_info']['server']['template_set'].'/';3901 $GLOBALS['phpgw']->template->root = dirname(__FILE__).'/../templates/'.$GLOBALS['phpgw_info']['server']['template_set'].'/'; 3902 3902 3903 3903 $p = $GLOBALS['phpgw']->template; … … 4576 4576 $p->set_block('view','hr','hr'); 4577 4577 4578 include_once( $_SESSION['rootPath'].'/calendar/inc/class.ex_participants.inc.php');4578 include_once(dirname(__FILE__).'/class.ex_participants.inc.php'); 4579 4579 $langp = array(); 4580 4580 $langp['ACCEPTED'] = lang('Accepted'); … … 5054 5054 } 5055 5055 5056 include_once( $_SESSION['rootPath'].'/calendar/inc/class.ex_participants.inc.php');5056 include_once(dirname(__FILE__).'/class.ex_participants.inc.php'); 5057 5057 $langp = array(); 5058 5058 $langp['ACCEPTED'] = lang('Accepted');
Note: See TracChangeset
for help on using the changeset viewer.