From f9a508d5dd70e85c674d326efdd60ba46672b526 Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Sun, 27 Jan 2002 14:58:45 +0000 Subject: - Fixed more than 30 HTML and XML well-formedness errors. --- includes/common.inc | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'includes/common.inc') diff --git a/includes/common.inc b/includes/common.inc index 895ed7094..a7575110e 100644 --- a/includes/common.inc +++ b/includes/common.inc @@ -10,7 +10,7 @@ function conf_init() { ** default value 'conf'. */ - $file = strtolower(strtr($HTTP_HOST ."". substr($REQUEST_URI, 0, strrpos($REQUEST_URI, "/")), "/:", "..")); + $file = strtolower(strtr($HTTP_HOST . substr($REQUEST_URI, 0, strrpos($REQUEST_URI, "/")), "/:", "..")); while (strlen($file) > 4) { if (file_exists("includes/$file.php")) { @@ -526,7 +526,9 @@ function form_textarea($title, $name, $value, $cols, $rows, $description = 0) { function form_select($title, $name, $value, $options, $description = 0, $extra = 0) { if (count($options) > 0) { - foreach ($options as $key=>$choice) $select .= ""; + foreach ($options as $key => $choice) { + $select .= ""; + } return form_item($title, "", $description); } } @@ -637,6 +639,7 @@ function page_footer() { $config = conf_init(); unset($conf); + include_once "includes/$config.php"; include_once "includes/database.inc"; include_once "includes/xmlrpc.inc"; -- cgit v1.2.3