[問題]安裝水怪RPG的骰子遊戲,賽馬遊戲,樂透 發生錯誤

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

版主: 版主管理群

景天
星球普通子民
星球普通子民
文章: 28
註冊時間: 2004-09-12 20:10

文章 景天 »

代碼: 選擇全部

<?php
include($phpbb_root_path . 'rpg/function_rpg.'.$phpEx);

if ( !defined('IN_PHPBB') )
{
	die("Hacking attempt");
	exit;
}

$returnurl = '<br /><br /><a href="rpg.php?action=dice">返回上一頁</a>';

$template->set_filenames(array(
	'menu' => 'rpg_header.tpl',
	'body' => 'rpg_dice.tpl')
);

// 取得個人資料
$profiledata = get_userdata(intval($userdata['user_id']));

$act = trim($act);
/*if (!isset($act) or $act=="") {
  $act="horse";
}*/

$postusername = $profiledata['username'];
$rpg_dice_result = "";
if ($HTTP_POST_VARS['act']=="bet")
{
	$rpg_dice_result = "";
	$mony = trim(addslashes($_POST['pay_money']);
	$usermoney =  $profiledata['user_money'];
	$pay =  trim($_POST['pay']);
	if($pay =="point")
	{
		$point = trim(addslashes($_POST['point']));
	}
	if ($mony<100 || $mony>10000)
	{
		$rpg_dice_result .="對不起,您的下注金額不在規定的範圍內!!";
		$rpg_dice_result .="<br />".$returnurl;
	}
	else if ($usermoney<$mony)
	{
		$rpg_dice_result .="對不起,您的下注金額超出了您持有的現金!!";
		$rpg_dice_result .="<br />".$returnurl;
	}
	else {
		$sql= "UPDATE phpbb_users SET
		user_money=user_money-".$mony." WHERE user_id='".$profiledata[user_id]."'";
	if( !$db->sql_query($sql) )
	{
		message_die(GENERAL_ERROR, "無法更新會員的現金!!", "", __LINE__, __FILE__, $sql);
	}
		srand((double)microtime()*1000000);
		$randid1 = rand(1, 6);
		$randid2 = rand(1, 6);
		$randid3 = rand(1, 6);
		$randid = $randid1 + $randid2 + $randid3;
		$win = 0;
		if ($pay == "big" && $randid >10)
		{
			$win = 1;
			$mony1 = $mony*2;
		}
		if ($pay == "small" && $randid <=10)
		{
			$win = 1;
			$mony1 = $mony*2;
		}
		if ($pay == "point")
		{
			if ($randid == $point)
			{
				$win = 1;
				$mony1 = $mony*10;
			}
		}
		$rpg_dice_result .="<body bgcolor=\"#FFFFFF\" onLoad=\"MM_preloadImages('images/dice/1.gif','images/dice/2.gif','images/dice/3.gif')\">";
		if ($win)
		{
			$mony2 = $mony1-$mony;
			$rpg_dice_result .="<div id=\"Layer_result\" style=\"position:absolute; left:330px; top:550px; width:330px; height:45px; z-index:1; visibility: hidden\"><center><span class=gen><img src=images/dice/win.gif>恭喜,您贏了 <font color=#FF6600>".$mony2."</font> 元。</font></span><p class=gen>[ <a href=rpg.php?action=dice>再來一盤</a> ] [ <a href=rpg.php?action=menu>回主選單</a> ]</p></center></div>
";
			$sql= "UPDATE phpbb_users SET
			user_money=user_money+".$mony1." WHERE user_id='".$profiledata[user_id]."'";
			if( !$db->sql_query($sql) )
			{
				message_die(GENERAL_ERROR, "無法更新會員的現金!!", "", __LINE__, __FILE__, $sql);
			}
		}
		else
		{
			$rpg_dice_result .="<div id=\"Layer_result\" style=\"position:absolute; left:330px; top:550px; width:330px; height:45px; z-index:1; visibility: hidden\"><center><span class=gen><img src=images/dice/lose.gif>真遺憾,您輸了 <font color=#FF6600>".$mony."</font> 元。</font></span><p class=gen>[ <a href=rpg.php?action=dice>再來一盤</a> ] [ <a href=index.php>回論壇首頁</a> ]</p></center></div>
";
		}
		$rpg_dice_result .="<table width=\"410\" cellpadding=\"0\" cellspacing=\"0\" border=\"0\">"
							."<tr align=\"center\">"
							."<td width=\"65\"><img src=\"images/dice/run.gif\" width=\"38\" height=\"36\" name=\"run1\"></td>"
							."<td width=\"68\"><img src=\"images/dice/run.gif\" width=\"38\" height=\"36\" name=\"run2\"></td>"
							."<td width=\"71\"><img src=\"images/dice/run.gif\" width=\"38\" height=\"36\" name=\"run3\"></td>"
							."<td width=\"218\"><a href=\"#\"><img src=\"images/dice/button.gif\" width=\"50\" height=\\"40\" onClick=\"MM_swapImage('run1','','images/dice/".$randid1.".gif',1);MM_swapImage('run2','','images/dice/".$randid2.".gif',1);MM_swapImage('run3','','images/dice/".$randid3.".gif',1);MM_showHideLayers('Layer_result','','show')\" border=\"0\" align=\"absmiddle\"></a>"
							."<span class=gen> <-- 按下這裡開始!!</span></td>"
							."</tr>"
							."</table></body>";
	}
}
else
{
$rpg_dice_result .="<script language=javascript>"
		."var subNo=0;"
		."function formCheck()"
		."{"
		."	if (document.theform.pay_money.value == \"\")"
		."	{"
		."		alert(\"請填寫下注金額\");"
		."		document.theform.pay_money.focus();"
		."		return false;"
		."	}"
		."	subNo=1;"
		."	return true;"
		."}"
		."</script>";

$rpg_dice_result .="<form name=\"theform\" method=\"post\" action=rpg.php?action=dice onsubmit=\"return formCheck();\">";
$rpg_dice_result .="<input type=\"hidden\" name=\"act\" value=\"bet\">";
$rpg_dice_result .="<table width=535 border=0 cellspacing=1 cellpadding=3  bgcolor=\"#003399\">";
$rpg_dice_result .="<tr bgcolor=\"#FFFFFF\"> "
					."<td colspan=\"4\" height=\"103\">"
					."<p><input type=\"radio\" name=\"pay\" value=\"big\" checked>"
					."<img src=\"images/dice/big.gif\" width=\"46\" height=\"40\">"
					."<input type=\"radio\" name=\"pay\" value=\"small\">"
					."<img src=\"images/dice/small.gif\" width=\"46\" height=\"40\"> <span class=\"gen\">賠率:2</span></p>"
					."<p><input type=\"radio\" name=\"pay\" value=\"point\">"
					."<span class=\"gen\">買點數:"
					."<input type=\"text\" name=\"point\" value=\"3\" size=\"2\" maxlength=\"2\"> ( 3 - 18 點) 賠率:10</span>"
					."</p></td>"
					."</tr>"
					."<tr bgcolor=\"#CCCCFF\"> "
					."<td colspan=\"4\" height=\"40\"><span class=\"gen\">下注:</span>"
					."<input type=\"text\" name=\"pay_money\\" value=\"100\" size=\"6\"> "
					."<input type=\"submit\" name=\"Submit\" value=\"下注\" onclick=\"if (subNo>0){this.disabled=true; return false;}\">"
					."</td>"
					."</tr></table></form>";
}

// 產生資料頁面\r
$page_title = "水怪大陸 RPG 首頁";
include($phpbb_root_path . 'includes/page_header.'.$phpEx);

$template->assign_vars(array(
	'USERNAME' => $profiledata['username'],
	'AVATAR_IMG' => GetAvatar($profiledata),
	'RPG_MONEY' => number_format($profiledata['user_money']),
	'RPG_DICE_RESULT' => $rpg_dice_result,
	'L_NOWMENU' => '水怪骰子遊戲') );

if ( $_POST['act'] == 'bet' )
{
	$template->assign_block_vars('bet_result', array());
}

$template->pparse('menu');
$template->pparse('body');

include($phpbb_root_path . 'includes/page_tail.'.$phpEx);
?>[/php]
麻煩心靈捕手大了!
頭像
心靈捕手
默默耕耘的老師
默默耕耘的老師
文章: 8516
註冊時間: 2004-04-30 01:54
來自: Taiwan

文章 心靈捕手 »

景天 寫:

代碼: 選擇全部

<?php
include($phpbb_root_path . 'rpg/function_rpg.'.$phpEx);

if ( !defined('IN_PHPBB') )
{
	die("Hacking attempt");
	exit;
}

$returnurl = '<br /><br /><a href="rpg.php?action=dice">返回上一頁</a>';

$template->set_filenames(array(
	'menu' => 'rpg_header.tpl',
	'body' => 'rpg_dice.tpl')
);

// 取得個人資料
$profiledata = get_userdata(intval($userdata['user_id']));

$act = trim($act);
/*if (!isset($act) or $act=="") {
  $act="horse";
}*/

$postusername = $profiledata['username'];
$rpg_dice_result = "";
if ($HTTP_POST_VARS['act']=="bet")
{
	$rpg_dice_result = "";
	$mony = trim(addslashes($_POST['pay_money']);
	$usermoney =  $profiledata['user_money'];
	$pay =  trim($_POST['pay']);
	if($pay =="point")
	{
		$point = trim(addslashes($_POST['point']));
	}
	if ($mony<100 || $mony>10000)
	{
		$rpg_dice_result .="對不起,您的下注金額不在規定的範圍內!!";
		$rpg_dice_result .="<br />".$returnurl;
	}
	else if ($usermoney<$mony)
	{
		$rpg_dice_result .="對不起,您的下注金額超出了您持有的現金!!";
		$rpg_dice_result .="<br />".$returnurl;
	}
	else {
		$sql= "UPDATE phpbb_users SET
		user_money=user_money-".$mony." WHERE user_id='".$profiledata[user_id]."'";
	if( !$db->sql_query($sql) )
	{
		message_die(GENERAL_ERROR, "無法更新會員的現金!!", "", __LINE__, __FILE__, $sql);
	}
		srand((double)microtime()*1000000);
		$randid1 = rand(1, 6);
		$randid2 = rand(1, 6);
		$randid3 = rand(1, 6);
		$randid = $randid1 + $randid2 + $randid3;
		$win = 0;
		if ($pay == "big" && $randid >10)
		{
			$win = 1;
			$mony1 = $mony*2;
		}
		if ($pay == "small" && $randid <=10)
		{
			$win = 1;
			$mony1 = $mony*2;
		}
		if ($pay == "point")
		{
			if ($randid == $point)
			{
				$win = 1;
				$mony1 = $mony*10;
			}
		}
		$rpg_dice_result .="<body bgcolor="#FFFFFF" onLoad="MM_preloadImages('images/dice/1.gif','images/dice/2.gif','images/dice/3.gif')">";
		if ($win)
		{
			$mony2 = $mony1-$mony;\r
			$rpg_dice_result .="<div id="Layer_result" style="position:absolute; left:330px; top:550px; width:330px; height:45px; z-index:1; visibility: hidden"><center><span class=gen><img src=images/dice/win.gif>恭喜,您贏了 <font color=#FF6600>".$mony2."</font> 元。</font></span><p class=gen>[ <a href=rpg.php?action=dice>再來一盤</a> ] [ <a href=rpg.php?action=menu>回主選單</a> ]</p></center></div>
";
			$sql= "UPDATE phpbb_users SET
			user_money=user_money+".$mony1." WHERE user_id='".$profiledata[user_id]."'";
			if( !$db->sql_query($sql) )
			{
				message_die(GENERAL_ERROR, "無法更新會員的現金!!", "", __LINE__, __FILE__, $sql);
			}
		}
		else
		{
			$rpg_dice_result .="<div id="Layer_result" style="position:absolute; left:330px; top:550px; width:330px; height:45px; z-index:1; visibility: hidden"><center><span class=gen><img src=images/dice/lose.gif>真遺憾,您輸了 <font color=#FF6600>".$mony."</font> 元。</font></span><p class=gen>[ <a href=rpg.php?action=dice>再來一盤</a> ] [ <a href=index.php>回論壇首頁</a> ]</p></center></div>
";
		}
		$rpg_dice_result .="<table width="410" cellpadding="0" cellspacing="0" border="0">"
							."<tr align="center">"
							."<td width="65"><img src="images/dice/run.gif" width="38" height="36" name="run1"></td>"
							."<td width="68"><img src="images/dice/run.gif" width="38" height="36" name="run2"></td>"
							."<td width="71"><img src="images/dice/run.gif" width="38" height="36" name="run3"></td>"
							."<td width="218"><a href="#"><img src="images/dice/button.gif" width="50" height="40" onClick="MM_swapImage('run1','','images/dice/".$randid1.".gif',1);MM_swapImage('run2','','images/dice/".$randid2.".gif',1);MM_swapImage('run3','','images/dice/".$randid3.".gif',1);MM_showHideLayers('Layer_result','','show')" border="0" align="absmiddle"></a>"
							."<span class=gen> <-- 按下這裡開始!!</span></td>"
							."</tr>"
							."</table></body>";
	}
}
else
{
$rpg_dice_result .="<script language=javascript>"
		."var subNo=0;"
		."function formCheck()"
		."{"
		."	if (document.theform.pay_money.value == "")"
		."	{"
		."		alert("請填寫下注金額");"
		."		document.theform.pay_money.focus();"
		."		return false;"
		."	}"
		."	subNo=1;"
		."	return true;"
		."}"
		."</script>";

$rpg_dice_result .="<form name="theform" method="post" action=rpg.php?action=dice onsubmit="return formCheck();">";
$rpg_dice_result .="<input type="hidden" name="act" value="bet">";
$rpg_dice_result .="<table width=535 border=0 cellspacing=1 cellpadding=3  bgcolor="#003399">";
$rpg_dice_result .="<tr bgcolor="#FFFFFF"> "
					."<td colspan="4" height="103">"
					."<p><input type="radio" name="pay" value="big" checked>"
					."<img src="images/dice/big.gif" width="46" height="40">"
					."<input type="radio" name="pay" value="small">"
					."<img src="images/dice/small.gif" width="46" height="40"> <span class="gen">賠率:2</span></p>"
					."<p><input type="radio" name="pay" value="point">"
					."<span class="gen">買點數:"
					."<input type="text" name="point" value="3" size="2" maxlength="2\"> ( 3 - 18 點) 賠率:10</span>"
					."</p></td>"
					."</tr>"
					."<tr bgcolor="#CCCCFF"> "
					."<td colspan="4" height="40"><span class="gen">下注:</span>"
					."<input type="text" name="pay_money" value="100" size="6"> "
					."<input type="submit" name="Submit" value="下注" onclick="if (subNo>0){this.disabled=true; return false;}">"
					."</td>"
					."</tr></table></form>";
}

// 產生資料頁面\r
$page_title = "水怪大陸 RPG 首頁";
include($phpbb_root_path . 'includes/page_header.'.$phpEx);

$template->assign_vars(array(
	'USERNAME' => $profiledata['username'],
	'AVATAR_IMG' => GetAvatar($profiledata),
	'RPG_MONEY' => number_format($profiledata['user_money']),
	'RPG_DICE_RESULT' => $rpg_dice_result,
	'L_NOWMENU' => '水怪骰子遊戲') );

if ( $_POST['act'] == 'bet' )
{
	$template->assign_block_vars('bet_result', array());
}

$template->pparse('menu');
$template->pparse('body');

include($phpbb_root_path . 'includes/page_tail.'.$phpEx);
?>[/php]
麻煩心靈捕手大了!
貼上此檔後, 有很多錯誤訊息喔!

以下的修正提供您參考:

代碼: 選擇全部

-----[FIND]----------
$mony = trim(addslashes($_POST['pay_money']);

-----[REPLACE]---------
$mony = trim(addslashes($_POST['pay_money']));

-----[FIND]----------
$pay =  trim($_POST[t") 
   { 'pay']);
   
-----[REPLACE]----------
$pay =  trim($_POST['pay']);

-----[FIND]----------
if($pay =="poin
      $point = trim(addslashes($_POST['point'])); 
      
-----[REPLACE]---------
if($pay =="point") 
   { 
      $point = trim(addslashes($_POST['point']));
施比受有福,祝福您好運! ^_^
歡迎光臨★★心靈捕手★★ :: 討論區
https://wang5555.dnsfor.me/phpBB3/
景天
星球普通子民
星球普通子民
文章: 28
註冊時間: 2004-09-12 20:10

文章 景天 »

終於解決了~!
感謝心靈捕手大!

我在改的時候發現,只有第一個錯誤(少了括號),是錯的.
另外兩個在原本的程式碼是正確的,不知為何貼到竹貓就錯掉了...=.=
~倉木麻衣~
竹貓忠實會員
竹貓忠實會員
文章: 1405
註冊時間: 2004-03-21 21:00

文章 ~倉木麻衣~ »

TO:心靈捕手
嗯~建議你修正一下底下那篇筆記的錯誤@@"
http://www.phpbb-tw.net/phpbb/viewtopic ... 348#155348

代碼: 選擇全部

dice.php
# 
#-----[ FIND ]--------------------------------------------- 
# 
   $mony=trim(addslashes($pay_money)); 
# 
#-----[ REPLACE WITH ]--------------------------------------------- 
# 
   $mony = trim(addslashes($_POST['pay_money'])[color=red])[/color]; 
那個很有可能是我當初貼到版上時遺漏了 ) ~又剛好被你收進筆記裡:p
結果造成後來的人掛在那個地方 v_v"
頭像
心靈捕手
默默耕耘的老師
默默耕耘的老師
文章: 8516
註冊時間: 2004-04-30 01:54
來自: Taiwan

文章 心靈捕手 »

~倉木麻衣~ 寫:TO:心靈捕手
嗯~建議你修正一下底下那篇筆記的錯誤@@"
http://www.phpbb-tw.net/phpbb/viewtopic ... 348#155348

代碼: 選擇全部

dice.php
# 
#-----[ FIND ]--------------------------------------------- 
# 
   $mony=trim(addslashes($pay_money)); 
# 
#-----[ REPLACE WITH ]--------------------------------------------- 
# 
   $mony = trim(addslashes($_POST['pay_money'])[color=red])[/color]; 
那個很有可能是我當初貼到版上時遺漏了 ) ~又剛好被你收進筆記裡:p
結果造成後來的人掛在那個地方 v_v"
那恐怕已經誤了不少人吧! :mrgreen:
已經加以修正,謝謝您的提醒!
施比受有福,祝福您好運! ^_^
歡迎光臨★★心靈捕手★★ :: 討論區
https://wang5555.dnsfor.me/phpBB3/
xksimon
星球普通子民
星球普通子民
文章: 2
註冊時間: 2004-04-04 09:27

文章 xksimon »

我的問題較嚴重.....
dice遊戲無了論壇畫面, 只有純文字和dice圖片....
而race仲大問題..... 空白一片.... 有誰可幫幫我
頭像
心靈捕手
默默耕耘的老師
默默耕耘的老師
文章: 8516
註冊時間: 2004-04-30 01:54
來自: Taiwan

文章 心靈捕手 »

xksimon 寫:我的問題較嚴重.....
dice遊戲無了論壇畫面, 只有純文字和dice圖片....
而race仲大問題..... 空白一片.... 有誰可幫幫我
您所提供的訊息實在太少, 實在是愛莫能助!

如果可以的話, 請您依照版規(發問格式),
重新發表新的主題會比較妥當. ;-)
施比受有福,祝福您好運! ^_^
歡迎光臨★★心靈捕手★★ :: 討論區
https://wang5555.dnsfor.me/phpBB3/
CsMod
星球普通子民
星球普通子民
文章: 10
註冊時間: 2004-06-29 14:20

文章 CsMod »

我的問題是\r
Fatal error: Call to undefined function: phpinclude() in d:\AppServ\www\phpbb
pg\dice.php on line 1

代碼: 選擇全部

<?phpinclude($phpbb_root_path . 'rpg/function_rpg.'.$phpEx);if ( !defined('IN_PHPBB') )
{
	die("Hacking attempt");
	exit;
}$returnurl = '<br /><br /><a href="rpg.php?action=dice">返回上一頁</a>';

$template->set_filenames(array(
	'menu' => 'rpg_header.tpl',
	'body' => 'rpg_dice.tpl')
);// 取得個人資料
$profiledata = get_userdata(intval($userdata['user_id']));$act = trim($_POST['act']);
/*if (!isset($act) or $act=="") {
  $act="horse";
}*/$postusername = $profiledata['username'];
$rpg_dice_result = "";
if ($HTTP_POST_VARS['act']=="bet")
{
	$rpg_dice_result = "";
	$mony = trim(addslashes($_POST['pay_money']));
	$usermoney =  $profiledata['user_money'];
	$pay =  trim($_POST['pay']);
	if($pay =="point")
	{
		$point = trim(addslashes($_POST['point']));
	}
	if ($mony<100 || $mony>10000)
	{
		$rpg_dice_result .="對不起,您的下注金額不在規定的範圍內!!";
		$rpg_dice_result .="<br />".$returnurl;
	}
	else if ($usermoney<$mony)
	{
		$rpg_dice_result .="對不起,您的下注金額超出了您持有的現金!!";
		$rpg_dice_result .="<br />".$returnurl;
	}
	else {
		$sql= "UPDATE phpbb_users SET
		user_money=user_money-".$mony." WHERE user_id='".$profiledata[user_id]."'";
	if( !$db->sql_query($sql) )
	{
		message_die(GENERAL_ERROR, "無法更新會員的現金!!", "", __LINE__, __FILE__, $sql);
	}
		srand((double)microtime()*1000000);
		$randid1 = rand(1, 6);
		$randid2 = rand(1, 6);
		$randid3 = rand(1, 6);
		$randid = $randid1 + $randid2 + $randid3;
		$win = 0;
		if ($pay == "big" && $randid >10)
		{
			$win = 1;
			$mony1 = $mony*2;
		}
		if ($pay == "small" && $randid <=10)
		{
			$win = 1;
			$mony1 = $mony*2;
		}
		if ($pay == "point")
		{
			if ($randid == $point)
			{
				$win = 1;
				$mony1 = $mony*10;
			}
		}
		$rpg_dice_result .="<body bgcolor=\"#FFFFFF\" onLoad=\"MM_preloadImages('images/dice/1.gif','images/dice/2.gif','images/dice/3.gif')\">";
		if ($win)
		{
			$mony2 = $mony1-$mony;
			$rpg_dice_result .="<div id=\"Layer_result\" style=\"position:absolute; left:330px; top:550px; width:330px; height:45px; z-index:1; visibility: hidden\"><center><span class=gen><img src=images/dice/win.gif>恭喜,您贏了 <font color=#FF6600>".$mony2."</font> 元。</font></span><p class=gen>[ <a href=rpg.php?action=dice>再來一盤</a> ] [ <a href=rpg.php?action=menu>回主選單</a> ]</p></center></div>
";
			$sql= "UPDATE phpbb_users SET
			user_money=user_money+".$mony1." WHERE user_id='".$profiledata[user_id]."'";
			if( !$db->sql_query($sql) )
			{
				message_die(GENERAL_ERROR, "無法更新會員的現金!!", "", __LINE__, __FILE__, $sql);
			}
		}
		else
		{
			$rpg_dice_result .="<div id=\"Layer_result\" style=\"position:absolute; left:330px; top:550px; width:330px; height:45px; z-index:1; visibility: hidden\"><center><span class=gen><img src=images/dice/lose.gif>真遺憾,您輸了 <font color=#FF6600>".$mony."</font> 元。</font></span><p class=gen>[ <a href=rpg.php?action=dice>再來一盤</a> ] [ <a href=index.php>回論壇首頁</a> ]</p></center></div>
";
		}
		$rpg_dice_result .="<table width=\"410\" cellpadding=\"0\" cellspacing=\"0\" border=\"0\">"
							."<tr align=\"center\">"
							."<td width=\"65\"><img src=\"images/dice/run.gif\" width=\"38\" height=\"36\" name=\"run1\"></td>"
							."<td width=\"68\"><img src=\"images/dice/run.gif\" width=\"38\" height=\"36\" name=\"run2\"></td>"
							."<td width=\"71\"><img src=\"images/dice/run.gif\" width=\"38\" height=\"36\" name=\"run3\"></td>"
							."<td width=\"218\"><a href=\"#\"><img src=\"images/dice/button.gif\" width=\"50\" height=\"40\" onClick=\"MM_swapImage('run1','','images/dice/".$randid1.".gif',1);MM_swapImage('run2','','images/dice/".$randid2.".gif',1);MM_swapImage('run3','','images/dice/".$randid3.".gif',1);MM_showHideLayers('Layer_result','','show')\" border=\"0\" align=\"absmiddle\"></a>"
							."<span class=gen> <-- 按下這裡開始!!</span></td>"
							."</tr>"
							."</table></body>";
	}
}
else
{
$rpg_dice_result .="<script language=javascript>"
		."var subNo=0;"
		."function formCheck()"
		."{"
		."	if (document.theform.pay_money.value == \"\")"
		."	{"
		."		alert(\"請填寫下注金額\");"
		."		document.theform.pay_money.focus();"
		."		return false;"
		."	}"
		."	subNo=1;"
		."	return true;"
		."}"
		."</script>";

$rpg_dice_result .="<form name=\"theform\" method=\"post\" action=rpg.php?action=dice onsubmit=\"return formCheck();\">";
$rpg_dice_result .="<input type=\"hidden\" name=\"act\" value=\"bet\">";
$rpg_dice_result .="<table width=535 border=0 cellspacing=1 cellpadding=3  bgcolor=\"#003399\">";
$rpg_dice_result .="<tr bgcolor=\"#FFFFFF\"> "
					."<td colspan=\"4\" height=\"103\">"
					."<p><input type=\"radio\" name=\"pay\" value=\"big\" checked>"
					."<img src=\"images/dice/big.gif\" width=\"46\" height=\"40\">"
					."<input type=\"radio\" name=\"pay\" value=\"small\">"
					."<img src=\"images/dice/small.gif\" width=\"46\" height=\"40\"> <span class=\"gen\">賠率:2</span></p>"
					."<p><input type=\"radio\" name=\"pay\" value=\"point\">"
					."<span class=\"gen\">買點數:"
					."<input type=\"text\" name=\"point\" value=\"3\" size=\"2\" maxlength=\"2\"> ( 3 - 18 點) 賠率:10</span>"
					."</p></td>"
					."</tr>"
					."<tr bgcolor=\"#CCCCFF\"> "
					."<td colspan=\"4\" height=\"40\"><span class=\"gen\">下注:</span>"
					."<input type=\"text\" name=\"pay_money\" value=\"100\" size=\"6\"> "
					."<input type=\"submit\" name=\"Submit\" value=\"下注\" onclick=\"if (subNo>0){this.disabled=true; return false;}\">"
					."</td>"
					."</tr></table></form>";
}// 產生資料頁面\r
$page_title = "水怪大陸 RPG 首頁";
include($phpbb_root_path . 'includes/page_header.'.$phpEx);$template->assign_vars(array(
	'USERNAME' => $profiledata['username'],
	'AVATAR_IMG' => GetAvatar($profiledata),
	'RPG_MONEY' => number_format($profiledata['user_money']),
	'RPG_DICE_RESULT' => $rpg_dice_result,
	'L_NOWMENU' => '水怪骰子遊戲') );if ( $_POST['act'] == 'bet' )
{
	$template->assign_block_vars('bet_result', array());
}

$template->pparse('menu');
$template->pparse('body');include($phpbb_root_path . 'includes/page_tail.'.$phpEx);?>
還有新版的common.php我不會改相容

代碼: 選擇全部

<?php
/***************************************************************************
 *                                common.php
 *                            -------------------
 *   begin                : Saturday, Feb 23, 2001
 *   copyright            : (C) 2001 The phpBB Group
 *   email                : support@phpbb.com
 *
 *   $Id: common.php,v 1.74.2.13 2004/07/15 18:00:34 acydburn Exp $
 *
 ***************************************************************************/

/***************************************************************************
 *
 *   This program is free software; you can redistribute it and/or modify
 *   it under the terms of the GNU General Public License as published by
 *   the Free Software Foundation; either version 2 of the License, or
 *   (at your option) any later version.
 *
 ***************************************************************************/

if ( !defined('IN_PHPBB') )
{
	die("Hacking attempt");
}

//
error_reporting  (E_ERROR | E_WARNING | E_PARSE); // This will NOT report uninitialized variables
set_magic_quotes_runtime(0); // Disable magic_quotes_runtime

// The following code (unsetting globals) was contributed by Matt Kavanagh

// PHP5 with register_long_arrays off?
if (!isset($HTTP_POST_VARS) && isset($_POST))
{
   $HTTP_POST_VARS = $_POST;
   $HTTP_GET_VARS = $_GET;
   $HTTP_SERVER_VARS = $_SERVER;
   $HTTP_COOKIE_VARS = $_COOKIE;
   $HTTP_ENV_VARS = $_ENV;
   $HTTP_POST_FILES = $_FILES;

   // _SESSION is the only superglobal which is conditionally set
   if (isset($_SESSION))
   {
      $HTTP_SESSION_VARS = $_SESSION;
   }
}

if (@phpversion() < '4.0.0')
{
   // PHP3 path; in PHP3, globals are _always_ registered
   
   // We 'flip' the array of variables to test like this so that
   // we can validate later with isset($test[$var]) (no in_array())
   $test = array('HTTP_GET_VARS' => NULL, 'HTTP_POST_VARS' => NULL, 'HTTP_COOKIE_VARS' => NULL, 'HTTP_SERVER_VARS' => NULL, 'HTTP_ENV_VARS' => NULL, 'HTTP_POST_FILES' => NULL);

   // Loop through each input array
   @reset($test);
   while (list($input,) = @each($test))
   {
      while (list($var,) = @each($$input))
      {
         // Validate the variable to be unset
         if (!isset($test[$var]) && $var != 'test' && $var != 'input')
         {
            unset($$var);
         }
      }
   }
}
else if (@ini_get('register_globals') == '1' || strtolower(@ini_get('register_globals')) == 'on')
{
   // PHP4+ path
   
   // Not only will array_merge give a warning if a parameter
   // is not an array, it will actually fail. So we check if
   // HTTP_SESSION_VARS has been initialised.
   if (!isset($HTTP_SESSION_VARS))
   {
      $HTTP_SESSION_VARS = array();
   }

   // Merge all into one extremely huge array; unset
   // this later
   $input = array_merge($HTTP_GET_VARS, $HTTP_POST_VARS, $HTTP_COOKIE_VARS, $HTTP_SERVER_VARS, $HTTP_SESSION_VARS, $HTTP_ENV_VARS, $HTTP_POST_FILES);

   unset($input['input']);
   
   while (list($var,) = @each($input))
   {
      unset($$var);
   }
   
   unset($input);

}

//
// addslashes to vars if magic_quotes_gpc is off
// this is a security precaution to prevent someone
// trying to break out of a SQL statement.
//
if( !get_magic_quotes_gpc() )
{
	if( is_array($HTTP_GET_VARS) )
	{
		foreach($HTTP_GET_VARS as $k => $v)
		{
			if( is_array($HTTP_GET_VARS[$k]) )
			{
				foreach($HTTP_GET_VARS[$k] as $k2 => $v2)
				{
					$HTTP_GET_VARS[$k][$k2] = addslashes($v2);
				}
			}
			else
			{
				$HTTP_GET_VARS[$k] = addslashes($v);
			}
		}
	}

	if( is_array($HTTP_POST_VARS) )
	{
		foreach($HTTP_POST_VARS as $k => $v)
		{
			if( is_array($HTTP_POST_VARS[$k]) )
			{
				foreach($HTTP_POST_VARS[$k] as $k2 => $v2)
				{
					$HTTP_POST_VARS[$k][$k2] = addslashes($v2);
				}
			}
			else
			{
				$HTTP_POST_VARS[$k] = addslashes($v);
			}
		}
	}

	if( is_array($HTTP_COOKIE_VARS) )
	{
		foreach($HTTP_COOKIE_VARS as $k => $v)
		{
			if( is_array($HTTP_COOKIE_VARS[$k]) )
			{
				foreach($HTTP_COOKIE_VARS[$k] as $k2 => $v2)\r
				{
					$HTTP_COOKIE_VARS[$k][$k2] = addslashes($v2);
				}
			}
			else
			{
				$HTTP_COOKIE_VARS[$k] = addslashes($v);
			}
		}
	}
}

//
// Define some basic configuration arrays this also prevents
// malicious rewriting of language and otherarray values via
// URI params
//
$board_config = array();
$userdata = array();
$theme = array();
$images = array();
$lang = array();
$nav_links = array();
$gen_simple_header = FALSE;

include($phpbb_root_path . 'config.'.$phpEx);

if( !defined("PHPBB_INSTALLED") )
{
	header("Location: install/install.$phpEx");
	exit;
}

include($phpbb_root_path . 'includes/constants.'.$phpEx);
include($phpbb_root_path . 'includes/template.'.$phpEx);
include($phpbb_root_path . 'includes/sessions.'.$phpEx);
include($phpbb_root_path . 'includes/auth.'.$phpEx);
include($phpbb_root_path . 'includes/functions.'.$phpEx);
include($phpbb_root_path . 'includes/db.'.$phpEx);

//
// Obtain and encode users IP
//
// I'm removing HTTP_X_FORWARDED_FOR ... this may well cause other problems such as
// private range IP's appearing instead of the guilty routable IP, tough, don't
// even bother complaining ... go scream and shout at the idiots out there who feel
// "clever" is doing harm rather than good ... karma is a great thing ... :)
//
$client_ip = ( !empty($HTTP_SERVER_VARS['REMOTE_ADDR']) ) ? $HTTP_SERVER_VARS['REMOTE_ADDR'] : ( ( !empty($HTTP_ENV_VARS['REMOTE_ADDR']) ) ? $HTTP_ENV_VARS['REMOTE_ADDR'] : $REMOTE_ADDR );
$user_ip = encode_ip($client_ip);

//
// Setup forum wide options, if this fails
// then we output a CRITICAL_ERROR since
// basic forum information is not available
//
$sql = "SELECT *
	FROM " . CONFIG_TABLE;
if( !($result = $db->sql_query($sql)) )
{
	message_die(CRITICAL_ERROR, "Could not query config information", "", __LINE__, __FILE__, $sql);
}

while ( $row = $db->sql_fetchrow($result) )
{
	$board_config[$row['config_name']] = $row['config_value'];
}

include($phpbb_root_path . 'attach_mod/attachment_mod.'.$phpEx);

if (file_exists('install') || file_exists('contrib'))
{
	message_die(GENERAL_MESSAGE, 'Please ensure both the install/ and contrib/ directories are deleted');
}

//
// Show 'Board is disabled' message if needed.
//
if( $board_config['board_disable'] && !defined("IN_ADMIN") && !defined("IN_LOGIN") )
{
	message_die(GENERAL_MESSAGE, 'Board_disable', 'Information');
}

include_once($phpbb_root_path . 'includes/functions_stockmarket.'.$phpEx);
?>
頭像
心靈捕手
默默耕耘的老師
默默耕耘的老師
文章: 8516
註冊時間: 2004-04-30 01:54
來自: Taiwan

文章 心靈捕手 »

CsMod 寫:我的問題是\r
Fatal error: Call to undefined function: phpinclude() in d:\AppServ\www\phpbb
pg\dice.php on line 1

代碼: 選擇全部

<?phpinclude($phpbb_root_path . 'rpg/function_rpg.'.$phpEx);if ( !defined('IN_PHPBB') )
{
	die("Hacking attempt");
	exit;
}$returnurl = '<br /><br /><a href="rpg.php?action=dice">返回上一頁</a>';

$template->set_filenames(array(
	'menu' => 'rpg_header.tpl',
	'body' => 'rpg_dice.tpl')
);// 取得個人資料
$profiledata = get_userdata(intval($userdata['user_id']));$act = trim($_POST['act']);
/*if (!isset($act) or $act=="") {
  $act="horse";
}*/$postusername = $profiledata['username'];
$rpg_dice_result = "";
if ($HTTP_POST_VARS['act']=="bet")
{
	$rpg_dice_result = "";
	$mony = trim(addslashes($_POST['pay_money']));
	$usermoney =  $profiledata['user_money'];
	$pay =  trim($_POST['pay']);
	if($pay =="point")
	{
		$point = trim(addslashes($_POST['point']));
	}
	if ($mony<100 || $mony>10000)
	{
		$rpg_dice_result .="對不起,您的下注金額不在規定的範圍內!!";
		$rpg_dice_result .="<br />".$returnurl;
	}
	else if ($usermoney<$mony)
	{
		$rpg_dice_result .="對不起,您的下注金額超出了您持有的現金!!";
		$rpg_dice_result .="<br />".$returnurl;
	}
	else {
		$sql= "UPDATE phpbb_users SET
		user_money=user_money-".$mony." WHERE user_id='".$profiledata[user_id]."'";
	if( !$db->sql_query($sql) )
	{
		message_die(GENERAL_ERROR, "無法更新會員的現金!!", "", __LINE__, __FILE__, $sql);
	}
		srand((double)microtime()*1000000);
		$randid1 = rand(1, 6);
		$randid2 = rand(1, 6);
		$randid3 = rand(1, 6);
		$randid = $randid1 + $randid2 + $randid3;
		$win = 0;
		if ($pay == "big" && $randid >10)
		{
			$win = 1;
			$mony1 = $mony*2;
		}
		if ($pay == "small" && $randid <=10)
		{
			$win = 1;
			$mony1 = $mony*2;
		}
		if ($pay == "point")
		{
			if ($randid == $point)
			{
				$win = 1;
				$mony1 = $mony*10;
			}
		}
		$rpg_dice_result .="<body bgcolor="#FFFFFF" onLoad="MM_preloadImages('images/dice/1.gif','images/dice/2.gif','images/dice/3.gif')">";
		if ($win)
		{
			$mony2 = $mony1-$mony;
			$rpg_dice_result .="<div id="Layer_result" style="position:absolute; left:330px; top:550px; width:330px; height:45px; z-index:1; visibility: hidden"><center><span class=gen><img src=images/dice/win.gif>恭喜,您贏了 <font color=#FF6600>".$mony2."</font> 元。</font></span><p class=gen>[ <a href=rpg.php?action=dice>再來一盤</a> ] [ <a href=rpg.php?action=menu>回主選單</a> ]</p></center></div>
";
			$sql= "UPDATE phpbb_users SET
			user_money=user_money+".$mony1." WHERE user_id='".$profiledata[user_id]."'";
			if( !$db->sql_query($sql) )
			{
				message_die(GENERAL_ERROR, "無法更新會員的現金!!", "", __LINE__, __FILE__, $sql);
			}
		}
		else
		{
			$rpg_dice_result .="<div id="Layer_result" style="position:absolute; left:330px; top:550px; width:330px; height:45px; z-index:1; visibility: hidden"><center><span class=gen><img src=images/dice/lose.gif>真遺憾,您輸了 <font color=#FF6600>".$mony."</font> 元。</font></span><p class=gen>[ <a href=rpg.php?action=dice>再來一盤</a> ] [ <a href=index.php>回論壇首頁</a> ]</p></center></div>
";
		}
		$rpg_dice_result .="<table width="410" cellpadding="0" cellspacing="0" border="0">"
							."<tr align="center">"
							."<td width="65"><img src="images/dice/run.gif" width="38" height="36" name="run1"></td>"
							."<td width="68"><img src="images/dice/run.gif" width="38" height="36\" name="run2"></td>"
							."<td width="71"><img src="images/dice/run.gif" width="38" height="36" name="run3"></td>"
							."<td width="218"><a href="#"><img src="images/dice/button.gif" width="50" height="40" onClick="MM_swapImage('run1','','images/dice/".$randid1.".gif',1);MM_swapImage('run2','','images/dice/".$randid2.".gif',1);MM_swapImage('run3','','images/dice/".$randid3.".gif',1);MM_showHideLayers('Layer_result','','show')" border="0" align="absmiddle"></a>"
							."<span class=gen> <-- 按下這裡開始!!</span></td>"
							."</tr>"
							."</table></body>";
	}
}
else
{
$rpg_dice_result .="<script language=javascript>"
		."var subNo=0;"
		."function formCheck()"
		."{"
		."	if (document.theform.pay_money.value == "")"
		."	{"
		."		alert("請填寫下注金額");"
		."		document.theform.pay_money.focus();"
		."		return false;"
		."	}"
		."	subNo=1;"
		."	return true;"
		."}"
		."</script>";

$rpg_dice_result .="<form name="theform" method="post" action=rpg.php?action=dice onsubmit="return formCheck();">";
$rpg_dice_result .="<input type="hidden" name="act" value="bet">";
$rpg_dice_result .="<table width=535 border=0 cellspacing=1 cellpadding=3  bgcolor="#003399">";
$rpg_dice_result .="<tr bgcolor="#FFFFFF"> "
					."<td colspan="4" height="103">"
					."<p><input type="radio" name="pay" value="big" checked>"
					."<img src="images/dice/big.gif" width="46" height="40">"
					."<input type="radio" name="pay" value="small">"
					."<img src="images/dice/small.gif" width="46" height="40"> <span class="gen">賠率:2</span></p>"
					."<p><input type="radio" name="pay" value="point">"
					."<span class="gen">買點數:"
					."<input type="text" name="point" value="3" size="2" maxlength="2"> ( 3 - 18 點) 賠率:10</span>"
					."</p></td>"
					."</tr>"
					."<tr bgcolor="#CCCCFF"> "
					."<td colspan="4" height="40"><span class="gen">下注:</span>"
					."<input type="text" name="pay_money" value="100" size="6"> "
					."<input type="submit" name="Submit" value="下注" onclick="if (subNo>0){this.disabled=true; return false;}">"
					."</td>"
					."</tr></table></form>";
}// 產生資料頁面\r
$page_title = "水怪大陸 RPG 首頁";
include($phpbb_root_path . 'includes/page_header.'.$phpEx);$template->assign_vars(array(
	'USERNAME' => $profiledata['username'],
	'AVATAR_IMG' => GetAvatar($profiledata),
	'RPG_MONEY' => number_format($profiledata['user_money']),
	'RPG_DICE_RESULT' => $rpg_dice_result,
	'L_NOWMENU' => '水怪骰子遊戲') );if ( $_POST['act'] == 'bet' )
{
	$template->assign_block_vars('bet_result', array());
}

$template->pparse('menu');
$template->pparse('body');include($phpbb_root_path . 'includes/page_tail.'.$phpEx);?>
還有新版的common.php我不會改相容

代碼: 選擇全部

<?php
/***************************************************************************
 *                                common.php
 *                            -------------------
 *   begin                : Saturday, Feb 23, 2001
 *   copyright            : (C) 2001 The phpBB Group
 *   email                : support@phpbb.com
 *
 *   $Id: common.php,v 1.74.2.13 2004/07/15 18:00:34 acydburn Exp $
 *
 ***************************************************************************/

/***************************************************************************
 *
 *   This program is free software; you can redistribute it and/or modify
 *   it under the terms of the GNU General Public License as published by
 *   the Free Software Foundation; either version 2 of the License, or
 *   (at your option) any later version.
 *
 ***************************************************************************/

if ( !defined('IN_PHPBB') )
{
	die("Hacking attempt");
}

//
error_reporting  (E_ERROR | E_WARNING | E_PARSE); // This will NOT report uninitialized variables
set_magic_quotes_runtime(0); // Disable magic_quotes_runtime

// The following code (unsetting globals) was contributed by Matt Kavanagh

// PHP5 with register_long_arrays off?
if (!isset($HTTP_POST_VARS) && isset($_POST))
{
   $HTTP_POST_VARS = $_POST;
   $HTTP_GET_VARS = $_GET;
   $HTTP_SERVER_VARS = $_SERVER;
   $HTTP_COOKIE_VARS = $_COOKIE;
   $HTTP_ENV_VARS = $_ENV;
   $HTTP_POST_FILES = $_FILES;

   // _SESSION is the only superglobal which is conditionally set
   if (isset($_SESSION))
   {
      $HTTP_SESSION_VARS = $_SESSION;
   }
}

if (@phpversion() < '4.0.0')
{
   // PHP3 path; in PHP3, globals are _always_ registered
   
   // We 'flip' the array of variables to test like this so that
   // we can validate later with isset($test[$var]) (no in_array())
   $test = array('HTTP_GET_VARS' => NULL, 'HTTP_POST_VARS' => NULL, 'HTTP_COOKIE_VARS' => NULL, 'HTTP_SERVER_VARS' => NULL, 'HTTP_ENV_VARS' => NULL, 'HTTP_POST_FILES' => NULL);

   // Loop through each input array
   @reset($test);
   while (list($input,) = @each($test))
   {
      while (list($var,) = @each($$input))
      {
         // Validate the variable to be unset
         if (!isset($test[$var]) && $var != 'test' && $var != 'input')
         {
            unset($$var);
         }
      }
   }
}
else if (@ini_get('register_globals') == '1' || strtolower(@ini_get('register_globals')) == 'on')
{
   // PHP4+ path
   
   // Not only will array_merge give a warning if a parameter
   // is not an array, it will actually fail. So we check if
   // HTTP_SESSION_VARS has been initialised.
   if (!isset($HTTP_SESSION_VARS))
   {
      $HTTP_SESSION_VARS = array();
   }

   // Merge all into one extremely huge array; unset
   // this later
   $input = array_merge($HTTP_GET_VARS, $HTTP_POST_VARS, $HTTP_COOKIE_VARS, $HTTP_SERVER_VARS, $HTTP_SESSION_VARS, $HTTP_ENV_VARS, $HTTP_POST_FILES);

   unset($input['input']);
   
   while (list($var,) = @each($input))
   {
      unset($$var);
   }
   
   unset($input);

}

//
// addslashes to vars if magic_quotes_gpc is off
// this is a security precaution to prevent someone
// trying to break out of a SQL statement.
//
if( !get_magic_quotes_gpc() )
{
	if( is_array($HTTP_GET_VARS) )
	{
		foreach($HTTP_GET_VARS as $k => $v)
		{
			if( is_array($HTTP_GET_VARS[$k]) )
			{
				foreach($HTTP_GET_VARS[$k] as $k2 => $v2)
				{
					$HTTP_GET_VARS[$k][$k2] = addslashes($v2);
				}
			}
			else
			{
				$HTTP_GET_VARS[$k] = addslashes($v);
			}
		}
	}

	if( is_array($HTTP_POST_VARS) )
	{
		foreach($HTTP_POST_VARS as $k => $v)
		{
			if( is_array($HTTP_POST_VARS[$k]) )
			{
				foreach($HTTP_POST_VARS[$k] as $k2 => $v2)
				{
					$HTTP_POST_VARS[$k][$k2] = addslashes($v2);
				}
			}
			else
			{
				$HTTP_POST_VARS[$k] = addslashes($v);
			}
		}
	}

	if( is_array($HTTP_COOKIE_VARS) )
	{
		foreach($HTTP_COOKIE_VARS as $k => $v)
		{
			if( is_array($HTTP_COOKIE_VARS[$k]) )
			{
				foreach($HTTP_COOKIE_VARS[$k] as $k2 => $v2)
				{
					$HTTP_COOKIE_VARS[$k][$k2] = addslashes($v2);
				}
			}
			else
			{
				$HTTP_COOKIE_VARS[$k] = addslashes($v);
			}
		}
	}
}

//
// Define some basic configuration arrays this also prevents
// malicious rewriting of language and otherarray values via
// URI params
//
$board_config = array();
$userdata = array();
$theme = array();
$images = array();
$lang = array();
$nav_links = array();
$gen_simple_header = FALSE;

include($phpbb_root_path . 'config.'.$phpEx);

if( !defined("PHPBB_INSTALLED") )
{
	header("Location: install/install.$phpEx");
	exit;
}

include($phpbb_root_path . 'includes/constants.'.$phpEx);
include($phpbb_root_path . 'includes/template.'.$phpEx);
include($phpbb_root_path . 'includes/sessions.'.$phpEx);
include($phpbb_root_path . 'includes/auth.'.$phpEx);
include($phpbb_root_path . 'includes/functions.'.$phpEx);
include($phpbb_root_path . 'includes/db.'.$phpEx);

//
// Obtain and encode users IP
//
// I'm removing HTTP_X_FORWARDED_FOR ... this may well cause other problems such as
// private range IP's appearing instead of the guilty routable IP, tough, don't
// even bother complaining ... go scream and shout at the idiots out there who feel
// "clever" is doing harm rather than good ... karma is a great thing ... :)
//
$client_ip = ( !empty($HTTP_SERVER_VARS['REMOTE_ADDR']) ) ? $HTTP_SERVER_VARS['REMOTE_ADDR'] : ( ( !empty($HTTP_ENV_VARS['REMOTE_ADDR']) ) ? $HTTP_ENV_VARS['REMOTE_ADDR'] : $REMOTE_ADDR );
$user_ip = encode_ip($client_ip);

//
// Setup forum wide options, if this fails
// then we output a CRITICAL_ERROR since
// basic forum information is not available
//
$sql = "SELECT *
	FROM " . CONFIG_TABLE;
if( !($result = $db->sql_query($sql)) )
{
	message_die(CRITICAL_ERROR, "Could not query config information", "", __LINE__, __FILE__, $sql);
}

while ( $row = $db->sql_fetchrow($result) )
{
	$board_config[$row['config_name']] = $row['config_value'];
}

include($phpbb_root_path . 'attach_mod/attachment_mod.'.$phpEx);

if (file_exists('install') || file_exists('contrib'))
{
	message_die(GENERAL_MESSAGE, 'Please ensure both the install/ and contrib/ directories are deleted');
}

//
// Show 'Board is disabled' message if needed.
//
if( $board_config['board_disable'] && !defined("IN_ADMIN") && !defined("IN_LOGIN") )
{
	message_die(GENERAL_MESSAGE, 'Board_disable', 'Information');
}

include_once($phpbb_root_path . 'includes/functions_stockmarket.'.$phpEx);
?>
您的第一行怎麼會跟第二行連在一塊呢?

代碼: 選擇全部

-----[OPEN]----------
rpg/dice.php

-----[FIND]----------
<?phpinclude($phpbb_root_path . 'rpg/function_rpg.'.$phpEx);if ( !defined('IN_PHPBB') ) 

-----[REPLACE]----------
<?php
include($phpbb_root_path . 'rpg/function_rpg.'.$phpEx);if ( !defined('IN_PHPBB') ) 
至於您的第二個問題, 我不大清楚您的意思.
施比受有福,祝福您好運! ^_^
歡迎光臨★★心靈捕手★★ :: 討論區
https://wang5555.dnsfor.me/phpBB3/
starfox0307
星球公民
星球公民
文章: 43
註冊時間: 2004-12-07 23:18

[問題] 有個小問題

文章 starfox0307 »

我裝上了 i-Cash Mod 貨幣系統和 i-Stock_Marke 0.80 虛擬股市
然後再加入了這版已整合包裝好的水怪\r
造成我在發文/回文時無法得到獎金(原本未裝水怪時是可以的)
不知道這個問題應該要如何解決呢?
水怪rpg是可以正常讀取到 i-Cash Mod 的幣值\r
但卻讓貨幣外掛的獎勵機制失效
很頭痛 不知道要改哪裡
想問有人知道要怎麼修正嗎?
Ricky Zero
星球公民
星球公民
文章: 60
註冊時間: 2003-08-25 15:53
來自: 哈哈哈王國
聯繫:

Re: [問題] 有個小問題

文章 Ricky Zero »

starfox0307 寫:我裝上了 i-Cash Mod 貨幣系統和 i-Stock_Marke 0.80 虛擬股市
然後再加入了這版已整合包裝好的水怪\r
造成我在發文/回文時無法得到獎金(原本未裝水怪時是可以的)
不知道這個問題應該要如何解決呢?
水怪rpg是可以正常讀取到 i-Cash Mod 的幣值\r
但卻讓貨幣外掛的獎勵機制失效
很頭痛 不知道要改哪裡
想問有人知道要怎麼修正嗎?
你應該是直接把安裝文件的內容貼上去置換吧\r
在function_post.php獎勵發文回覆及rpg加減的地方\r
要另外改過
因為語法不同的樣子

簡單說就是不能直接置換啦\r

今天晚上或是明天晚上我再把我改的貼上來好了
雖然目前看起來是沒問題的
也不知道對不對>"<

嫩腳咩~運氣的成份大於實力的成份
starfox0307
星球公民
星球公民
文章: 43
註冊時間: 2004-12-07 23:18

文章 starfox0307 »

感恩\r
等你的回文內容 = =+
nerosigma
星球普通子民
星球普通子民
文章: 1
註冊時間: 2005-11-16 00:26

文章 nerosigma »

我想知道增加sql.sql的資料是如何增加? 是不是在phpmyadmin逐一輸入? :roll:
DL
竹貓忠實會員
竹貓忠實會員
文章: 717
註冊時間: 2005-03-05 15:29

文章 DL »

因為你安裝了i-Cash Mod
應該不安裝i-Cash Mod
主題已鎖定

回到「外掛問題討論」