From 6616b52ae910a12ac9ac99dff1510415dd6e6148 Mon Sep 17 00:00:00 2001 From: Cameron Date: Tue, 22 Mar 2016 06:11:37 -0700 Subject: [PATCH] Admin login page styling fix. --- class2.php | 10 ++++++++-- e107_admin/footer.php | 12 ++++++++++-- e107_themes/bootstrap3/admin_theme.php | 2 +- 3 files changed, 19 insertions(+), 5 deletions(-) diff --git a/class2.php b/class2.php index cef303ce2..b38d58041 100644 --- a/class2.php +++ b/class2.php @@ -2323,13 +2323,19 @@ class e_http_header } - function setContent($content) + function setContent($content,$search=null,$replace=null) { if($content == 'buffer') { $this->length = ob_get_length(); - $this->content = ob_get_clean(); + $this->content = ob_get_clean(); + + if(!empty($search) && !empty($replace)) + { + $this->content = str_replace($search, $replace, $this->content); + $this->length = strlen($this->content); + } } else diff --git a/e107_admin/footer.php b/e107_admin/footer.php index 931419ddb..7fc7279f8 100644 --- a/e107_admin/footer.php +++ b/e107_admin/footer.php @@ -422,7 +422,7 @@ else //$length = ob_get_length(); // $page = ob_get_clean(); // } -unset($tmp1, $tmp1); + @@ -430,7 +430,15 @@ unset($tmp1, $tmp1); // New - see class2.php $ehd = new e_http_header; -$ehd->setContent('buffer'); +if($tmp) +{ + $ehd->setContent('buffer',$tmp['search'],$tmp['replace']); +} +else +{ + $ehd->setContent('buffer'); +} +unset($tmp1, $tmp1); $ehd->send(); $page = $ehd->getOutput(); // $ehd->debug(); diff --git a/e107_themes/bootstrap3/admin_theme.php b/e107_themes/bootstrap3/admin_theme.php index 0c87938e2..24b253d1a 100644 --- a/e107_themes/bootstrap3/admin_theme.php +++ b/e107_themes/bootstrap3/admin_theme.php @@ -55,7 +55,7 @@ body.forceColors li a { color: silver} div#media-manager div.mce-window-head { background-color: #373737; !important } div#media-manager div.mce-title { color:white; } -div#media-manager, html { color: silver; background-color: #373737; !important} +div#media-manager, html { color: silver; background-color: #2F2F2F; !important} ");