QUOTE:
Bug改正附件沒改bug...上傳之前記得改~~Thank ahigg
z_game.php/z_bsgame.php/z_spgame.php
找
CODE: [Copy to clipboard]
$currenttime = time();
上面加(z_game.php/z_bsgame.php)
CODE: [Copy to clipboard]
$query = $db->query("SELECT gamedate, gametime FROM $table_z_cup_game WHERE id=$gameid");
$game = $db->fetch_array($query);
$gdate = explode("-", $game[gamedate]);
$gtime = explode(":", $game[gametime]);
$endtime = mktime($gtime[0],$gtime[1],0,$gdate[1],$gdate[2],$gdate[0]);
if(time()-$endtime > 0){
showmessage("這場比賽時間已過,下次請早。",'z_(yy)cup.php');
}
上面加(z_spgame.php)
CODE: [Copy to clipboard]
$query = $db->query("SELECT gamedate, gametime FROM $table_z_cup_spgame WHERE id=$gameid");
$game = $db->fetch_array($query);
$gdate = explode("-", $game[gamedate]);
$gtime = explode(":", $game[gametime]);
$endtime = mktime($gtime[0],$gtime[1],0,$gdate[1],$gdate[2],$gdate[0]);
if(time()-$endtime > 0){
showmessage("這場比賽時間已過,下次請早。",'z_(yy)cup.php');
}
谁能说一下,上面这段具体怎么操做啊。我没有找到这段$currenttime = time();
[ 本帖最后由 18个热血青年 于 2005-8-14 22:14 编辑 ] |