THanks
| #################################################################### || # Downloaded: 05:00, Mon Mar 16th 2009 || # CVS: $RCSfile$ - $Revision: 29328 $ || #################################################################### \*======================================================================*/ ?>############ \*======================================================================*/ ?>} class XMLexporter extends vB_XML_Builder { } /*======================================================================*\ || #################################################################### || # Downloaded: 05:00, Mon Mar 16th 2009 || # CVS: $RCSfile$ - $Revision: 29290 $ || #################################################################### \*======================================================================*/ ?> If specified, returns the corresponding timezone phrase name. Otherwise, all timezones will be returned * * @return mixed */ function fetch_timezone($offset = 'all') { $timezones = array( '-12' => 'timezone_gmt_minus_1200', '-11' => 'timezone_gmt_minus_1100', '-10' => 'timezone_gmt_minus_1000', '-9' => 'timezone_gmt_minus_0900', '-8' => 'timezone_gmt_minus_0800', '-7' => 'timezone_gmt_minus_0700', '-6' => 'timezone_gmt_minus_0600', '-5' => 'timezone_gmt_minus_0500', '-4.5' => 'timezone_gmt_minus_0430', '-4' => 'timezone_gmt_minus_0400', '-3.5' => 'timezone_gmt_minus_0330', '-3' => 'timezone_gmt_minus_0300', '-2' => 'timezone_gmt_minus_0200', '-1' => 'timezone_gmt_minus_0100', '0' => 'timezone_gmt_plus_0000', '1' => 'timezone_gmt_plus_0100', '2' => 'timezone_gmt_plus_0200', '3' => 'timezone_gmt_plus_0300', '3.5' => 'timezone_gmt_plus_0330', '4' => 'timezone_gmt_plus_0400', '4.5' => 'timezone_gmt_plus_0430', '5' => 'timezone_gmt_plus_0500', '5.5' => 'timezone_gmt_plus_0530', '5.75' => 'timezone_gmt_plus_0545', '6' => 'timezone_gmt_plus_0600', '6.5' => 'timezone_gmt_plus_0630', '7' => 'timezone_gmt_plus_0700', '8' => 'timezone_gmt_plus_0800', '9' => 'timezone_gmt_plus_0900', '9.5' => 'timezone_gmt_plus_0930', '10' => 'timezone_gmt_plus_1000', '11' => 'timezone_gmt_plus_1100', '12' => 'timezone_gmt_plus_1200' ); if ($offset === 'all') { return $timezones; } else { return $timezones["$offset"]; } } /** * Implodes an array using both values and keys * * @param string $glue1 - Glue between key and value * @param string $glue2 - Glue between value and key * @param mixed $array - Arr to implode * @param boolean $skip_empty - Whether to skip empty elements * @return string - The imploded result */ function implode_both($glue1 = '', $glue2 = '', $array, $skip_empty = false) { if (!is_array($array)) { return ''; } foreach ($array as $key => $val) { if (!$skip_empty OR !empty($val)) { $array[$key] = $key . $glue1 . $val; } else { unset($array[$key]); } } return implode($glue2, $array); } /** * Implodes an assoc array into a partial url query string * * @param mixed $array - Array to parse * @param boolean $skip_empty - Whether to skip empty elements * @return string - The parsed result */ function urlimplode($array, $skip_empty = true, $skip_urlencode = false) { if (!$skip_urlencode) { foreach ($array AS $key => $value) { $array[$key] = urlencode($value); } } return implode_both('=', '&', $array, $skip_empty); } /** * Checks if a user has currently exceeded their private message quota * * @param integer $userid Id of the user to check * @return boolean Whether they have exceeded their quota */ function fetch_privatemessage_throttle_reached($userid) { global $vbulletin; if (!$vbulletin->options['pmthrottleperiod']) { return false; } if (!$vbulletin->userinfo['permissions']['pmthrottlequantity']) { return false; } $count = $vbulletin->db->query_first(" SELECT COUNT(userid) AS total FROM " . TABLE_PREFIX . "pmthrottle WHERE userid = " . intval($vbulletin->userinfo['userid']) . " AND dateline > " . (TIMENOW - ($vbulletin->options['pmthrottleperiod'] * 60)) ); return ($count['total'] >= $vbulletin->userinfo['permissions']['pmthrottlequantity']); } /*======================================================================*\ || #################################################################### || # Downloaded: 05:00, Mon Mar 16th 2009 || # CVS: $RCSfile$ - $Revision: 28830 $ || #################################################################### \*======================================================================*/ ?>==================================================*/ ?>
Warning: Cannot modify header information - headers already sent by (output started at /home/ineed2ge/public_html/forum/includes/class_core.php:3314) in /home/ineed2ge/public_html/forum/includes/functions.php on line 3087
Comment