'guestbook'))); define('GUESTBOOK_VERSION', 'auto'); include_once(GUESTBOOK_PATH . 'include/events.inc.php'); add_event_handler('init', 'guestbook_init'); if (defined('IN_ADMIN')) { add_event_handler('get_admin_plugin_menu_links', 'gb_admin_menu'); } add_event_handler('blockmanager_apply', 'gb_menubar_apply', EVENT_HANDLER_PRIORITY_NEUTRAL+10); add_event_handler('loc_end_section_init', 'gb_section_init'); add_event_handler('loc_end_index', 'gb_index'); function guestbook_init() { global $conf; include_once(GUESTBOOK_PATH . 'maintain.inc.php'); $maintain = new GuestBook_maintain(GUESTBOOK_ID); $maintain->autoUpdate(GUESTBOOK_VERSION, 'install'); load_language('plugin.lang', GUESTBOOK_PATH); $conf['guestbook'] = unserialize($conf['guestbook']); }