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

phpBB 2 MOD Support
無論是官方或非官方認證之外掛,安裝與使用問題討論。
(發表文章請按照公告格式發表,違者砍文)

版主: 版主管理群

主題已鎖定
vaio
星球公民
星球公民
文章: 133
註冊時間: 2004-03-18 16:03

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

文章 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(); }
主題已鎖定

回到「外掛問題討論」