Changeset 2691 for trunk/admin/inc
- Timestamp:
- 05/03/10 14:51:33 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/admin/inc/class.uiapplications.inc.php
r2686 r2691 389 389 $GLOBALS['phpgw']->template->pparse('phpgw_body','body'); 390 390 } 391 392 function register_all_hooks() 393 { 394 if ($GLOBALS['phpgw']->acl->check('applications_access',16,'admin')) 395 { 396 $GLOBALS['phpgw']->redirect_link('/'); 397 } 398 if (!is_object($GLOBALS['phpgw']->hooks)) 399 { 400 $GLOBALS['phpgw']->hooks = CreateObject('phpgwapi.hooks'); 401 } 402 $GLOBALS['phpgw']->hooks->register_all_hooks(); 403 404 $GLOBALS['phpgw']->redirect_link('/admin/'); 391 392 function register_all_hooks( ) 393 { 394 if ( ! $GLOBALS[ 'phpgw' ] -> acl -> check( 'applications_access', 16, 'admin' ) ) 395 { 396 if ( ! is_object( $GLOBALS[ 'phpgw' ] -> hooks ) ) 397 $GLOBALS[ 'phpgw' ] -> hooks = CreateObject( 'phpgwapi.hooks' ); 398 399 $GLOBALS[ 'phpgw' ] -> hooks -> register_all_hooks( ); 400 } 401 402 $GLOBALS[ 'phpgw' ] -> redirect_link( '/' ); 405 403 } 406 404 }
Note: See TracChangeset
for help on using the changeset viewer.