mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-26 16:49:10 +01:00
Changed the call to use the execmethod() in /index.php.
This commit is contained in:
parent
57fb69f726
commit
73b04851cc
@ -51,9 +51,11 @@
|
||||
}
|
||||
|
||||
$GLOBALS['obj'] = CreateObject(sprintf('%s.%s',$app,$class));
|
||||
if ((is_array($GLOBALS['obj']->public_functions) && $GLOBALS['obj']->public_functions[$method]) && ! $invalid_data)
|
||||
$GLOBALS[$class] = $GLOBALS['obj'];
|
||||
if ((is_array($GLOBALS[$class]->public_functions) && $GLOBALS[$class]->public_functions[$method]) && ! $invalid_data)
|
||||
{
|
||||
eval("\$GLOBALS['obj']->$method();");
|
||||
// eval("\$GLOBALS['obj']->$method();");
|
||||
execmethod($GLOBALS['HTTP_GET_VARS']['menuaction']);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
@ -34,7 +34,7 @@
|
||||
/**************************************************************************\
|
||||
* Include the apps footer files if it exists *
|
||||
\**************************************************************************/
|
||||
if (file_exists (PHPGW_APP_INC . '/footer.inc.php') &&
|
||||
if ((file_exists (PHPGW_APP_INC . '/footer.inc.php') || isset($GLOBALS['HTTP_GET_VARS'])) &&
|
||||
$GLOBALS['phpgw_info']['flags']['currentapp'] != 'home' &&
|
||||
$GLOBALS['phpgw_info']['flags']['currentapp'] != 'login' &&
|
||||
$GLOBALS['phpgw_info']['flags']['currentapp'] != 'logout' &&
|
||||
@ -42,23 +42,16 @@
|
||||
{
|
||||
if ($GLOBALS['HTTP_GET_VARS']['menuaction'])
|
||||
{
|
||||
// list($app,$class,$method) = explode('.',$menuaction);
|
||||
// if ($app && $class && $method)
|
||||
// {
|
||||
// $GLOBALS['obj'] = CreateObject(sprintf('%s.%s',$GLOBALS['app'],$GLOBALS['class']));
|
||||
if (is_array($GLOBALS['obj']->public_functions) && $GLOBALS['obj']->public_functions['footer'])
|
||||
{
|
||||
eval("\$GLOBALS['obj']->footer();");
|
||||
}
|
||||
elseif(file_exists(PHPGW_APP_INC.'/footer.inc.php'))
|
||||
{
|
||||
include(PHPGW_APP_INC . '/footer.inc.php');
|
||||
}
|
||||
// }
|
||||
// elseif(file_exists(PHPGW_APP_INC.'/footer.inc.php'))
|
||||
// {
|
||||
// include(PHPGW_APP_INC . '/footer.inc.php');
|
||||
// }
|
||||
list($app,$class,$method) = explode('.',$GLOBALS['HTTP_GET_VARS']['menuaction']);
|
||||
if (is_array($GLOBALS[$class]->public_functions) && $GLOBALS[$class]->public_functions['footer'])
|
||||
{
|
||||
// eval("\$GLOBALS[$class]->footer();");
|
||||
$GLOBALS[$class]->footer();
|
||||
}
|
||||
elseif(file_exists(PHPGW_APP_INC.'/footer.inc.php'))
|
||||
{
|
||||
include(PHPGW_APP_INC . '/footer.inc.php');
|
||||
}
|
||||
}
|
||||
elseif(file_exists(PHPGW_APP_INC.'/footer.inc.php'))
|
||||
{
|
||||
|
@ -11,17 +11,19 @@
|
||||
|
||||
/* $Id$ */
|
||||
|
||||
if($GLOBALS['menuaction'] && is_array($GLOBALS['obj']->public_functions) && $GLOBALS['obj']->public_functions['css'])
|
||||
$app_css = '';
|
||||
if(isset($GLOBALS['HTTP_GET_VARS']['menuaction'])
|
||||
{
|
||||
eval("\$app_css = \$GLOBALS['obj']->css();");
|
||||
}
|
||||
else
|
||||
{
|
||||
$app_css = '';
|
||||
list($app,$class,$method) = explode('.',$GLOBALS['HTTP_GET_VARS']['menuaction']);
|
||||
if(is_array($GLOBALS[$class]->public_functions) && $GLOBALS[$class]->public_functions['css'])
|
||||
{
|
||||
$app_css = $GLOBALS[$class]->css();
|
||||
}
|
||||
}
|
||||
|
||||
$bodyheader = 'BGCOLOR="'.$GLOBALS['phpgw_info']['theme']['bg_color'].'"';
|
||||
if ($GLOBALS['phpgw_info']['server']['htmlcompliant']) {
|
||||
if ($GLOBALS['phpgw_info']['server']['htmlcompliant'])
|
||||
{
|
||||
$bodyheader .= ' ALINK="'.$GLOBALS['phpgw_info']['theme']['alink'].'" LINK="'.$GLOBALS['phpgw_info']['theme']['link'].'" VLINK="'.$GLOBALS['phpgw_info']['theme']['vlink'].'"';
|
||||
}
|
||||
|
||||
|
@ -112,9 +112,10 @@
|
||||
// If the application has a header include, we now include it
|
||||
if (!@$GLOBALS['phpgw_info']['flags']['noappheader'] && $GLOBALS['HTTP_GET_VARS']['menuaction'])
|
||||
{
|
||||
if (is_array($GLOBALS['obj']->public_functions) && $GLOBALS['obj']->public_functions['header'])
|
||||
list($app,$class,$method) = explode('.',$GLOBALS['HTTP_GET_VARS']['menuaction']);
|
||||
if (is_array($GLOBALS[$class]->public_functions) && $GLOBALS[$class]->public_functions['header'])
|
||||
{
|
||||
eval("\$GLOBALS['obj']->header();");
|
||||
$GLOBALS[$class]->header();
|
||||
}
|
||||
}
|
||||
$GLOBALS['phpgw']->common->hook('after_navbar');
|
||||
|
@ -22,13 +22,14 @@
|
||||
$csshover = '';
|
||||
}
|
||||
|
||||
if($GLOBALS['menuaction'] && is_array($GLOBALS['obj']->public_functions) && $GLOBALS['obj']->public_functions['css'])
|
||||
$app_css = '';
|
||||
if($GLOBALS['HTTP_GET_VARS']['menuaction'])
|
||||
{
|
||||
eval("\$app_css = \$GLOBALS['obj']->css();");
|
||||
}
|
||||
else
|
||||
{
|
||||
$app_css = '';
|
||||
list($app,$class,$method) = explode('.',$GLOBALS['HTTP_GET_VARS']['menuaction']);
|
||||
if(is_array($GLOBALS[$class]->public_functions) && $GLOBALS[$class]->public_functions['css'])
|
||||
{
|
||||
$app_css = $GLOBALS[$class]->css();
|
||||
}
|
||||
}
|
||||
|
||||
$bodyheader = 'bgcolor="'.$GLOBALS['phpgw_info']['theme']['bg_color'].'" alink="'.$GLOBALS['phpgw_info']['theme']['alink'].'" link="'.$GLOBALS['phpgw_info']['theme']['link'].'" vlink="'.$GLOBALS['phpgw_info']['theme']['vlink'].'"';
|
||||
|
@ -141,9 +141,10 @@
|
||||
// If the application has a header include, we now include it
|
||||
if (!@$GLOBALS['phpgw_info']['flags']['noappheader'] && $GLOBALS['HTTP_GET_VARS']['menuaction'])
|
||||
{
|
||||
if (is_array($GLOBALS['obj']->public_functions) && $GLOBALS['obj']->public_functions['header'])
|
||||
list($app,$class,$method) = explode('.',$GLOBALS['HTTP_GET_VARS']['menuaction']);
|
||||
if (is_array($GLOBALS[$class]->public_functions) && $GLOBALS[$class]->public_functions['header'])
|
||||
{
|
||||
eval("\$GLOBALS['obj']->header();");
|
||||
$GLOBALS[$class]->header();
|
||||
}
|
||||
}
|
||||
$GLOBALS['phpgw']->common->hook('after_navbar');
|
||||
|
@ -11,13 +11,14 @@
|
||||
|
||||
/* $Id$ */
|
||||
|
||||
if($GLOBALS['menuaction'] && is_array($GLOBALS['obj']->public_functions) && $GLOBALS['obj']->public_functions['css'])
|
||||
$app_css = '';
|
||||
if($GLOBALS['menuaction'])
|
||||
{
|
||||
eval("\$app_css = \$GLOBALS['obj']->css();");
|
||||
}
|
||||
else
|
||||
{
|
||||
$app_css = '';
|
||||
list($app,$class,$method) = explode('.',$GLOBALS['HTTP_GET_VARS']['menuaction']);
|
||||
if(is_array($GLOBALS[$class]->public_functions) && $GLOBALS[$class]->public_functions['css'])
|
||||
{
|
||||
$app_css = $GLOBALS[$class]->css();
|
||||
}
|
||||
}
|
||||
|
||||
$bodyheader = 'BGCOLOR="'.$GLOBALS['phpgw_info']['theme']['bg_color'].'"';
|
||||
|
@ -116,9 +116,10 @@
|
||||
// If the application has a header include, we now include it
|
||||
if (!@$GLOBALS['phpgw_info']['flags']['noappheader'] && $GLOBALS['HTTP_GET_VARS']['menuaction'])
|
||||
{
|
||||
if (is_array($GLOBALS['obj']->public_functions) && $GLOBALS['obj']->public_functions['header'])
|
||||
list($app,$class,$method) = explode('.',$GLOBALS['HTTP_GET_VARS']['menuaction']);
|
||||
if (is_array($GLOBALS[$class]->public_functions) && $GLOBALS[$class]->public_functions['header'])
|
||||
{
|
||||
eval("\$GLOBALS['obj']->header();");
|
||||
$GLOBALS[$class]->header();
|
||||
}
|
||||
}
|
||||
$GLOBALS['phpgw']->common->hook('after_navbar');
|
||||
|
@ -11,13 +11,14 @@
|
||||
|
||||
/* $Id$ */
|
||||
|
||||
if($GLOBALS['menuaction'] && is_array($GLOBALS['obj']->public_functions) && $GLOBALS['obj']->public_functions['css'])
|
||||
$app_css = '';
|
||||
if($GLOBALS['HTTP_GET_VARS']['menuaction'])
|
||||
{
|
||||
eval("\$app_css = \$GLOBALS['obj']->css();");
|
||||
}
|
||||
else
|
||||
{
|
||||
$app_css = '';
|
||||
list($app,$class,$method) = explode('.',$GLOBALS['HTTP_GET_VARS']['menuaction']);
|
||||
if(is_array($GLOBALS[$class]->public_functions) && $GLOBALS[$class]->public_functions['css'])
|
||||
{
|
||||
$app_css = $GLOBALS[$class]->css();
|
||||
}
|
||||
}
|
||||
|
||||
$bodyheader = ' bgcolor="' . $GLOBALS['phpgw_info']['theme']['bg_color'] . '" alink="'
|
||||
|
@ -123,9 +123,10 @@
|
||||
// If the application has a header include, we now include it
|
||||
if (!@$GLOBALS['phpgw_info']['flags']['noappheader'] && $GLOBALS['HTTP_GET_VARS']['menuaction'])
|
||||
{
|
||||
if (is_array($GLOBALS['obj']->public_functions) && $GLOBALS['obj']->public_functions['header'])
|
||||
list($app,$class,$method) = explode('.',$GLOBALS['HTTP_GET_VARS']['menuaction']);
|
||||
if (is_array($GLOBALS[$class]->public_functions) && $GLOBALS[$class]->public_functions['header'])
|
||||
{
|
||||
eval("\$GLOBALS['obj']->header();");
|
||||
$GLOBALS[$class]->header();
|
||||
}
|
||||
}
|
||||
$GLOBALS['phpgw']->common->hook('after_navbar');
|
||||
|
Loading…
Reference in New Issue
Block a user