static function openlog($ident = null, $options = LOG_PID, $facility = LOG_USER) { if ($ident === null) { $u = parse_url(gb::$site_url); $ident = 'gitblog.' . isset($u['host']) ? $u['host'] . '.' : ''; if (isset($u['path'])) { $ident .= str_replace('/', '.', trim($u['path'], '/')); } } self::$log_open = openlog($ident, $options, $facility); return self::$log_open; }