<?php
  /**************************************************************************\
  * phpGroupWare - Polls                                                     *
  * http://www.phpgroupware.org                                              *
  * --------------------------------------------                             *
  *  This program is free software; you can redistribute it and/or modify it *
  *  under the terms of the GNU General Public License as published by the   *
  *  Free Software Foundation; either version 2 of the License, or (at your  *
  *  option) any later version.                                              *
  \**************************************************************************/

  /* $Id: hook_mainscreen.inc.php,v 1.1.1.1 2003/06/12 18:41:04 kazuyan Exp $ */

	if (! $inindex)
	{
		if (! $GLOBALS['phpgw_info']['user']['preferences']['polls']['show_on_mainscreen'])
		{
			return False;
		}
	}

	display_poll();
?>
