Stránka 1 z 2

Ban list to WEB

Napsal: 05 bře 2012, 22:13
od Freezy_CZ
Podpis
Cs, :D zase se na něco ptam :D
Přes co a jak mam udělat Banlist na web 100 % je připojeni přes MYSQL databazi ale nevim jestly se to děla přes něaky plugin nebo jak se to děla :D myslim tehle banlist http://mcpublic.g6.cz/banlist.php

Re: Ban list to WEB

Napsal: 05 bře 2012, 22:14
od bagr
máš to v návodech viewtopic.php?f=85&t=3492

Re: Ban list to WEB

Napsal: 05 bře 2012, 22:19
od Freezy_CZ
kouknu kdš my to nepude jěště napišu kdyš jo tak maš + karmu :)

//edit LOCK vyřešeno jen schazi PermissionEX :)

Re: Ban list to WEB

Napsal: 06 bře 2012, 19:09
od Freezy_CZ
Tak nevyřešeno banlist nefunguje dal jsem ban a nezapsalo ho to tam

Re: Ban list to WEB

Napsal: 06 bře 2012, 19:18
od Vojko
Skopíruj sem obsah configu a banlist.php.

Re: Ban list to WEB

Napsal: 06 bře 2012, 19:25
od Freezy_CZ

Kód: Vybrat vše

mysql: true
mysql-database: 'jdbc:mysql://localhost:3306/gs_37064_1'
mysql-user: 'gs_37064_1'
mysql-password: 'NEDAM'
mysql-table: banlist
mysql-table-ip: banlistip
auto-complete: true

messages:
    banMsgFailed: "&cHrac &e%victim% &cuz dostal ban!"
    unbanMsg: "&aUspesne jsi unbanoval hrace &e%victim%&a!"
    unbanMsgGlobal: "&e%victim% &6dostal unban od admina &e%player%&6!"
    unbanMsgFailed: "&cFailed to unban &e%victim%&c!"
    kickAllMsg: "%player% kicked everyone. Reason: %reason%"
    kickMsgVictim: "Byl jsi vykopnut adminem %player%. Duvod: %reason%"
    kickMsgBroadcast: "&e%victim% &6byl vykopnut adminem &e%player%&6. Duvod: &e%reason%"
    kickMsgFailed: "&cKick failed: &6%victim% &cisn't online."
    banMsgVictim: "Byl jsi zabanovan adminem %player%. Duvod: %reason%"
    banMsgBroadcast: "&e%victim% &6byl zabanovan adminem &e%player%&6. Duvod: &e%reason%"
    tempbanMsgVictim: "Byl jsi docasne zabanovan adminem %player%. Duvod: %reason%"
    tempbanMsgBroadcast: "&e%victim% &6byl docasne zabanovan adminem &e%player%&6. Duvod: &e%reason%"
    LoginTempban: "&cJsi zabanovany do &e%time%&c! Duvod: &e%reason%"
    LoginBan: "&cJsi zabanovany na tomto serveru! Duvod: &e%reason%"
    LoginIPBan: "&cVase IP Adresa je zabanovana!"


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 = "http://bruce.fakaheda.eu/phpmyadmin";
   $dbuser = "gs_37064_1";
   $dbpass = "NEDAM";
   $dbname = "gs_37064_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>

Re: Ban list to WEB

Napsal: 06 bře 2012, 19:26
od Vojko
Uprav na toto:

Kód: Vybrat vše

   $server = "bruce.fakaheda.eu";

Re: Ban list to WEB

Napsal: 06 bře 2012, 19:27
od Freezy_CZ
už to vidim

//editi dva :D

Re: Ban list to WEB

Napsal: 06 bře 2012, 19:33
od Freezy_CZ
nejde :(
pojd dam ti ban a uvidis ze tam nejsy :D http://minicraft.xf.cz/banlist.php

Re: Ban list to WEB

Napsal: 06 bře 2012, 19:41
od LavorekCZ
Vytvořil si ty tabulky v MySQL ? server.log prosím...