mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-03-11 21:50:15 +01:00
update xslt
This commit is contained in:
parent
3e7875e1c6
commit
b9f2dba2b3
1
home.php
1
home.php
@ -212,5 +212,4 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
$GLOBALS['phpgw']->xslttpl->set_var('phpgw',$GLOBALS['phpgw']->portalbox->output,True);
|
$GLOBALS['phpgw']->xslttpl->set_var('phpgw',$GLOBALS['phpgw']->portalbox->output,True);
|
||||||
$GLOBALS['phpgw']->xslttpl->pp();
|
|
||||||
?>
|
?>
|
||||||
|
@ -18,7 +18,6 @@
|
|||||||
'login' => True,
|
'login' => True,
|
||||||
'currentapp' => 'login',
|
'currentapp' => 'login',
|
||||||
'noheader' => True,
|
'noheader' => True,
|
||||||
'nodisplay' => True
|
|
||||||
);
|
);
|
||||||
|
|
||||||
if(file_exists('./header.inc.php'))
|
if(file_exists('./header.inc.php'))
|
||||||
@ -278,5 +277,4 @@
|
|||||||
//_debug_array($data);
|
//_debug_array($data);
|
||||||
|
|
||||||
$GLOBALS['phpgw']->xslttpl->set_var('login',$data);
|
$GLOBALS['phpgw']->xslttpl->set_var('login',$data);
|
||||||
$GLOBALS['phpgw']->xslttpl->pp();
|
|
||||||
?>
|
?>
|
||||||
|
@ -1084,9 +1084,8 @@ if (!@is_file(PHPGW_SERVER_ROOT . '/phpgwapi/templates/' . $GLOBALS['phpgw_info'
|
|||||||
'phpgw_body' => $phpgw_body
|
'phpgw_body' => $phpgw_body
|
||||||
);
|
);
|
||||||
|
|
||||||
$GLOBALS['phpgw']->xslttpl->add_file($this->get_tpl_dir('phpgwapi') . SEP . 'phpgw');
|
|
||||||
|
|
||||||
$GLOBALS['phpgw_info']['user']['preferences']['common']['template_set'] = 'idsociety';
|
$GLOBALS['phpgw_info']['user']['preferences']['common']['template_set'] = 'idsociety';
|
||||||
|
$GLOBALS['phpgw']->xslttpl->add_file($this->get_tpl_dir('phpgwapi') . SEP . 'phpgw');
|
||||||
|
|
||||||
switch ($GLOBALS['phpgw_info']['user']['preferences']['common']['template_set'])
|
switch ($GLOBALS['phpgw_info']['user']['preferences']['common']['template_set'])
|
||||||
{
|
{
|
||||||
@ -1468,19 +1467,15 @@ if (!@is_file(PHPGW_SERVER_ROOT . '/phpgwapi/templates/' . $GLOBALS['phpgw_info'
|
|||||||
if(!defined('PHPGW_FOOTER_RAN'))
|
if(!defined('PHPGW_FOOTER_RAN'))
|
||||||
{
|
{
|
||||||
define('PHPGW_FOOTER_RAN',True);
|
define('PHPGW_FOOTER_RAN',True);
|
||||||
if (!isset($GLOBALS['phpgw_info']['flags']['nodisplay']) || !$GLOBALS['phpgw_info']['flags']['nodisplay'])
|
|
||||||
|
if($GLOBALS['phpgw_info']['flags']['currentapp'] != 'home' &&
|
||||||
|
$GLOBALS['phpgw_info']['flags']['currentapp'] != 'login' &&
|
||||||
|
$GLOBALS['phpgw_info']['flags']['currentapp'] != 'logout' &&
|
||||||
|
!@$GLOBALS['phpgw_info']['flags']['noappfooter'])
|
||||||
{
|
{
|
||||||
if($GLOBALS['phpgw_info']['flags']['currentapp'] != 'home' &&
|
$this->phpgw_appfooter();
|
||||||
$GLOBALS['phpgw_info']['flags']['currentapp'] != 'login' &&
|
|
||||||
$GLOBALS['phpgw_info']['flags']['currentapp'] != 'logout' &&
|
|
||||||
!@$GLOBALS['phpgw_info']['flags']['noappfooter'])
|
|
||||||
{
|
|
||||||
$this->phpgw_appfooter();
|
|
||||||
}
|
|
||||||
$this->phpgw_header();
|
|
||||||
$GLOBALS['phpgw']->template->pfp('out','phpgw_main_end');
|
|
||||||
}
|
}
|
||||||
|
$GLOBALS['phpgw']->xslttpl->pp();
|
||||||
$GLOBALS['phpgw']->db->disconnect();
|
$GLOBALS['phpgw']->db->disconnect();
|
||||||
|
|
||||||
/* Clean up mcrypt */
|
/* Clean up mcrypt */
|
||||||
@ -1498,6 +1493,41 @@ if (!@is_file(PHPGW_SERVER_ROOT . '/phpgwapi/templates/' . $GLOBALS['phpgw_info'
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/*function phpgw_footer()
|
||||||
|
{
|
||||||
|
if(!defined('PHPGW_FOOTER_RAN'))
|
||||||
|
{
|
||||||
|
define('PHPGW_FOOTER_RAN',True);
|
||||||
|
if (!isset($GLOBALS['phpgw_info']['flags']['nodisplay']) || !$GLOBALS['phpgw_info']['flags']['nodisplay'])
|
||||||
|
{
|
||||||
|
if($GLOBALS['phpgw_info']['flags']['currentapp'] != 'home' &&
|
||||||
|
$GLOBALS['phpgw_info']['flags']['currentapp'] != 'login' &&
|
||||||
|
$GLOBALS['phpgw_info']['flags']['currentapp'] != 'logout' &&
|
||||||
|
!@$GLOBALS['phpgw_info']['flags']['noappfooter'])
|
||||||
|
{
|
||||||
|
$this->phpgw_appfooter();
|
||||||
|
}
|
||||||
|
$this->phpgw_header();
|
||||||
|
$GLOBALS['phpgw']->template->pfp('out','phpgw_main_end');
|
||||||
|
}
|
||||||
|
|
||||||
|
$GLOBALS['phpgw']->db->disconnect();
|
||||||
|
|
||||||
|
//Clean up mcrypt
|
||||||
|
if (@is_object($GLOBALS['phpgw']->crypto))
|
||||||
|
{
|
||||||
|
$GLOBALS['phpgw']->crypto->cleanup();
|
||||||
|
unset($GLOBALS['phpgw']->crypto);
|
||||||
|
}
|
||||||
|
|
||||||
|
if (DEBUG_TIMER)
|
||||||
|
{
|
||||||
|
$GLOBALS['debug_timer_stop'] = perfgetmicrotime();
|
||||||
|
echo 'Page loaded in ' . ($GLOBALS['debug_timer_stop'] - $GLOBALS['debug_timer_start']) . ' seconds.';
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}*/
|
||||||
|
|
||||||
function hex2bin($data)
|
function hex2bin($data)
|
||||||
{
|
{
|
||||||
$len = strlen($data);
|
$len = strlen($data);
|
||||||
|
@ -270,8 +270,8 @@
|
|||||||
/****************************************************************************\
|
/****************************************************************************\
|
||||||
* Forcing the footer to run when the rest of the script is done. *
|
* Forcing the footer to run when the rest of the script is done. *
|
||||||
\****************************************************************************/
|
\****************************************************************************/
|
||||||
//$footer_common = &$GLOBALS['phpgw']->common;
|
$footer_common = &$GLOBALS['phpgw']->common;
|
||||||
//register_shutdown_function(array(&$footer_common, 'phpgw_footer'));
|
register_shutdown_function(array(&$footer_common, 'phpgw_footer'));
|
||||||
|
|
||||||
/****************************************************************************\
|
/****************************************************************************\
|
||||||
* Stuff to use if logging in or logging out *
|
* Stuff to use if logging in or logging out *
|
||||||
@ -356,8 +356,6 @@
|
|||||||
unset($enable_class);
|
unset($enable_class);
|
||||||
reset($GLOBALS['phpgw_info']['flags']);
|
reset($GLOBALS['phpgw_info']['flags']);
|
||||||
|
|
||||||
//$GLOBALS['phpgw']->common->navbar();
|
|
||||||
$GLOBALS['phpgw']->common->framework();
|
|
||||||
/* Verify that user has rights to the currentapp */
|
/* Verify that user has rights to the currentapp */
|
||||||
|
|
||||||
$continue_app_data = True;
|
$continue_app_data = True;
|
||||||
@ -395,11 +393,7 @@
|
|||||||
$GLOBALS['phpgw_info']['flags']['msgbox_data'][$message]=False;
|
$GLOBALS['phpgw_info']['flags']['msgbox_data'][$message]=False;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* I want to phase this out over time. App apps should put their data into the templates phpgw_body var*/
|
$GLOBALS['phpgw']->common->framework();
|
||||||
if (!@$GLOBALS['phpgw_info']['flags']['noheader'])
|
|
||||||
{
|
|
||||||
//$GLOBALS['phpgw']->common->framework();
|
|
||||||
}
|
|
||||||
|
|
||||||
$GLOBALS['phpgw']->template->set_root(PHPGW_APP_TPL);
|
$GLOBALS['phpgw']->template->set_root(PHPGW_APP_TPL);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user