public static function get_option($key, $default = false)
{
if (self::is_network_mode()) {
return get_site_option($key, $default);
}
return get_option($key, $default);
}
public static function parse_to($address) { $template = Falcon::get_option('bbsub_replyto'); // No plus address in saved, parse via splitting $has_match = preg_match('/\\+(\\w+)-(\\d+)-(\\d+)-(\\w+)\\@.*/i', $address, $matches); if (!$has_match) { throw new Exception(__('Reply-to not formatted correctly', 'bbsub')); } return array($matches[1], $matches[2], $matches[3], $matches[4]); }