/**
* Displays the day page (day view).
*
- * @copyright © 2002-2006 The SquirrelMail Project Team
+ * @copyright 2002-2009 The SquirrelMail Project Team
* @license http://opensource.org/licenses/gpl-license.php GNU Public License
* @version $Id$
* @package plugins
* @subpackage calendar
*/
-/** @ignore */
-define('SM_PATH','../../');
+/**
+ * Include the SquirrelMail initialization file.
+ */
+require('../../include/init.php');
-/* SquirrelMail required files. */
-include_once(SM_PATH . 'include/validate.php');
/* date_intl() */
include_once(SM_PATH . 'functions/date.php');
} else {
$calbar=$calfoo['value'];
if ($calbar['length']!=0){
- $elength = '-'.date('H:i',mktime($ehour,$eminute+$calbar['length'],0,1,1,0));
+ $elength = '-'.date_intl(_("H:i"),mktime($ehour,$eminute+$calbar['length'],0,1,1,0));
} else {
$elength='';
}
echo html_tag( 'tr', '', '', $color[$eo] ) .
- html_tag( 'td', $ehour . ':' . $eminute . $elength, 'left' ) .
+ html_tag( 'td', date_intl(_("H:i"),mktime($ehour,$eminute,0,1,1,0)) . $elength, 'left' ) .
html_tag( 'td', '', 'left' ) . '[';
- echo ($calbar['priority']==1) ?
- "<font color=\"$color[1]\">".htmlspecialchars($calbar['title']).'</font>' :
+ echo ($calbar['priority']==1) ?
+ "<font color=\"$color[1]\">".htmlspecialchars($calbar['title']).'</font>' :
htmlspecialchars($calbar['title']);
echo'] <div style="margin-left:10px">'.nl2br(htmlspecialchars($calbar['message'])).'</div>' .
html_tag( 'td',
$daily_events = array();
-displayPageHeader($color, 'None');
+displayPageHeader($color);
calendar_header();
readcalendardata();
day_header();
display_events();
?>
</table></td></tr></table>
-</body></html>
\ No newline at end of file
+</body></html>