diff options
author | Antonio Gallo <tonicucoz@gmail.com> | 2011-07-28 22:48:41 +0000 |
---|---|---|
committer | Antonio Gallo <tonicucoz@gmail.com> | 2011-07-28 22:48:41 +0000 |
commit | f09ea69525d406fb565fc94cddd03eb7690d501e (patch) | |
tree | 4269203257bcf2bb60f1fb432afb70aeb081fcc2 /h-source/Application/Include/myFunctions.php | |
parent | e7b3717614621f14695ab6ca6dda6dd17ba3d65c (diff) |
added RSS - part 3
Diffstat (limited to 'h-source/Application/Include/myFunctions.php')
-rw-r--r-- | h-source/Application/Include/myFunctions.php | 5 |
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'; |