diff options
author | Dries Buytaert <dries@buytaert.net> | 2002-01-27 14:58:45 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2002-01-27 14:58:45 +0000 |
commit | f9a508d5dd70e85c674d326efdd60ba46672b526 (patch) | |
tree | 43450bfb1f902619aea41c8de1c8623c194882df /includes | |
parent | 362cccab7b5bee2b3e0971c79c11b211f84c0e8c (diff) | |
download | brdo-f9a508d5dd70e85c674d326efdd60ba46672b526.tar.gz brdo-f9a508d5dd70e85c674d326efdd60ba46672b526.tar.bz2 |
- Fixed more than 30 HTML and XML well-formedness errors.
Diffstat (limited to 'includes')
-rw-r--r-- | includes/common.inc | 7 |
1 files changed, 5 insertions, 2 deletions
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 .= "<option value=\"$key\"". (is_array($value) ? (in_array($key, $value) ? " selected" : "") : ($key == $value ? " selected" : "")) .">". check_form($choice) ."</option>"; + foreach ($options as $key => $choice) { + $select .= "<option value=\"$key\"". (is_array($value) ? (in_array($key, $value) ? " selected=\"selected\"" : "") : ($key == $value ? " selected=\"selected\"" : "")) .">". check_form($choice) ."</option>"; + } return form_item($title, "<select name=\"edit[$name]\"". ($extra ? " $extra" : "") .">$select</select>", $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"; |