有人答我嗎
是重生每一次就加附加等級 wog_act_rebirth.php
wog_act_config.php
以下不一定可行,因為未試驗
最後由 poil 於 2006-04-19 3:43 am 編輯,總共編輯了 2 次。
以下是我進行線上名單顯示後出現問題
線上名單顯示重生次數 尋找 代碼: p_place 後面加上 代碼: ,p_rebirth 尋找 代碼: $onlines[7] 後面加上 代碼: .",".$onlines[8] function peo_view($userid) { global $DB_site,$wog_arry; $p_ip=get_ip(); phpbb_check($p_ip);// phpbb論壇專用 $datecut = time() - $wog_arry["offline_time"]; $show_ip = false; if(!empty($userid) && $userid != 0) { $p=$DB_site->query_first("select pe_dateline from wog_pet where pe_p_id='".$userid."'"); if($p) { if(time()-$p["pe_dateline"] > $wog_arry["pet_fu_time"]*60) { $DB_site->query("update wog_pet set pe_dateline=".time().",pe_he=pe_he-1,pe_fu=pe_fu-".rand(5,18).",pe_hu=pe_hu+1 where pe_p_id=".$userid." and pe_st=0 "); } } if($userid!=300) { if($p=$DB_site->query_first("SELECT a.p_online_time,a.p_name,a.p_ip,a.p_st,COUNT(b.p_id) as num_online FROM wog_player a LEFT JOIN wog_player b ON b.p_ip LIKE '".get_ip()."' AND b.p_online_time > $datecut WHERE a.p_id=$userid GROUP BY b.p_ip")) { //if($p=$DB_site->query_first("SELECT a.p_online_time,a.p_name,a.p_ip,a.p_st FROM wog_player a // WHERE a.p_id=$userid")) { if($p["p_online_time"] < $datecut) { // 閒設太久要被登出 $filename="/home/web/apache/htdocs/wog/chatlog/chatlog".date("ymda",time()+$wog_arry["server_time_offset"]).".txt"; $fp=fopen($filename,"a"); $word_say=date("H:i:s",time()+$wog_arry["server_time_offset"])."&&".$p["p_name"]."&&0&&".get_ip()."&&&&1&&閒設太久登出了&&\n"; while(!is_writeable($filename)){ } fputs($fp,$word_say); fclose($fp); setcookie("wog_cookie",""); setcookie("wog_cookie_name",""); setcookie("wog_bbs_id",""); showscript("parent.document.URL='".$wog_arry["logout_url"]."';"); } if($p["p_st"]==1) { $show_ip = true; } if($p["p_ip"] != $p_ip) { $DB_site->query("UPDATE wog_player SET p_ip='$p_ip' WHERE p_id=$userid"); } if($p["num_online"]>2) { AddName ($p["p_name"],4320,"於 $p_ip 重覆登入了 ".$p["num_online"]." 個帳號 by 系統","list-ban.txt"); //AddName ($p_ip.",IP",1440,"重覆登入了 ".$p["num_online"]." 個帳號 by 系統","list-ban.txt"); // 重覆登入要被登出 $DB_site->query("update wog_player set p_online_time=".(time() - $wog_arry["offline_time"])." WHERE p_id=".$userid); $filename="/home/web/apache/htdocs/wog/chatlog/chatlog".date("ymda",time()+$wog_arry["server_time_offset"]).".txt"; $fp=fopen($filename,"a"); $word_say=date("H:i:s",time()+$wog_arry["server_time_offset"])."&&".$p["p_name"]."&&0&&".$p["p_ip"]."->".get_ip()."&&&&1&&因為 IP 登入超過 2 個帳號而被系統踢飛及放遂了&&\n"; //$word_say=date("H:i:s",time()+$wog_arry["server_time_offset"])."&&".$p["p_name"]."&&0&&".$p["p_ip"]."->".get_ip()."&&&&1&&IP轉換了&&\n"; while(!is_writeable($filename)){ } fputs($fp,$word_say); fclose($fp); setcookie("wog_cookie",""); setcookie("wog_cookie_name",""); setcookie("wog_bbs_id",""); showscript("alert('你的 IP 登入超過限制,請先登出別的帳號再登入');parent.document.URL='".$wog_arry["logout_url"]."';"); } } } else { $show_ip = true; } } $online=$DB_site->query("SELECT a.p_name,a.p_sex,a.p_lv,a.p_pk_s,a.p_pk_money,a.p_place,a.p_rebirth,a.p_ip,COUNT(b.p_id) as num_online FROM wog_player a LEFT JOIN wog_player b ON b.p_ip LIKE a.p_ip AND b.p_online_time > $datecut WHERE a.p_online_time > $datecut GROUP BY a.p_id ORDER BY a.p_place DESC, a.p_lv DESC"); $temp_s=""; while($onlines=$DB_site->fetch_array($online)) { $temp_s.=";".$onlines[0].",".$onlines[1].",".$onlines[2].",".$onlines[3].",".$onlines[4].",".$onlines[5]; if($show_ip==true) { $temp_s.=",".$onlines[6]." (x".$onlines[7].",".$onlines[8].")"; } } $DB_site->free_result($online); unset($onlines); $temp_s=substr($temp_s,1,strlen($temp_s)); showscript("parent.onlinelist('$temp_s')"); unset($temp_s); } wog.js 尋找 代碼: <td >LV</td> 後面加上 代碼: <td>重生次數</td> 尋找 代碼: <font color=green>'+s2[0]+'</font></b></a></td><td >'+s2[2]+'</td> 後面加上 代碼: <td >'+s2[7]+'</td> 尋找 代碼: <font color="'+fcolor+'">'+s2[0]+'</font></b></a></td><td >'+s2[2]+'</td> 後面加上 代碼: <td >'+s2[7]+'</td> function onlinelist中 尋找所有的 代碼: colspan="3" 全部替換成 代碼: colspan="4" //########## online peo begin ########### function onlinelist(peo) { var peo_name=parent.wog_peo; message_cls(peo_name,0); peo_name.document.write(online_temp_table1); var c_place=0; var c_ppl=0; if(peo!="") { peo_name.document.write('<tr class="heading"><td>名稱</td><td>LV</td><td>重生次數</td><td>PK</td></tr>\n'); var s1=peo.split(";"); for(var i=0;i<s1.length;i++) { var s2=s1[i].split(","); if (c_place==0) { c_place = s2[5]; } if (c_place==s2[5]) { c_ppl++; } else { peo_name.document.write('<tr><td class="heading" colspan="4">↑'+c_ppl+' 人在 '+c_place+' 樓↑</td></tr>\n'); c_place=s2[5]; c_ppl=1; } var fcolor=psex(s2[1]); (s2[3]==1)?s2[3]="Y":s2[3]="N"; peo_name.document.write('<tr><td><a href=javascript:parent.yesname("'+s2[0]+'") target="foot" title="'); if (s2[5]==0) { peo_name.document.write('未開始練功'); } else { peo_name.document.write('正在'+s2[5]+'樓'); } peo_name.document.write('"><font color="'+fcolor+'">'+s2[0]+'</font></a></td>'); if (s2.length>6) { peo_name.document.write('<td style="font-size:8pt;"><a title="IP:'+s2[6]+'">'+s2[2]+'</a></td>'); } else { peo_name.document.write('<td style="font-size:8pt;">'+s2[2]+'</td>'); } peo_name.document.write('<td style="font-size:8pt;">'+s2[7]+'</td>'); peo_name.document.write('<td style="font-size:8pt;"><a href=javascript:parent.yesname("'+s2[0]+'") target="foot" title="PK金額:'+s2[4]+'">'+s2[3]+'</a></td></tr>\n'); } peo_name.document.write('<tr><td class="heading" colspan="4"><a href="http://www.adlandpro.com/partner.asp?ref=202547&pg=main" target="_blank">線上人數 '+s1.length+' 人</a></td></tr>\n'); }else { peo_name.document.write('<tr><td class="heading" colspan="4"><a href="http://www.adlandpro.com/partner.asp?ref=202547&pg=main" target="_blank">線上人數 0 人</a></td></tr>\n'); } peo_name.document.write(temp_table2); }
看到眼花=o="(希望樓上加上code).但我裝上是沒問題的@@"
試試留意每一字眼@@"...我有空看看=V= http://lts.sytes.net
失敗的我..................
請問大大可不可以告訴我在那裡和那一句下加這些句子,我不是太明白在那裡改 先謝謝大大的幫忙!
|
正在瀏覽這個版面的使用者:沒有註冊會員 和 7 位訪客