Changeset 2012 for trunk/controller.php


Ignore:
Timestamp:
02/12/10 16:27:59 (14 years ago)
Author:
amuller
Message:

Ticket #490 - unificação do connector

File:
1 moved

Legend:

Unmodified
Added
Removed
  • trunk/controller.php

    r1738 r2012  
    11<?php 
    2 if(!isset($GLOBALS['phpgw_info'])){ 
    3         $GLOBALS['phpgw_info']['flags'] = array( 
    4                 'currentapp' => 'expressoMail1_2', 
    5                 'nonavbar'   => true, 
    6                 'noheader'   => true 
    7         ); 
    8 } 
    9 require_once '../header.session.inc.php'; 
     2        if(!isset($GLOBALS['phpgw_info'])){ 
     3                $GLOBALS['phpgw_info']['flags'] = array( 
     4                        'nonavbar'   => true, 
     5                        'currentapp' => $_SESSION['phpgw_info']['expresso']['currentapp'], 
     6                        'noheader'   => true 
     7                ); 
     8        } 
     9        require_once './header.session.inc.php'; 
    1010 
    1111        //      Explode action from cExecuteForm function 
     
    3333        // Load dinamically class file. 
    3434        if($app == '$this') 
    35                 $filename = 'inc/class.'.$class.'.inc.php'; 
    36         else 
    37                 $filename = '../'.$app.'/inc/class.'.$class.'.inc.php'; 
    38                  
    39         include_once($filename);         
     35                $app = $_SESSION['phpgw_info']['expresso']['currentapp']; 
    4036         
     37        $filename = $app.'/inc/class.'.$class.'.inc.php'; 
     38 
     39        include_once($filename); 
     40 
    4141        // Create new Object  (class loaded).    
    4242        $obj = new $class; 
Note: See TracChangeset for help on using the changeset viewer.