1 頁 (共 1 頁)

[問題] Calendar Lite在發表時的問題

發表於 : 2004-06-03 13:35
vaio
問題外掛:Calendar Lite
參考連結:
使用版本:phpBB 2.0.8a
狀況描述:

請問為何在發表時若果結束日期細過開紿日期唔比發表係正常, 但為何會多出現這個Error Message呢?

DEBUG MODE

Line : 709
File : c:\appserv\www\phpbb2\calendar.php

現在貼上部份CODE作為參考之用:

代碼: 選擇全部

// Check that date info has been set.
	if ($month != '' && $day != '' && $year != '' && $endmonth != '' && $endday != '' && $endyear != '') {
		$submitdate = mktime (23,59,59,$month,$day,$year);
		$submitenddate = mktime (23,59,59,$endmonth,$endday,$endyear);
	}
	else {
		message_die(GENERAL_ERROR, $lang['No date']);
	}

	if (($currentdate > $submitdate) && !$cal_config['allow_old'])
	   {
	   // Nothing in the subject line: Reject it.
	   message_die(GENERAL_ERROR, $lang['Date before today'], '', __LINE__, __FILE__, '');
	   }
	if ($submitdate > $submitenddate)
	   {
	   message_die(GENERAL_ERROR,  $lang['Date before start'], '', __LINE__, __FILE__, '');
	   }

	include_once($phpbb_root_path . 'includes/functions_post.'.$phpEx);

	if (!$bbcode_uid) { $bbcode_uid = make_bbcode_uid(); }