summaryrefslogtreecommitdiff
path: root/includes/function.inc
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2001-02-17 12:59:24 +0000
committerDries Buytaert <dries@buytaert.net>2001-02-17 12:59:24 +0000
commit52a1d1bbe80422ca7a8c79dde6fd92db542b9b2d (patch)
tree1dfcddc91c4b41071dcfa3b8d876d8b370551e97 /includes/function.inc
parente7f043c30afbfef8301e0dcd9a9c597432ef2bad (diff)
downloadbrdo-52a1d1bbe80422ca7a8c79dde6fd92db542b9b2d.tar.gz
brdo-52a1d1bbe80422ca7a8c79dde6fd92db542b9b2d.tar.bz2
- More updates on the translation support
Diffstat (limited to 'includes/function.inc')
-rw-r--r--includes/function.inc14
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("\"", "&quot;", stripslashes($message)), $allowed_html);
+ return strip_tags(str_replace("\"", "&quot;", 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;
}