(只適合對PHP和MySQL有深入了解的玩家使用,安裝前請先備份所有檔案...)
功能介紹:
在Admin Panel可新增/修改裝備,修改玩家資料和裝備,修改組織各種資料,檢視個別/全部玩家狀狀態等,限時禁用玩家帳號,凍結帳號,禁言等,檢視聊天記錄...
在聊天室支援密談,組頻等功能..
檔案說明:
acpleft.php
控制台的左手邊按鍵.
acpmain.php
控制台的核心
login.php
登入控制台的版面
admin_chat.php
系統控制台專用的聊天介面
wog_chat.php
一般玩家專用的聊天介面
wog_chat_write.php
顯示聊天板的介面...
wog_chat.txt
聊天板,你可以自行改變名稱,但必須同時修改acpmain.php, wog_chat.php, wog_chat_write.php, 必須放在wog的目錄內,權限為777
wog_chat_history.txt
聊天板記錄,你可以自行改變名稱,但必須同時修改acpmain.php, wog_chat.php 必須放在wog的目錄內,權限為777
安裝步驟:
MySQL:
在wog_player加入欄位
p_lock_time <--- 判斷玩家是否被暫時停權
p_chatban <--- 判斷玩家是否被禁言
p_chatbanby <--- 判斷玩家被誰禁言
p_userlv <--- 判斷玩家權限,0為一般玩家,1為系統管理員,2為Gamemaster
- 代碼: 選擇全部
===== OPEN wog_etc.php =====
===== FIND =====
case "peo":
peo_view($HTTP_COOKIE_VARS["wog_cookie"]);
break;
===== AFTER ADD =====
case "adpeo":
adpeo_view($HTTP_COOKIE_VARS["wog_cookie"]);
break;
===== FIND =====
while($onlines=$DB_site->fetch_array($online))
{
$temp_s.=";".$onlines[0].",".$onlines[1].",".$onlines[2].",".$onlines[3].",".$onlines[4];
}
$DB_site->free_result($online);
unset($onlines);
$temp_s=substr($temp_s,1,strlen($temp_s));
showscript("parent.onlinelist('$temp_s')");
unset($temp_s);
}
===== AFTER ADD =====
//######################## adpeo begin ##############################
function adpeo_view($userid)
{
global $DB_site,$wog_arry;
phpbb_check();
if(!empty($userid))
{
$DB_site->query("update wog_player set p_online_time=".time()." where p_id=".$userid." ");
}
$datecut = time() - $wog_arry["offline_time"];
$online=$DB_site->query("select p_name,p_sex,p_lv,p_chatban,p_userlv from wog_player where p_online_time > $datecut");
$temp_s="";
$totalonline = 0;
while($onlines=$DB_site->fetch_array($online))
{
//$temp_s.="Name=".$onlines[0].",Sex:".$onlines[1].",Lv:".$onlines[2].",PK:".$onlines[3].",PK Money:".$onlines[4]."<BR>";
if ($onlines[3]== 1){
$tempstr = "Yes";
}else{
$tempstr = "No";
}
if ($onlines[4]== 1){
$tempstr1 = "<font color='#ffa34f'>SA</font>";
}elseif($onlines[4]== 2){
$tempstr1 = "<font color='#fc010d'>GM</font>";
}elseif($onlines[4]== 0){
$tempstr1 = "<font color='#006600'>NM</font>";}
if ($onlines[1]== 1){
$totalonline = $totalonline + 1;
$temp_s.="<tr><td><B><font color='#66ccff'>".$onlines[0]."</font></B></td><td>".$onlines[2]."</td><td>".$tempstr."</td><td>".$tempstr1."</td><tr>";
}else{
$totalonline = $totalonline + 1;
$temp_s.="<tr><td><B><font color='#ff99cc'>".$onlines[0]."</font></B></td><td>".$onlines[2]."</td><td>".$tempstr."</td><td>".$tempstr1."</td><tr>";
}
}
$DB_site->free_result($online);
unset($onlines);
echo ("<META HTTP-EQUIV='Refresh' CONTENT=25 src='wog_etc.php?f=adpeo'>");
echo ("<body bgcolor='Black' leftmargin='0' topmargin='0' text='#FFFFFF'>");
echo ("<table width='97%' border='1' cellspacing='0' cellpadding='2' align='center' bordercolor='#4B689E'><tr>");
echo ("<tr bgcolor='#2B4686'><td>名稱</td><td>LV</td><td>禁言</td><td>權限</td></tr>");
echo $temp_s;
echo ("<tr><td colspan='4' bgcolor='#2B4686'>現在有".$totalonline."人上線</td></tr>");
echo ("</table>");
echo ("<BR><i><font color='#ffa34f'>System Administrator(SA):系統管理員</font><BR><font color='#fc010d'>Game Master(GM): 遊戲操作員</font><BR><font color='#006600'>Normal Member(NM):一般會員</font></i>");
unset($temp_s);
}
===Save Exit====
===== OPEN wog_act.php =====
=====in function login, FIND =====
$p=$DB_site->query_first("select p_id,p_name,p_lock
===== AFTER ADD =====
,p_lock_time
===== FIND =====
if($p[p_lock]==1)
{
alertWindowMsg("你被凍結了");
exit();
}
===== AFTER ADD =====
if ($p[p_lock_time] !=0 and $p[p_lock_time] > time()){
alertWindowMsg("由於你的行為欠佳,系統管理員將暫時封閉你的帳號直至".date("Y,Md h:i a",$p[p_lock_time]));
}
===== FIND =====
setcookie("wog_bbs_id",$bbs_id);
===== AFTER ADD =====
echo "<script>parent.frames['chat'].location.href=\"wog_only_talk.php?name=".$p[p_name]."&password=".htmlspecialchars(trim($_POST["pass"]))."\";\n</script>";
===== in function chara_save =====
===== FIND =====
setcookie("wog_bbs_id",$bbs_id);
===== AFTER ADD =====
echo "<script>parent.frames['chat'].location.href=\"wog_only_talk.php?name=".htmlspecialchars(trim($_POST["id"]))."&password=".htmlspecialchars(trim($_POST["pass"]))."\";\n</script>";
===== SAVE and CLOSE =====
===== Open index.html ======
===== FIND =====
<frame src="wog_foot.htm" name="foot" id="foot" frameborder="0" scrolling="Auto" noresize marginwidth="0" marginheight="0">
</frameset>
</frameset>
</html>
===== REPLACE TO ======
<frame src="wog_foot.htm" name="foot" id="foot" frameborder="0" scrolling="Auto" noresize marginwidth="0" marginheight="0">
<frameset rows="*" border="0">
<frame src="" name="chat" frameborder="0" scrolling="Auto" noresize marginwidth="0" marginheight="0">
</frameset>
</frameset>
</frameset>
</html>
===== SAVE and CLOSE =====
己停止發放及更新.
download完後請回覆此文章,並留o下wog的網址和email我會寄上解壓密碼及將來的修正檔.