Changeset 2012 for trunk/controller.php
- Timestamp:
- 02/12/10 16:27:59 (14 years ago)
- File:
-
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
trunk/controller.php
r1738 r2012 1 1 <?php 2 if(!isset($GLOBALS['phpgw_info'])){3 $GLOBALS['phpgw_info']['flags'] = array(4 'currentapp' => 'expressoMail1_2',5 'nonavbar' => true,6 'noheader' => true7 );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'; 10 10 11 11 // Explode action from cExecuteForm function … … 33 33 // Load dinamically class file. 34 34 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']; 40 36 37 $filename = $app.'/inc/class.'.$class.'.inc.php'; 38 39 include_once($filename); 40 41 41 // Create new Object (class loaded). 42 42 $obj = new $class;
Note: See TracChangeset
for help on using the changeset viewer.