From d8cba0eb5d56b44dc0c07dc264ce0ad083d6c5da Mon Sep 17 00:00:00 2001 From: Jakub Vrana Date: Wed, 23 Mar 2011 11:57:35 +0100 Subject: [PATCH] Allow own code in (thanks to Nikolaj Vasilcuk) --- adminer/include/adminer.inc.php | 7 +++++++ adminer/include/design.inc.php | 2 +- changes.txt | 3 ++- editor/include/adminer.inc.php | 4 ++++ plugins/plugin.php | 5 +++++ 5 files changed, 19 insertions(+), 2 deletions(-) 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