<?php
ob_start();
if(!(is_readable(realpath(dirname(__FILE__).'/../').'/include/includesroutines.inc'))) {
	die('Error - Could not open or read file '.realpath(dirname(__FILE__).'/../').'/include/includesroutines.inc');
} else {
	include_once(realpath(dirname(__FILE__).'/../').'/include/includesroutines.inc');
}
session_write_close();
checkLanguage();

if ( GetSetting('portal','useRights',0) == 1 && !IsUserLogin()){
	ob_end_flush();
	exit;
}

$usr_arr = GetUserIDs();
$cn = db_connect();
$newmsg = db_getPollObjectsWithoutAnswerForMenu($cn, $usr_arr[0] ); 
echo ($newmsg > 0 ? ($newmsg > 99 ? '99+': $newmsg) : '');
unset($usr_arr);
unset($cn);
ob_end_flush();
?>