removed charset from tpls since its added by xslt already plus update class.common: add a flag to disable any xslt output

This commit is contained in:
ceb 2003-04-24 21:04:22 +00:00
parent ded88a0790
commit dbca6b1b6b
7 changed files with 20 additions and 30 deletions

View File

@ -1072,7 +1072,6 @@ if (!@is_file(PHPGW_SERVER_ROOT . '/phpgwapi/templates/' . $GLOBALS['phpgw_info'
$css = $this->get_css_url(); $css = $this->get_css_url();
$var = array $var = array
( (
'charset' => lang('charset'),
'website_title' => $GLOBALS['phpgw_info']['server']['site_title'] . $app_title, 'website_title' => $GLOBALS['phpgw_info']['server']['site_title'] . $app_title,
'webserver_url' => $GLOBALS['phpgw_info']['server']['webserver_url'], 'webserver_url' => $GLOBALS['phpgw_info']['server']['webserver_url'],
'phpgw_css_file' => $css[0], 'phpgw_css_file' => $css[0],
@ -1657,6 +1656,8 @@ if (!@is_file(PHPGW_SERVER_ROOT . '/phpgwapi/templates/' . $GLOBALS['phpgw_info'
{ {
define('PHPGW_FINAL',True); define('PHPGW_FINAL',True);
if (!$GLOBALS['phpgw_info']['flags']['noframework'])
{
if($GLOBALS['phpgw_info']['flags']['currentapp'] != 'home' && if($GLOBALS['phpgw_info']['flags']['currentapp'] != 'home' &&
$GLOBALS['phpgw_info']['flags']['currentapp'] != 'login' && $GLOBALS['phpgw_info']['flags']['currentapp'] != 'login' &&
$GLOBALS['phpgw_info']['flags']['currentapp'] != 'logout' && $GLOBALS['phpgw_info']['flags']['currentapp'] != 'logout' &&
@ -1680,6 +1681,7 @@ if (!@is_file(PHPGW_SERVER_ROOT . '/phpgwapi/templates/' . $GLOBALS['phpgw_info'
$this->framework(); $this->framework();
} }
$GLOBALS['phpgw']->xslttpl->pp(); $GLOBALS['phpgw']->xslttpl->pp();
}
$GLOBALS['phpgw']->db->disconnect(); $GLOBALS['phpgw']->db->disconnect();
/* Clean up mcrypt */ /* Clean up mcrypt */

View File

@ -3,7 +3,6 @@
<xsl:template match="phpgw"> <xsl:template match="phpgw">
<xsl:variable name="phpgw_css_file" select="phpgw_css_file"/> <xsl:variable name="phpgw_css_file" select="phpgw_css_file"/>
<xsl:variable name="theme_css_file" select="theme_css_file"/> <xsl:variable name="theme_css_file" select="theme_css_file"/>
<xsl:variable name="charset" select="charset"/>
<xsl:variable name="onload" select="onload"/> <xsl:variable name="onload" select="onload"/>
<xsl:variable name="home_link" select="home_link"/> <xsl:variable name="home_link" select="home_link"/>
<xsl:variable name="prefs_link" select="prefs_link"/> <xsl:variable name="prefs_link" select="prefs_link"/>
@ -26,7 +25,6 @@
<xsl:variable name="webserver_url"><xsl:value-of select="webserver_url"/></xsl:variable> <xsl:variable name="webserver_url"><xsl:value-of select="webserver_url"/></xsl:variable>
<html> <html>
<head> <head>
<meta http-equiv="Content-Type" content="text/html; charset={$charset}"/>
<meta name="author" content="phpGroupWare http://www.phpgroupware.org"/> <meta name="author" content="phpGroupWare http://www.phpgroupware.org"/>
<meta name="description" content="phpGroupWare"/> <meta name="description" content="phpGroupWare"/>
<meta name="keywords" content="phpGroupWare"/> <meta name="keywords" content="phpGroupWare"/>

View File

@ -3,11 +3,9 @@
<xsl:template match="phpgw"> <xsl:template match="phpgw">
<xsl:variable name="phpgw_css_file" select="phpgw_css_file"/> <xsl:variable name="phpgw_css_file" select="phpgw_css_file"/>
<xsl:variable name="theme_css_file" select="theme_css_file"/> <xsl:variable name="theme_css_file" select="theme_css_file"/>
<xsl:variable name="charset" select="charset"/>
<xsl:variable name="current_app" select="current_app"/> <xsl:variable name="current_app" select="current_app"/>
<html> <html>
<head> <head>
<meta http-equiv="Content-Type" content="text/html; charset={$charset}"/>
<meta name="author" content="phpGroupWare http://www.phpgroupware.org"/> <meta name="author" content="phpGroupWare http://www.phpgroupware.org"/>
<meta name="description" content="phpGroupWare"/> <meta name="description" content="phpGroupWare"/>
<meta name="keywords" content="phpGroupWare"/> <meta name="keywords" content="phpGroupWare"/>

View File

@ -3,7 +3,6 @@
<xsl:template match="phpgw"> <xsl:template match="phpgw">
<xsl:variable name="phpgw_css_file"><xsl:value-of select="phpgw_css_file"/></xsl:variable> <xsl:variable name="phpgw_css_file"><xsl:value-of select="phpgw_css_file"/></xsl:variable>
<xsl:variable name="theme_css_file"><xsl:value-of select="theme_css_file"/></xsl:variable> <xsl:variable name="theme_css_file"><xsl:value-of select="theme_css_file"/></xsl:variable>
<xsl:variable name="charset"><xsl:value-of select="charset"/></xsl:variable>
<xsl:variable name="webserver_url"><xsl:value-of select="webserver_url"/></xsl:variable> <xsl:variable name="webserver_url"><xsl:value-of select="webserver_url"/></xsl:variable>
<xsl:variable name="logo_img"><xsl:value-of select="logo_img"/></xsl:variable> <xsl:variable name="logo_img"><xsl:value-of select="logo_img"/></xsl:variable>
<xsl:variable name="home_link"><xsl:value-of select="home_link"/></xsl:variable> <xsl:variable name="home_link"><xsl:value-of select="home_link"/></xsl:variable>
@ -27,7 +26,6 @@
<xsl:variable name="current_app" select="current_app"/> <xsl:variable name="current_app" select="current_app"/>
<html> <html>
<head> <head>
<meta http-equiv="Content-Type" content="text/html; charset={$charset}"/>
<meta name="author" content="phpGroupWare http://www.phpgroupware.org"/> <meta name="author" content="phpGroupWare http://www.phpgroupware.org"/>
<meta name="description" content="phpGroupWare"/> <meta name="description" content="phpGroupWare"/>
<meta name="keywords" content="phpGroupWare"/> <meta name="keywords" content="phpGroupWare"/>

View File

@ -3,7 +3,6 @@
<xsl:template match="phpgw"> <xsl:template match="phpgw">
<xsl:variable name="phpgw_css_file"><xsl:value-of select="phpgw_css_file"/></xsl:variable> <xsl:variable name="phpgw_css_file"><xsl:value-of select="phpgw_css_file"/></xsl:variable>
<xsl:variable name="theme_css_file"><xsl:value-of select="theme_css_file"/></xsl:variable> <xsl:variable name="theme_css_file"><xsl:value-of select="theme_css_file"/></xsl:variable>
<xsl:variable name="charset"><xsl:value-of select="charset"/></xsl:variable>
<xsl:variable name="webserver_url"><xsl:value-of select="webserver_url"/></xsl:variable> <xsl:variable name="webserver_url"><xsl:value-of select="webserver_url"/></xsl:variable>
<xsl:variable name="onload"><xsl:value-of select="onload"/></xsl:variable> <xsl:variable name="onload"><xsl:value-of select="onload"/></xsl:variable>
<xsl:variable name="logo_img"><xsl:value-of select="logo_img"/></xsl:variable> <xsl:variable name="logo_img"><xsl:value-of select="logo_img"/></xsl:variable>
@ -32,7 +31,6 @@
<xsl:variable name="current_app" select="current_app"/> <xsl:variable name="current_app" select="current_app"/>
<html> <html>
<head> <head>
<meta http-equiv="Content-Type" content="text/html; charset={$charset}"/>
<meta name="author" content="phpGroupWare http://www.phpgroupware.org"/> <meta name="author" content="phpGroupWare http://www.phpgroupware.org"/>
<meta name="description" content="phpGroupWare"/> <meta name="description" content="phpGroupWare"/>
<meta name="keywords" content="phpGroupWare"/> <meta name="keywords" content="phpGroupWare"/>

View File

@ -4,7 +4,6 @@
<xsl:variable name="phpgw_css_file"><xsl:value-of select="phpgw_css_file"/></xsl:variable> <xsl:variable name="phpgw_css_file"><xsl:value-of select="phpgw_css_file"/></xsl:variable>
<xsl:variable name="theme_css_file"><xsl:value-of select="theme_css_file"/></xsl:variable> <xsl:variable name="theme_css_file"><xsl:value-of select="theme_css_file"/></xsl:variable>
<xsl:variable name="webserver_url"><xsl:value-of select="webserver_url"/></xsl:variable> <xsl:variable name="webserver_url"><xsl:value-of select="webserver_url"/></xsl:variable>
<xsl:variable name="charset"><xsl:value-of select="charset"/></xsl:variable>
<xsl:variable name="onload"><xsl:value-of select="onload"/></xsl:variable> <xsl:variable name="onload"><xsl:value-of select="onload"/></xsl:variable>
<xsl:variable name="logo_img"><xsl:value-of select="logo_img"/></xsl:variable> <xsl:variable name="logo_img"><xsl:value-of select="logo_img"/></xsl:variable>
<xsl:variable name="nav_bar_left_top_bg_img"><xsl:value-of select="nav_bar_left_top_bg_img"/></xsl:variable> <xsl:variable name="nav_bar_left_top_bg_img"><xsl:value-of select="nav_bar_left_top_bg_img"/></xsl:variable>
@ -27,7 +26,6 @@
<xsl:variable name="current_app" select="current_app"/> <xsl:variable name="current_app" select="current_app"/>
<html> <html>
<head> <head>
<meta http-equiv="Content-Type" content="text/html; charset={$charset}"/>
<meta name="author" content="phpGroupWare http://www.phpgroupware.org"/> <meta name="author" content="phpGroupWare http://www.phpgroupware.org"/>
<meta name="description" content="phpGroupWare"/> <meta name="description" content="phpGroupWare"/>
<meta name="keywords" content="phpGroupWare"/> <meta name="keywords" content="phpGroupWare"/>

View File

@ -3,7 +3,6 @@
<xsl:template match="phpgw"> <xsl:template match="phpgw">
<xsl:variable name="phpgw_css_file" select="phpgw_css_file"/> <xsl:variable name="phpgw_css_file" select="phpgw_css_file"/>
<xsl:variable name="theme_css_file" select="theme_css_file"/> <xsl:variable name="theme_css_file" select="theme_css_file"/>
<xsl:variable name="charset" select="charset"/>
<xsl:variable name="logo_img" select="logo_img"/> <xsl:variable name="logo_img" select="logo_img"/>
<xsl:variable name="home_link" select="home_link"/> <xsl:variable name="home_link" select="home_link"/>
<xsl:variable name="prefs_link" select="prefs_link"/> <xsl:variable name="prefs_link" select="prefs_link"/>
@ -28,7 +27,6 @@
<xsl:variable name="webserver_url"><xsl:value-of select="webserver_url"/></xsl:variable> <xsl:variable name="webserver_url"><xsl:value-of select="webserver_url"/></xsl:variable>
<html> <html>
<head> <head>
<meta http-equiv="Content-Type" content="text/html; charset={$charset}"/>
<meta name="author" content="phpGroupWare http://www.phpgroupware.org"/> <meta name="author" content="phpGroupWare http://www.phpgroupware.org"/>
<meta name="description" content="phpGroupWare"/> <meta name="description" content="phpGroupWare"/>
<meta name="keywords" content="phpGroupWare"/> <meta name="keywords" content="phpGroupWare"/>