Changeset 5316 for trunk/calendar


Ignore:
Timestamp:
01/06/12 08:52:37 (12 years ago)
Author:
cristiano
Message:

Ticket #2423 - Trocar chamada da variável rootPath

Location:
trunk/calendar/inc
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/calendar/inc/class.bocalendar.inc.php

    r5281 r5316  
    974974                        $l_participants = (@$params['participants']?$params['participants']:$_POST['participants']); 
    975975 
    976                         require_once($_SESSION['rootPath'].'/calendar/inc/class.ex_participants.inc.php'); 
     976                        require_once(dirname(__FILE__).'/class.ex_participants.inc.php'); 
    977977                        $this->ex_participants = new exParticipants(); 
    978978                        $this->ex_participants->setParticipantsByString(@$params['ex_participants']?$params['ex_participants']:$_POST['ex_participants']); 
     
    32533253                function getLdap() 
    32543254                { 
    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'); 
    32573257    
    32583258                    $common = new common(); 
     
    37693769                        if(!is_object($this->ex_participants)) 
    37703770                        { 
    3771                             include_once($_SESSION['rootPath'].'/calendar/inc/class.ex_participants.inc.php'); 
     3771                            include_once(dirname(__FILE__).'/class.ex_participants.inc.php'); 
    37723772                            $objexP = new exParticipants(); 
    37733773                            $objexP->setParticipantsBySerializable($this->ex_participants); 
     
    38253825                                 * Cria Arqvuio ICS 
    38263826                                 */ 
    3827                                 require_once $_SESSION['rootPath'].'/API/class.servicelocator.php'; 
     3827                                require_once dirname(__FILE__).'/../../API/class.servicelocator.php'; 
    38283828                                $icalService = ServiceLocator::getService('ical'); 
    38293829 
     
    39913991                     } 
    39923992                      
    3993                     require_once $_SESSION['rootPath'] . '/API/class.servicelocator.php'; 
     3993                    require_once dirname(__FILE__) . '/../../API/class.servicelocator.php'; 
    39943994                    $icalService = ServiceLocator::getService('ical'); 
    39953995                    $dia_inicio = $array_data_inicio[0]; 
     
    41574157                        } 
    41584158                         //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'); 
    41604160                         $extOld = new exParticipants(); 
    41614161                         $extNew = new exParticipants(); 
  • trunk/calendar/inc/class.boicalendar.inc.php

    r5132 r5316  
    27852785        /*-------------------------------------------------------------*/ 
    27862786 
    2787         require_once ($_SESSION['rootPath'] . '/calendar/inc/class.ex_participants.inc.php'); 
     2787        require_once (dirname(__FILE__) . '/class.ex_participants.inc.php'); 
    27882788 
    27892789        $c_events = count($ical['event']); 
     
    30583058 
    30593059                if (!isset ($this->bo)) { 
    3060                         require_once ($_SESSION['rootPath'] . '/calendar/inc/class.bocalendar.inc.php'); 
     3060                        require_once (dirname(__FILE__) . '/class.bocalendar.inc.php'); 
    30613061                        $this->bo = new bocalendar(); 
    30623062                } 
     
    34153415                return false; 
    34163416 
    3417         include_once ($_SESSION['rootPath'] . '/calendar/inc/class.ex_participants.inc.php'); 
     3417        include_once (dirname(__FILE__) . '/class.ex_participants.inc.php'); 
    34183418        $exParticipants = new exParticipants(); 
    34193419        $exParticipants->setParticipantsBySerializable($row['ex_participants']); 
  • trunk/calendar/inc/class.socalendar_sql.inc.php

    r5281 r5316  
    1313  *  option) any later version.                                              * 
    1414  \**************************************************************************/ 
    15 if($_SESSION['isCrun']){ 
     15require_once dirname(__FILE__).'/../../API/class.servicelocator.php'; 
     16 
     17if(isset($_SESSION['isCrun'])) 
    1618        $_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     
    2520        if (@$GLOBALS['phpgw_info']['flags']['included_classes']['socalendar_']) 
    2621        { 
  • trunk/calendar/inc/class.uicalendar.inc.php

    r5269 r5316  
    9595                        $GLOBALS['phpgw_info']['flags']['noappfooter'] = True; 
    9696                        $GLOBALS['phpgw_info']['flags']['currentapp'] = 'calendar'; 
    97                         include_once( $_SESSION['rootPath'].'/header.inc.php' ); 
     97                        include_once( dirname(__FILE__).'/../../header.inc.php' ); 
    9898 
    9999                        $GLOBALS['phpgw']->nextmatchs = CreateObject('phpgwapi.nextmatchs'); 
     
    10281028                    ); 
    10291029 
    1030                    include_once($_SESSION['rootPath'].'/calendar/inc/class.ex_participants.inc.php'); 
     1030                   include_once(dirname(__FILE__).'/class.ex_participants.inc.php'); 
    10311031                   $exParticipants = new exParticipants(); 
    10321032                   $exParticipants->setParticipantsBySerializable($event['ex_participants']); 
     
    38993899                        $porig = $GLOBALS['phpgw']->template; 
    39003900 
    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'].'/'; 
    39023902 
    39033903                        $p = $GLOBALS['phpgw']->template; 
     
    45764576                        $p->set_block('view','hr','hr'); 
    45774577 
    4578                         include_once($_SESSION['rootPath'].'/calendar/inc/class.ex_participants.inc.php'); 
     4578                        include_once(dirname(__FILE__).'/class.ex_participants.inc.php'); 
    45794579                        $langp = array(); 
    45804580                        $langp['ACCEPTED'] = lang('Accepted'); 
     
    50545054                        } 
    50555055                         
    5056                         include_once($_SESSION['rootPath'].'/calendar/inc/class.ex_participants.inc.php'); 
     5056                        include_once(dirname(__FILE__).'/class.ex_participants.inc.php'); 
    50575057                        $langp = array(); 
    50585058                        $langp['ACCEPTED'] = lang('Accepted'); 
Note: See TracChangeset for help on using the changeset viewer.