A tool would be great that a server admin can give to his GMs which works this way:
1) I can define my own mysql server ip, port, and password into the program.
2) It must be made in a way so that he cannot see the pass and all this to the database...
3) He clicks a button called Refresh Admin Rights (or something like this).
4) The program finds his IP address and updates the database of server with his new IP.
5) Now the program does "/reload a"
This way if you have GM who have different IP each day they can fix it themselves while you are asleep :P.
I'm not really good at making things like this so I have to request it. I can provide English and Spanish translation.
*/
//-------CONFIGURATION--------
$IP="123.456.123.456"; //server IP, it _MUST_ be adminpage_ip1 in CONFIG!
$Port=13000; //server port
$api_pass="SHOWMETHEMONEY";
function getRealIP() //proxy support, tested with Squid
{
if (!empty($_SERVER['HTTP_X_FORWARDED_FOR']))
{
$ip=$_SERVER['HTTP_X_FORWARDED_FOR'];
}
else
{
$ip=$_SERVER['REMOTE_ADDR'];
}
return $ip;
}
function doRefresh()
{
global $IP, $Port, $api_pass;
//Metin2 Bash-Panel by .Infinity
$socket = socket_create (AF_INET, SOCK_STREAM, SOL_TCP);
$result = socket_connect ($socket, $IP, $Port);
$query = "\x40".$api_pass."\x0A\x40RELOAD A\x0A";
$query_size = strlen($query);
$write_res = socket_write($socket, $query, $query_size);
$recv_res = socket_recv($socket, $output, 5056, 0);
if ($recv_res==31) { //i'm not sure about this :-/
return "<br/><b>Frissítés sikeres, most már beléphetsz a játékba.</b>"; //success, you can log into the game now
} else {
return "<br/><b>Hiba a frissítés során! Manuálisan kell elvégezni, sorry :(</b>"; //Error during the update! Do it manually, sorry
}
socket_close($socket);
}
?>
<html>
<head>
<title>Admin reload</title>
</head>
<body>
<?php
if ($_POST['refresh']) {
$con= mysql_connect($db_addr,$db_user,$db_pass) || die(mysql_error());
$query="SELECT COUNT(*) FROM common.gmhost WHERE mIP='".getRealIP()."'";
$result=mysql_query($query);
if ($count==0) {
$query="INSERT INTO common.gmhost SET mIP='".getRealIP()."'";
$res=mysql_query($query) || die(mysql_error());
if ($res) {
echo "IP-d (".getRealIP().") felvéve a listába, frissítés...<br/>"; //your ip was successfully added to the list
echo doRefresh();
} else {
echo "Nem tudtam hozzáadni a listához, sorry :("; //i culdn't add your IP to the list, sorry
}
} else {
echo "Már benne van az ip-d a listában (".getRealIP().")<br/>"; //you IP is already included
}
[Release]Operator - Tool. Die Hilfe für die Admins! 10/06/2011 - Minecraft Mods, Textures, Skins & Maps - 26 Replies http://www7.pic-upload.de/06.04.11/k6q858v67ruj.pn g
Hallo Crafter!
Heute stelle ich mein kleines Werk vor!
Hierbei handelt es sich um das Operator - Tool.
Man kann es auch GM-Tool für Minecraft nennen ;D
Aktuelle (grobe) Funktionsliste:
To Server Admins, Akuma's RF Tool 08/30/2011 - RF Online - 16 Replies Hi, My name is Akuma from pvplords.
I have created a player management tool to help GM's (And Admins) manage their players without having to use the raw database using queries, and most of all forcing the admins to open the floodgates directly to the database by giving staff database login information.
I present to you, My GM tool.
Features:
Staff Permissions
IP Banning
Warrock Acc Bann Tool von den Admins funzt nicht? 11/27/2010 - WarRock - 1 Replies Hallo.
Da der Herr "Real ~ Life" gestern mein Thema geclosed hatte und die jenige Member keine Chance hatten mir auf die 2 te Fragen zuantworten mache ich hier noch mal schnell einen Thread auf , ich meine Fragen kostet ja nichts.
Undwar :
Gestern meinte hier welche das die Admins momentan nicht bannen können weil das Bann-Tool nicht funktioniert.
Sie meinten dazu auch das es im Warrock OFFICAL Forum steht. Habe da aber nichts gefunden.
[Request] Res Tool von Pinki [Request] 07/26/2010 - S4 League - 1 Replies Eine kleine Frage könnt ihr mir sagen welche Dll´s vom Res Tool von Pinki das nochmal waren ? ^^
Weil ich die dann aus mein Ordner löschen ^^ aber weiß die Namen nicht mehr ^^
Mfg :D
[REQUEST FOR THE ADMINS] New Conquer Topic! 07/30/2008 - Conquer Online 2 - 3 Replies Hey can u guys make a new Topic about Private servers so we can talk and post our private servers on it?