PHP 警告: モジュール 'apcu' は、行 0 の Unknown に既にロードされています PHP 通知: 未定義の変数: main_content の /var/www/html/system/pages/bounty.php 行 5 PHP 通知: 未定義の変数: /var/ の構成www/html/system/pages/bounty.php on line 44 PHP Notice: 行 44 の /var/www/html/system/pages/bounty.php の null 型の値の配列オフセットにアクセスしようとしています PHP Notice: Trying to /var/www/html/system/pages/bounty.php の 44 行目の null 型の値の配列オフセットにアクセスします。
<?php
@mysqli_connect("localhost","newuser","password");
@mysqli_select_db("ots");
$main_content .= '<P ALIGN=CENTER>
<br>
<FONT SIZE=5 COLOR=#CFF00C>
How to use...
</FONT>
<br>
<br>
<FONT SIZE=2 COLOR=#CFF00C>
* !hunt [prize],[nick] :
<FONT SIZE=1 COLOR=#FCC33F>
Wysyla ogloszenie o huncie dla postaci. Cena w tysiacach.<br>
Przyklad: !hunt 100,Infinity
</FONT><br>
</FONT>
</P>
<br>
<br>
<center>
<h1>
Bounty Hunters
</h1>
</center>
<TABLE BORDER=0 CELLSPACING=1 CELLPADDING=4 WIDTH=100%>
<TR BGCOLOR="#505050">
<TD CLASS=white width=30%>
<center><B>Zlecil</B></center>
</TD>
<TD CLASS=white width=30%>
<center><B>Nagroda</B></center>
</TD>
<TD CLASS=white width=30%>
<center><B>Ofiara</B></center>
</TD>
<TD CLASS=white width=10%>
<center><B>Zabity przez</B></center>
</TD>
</TR>';
$inv = @mysqli_query("SELECT * FROM `bounty_hunters` ORDER BY `added` DESC");
$num = 0;
$color=$config['site']['darkborder'];
while($tab = @mysqli_fetch_array($inv)){
if($num%2 == 0){$color=$config['site']['darkborder'];}else{$color=$config['site']['lightborder'];}
$pid = $tab['fp_id'];
$sid = $tab['sp_id'];
$kid = $tab['k_id'];
$killed = $tab['killed'];
$prize = $tab['prize']*1000;
if($killed == 0){
$kill = '<font color="red">Nobody!</font>';
}else{
$k = @mysqli_query("SELECT * FROM `players` WHERE `id` = ".$kid."");
$k1 = @mysqli_fetch_array($k);
$kill_name = $k1['name'];
$kill = '<a href="index.php?subtopic=characters&name='.$kill_name.'">'.$kill_name.'</a>';
}
$f = @mysqli_query("SELECT * FROM `players` WHERE `id` = ".$pid."");
$f1 = @mysqli_fetch_array($f);
$s = @mysqli_query("SELECT * FROM `players` WHERE `id` = ".$sid."");
$s1 = @mysqli_fetch_array($s);
$fn = $f1['name'];
$sn = $s1['name'];
$main_content .= '
<TR BGCOLOR="'.$color.'">
<TD>
<center>
<b>
<a href="index.php?subtopic=characters&name='.$fn.'">'.$fn.'</a>
</b>
</center>
</TD>
<TD>
<center>
<b>
'.$prize.' gp
</b>
</center>
</TD>
<TD>
<center>
<b>
<a href="index.php?subtopic=characters&name='.$sn.'">'.$sn.'</a>
</b>
</center>
</TD>
<TD>
<center>
<b>
'.$kill.'
</b>
</center>
</TD>
</TR>';
$num++;
}
if($num == 0){
$main_content.='<TR BGCOLOR="'.$color.'">
<TD colspan=4>
<center>
Currently there are not any bounty hunter offer.
</center>
</TD>
</TR>';
}
$main_content .='</TABLE><div align="right"></a>.</div>';
?>