public static function timezone() { if (!isset(self::$timezone)) { $tz = rqval('tz'); if ($tz) { $tz = intval(ltrim($tz, '-')); date_default_timezone_set("Etc/GMT" . ($tz >= 0 ? '+' . $tz : $tz)); } else { $default_tz = request::readConfig('default_timezone'); date_default_timezone_set($default_tz ? $default_tz : 'America/Los_Angeles'); } } return self::$timezone; }
function set_value($field = '', $default = '') { return form_prep(rqval($field)); }
public static function get($key) { self::_setURIChunks(); return rqval($key); }