function format_html($str) { return htmlentities($str, ENT_COMPAT, 'UTF-8');}function format_ago($time, $ago = false) { $minute = 60; $hour = $minute * 60; $day = $hour * 24; $when = $time; if ($when >= 0) $suffix = 'ago'; else { $when = -$when; $suffix = 'in the future'; Read More
posted @ 2013-01-14 11:21 siyed Views(201) Comments(0) Diggs(0) Edit