summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2002-05-02 20:28:11 +0000
committerDries Buytaert <dries@buytaert.net>2002-05-02 20:28:11 +0000
commit837041f11529b59cafe0564a2dd4d341f2b0155a (patch)
tree43b7a8702e51c2386331bdfc08e90cf6383780c8
parent30dd6ea68f487a87120598ed2848e7a78cd9ea84 (diff)
downloadbrdo-837041f11529b59cafe0564a2dd4d341f2b0155a.tar.gz
brdo-837041f11529b59cafe0564a2dd4d341f2b0155a.tar.bz2
- XHTML-ified a few things.
-rw-r--r--admin.php8
-rw-r--r--modules/system.module8
-rw-r--r--modules/system/system.module8
3 files changed, 8 insertions, 16 deletions
diff --git a/admin.php b/admin.php
index ea7915434..617dc252e 100644
--- a/admin.php
+++ b/admin.php
@@ -5,7 +5,7 @@ include_once "includes/common.inc";
function status($message) {
if ($message) {
- return "<B>Status:</B> $message<HR>\n";
+ return "<b>Status:</b> $message<hr />\n";
}
}
@@ -49,12 +49,12 @@ function admin_page($mod) {
}
if (user_access("access administration pages")) {
- page_header();
+ page_header();
admin_page($mod);
page_footer();
}
else {
print message_access();
-}
+}
-?>
+?> \ No newline at end of file
diff --git a/modules/system.module b/modules/system.module
index e2bfb238f..12e4360e2 100644
--- a/modules/system.module
+++ b/modules/system.module
@@ -32,10 +32,6 @@ function system_link($type) {
$links[] = la(t("site configuration"), array("mod" => "system"));
}
- /*if ($type == "admin" && user_access("administer modules and themes")) {
- $links[] = la(t("modules and themes"), array("mod" => "system", "op" => "modules"));
- }*/
-
return $links ? $links : array();
}
@@ -82,8 +78,8 @@ function system_view_options() {
// layout settings:
$output .= "<h3>Layout settings</h3>\n";
- foreach (theme_list() as $key=>$value) $options .= "<OPTION VALUE=\"$key\"". (variable_get("theme_default", 0) == $key ? " SELECTED" : "") .">$key</OPTION>\n";
- $output .= form_item("Default theme", "<SELECT NAME=\"edit[theme_default]\">$options</SELECT>", "The default theme as seen by visitors or anonymous users.");
+ foreach (theme_list() as $key=>$value) $options .= "<option value=\"$key\"". (variable_get("theme_default", 0) == $key ? " selected=\"selected\"" : "") .">$key</option>\n";
+ $output .= form_item("Default theme", "<select name=\"edit[theme_default]\">$options</select>", "The default theme as seen by visitors or anonymous users.");
$output .= "<hr />\n";
// development settings:
diff --git a/modules/system/system.module b/modules/system/system.module
index e2bfb238f..12e4360e2 100644
--- a/modules/system/system.module
+++ b/modules/system/system.module
@@ -32,10 +32,6 @@ function system_link($type) {
$links[] = la(t("site configuration"), array("mod" => "system"));
}
- /*if ($type == "admin" && user_access("administer modules and themes")) {
- $links[] = la(t("modules and themes"), array("mod" => "system", "op" => "modules"));
- }*/
-
return $links ? $links : array();
}
@@ -82,8 +78,8 @@ function system_view_options() {
// layout settings:
$output .= "<h3>Layout settings</h3>\n";
- foreach (theme_list() as $key=>$value) $options .= "<OPTION VALUE=\"$key\"". (variable_get("theme_default", 0) == $key ? " SELECTED" : "") .">$key</OPTION>\n";
- $output .= form_item("Default theme", "<SELECT NAME=\"edit[theme_default]\">$options</SELECT>", "The default theme as seen by visitors or anonymous users.");
+ foreach (theme_list() as $key=>$value) $options .= "<option value=\"$key\"". (variable_get("theme_default", 0) == $key ? " selected=\"selected\"" : "") .">$key</option>\n";
+ $output .= form_item("Default theme", "<select name=\"edit[theme_default]\">$options</select>", "The default theme as seen by visitors or anonymous users.");
$output .= "<hr />\n";
// development settings: