Support for site configurable header and footer (patch #893477).

This commit is contained in:
Michal Čihař
2004-03-09 17:07:43 +00:00
parent 0914c72f15
commit ab6f25e097
7 changed files with 37 additions and 4 deletions

View File

@@ -20,6 +20,10 @@ $Source$
* libraries/config_import.lib.php, libraries/common.lib.php,
libraries/display_export.lib.php, libraries/export/sql.php, lang/*: Can
add custom text to SQL export headers (RFE #874361).
* config.footer.inc.php, config.header.inc.php, footer.inc.php,
header.inc.php, libraries/auth/cookie.auth.lib.php,
libraries/auth/http.auth.lib.php: Support for site configurable header
and footer (patch #893477).
2004-03-05 Marc Delisle <lem9@users.sourceforge.net>
* libraries/sqlparser.lib.php: bug 909752, floating point digit

6
config.footer.inc.php Normal file
View File

@@ -0,0 +1,6 @@
<?php
/**
* In this file you may add PHP or HTML statements that will be used to define
* the footer for phpMyAdmin pages.
*/
?>

6
config.header.inc.php Normal file
View File

@@ -0,0 +1,6 @@
<?php
/**
* In this file you may add PHP or HTML statements that will be used to define
* the header for phpMyAdmin pages.
*/
?>

View File

@@ -3,9 +3,6 @@
// vim: expandtab sw=4 ts=4 sts=4:
/**
* In this file you may add PHP or HTML statements that will be used to define
* the footer for phpMyAdmin pages.
*
* WARNING: This script has to be included at the very end of your code because
* it will stop the script execution!
*/
@@ -130,6 +127,8 @@ if (isset($GLOBALS['userlink']) && $GLOBALS['userlink']) {
}
?>
<?php include('./config.footer.inc.php'); ?>
</body>
</html>

View File

@@ -122,7 +122,10 @@ if (empty($GLOBALS['is_header_sent'])) {
}
?>
<body bgcolor="<?php echo $GLOBALS['cfg']['RightBgColor'] . '"' . $bkg_img; ?>>
<?php
<?php
include('./config.header.inc.php');
if (!defined('PMA_DISPLAY_HEADING')) {
define('PMA_DISPLAY_HEADING', 1);
}

View File

@@ -204,6 +204,9 @@ input.textfield {font-family: <?php echo $right_font_family; ?>; font-size: <?ph
</head>
<body bgcolor="<?php echo $cfg['RightBgColor']; ?>">
<?php include('./config.header.inc.php'); ?>
<center>
<a href="http://www.phpmyadmin.net" target="_blank"><img name="imLogo" id="imLogo" src="images/pma_logo.png" border="0" width="88" height="31" alt="phpMyAdmin" /></a>
<h1><?php echo sprintf($GLOBALS['strWelcome'], ' phpMyAdmin ' . PMA_VERSION . ' - ' . $GLOBALS['strLogin']); ?></h1>
@@ -247,6 +250,9 @@ input.textfield {font-family: <?php echo $right_font_family; ?>; font-size: <?ph
if ($GLOBALS['cfg']['blowfish_secret']=='') {
?>
<p class="warning"><?php echo $GLOBALS['strSecretRequired']; ?></p>
<?php include('./config.footer.inc.php'); ?>
</body>
</html>
<?php
@@ -370,6 +376,9 @@ if (uname.value == '') {
}
//-->
</script>
<?php include('./config.footer.inc.php'); ?>
</body>
</html>

View File

@@ -46,12 +46,18 @@ h1 {font-family: <?php echo $right_font_family; ?>; font-size: <?php echo
</head>
<body bgcolor="<?php echo $GLOBALS['cfg']['RightBgColor']; ?>">
<?php include('./config.header.inc.php'); ?>
<br /><br />
<center>
<h1><?php echo sprintf($GLOBALS['strWelcome'], ' phpMyAdmin ' . PMA_VERSION); ?></h1>
</center>
<br />
<p><?php echo $GLOBALS['strWrongUser']; ?></p>
<?php include('./config.footer.inc.php'); ?>
</body>
</html>