<?php

/**
 * Calendar plugin activation script
 *
 * @copyright &copy; 2002-2006 The SquirrelMail Project Team
 * @license http://opensource.org/licenses/gpl-license.php GNU Public License
 * @version $Id: setup.php,v 1.5.2.5 2006/05/06 07:52:19 tokul Exp $
 * @package plugins
 * @subpackage calendar
 */

/**
 * Initialize the plugin
 * @return void
 */
function squirrelmail_plugin_init_calendar() {
    global $squirrelmail_plugin_hooks;
    $squirrelmail_plugin_hooks['menuline']['calendar'] = 'calendar';
}

/**
 * Adds Calendar link to upper menu
 * @return void
 */
function calendar() {

	require_once(SM_PATH . 'functions/global.php');
	if ( !sqgetGlobalVar('base_uri', $base_uri, SQ_SESSION) ) {
		global $base_uri;
	}

    //displayInternalLink('plugins/calendar/calendar.php',_("Calendar"),'right');
	displayInternalLink ('plugins/calendar/calendar.php', '<img src="' . $base_uri . 'images/icons/calendar_h.gif" border="0" align="absmiddle" hspace="3" alt="' . _("Calendar") . '">');
}

?>