X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=plugins%2Fcalendar%2Fday.php;h=7dcafce9b5e9a8f520b7c445e333be5a07cd26d5;hb=22387c8d44f3ab104db6e19180d3775a45762359;hp=58cdcd1abe884222724b80abce24d88c8a1e99b4;hpb=1c7143ad75c08368ea25ec57b3242d762cee31ca;p=squirrelmail.git diff --git a/plugins/calendar/day.php b/plugins/calendar/day.php index 58cdcd1a..7dcafce9 100644 --- a/plugins/calendar/day.php +++ b/plugins/calendar/day.php @@ -3,18 +3,18 @@ /** * Displays the day page (day view). * - * @copyright © 2002-2006 The SquirrelMail Project Team + * @copyright 2002-2017 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'); @@ -119,17 +119,17 @@ function display_events() { } 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) ? - "".htmlspecialchars($calbar['title']).'' : - htmlspecialchars($calbar['title']); - echo']
'.nl2br(htmlspecialchars($calbar['message'])).'
' . + echo ($calbar['priority']==1) ? + "".sm_encode_html_special_chars($calbar['title']).'' : + sm_encode_html_special_chars($calbar['title']); + echo']
'.nl2br(sm_encode_html_special_chars($calbar['message'])).'
' . html_tag( 'td', "\n" . " - \ No newline at end of file +