SpamBlocker
Spam Blocker is a CakePHP Behavior that automatically before after a comment is made. Each comment is tested upon a point system to determine if it should be approved, set to pending (high points), or marked as spam / deleted (low points).
Timestamp in Timezone
Gets a unix timestamp within a certain timezone.
Function: timeInZone()
Category: PHP
Views: 1,279
Permalink -
Tinylink
/** * Gets a unix timestamp within a certain timezone * @param int $timeStamp * @param int $timeZone * @return int */ function timeInZone($timeStamp, $timeZone = -8) { return strtotime(gmdate('Y-m-d h:i:sa', $timeStamp + (3600 * $timeZone))); }