Пример #1
0
 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;
 }
Пример #2
0
 function set_value($field = '', $default = '')
 {
     return form_prep(rqval($field));
 }
Пример #3
0
 public static function get($key)
 {
     self::_setURIChunks();
     return rqval($key);
 }