發表於 : 2003-06-23 16:03
SORRY
先不玩這個^^
先不玩這個^^
修改 overall_header.tplsecond 寫:安裝成功了~
花了一個多小時終於搞懂了
但是在這樣有個小小的請求~
就是~我不知道~要怎麼把連結加進討論區的主標題裡\r
還有加進選單中
如果能像您的討論區那樣~還可以把冠軍加進去版面的話~就更感謝了~
請大大指導一下~感恩~~^O^
代碼: 選擇全部
Invalid SQL: select count(p_bbsid) as p_bbsid from wog_player where p_bbsid=
mysql 錯誤:
mysql 錯誤號碼: 0
中有說到類似的情形.. 但是我不了解.... 誰能幫幫我呢??pippen 寫:明白~ETERNAL 寫:大概是你抓user_id的方式跟一般phpbb不同吧\r
要去了解你的phpbb是怎麼抓取user_id
然後修改function.php的function phpbb_check()的內容
己經沒問題了?!
Thanks!
代碼: 選擇全部
function race_end($userid)
{
(內容省略)
}
代碼: 選擇全部
function race_end($userid)
{
global $DB_site,$_POST;
$p=$DB_site->query_first("select p_money,p_name from wog_player where p_id=".$userid."");
$money=(int)trim(addslashes($_POST["money"]));
if(!eregi("[0-9]",$money))
{
alertWindowMsg("金額要輸入數字");
exit();
}
if(!isset($_POST["yourchoose"]))
{
alertWindowMsg("請選擇要下注的鳥");
exit();
}
if($p[0]<100 || $p[0]<$money || $money > 100000 || $money < 100)
{
alertWindowMsg("金額不符");
exit();
}
$temp_id=split(",",$_POST["temp_id"]);
$temp_count=count($temp_id);
if($temp_count!=8)
{
alertWindowMsg("錯誤數量");
}
$fff=0;
$temp_tol="";
$temp_name="";
for ($intj=0;$intj<count($temp_id);$intj++)
{
if($temp_id[$intj]=="undefined" || !is_numeric($temp_id[$intj]))
{
alertWindowMsg("請重新比賽");
exit();
}
$temp_tol_num="";
for ($i=0;$i<30;$i++)
{
$intnum=pack(c,rand(0,10)+48);
$intnum1=$intnum1+$intnum*3;
$temp_tol_num.=",".$intnum1;
}
$temp_tol_num=substr($temp_tol_num,1,strlen($temp_tol_num));
if($intnum1 > $fff){$fff=$intnum1;$no=$temp_id[$intj];}
$intnum1=0;
$temp_tol.=";".$temp_tol_num;
}
$temp_tol=substr($temp_tol,1,strlen($temp_tol));
$fff=$fff-15;
$race=$DB_site->query("select p_name,p_id from wog_player where p_id in (".$_POST["temp_id"].")");
$temp_s="";
$i=0;
while($races=$DB_site->fetch_array($race))
{
$i++;
if($no==$races[1])
{
$winer=$races[0];
}
$temp_id=split(",",$_POST["temp_id"]);
$temp_s="";
for($i=0;$i<count($temp_id);$i++)
{
if($temp_id[$i]==$races[1])
{
$temp_s.=",".$races[0];
}else
{
$temp_s.=",".$temp_id[$i];
}
}
$temp_s=substr($temp_s,1,strlen($temp_s));
$_POST["temp_id"]=$temp_s;
}
if($i!=8)
{
alertWindowMsg("錯誤數量");
}
$DB_site->free_result($race);
unset($races);
$temp_s=substr($temp_s,1,strlen($temp_s));
if((int)$_POST["yourchoose"]==$no)
{
$DB_site->query("update wog_player set p_money=p_money+".($money*5)." where p_id=".$userid."");
$message="恭喜".$p[p_name]."贏了,你的現金裏將增加".($money*5)."元。";
}else
{
$DB_site->query("update wog_player set p_money=p_money-".$money." where p_id=".$userid."");
$message="很遺憾,您輸了";
}
$DB_site->query("update wog_player set p_cho_win=p_cho_win+1 where p_id=".$no."");
showscript("parent.race_end('$_POST[temp_id]','$temp_tol','$message','$fff','$winer')");
unset($temp_s);
unset($p);
}
還在測試抓bug中\ryll 寫:ETERNAL
工會版有打算釋出嗎???
很讓人心動
感恩啊
代碼: 選擇全部
if( ((int)$_POST["str"]+(int)$_POST["smart"]+(int)$_POST["agl"]+(int)$_POST["life"]) > $wog_arry["total_point"] )
{
$errormessage.="加分點數超過".$wog_arry["total_point"].",";
}
代碼: 選擇全部
if((int)$_POST["str"]<=0 || (int)$_POST["smart"]<=0 || (int)$_POST["agl"]<=0 || (int)$_POST["life"]<=0 )
{
$errormessage.="加分點數不正確,";
}
我的系統跟上面這位一樣,也改了抓取user_id的方式opps 寫:請問ETERNAL怎樣修改function.php ? 我用phpbb2.0.4的,搞了大半天也弄不到..注册新角色按了後沒反應..ETERNAL 寫:大概是你抓user_id的方式跟一般phpbb不同吧\r
要去了解你的phpbb是怎麼抓取user_id
然後修改function.php的function phpbb_check()的內容