原帖由 money967 于 2005-8-8 10:10 发表
楼主,谢谢你~
那么请问你如果我只是修改 最新消息,
我的魔兽争霸占 时间会显示正常马?谢谢~
修改魔獸爭霸戰 (爭霸戰擂台):
1. 開啟plugins/demon_war.php
2. 找到function war_area()
3. 找到下面這句
$query = $db->query("select wm.*, m1.uid as uid1, m2.uid as uid2, m1.username as username1, m2.username as username2, match_time>now() as legal from card_war_match wm left outer join card_war_player wp1 on wm.player1_num=wp1.player_num left outer join ".$setting[table_header]."members m1 on wp1.player_uid=m1.uid left outer join card_war_player wp2 on wm.player2_num=wp2.player_num left outer join ".$setting[table_header]."members m2 on wp2.player_uid=m2.uid limit $start, $match_per_page");
並改成
$query = $db->query("select wm.*, date_add(wm.match_time, interval 8 hour) as match_time, m1.uid as uid1, m2.uid as uid2, m1.username as username1, m2.username as username2, match_time>now() as legal from card_war_match wm left outer join card_war_player wp1 on wm.player1_num=wp1.player_num left outer join ".$setting[table_header]."members m1 on wp1.player_uid=m1.uid left outer join card_war_player wp2 on wm.player2_num=wp2.player_num left outer join ".$setting[table_header]."members m2 on wp2.player_uid=m2.uid limit $start, $match_per_page");
修改魔獸爭霸戰 (最新消息):
1. 開啟plugins/demon_war.php
2. 找到function war()
3. 找到下面這句
$war = get_one("select deadline-now()>0 as allow_reg, war_id, deadline, num_of_player, fee, award, award_exp, end from card_war where end=0 order by war_id desc");
並將他改成:
$war = get_one("select deadline-now()>0 as allow_reg, war_id, date_add(deadline, interval 8 hour) as deadline, num_of_player, fee, award, award_exp, end from card_war where end=0 order by war_id desc");
後台時間不用改, 依照美國時間 |