|
You last visited: Today at 17:15
Advertisement
Request for a useful tool for admins :)
Discussion on Request for a useful tool for admins :) within the Metin2 Private Server forum part of the Metin2 category.
04/16/2011, 09:15
|
#1
|
elite*gold: 0
Join Date: Jul 2010
Posts: 827
Received Thanks: 153
|
Request for a useful tool for admins :)
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.
|
|
|
04/16/2011, 10:11
|
#2
|
elite*gold: 4
Join Date: Mar 2011
Posts: 135
Received Thanks: 10
|
hmm..
ich werd mich mal ransetzen.
|
|
|
04/16/2011, 11:14
|
#3
|
elite*gold: 48
Join Date: Feb 2011
Posts: 974
Received Thanks: 264
|
Doesn't it work with a proxy server?
I think that changes by it self whenever your ip changes, but i am not sure about it
|
|
|
04/16/2011, 13:26
|
#4
|
elite*gold: 0
Join Date: Jul 2010
Posts: 827
Received Thanks: 153
|
idk but chocolate mind typing it in a way I can understand ?
|
|
|
04/16/2011, 13:34
|
#5
|
elite*gold: 4
Join Date: Mar 2011
Posts: 135
Received Thanks: 10
|

If you want the tool...vote for "Ja"
|
|
|
10/20/2011, 05:26
|
#6
|
elite*gold: 0
Join Date: Jan 2009
Posts: 104
Received Thanks: 126
|
Here is a minimalist version
PHP Code:
<?php
/*
Metin2 admin-reload by ATAG
*/
//-------CONFIGURATION--------
$IP="123.456.123.456"; //server IP, it _MUST_ be adminpage_ip1 in CONFIG!
$Port=13000; //server port
$api_pass="SHOWMETHEMONEY";
$db_addr="localhost";
$db_user="mt2";
$db_pass="mt2!@#";
//-----END CONFIGURATION------
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);
$count=mysql_result($result,0);
mysql_free_result($result);
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
}
mysql_close();
} elseif ($_POST['reload']) {
echo doRefresh();
} else {
?>
<center>
<form method="POST">
<div id="input">
<br />
<br />
<input type="submit" name="refresh" value="Add my IP!"/>
<br />
<br />
<br />
</div>
<input type="submit" name="reload" value="Reload only!"/>
<br />
<br />
</b>
</form>
</center>
</div><?php } ?>
</body>
</html>
PS: I'm not a php/html expert
|
|
|
 |
Similar Threads
|
[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?
|
All times are GMT +1. The time now is 17:16.
|
|