diff options
Diffstat (limited to 'includes/function.inc')
-rw-r--r-- | includes/function.inc | 14 |
1 files changed, 5 insertions, 9 deletions
diff --git a/includes/function.inc b/includes/function.inc index 1305d4b96..04402f5a7 100644 --- a/includes/function.inc +++ b/includes/function.inc @@ -3,8 +3,7 @@ $na = "<I>na</I>"; function check_textfield($message) { - global $allowed_html; - return strip_tags(str_replace("\"", """, stripslashes($message)), $allowed_html); + return strip_tags(str_replace("\"", """, stripslashes($message))); } function check_textarea($message) { @@ -60,19 +59,16 @@ function format_date($timestamp, $type = "medium") { switch ($type) { case "small": - $date = date("D, m/d/y - H:i", $timestamp); + $date = date("m/d/y - H:i", $timestamp); break; case "medium": - $date = date("l, m/d/Y - H:i", $timestamp); + $date = t(date("l", $timestamp)) .", ". date("m/d/Y - H:i", $timestamp); break; case "large": - $date = date("D, M d, Y - H:i", $timestamp); - break; - case "extra large": - $date = date("l, F dS, Y - H:i", $timestamp); + $date = t(date("l", $timestamp)) .", ". t(date("F", $timestamp)) ." ". date("d, Y - H:i", $timestamp); break; default: - $date = date("D, M d, Y - H:i", $timestamp); + $date = t(date("l", $timestamp)) .", ". date("m/d/Y - H:i", $timestamp); } return $date; } |