diff --git a/common.php b/common.php index 5a3705c..c0c4f70 100644 --- a/common.php +++ b/common.php @@ -852,7 +852,9 @@ function message($message, $title = 'Message', $statusCode = 200)

' . $title . '

+ ' . $message . ' +

@@ -2475,9 +2477,17 @@ function render_list($path = '', $files = '') $html = $tmp[0]; $tmp = splitfirst($tmp[1], ''); if (getConfig('background')) { - $background = str_replace('', getConfig('background'), $tmp[0]); + $html .= str_replace('', getConfig('background'), $tmp[0]); } - $html .= $background . $tmp[1]; + $html .= $tmp[1]; + + $tmp = splitfirst($html, ''); + $html = $tmp[0]; + $tmp = splitfirst($tmp[1], ''); + if (getConfig('backgroundm')) { + $html .= str_replace('', getConfig('backgroundm'), $tmp[0]); + } + $html .= $tmp[1]; $tmp = splitfirst($html, ''); $html = $tmp[0];