aboutsummaryrefslogtreecommitdiff
path: root/h-source/Application/Include/myFunctions.php
diff options
context:
space:
mode:
authorAntonio Gallo <tonicucoz@gmail.com>2011-07-28 22:48:41 +0000
committerAntonio Gallo <tonicucoz@gmail.com>2011-07-28 22:48:41 +0000
commitf09ea69525d406fb565fc94cddd03eb7690d501e (patch)
tree4269203257bcf2bb60f1fb432afb70aeb081fcc2 /h-source/Application/Include/myFunctions.php
parente7b3717614621f14695ab6ca6dda6dd17ba3d65c (diff)
added RSS - part 3
Diffstat (limited to 'h-source/Application/Include/myFunctions.php')
-rw-r--r--h-source/Application/Include/myFunctions.php5
1 files changed, 5 insertions, 0 deletions
diff --git a/h-source/Application/Include/myFunctions.php b/h-source/Application/Include/myFunctions.php
index 1505512..bf8793a 100644
--- a/h-source/Application/Include/myFunctions.php
+++ b/h-source/Application/Include/myFunctions.php
@@ -84,6 +84,11 @@ function smartDate($uglyDate = null, $lang = 'en')
return $smDate;
}
+function pubDateFormat($uglyDate = null)
+{
+ return date('r',strtotime($uglyDate));
+}
+
function sanitizeString($string)
{
$string = preg_match('/^[a-zA-Z0-9\-\_\.\+\s]+$/',$string) ? sanitizeAll($string) : 'undef';