Banlist na web - KiwiAdmin - Navody Precteny ale nejde
Napsal: 31 pro 2011, 19:02
27322
Zdravim , potrebuji pomoc s banlistem na web , php fusion , delal sem vse podle navodu ale proste nejde ;( , moc vas prosim o pomoc , kamos rikal ze endora ( hosting ) nepodporuje vlastni kodovani ASCII X8 , nevim jestli je to pravda , doposud se mi povedlo s banlistem jen toto http://mserver.hys.cz/banlist.php vsude sou warningy a ta stranka se strasne dlouho nacita , takze fakt nevim
prosim o pomoc - posilam configy
Zdravim , potrebuji pomoc s banlistem na web , php fusion , delal sem vse podle navodu ale proste nejde ;( , moc vas prosim o pomoc , kamos rikal ze endora ( hosting ) nepodporuje vlastni kodovani ASCII X8 , nevim jestli je to pravda , doposud se mi povedlo s banlistem jen toto http://mserver.hys.cz/banlist.php vsude sou warningy a ta stranka se strasne dlouho nacita , takze fakt nevim

Config.yml - KiwiAdmin
Kód: Vybrat vše
mysql: true
mysql-database: 'jdbc:mysql://localhost:3306/gs_27322_1'
mysql-user: 'gs_27322_1'
mysql-password: 'heslo'
mysql-table: banlist
mysql-table-ip: banlistip
auto-complete: true
messages:
banMsgFailed: "&cPlayer &e%victim% &cis already banned!"
unbanMsg: "&aSuccessfully unbanned player &e%victim%&a!"
unbanMsgGlobal: "&e%victim% &6was unbanned by &e%player%&6!"
unbanMsgFailed: "&cFailed to unban &e%victim%&c!"
kickAllMsg: "%player% kicked everyone. Reason: %reason%"
kickMsgVictim: "You have been kicked by %player%. Reason: %reason%"
kickMsgBroadcast: "&e%victim% &6was kicked by &e%player%&6. Reason: &e%reason%"
kickMsgFailed: "&cKick failed: &6%victim% &cisn't online."
banMsgVictim: "You have been banned by %player%. Reason: %reason%"
banMsgBroadcast: "&e%victim% &6was banned by &e%player%&6. Reason: &e%reason%"
tempbanMsgVictim: "You have been temp. banned by %player%. Reason: %reason%"
tempbanMsgBroadcast: "&e%victim% &6was temp. banned by &e%player%&6. Reason: &e%reason%"
LoginTempban: "&cYou are banned until &e%time%&c! Reason: &e%reason%"
LoginBan: "&cYou are banned from this server! Reason: &e%reason%"
LoginIPBan: "&cThis IP is banned!"
banlist.php
Kód: Vybrat vše
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<body>
<?php
// change these things
$server = "sierra.fakaheda.eu";
$dbuser = "gs_27322_1";
$dbpass = "heslo";
$dbname = "gs_27322_1";
mysql_connect($server, $dbuser, $dbpass);
mysql_select_db($dbname);
$result = mysql_query("SELECT * FROM banlist ORDER BY time DESC");
echo "<table width=70% border=1 cellpadding=5 cellspacing=0>";
echo "<tr style=\"font-weight:bold\">
<td>Prezdivka hrace</td>
<td>Duvod zabanovani</td>
<td>Zabanovan Adminem</td>
<td>Kdy byl ban udelen</td>
<td>Kdy ban vyprsi</td>
</tr>";
while($row = mysql_fetch_assoc($result)){
if($col == "#eeeeee"){
$col = "#ffffff";
}else{
$col = "#eeeeee";
}
echo "<tr bgcolor=$col>";
echo "<td>".$row['name']."</td>";
echo "<td>".$row['reason']."</td>";
echo "<td>".$row['admin']."</td>";
echo "<td>".$row['time']."</td>";
if($row['temptime'] == "0000-00-00 00:00:00"){
echo "<td>Permanent</td>";
}else{
echo "<td>".$row['temptime']."</td>";
}
echo "</tr>";
}
echo"</table>"
?>
Ban database provided by <a href="http://forums.bukkit.org/threads/admn-kiwiadmin-v2-0-kick-temp-ban-unban-mysql-and-flatfile-670.1681/">KiwiAdmin</a>.
</body></html>