$s = get_magic_quotes_gpc() ? stripslashes($_COOKIE[$cookiename]) : $_COOKIE[$cookiename]; self::$cookie = @unserialize($s); } if (!self::$cookie) { self::$cookie = array(); } } if ($part === null) { return self::$cookie; } return isset(self::$cookie[$part]) ? self::$cookie[$part] : null; } } # ----------------------------------------------------------------------------- # Template helpers gb::$title = array(gb::$site_title); function gb_head() { echo '<meta name="generator" content="Gitblog ' . gb::$version . "\" />\n"; gb::event('on-html-head'); } function gb_footer() { gb::event('on-html-footer'); } function gb_title($glue = ' — ', $html = true) { $s = implode($glue, array_reverse(gb::$title)); return $html ? h($s) : $s; } function gb_site_title($link = true, $linkattrs = '')