diff options
author | Dries Buytaert <dries@buytaert.net> | 2001-03-25 16:42:52 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2001-03-25 16:42:52 +0000 |
commit | 5fb307f5bf4d39a4492671ac6223bd65492a1b16 (patch) | |
tree | 257bbb055b59144d1ad86feb6a92dce7d8ba7693 /includes | |
parent | 5b92e9099f45a779359cdf85f27874619bb8358f (diff) | |
download | brdo-5fb307f5bf4d39a4492671ac6223bd65492a1b16.tar.gz brdo-5fb307f5bf4d39a4492671ac6223bd65492a1b16.tar.bz2 |
- refactoring, refactoring, refactoring
Diffstat (limited to 'includes')
-rw-r--r-- | includes/function.inc | 8 | ||||
-rw-r--r-- | includes/hostname.conf | 2 | ||||
-rw-r--r-- | includes/theme.inc | 2 |
3 files changed, 6 insertions, 6 deletions
diff --git a/includes/function.inc b/includes/function.inc index eefbda602..0080a8432 100644 --- a/includes/function.inc +++ b/includes/function.inc @@ -2,7 +2,6 @@ $na = "<I>na</I>"; - function check_textfield($message) { return strip_tags(str_replace("\"", """, stripslashes($message))); } @@ -17,7 +16,8 @@ function check_export($message) { function check_textarea($message) { global $allowed_html; - return htmlspecialchars(strip_tags(stripslashes($message), $allowed_html)); + return strip_tags(stripslashes($message), $allowed_html); + // return htmlspecialchars(strip_tags(stripslashes($message), $allowed_html)); } function check_input($message) { @@ -102,9 +102,9 @@ function format_tag($link, $text) { function format_text($text) { - $src = array("/(<\/?)(\w+)([^>]*>)/e", // convert HTML to lower case + $src = array( // "/(<\/?)(\w+)([^>]*>)/e", // convert HTML to lower case "/\[(([^\|]*?)(\|([^\|]*?))?)\]/e"); // [link|description] - $dst = array("'\\1'. strtolower('\\2') .'\\3'", // convert HTML to lower case + $dst = array( // "'\\1'. strtolower('\\2') .'\\3'", // convert HTML to lower case format_tag('\\2', '\\4')); // [link|description] return preg_replace($src, $dst, $text); diff --git a/includes/hostname.conf b/includes/hostname.conf index 764c1f52b..6b2373b56 100644 --- a/includes/hostname.conf +++ b/includes/hostname.conf @@ -31,7 +31,7 @@ $comment_votes = array("none" => "none", # # Allowed HTML tags: # -$allowed_html = "<A><B><BLOCKQUOTE><DD><DL><DT><EM><HR><I><LI><SMALL><OL><U><UL>"; +$allowed_html = "<A><B><BLOCKQUOTE><CODE><DD><DL><DT><EM><HR><I><LI><SMALL><OL><U><UL>"; # # Name for anonymous users: diff --git a/includes/theme.inc b/includes/theme.inc index 6182f8936..3ac8ded06 100644 --- a/includes/theme.inc +++ b/includes/theme.inc @@ -109,7 +109,7 @@ function theme_moderation_results($theme, $node) { $output .= format_username($account->userid) ." voted '". user_get($account, "history", "n$node->nid") ."'.<BR>"; } - $theme->box(t("Moderation results"), ($output ? $output : t("This story has not been moderated yet."))); + $theme->box(t("Moderation results"), ($output ? $output : t("This node has not been moderated yet."))); } } |