From: Jakub Vrana Date: Wed, 23 Mar 2011 10:57:35 +0000 (+0100) Subject: Allow own code in (thanks to Nikolaj Vasilcuk) X-Git-Tag: v3.2.1~4 X-Git-Url: https://git.joonet.de/?a=commitdiff_plain;h=d8cba0eb5d56b44dc0c07dc264ce0ad083d6c5da;p=adminer.git Allow own code in (thanks to Nikolaj Vasilcuk) --- diff --git a/adminer/include/adminer.inc.php b/adminer/include/adminer.inc.php index 0a3ae17d..f5464ca0 100644 --- a/adminer/include/adminer.inc.php +++ b/adminer/include/adminer.inc.php @@ -40,6 +40,13 @@ class Adminer { header("X-XSS-Protection: 0"); // prevents introducing XSS in IE8 by removing safe parts of the page } + /** Print HTML code inside + * @return bool true to link adminer.css if exists + */ + function head() { + return true; + } + /** Print login form * @return null */ diff --git a/adminer/include/design.inc.php b/adminer/include/design.inc.php index 245efa88..1d5deec8 100644 --- a/adminer/include/design.inc.php +++ b/adminer/include/design.inc.php @@ -24,7 +24,7 @@ function page_header($title, $error = "", $breadcrumb = array(), $title2 = "") { <?php echo $title_page; ?> - +head() && file_exists("adminer.css")) { ?> diff --git a/changes.txt b/changes.txt index d78b00e8..788178fc 100644 --- a/changes.txt +++ b/changes.txt @@ -7,15 +7,16 @@ Send forms by Ctrl+Enter on