applied patch from lenix - theme support for postfixadmin; see http://sourceforge.net/tracker/index.php?func=detail&aid=1898481&group_id=191583&atid=937966 - thank you

git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@299 a1433add-5e2c-0410-b055-b7f2511e0802
postfixadmin-2.3
David Goodwin 17 years ago
parent af3d7fdabc
commit 99ee9f0176

@ -33,10 +33,10 @@ $CONF['configured'] = false;
// Postfix Admin Path
// Set the location of your Postfix Admin installation here.
// You must enter complete url (http://domain.tld/)
// YOU MUST ENTER THE COMPLETE URL e.g. http://domain.tld/postfixadmin
$CONF['postfix_admin_url'] = '';
// leave this alone...
// shouldn't need changing.
$CONF['postfix_admin_path'] = dirname(__FILE__);
// Language config
@ -312,6 +312,11 @@ $CONF['show_custom_colors']=array("lightgreen","lightblue");
// http://www.php.net/manual/en/function.imap-open.php
// Theme Config
// Specify your own logo and CSS file
$CONF['theme_logo'] = 'images/logo-default.png';
$CONF['theme_css'] = 'css/default.css';
// If you want to keep most settings at default values and/or want to ensure
// that future updates work without problems, you can use a separate config
// file (config.local.php) instead of editing this file and override some

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.2 KiB

Binary file not shown.

@ -35,8 +35,7 @@ if (!file_exists (realpath ("./setup.php")) || $CONF['configured'] == 'I_know_th
<title>Welcome to Postfix Admin</title>
</head>
<body>
<img id="login_header_logo" src="images/postbox.png" />
<img id="login_header_logo2" src="images/postfixadmin2.png" />
<img id="login_header_logo" src="images/logo-default.png" />
<h1>Welcome to Postfix Admin</h1>
<h2>What is it?</h2>
<p>Postfix Admin is a web based interface to configure and manage a Postfix based email server for many users.</p>

@ -12,10 +12,10 @@
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<?php
if (file_exists (realpath ("./stylesheet.css"))) {
print "<link rel=\"stylesheet\" type=\"text/css\" href=\"stylesheet.css\" />\n";
} elseif (file_exists (realpath ("../stylesheet.css"))) {
print "<link rel=\"stylesheet\" type=\"text/css\" href=\"../stylesheet.css\" />\n";
if (file_exists (realpath ("../".$CONF['theme_css']))) {
print "<link rel=\"stylesheet\" type=\"text/css\" href=\"../".htmlentities($CONF['theme_css'])."\" />\n";
} else {
print "<link rel=\"stylesheet\" type=\"text/css\" href=\"".htmlentities($CONF['theme_css'])."\" />\n";
}
?>
<title>Postfix Admin - <?php print $_SERVER['HTTP_HOST']; ?></title>
@ -23,14 +23,11 @@ if (file_exists (realpath ("./stylesheet.css"))) {
<body>
<div id="login_header">
<?php
if (file_exists (realpath ("./stylesheet.css")))
if (file_exists (realpath ("../".$CONF['theme_logo'])))
{
print "<img id=\"login_header_logo\" src=\"images/postbox.png\" />\n";
print "<img id=\"login_header_logo2\" src=\"images/postfixadmin2.png\" />\n";
} elseif (file_exists (realpath ("../stylesheet.css")))
{
print "<img id=\"login_header_logo\" src=\"../images/postbox.png\" />\n";
print "<img id=\"login_header_logo2\" src=\"../images/postfixadmin2.png\" />\n";
print "<img id=\"login_header_logo\" src=\"../".htmlentities($CONF['theme_logo'])."\" />\n";
} else {
print "<img id=\"login_header_logo\" src=\"".htmlentities($CONF['theme_logo'])."\" />\n";
}
if (($CONF['show_header_text'] == "YES") and ($CONF['header_text']))

Loading…
Cancel
Save