UltraBans - Lepší než KiwiAdmin + Web Banlist

Message
Autor
Uživatelský avatar
Vojko
Příspěvky: 3247
Věk: 28
Registrován: 24 dub 2011, 11:47
Reputation: 1
Bydliště: Slovensko, Bratislava

Re: UltraBans - Lepší než KiwiAdmin + Web Banlist

#21 Příspěvekod Vojko » 18 úno 2012, 23:32

Takže musíš upraviť toto:

Kód: Vybrat vše

   $server = "mysql.kx.cz";
   $dbuser = "kx_studiodgreen";
   $dbpass = "123";
   $dbname = "kx_studiodgreen";


na

Kód: Vybrat vše

   $server = "NazovServeru.fakaheda.eu";
   $dbuser = "gs_PortServeru_1";
   $dbpass = "heslo";
   $dbname = "gs_PortServeru_1";


Musíš si to zmeniť podľa seba, keďže neviem tvoj IP:Port
Malo by to vypadať takto, samozrejme ty si tam musíš zmeniť každý jeden údaj:

Kód: Vybrat vše

   $server = "xray.fakaheda.eu";
   $dbuser = "gs_27343_1";
   $dbpass = "HesloTiNedám";
   $dbname = "gs_27343_1";
Aj keď tu na fóre nie som aktívny, môžete mi písať na Skype, E-Mail, ...

l0l3ck0
Příspěvky: 28
Registrován: 21 led 2012, 20:19
Reputation: 0

Re: UltraBans - Lepší než KiwiAdmin + Web Banlist

#22 Příspěvekod l0l3ck0 » 19 úno 2012, 12:02

aha..

l0l3ck0
Příspěvky: 28
Registrován: 21 led 2012, 20:19
Reputation: 0

Re: UltraBans - Lepší než KiwiAdmin + Web Banlist

#23 Příspěvekod l0l3ck0 » 19 úno 2012, 12:05

a jake heslo ?

Uživatelský avatar
Vojko
Příspěvky: 3247
Věk: 28
Registrován: 24 dub 2011, 11:47
Reputation: 1
Bydliště: Slovensko, Bratislava

Re: UltraBans - Lepší než KiwiAdmin + Web Banlist

#24 Příspěvekod Vojko » 19 úno 2012, 12:08

No heslo k databáze.
O prístup do databáze musíš žiadať na sales@fakaheda.eu
Aj keď tu na fóre nie som aktívny, môžete mi písať na Skype, E-Mail, ...

l0l3ck0
Příspěvky: 28
Registrován: 21 led 2012, 20:19
Reputation: 0

Re: UltraBans - Lepší než KiwiAdmin + Web Banlist

#25 Příspěvekod l0l3ck0 » 19 úno 2012, 12:12

ted myslis webovou nebo serverovou ?

Uživatelský avatar
LavorekCZ
Příspěvky: 1805
Registrován: 20 lis 2011, 13:58
Reputation: 0
Kontaktovat uživatele:

Re: UltraBans - Lepší než KiwiAdmin + Web Banlist

#26 Příspěvekod LavorekCZ » 19 úno 2012, 12:14

Samozřejmě serverovou, jinak ti to nebude fungovat.
Pomohl ti někdo? Pak určitě bude rád, když mu zvedneš karmu!
not sure

l0l3ck0
Příspěvky: 28
Registrován: 21 led 2012, 20:19
Reputation: 0

Re: UltraBans - Lepší než KiwiAdmin + Web Banlist

#27 Příspěvekod l0l3ck0 » 19 úno 2012, 12:14

ok, takze du psat email.. :)

Freezy_CZ
Příspěvky: 265
Věk: 30
Registrován: 16 led 2012, 21:31
Reputation: 0

Re: UltraBans - Lepší než KiwiAdmin + Web Banlist

#28 Příspěvekod Freezy_CZ » 09 bře 2012, 17:01

xD jsem jeden stěch co to nepochopili nejde mi to :D :(
93.91.250.108:37064

wextercz
Příspěvky: 10
Registrován: 08 bře 2012, 14:09
Reputation: 0

Re: UltraBans - Lepší než KiwiAdmin + Web Banlist

#29 Příspěvekod wextercz » 15 bře 2012, 21:24

Pokud nechcete, aby se vám v php na webu zobrazovaly KICKy, tak použijte tuto verzi php kódu na vaše stránky. Samozřejmě doplňte vlastní přihlášení do Databáze

Pokud použijete tento kód, bude se zobrazovat vše kromě KICKů.

Kód: Vybrat vše

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<title>Ultra Banlist</title>
</head>
<body>
<h1>Ultra Banlist</h1>
<?php

// change these things

   $server = "matrix.fakaheda.eu";
   $dbuser = "user";
   $dbpass = "pass";
   $dbname = "name";
   
mysql_connect($server, $dbuser, $dbpass);
mysql_select_db($dbname);

$result = mysql_query("SELECT * FROM banlist ORDER BY id DESC");
//This will display the most recent by id edit this query how you see fit. Limit, Order, ect.
echo "<table width=100% border=1 cellpadding=3 cellspacing=0>";

echo "<tr style=\"font-weight:bold\">
<td>Type</td>
<td>Name</td>
<td>Reason</td>
<td>Admin/Mod</td>
<td>Time</td>
<td>TimeTempBan</td>
<td>id</td>

</tr>";

while($row = mysql_fetch_assoc($result)){

if($row['type'] == "3"){
}else{
if($col == "#eeeeee"){
$col = "#ffffff";
}else{
$col = "#eeeeee";
}
echo "<tr bgcolor=$col>";
if($row['type'] == "5"){
echo "<td>Unban</td>";
}else{
    if($row['type'] == "3"){
    echo "<td>Kick</td>";
    }else{
        if($row['type'] == "2"){
        echo "<td>Warn</td>";
        }else{
            if($row['type'] == "0"){
            echo "<td>Banned</td>";
            }else{
                if($row['type'] == "1"){
                echo "<td>IPBanned</td>";
                }else{
                    if($row['type'] == "4"){
                    echo "<td>Fine</td>";
                    }else{
                        if($row['type'] == "6"){
                        echo "<td>Jailed</td>";
                        }else{
                            if($row['type'] == "9"){
                            echo "<td>Perma</td>";
                            }else{
                            echo "<td>Unknown</td>";
//Holy Epic If Statement Batman!
                            }
                        }
                    }
                }
            }
        }
    }
}
echo "<td>".$row['name']."</td>";
echo "<td>".$row['reason']."</td>";
echo "<td>".$row['admin']."</td>";
//Convert Epoch Time to Standard format
$datetime = date("F j, Y, g:i a", $row['time']);
echo "<td>$datetime</td>";
$dateconvert = date("F j, Y, g:i a", $row['temptime']); 
if($row['temptime'] == "0"){
echo "<td>None</td>";
}else{
echo "<td>$dateconvert</td>";
}
echo "<td>".$row['id']."</td>";

echo "</tr>";
}

}



echo"</table>"

?>
</div>
Databáze Banů pro server Wexter Lair
</body></html>


Pokud použijete tento kód, budou se zobrazovat pouze BANy a UNBANy.

Kód: Vybrat vše

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<title>Ultra Banlist</title>
</head>
<body>
<h1>Ultra Banlist</h1>
<?php

// change these things

   $server = "matrix.fakaheda.eu";
   $dbuser = "user";
   $dbpass = "pass";
   $dbname = "name";
   
mysql_connect($server, $dbuser, $dbpass);
mysql_select_db($dbname);

$result = mysql_query("SELECT * FROM banlist ORDER BY id DESC");
//This will display the most recent by id edit this query how you see fit. Limit, Order, ect.
echo "<table width=100% border=1 cellpadding=3 cellspacing=0>";

echo "<tr style=\"font-weight:bold\">
<td>Type</td>
<td>Name</td>
<td>Reason</td>
<td>Admin/Mod</td>
<td>Time</td>
<td>TimeTempBan</td>
<td>id</td>

</tr>";

while($row = mysql_fetch_assoc($result)){

if($row['type'] == "3" || $row['type'] == "2" || $row['type'] == "4" || $row['type'] == "6" || $row['type'] == "9"){
}else{
if($col == "#eeeeee"){
$col = "#ffffff";
}else{
$col = "#eeeeee";
}
echo "<tr bgcolor=$col>";
if($row['type'] == "5"){
echo "<td>Unban</td>";
}else{
    if($row['type'] == "3"){
    echo "<td>Kick</td>";
    }else{
        if($row['type'] == "2"){
        echo "<td>Warn</td>";
        }else{
            if($row['type'] == "0"){
            echo "<td>Banned</td>";
            }else{
                if($row['type'] == "1"){
                echo "<td>IPBanned</td>";
                }else{
                    if($row['type'] == "4"){
                    echo "<td>Fine</td>";
                    }else{
                        if($row['type'] == "6"){
                        echo "<td>Jailed</td>";
                        }else{
                            if($row['type'] == "9"){
                            echo "<td>Perma</td>";
                            }else{
                            echo "<td>Unknown</td>";
//Holy Epic If Statement Batman!
                            }
                        }
                    }
                }
            }
        }
    }
}
echo "<td>".$row['name']."</td>";
echo "<td>".$row['reason']."</td>";
echo "<td>".$row['admin']."</td>";
//Convert Epoch Time to Standard format
$datetime = date("F j, Y, g:i a", $row['time']);
echo "<td>$datetime</td>";
$dateconvert = date("F j, Y, g:i a", $row['temptime']); 
if($row['temptime'] == "0"){
echo "<td>None</td>";
}else{
echo "<td>$dateconvert</td>";
}
echo "<td>".$row['id']."</td>";

echo "</tr>";
}

}



echo"</table>"

?>
</div>
Databáze Banů pro server Wexter Lair
</body></html>


Chytřejším docvakne ta souvislost a tak si to můžou upravit sami :)

TommysCZ
Příspěvky: 7
Registrován: 28 bře 2012, 12:44
Reputation: 0

Re: UltraBans - Lepší než KiwiAdmin + Web Banlist

#30 Příspěvekod TommysCZ » 28 bře 2012, 12:50

Ahoj, viděl jsem váš návod ( fakt suprovej,chválím jde vidět že jsi ten dotyčnej dal na tom záležet ) ale mám takovej problém.
Ten banlist.php - FUNGUJE BEZ PROBLEMU
plugins/ultraban/config.yml - nastavil jsem to jak to má být ale napíšu ve hře např./ban a napíše mi to Iternal error ...
IP serveru: 93.91.250.109:27807
Tady je muj config.yml v plugin/ultraban


#Change to MySQL for mysql support#
#Change to SQLite for sqlite support#
Database: MySQL
mysql-database: 'jdbc:mysql://93.91.250.109:3306/gs_27807_1'
mysql-user: 'gs_27807_1'
mysql-password: '---'
#Change these if you want to load or create different databases#
#First load will create these databases#
mysql-table: banlist
mysql-table-ip: banlistip
#SQLite Information#
sqlite-dbname: banlist
#parameters#
auto-complete: true
#Ultraban requires Vault for the Command /fine#
#Disable this if you don't not want to use fines#
#Or would rather not use the Vault Library#
#Command Checks#
useFine: true
useJail: true
useLockdown: true
useStarve: true
useForceRespawn: true
useEmpty: true
usePermaban: true
useWarn: true
useRules: true
#change to true or false to enable lockdown#
#also can be done ingame /lockdown#
lockdown: false

messages:
banMsgFailed: '&c%victim% &8is already banned!'
unbanMsg: '&8Successfully unbanned &c%victim%&8!'
unbanMsgBroadcast: '&c%victim% &8was unbanned by &9%admin%&8!'
unbanMsgFailed: '&c%victim% &8is already unbanned!'
kickAllMsg: '%admin% kicked everyone. Reason: %reason%!'
kickMsgVictim: 'You have been kicked by %admin%. Reason: %reason%!'
kickMsgBroadcast: '&c%victim% &8was kicked by &9%admin%&8. Reason: &c%reason%!'
kickMsgFailed: '&8Kick failed: &8%victim% &8isn''t online.'
banMsgVictim: 'You have been banned by %admin%. Reason: %reason%!'
banMsgBroadcast: '&c%victim% &8was banned by &9%admin%&8. Reason: &c%reason%!'
permbanMsgVictim: 'You have been permabanned by %admin%. Reason: %reason%!'
permbanMsgBroadcast: '&c%victim% &8has been permabanned by &9%admin%&8. Reason: &c%reason%!'
tempbanMsgVictim: 'You have been temp. banned by %admin%. Reason: %reason%!'
tempbanMsgBroadcast: '&c%victim% &8was temp. banned by &9%admin%&8. Reason: &c%reason%!'
LoginTempban: '&8You are banned until &c%time%&8! Reason: &c%reason%!'
LoginBan: '&8You are banned from this server! Reason: &c%reason%!'
LoginIPBan: 'Your IP is banned!'
fineMsgVictim: 'You have been fined by %admin% in the amount of %amt%!'
fineMsgBroadcast: '&c%victim% &8was fined by &9%admin%&8 in the amount of &c%amt%!'
emptyMsgVictim: '&9%admin% has cleared your inventory!'
emptyMsgBroadcast: '&9%admin% has cleared the inventory of &c%victim%!'
starveMsgVictim: '&8You are now starving!'
starveMsgBroadcast: '&c%victim% is now starving!'
fspawnMsgVictim: '&8You have been sent to spawn!'
fspawnMsgBroadcast: '&c%victim% &8is now at spawn!'
jailMsgVictim: '&8You have been jailed by &9%admin%&8. Reason: &c%reason%!'
jailMsgRelease: '&c%victim% &8was released from jail by &9%admin%&8!'
jailMsgBroadcast: '&c%victim% &8was jailed by &9%admin%&8. Reason: &c%reason%!'
warnMsgVictim: '&8You have been warned by &9%admin%&8. Reason: &c%reason%!'
warnMsgBroadcast: '&c%victim% &8was warned by &9%admin%&8. Reason: &c%reason%!'
lockMsgLogin: 'Server is under a lockdown, Try again later! Sorry.'
jailCmdMsg: 'You cannot use commands while jailed!'
jailChatMsg: 'Your cry falls on deaf ears.'
jailPlaceMsg: 'You cannot place blocks while you are jailed!'
jailBreakMsg: 'You cannot break blocks while you are jailed!'
muteChatMsg: 'You have been muted!'
unmuteMsgVictim: 'You have been unmuted.'
unmuteMsg: 'You have unmuted %victim%.'

ruleMsg: '&9The Servers Rules Are As Follows!'
#Adjust as you see fit or set ingame.#
rules:
one:
two:
three:
four:
five:
six:
seven:
eight:
nine:
ten:
#Do Not Change Values Below#
jail:
x: 0
y: 0
z: 0
yaw: 0
pitch: 0

Prosím za vyjádření se,díky.


Zpět na „Návody“

Kdo je online

Uživatelé prohlížející si toto fórum: Žádní registrovaní uživatelé a 4 hosti