mirror of
https://github.com/EQEmu/Server.git
synced 2026-05-31 00:46:46 +00:00
svn -> git Migration
This commit is contained in:
@@ -0,0 +1,25 @@
|
||||
<?
|
||||
my $action = $request->get("action", "none");
|
||||
my $text = $request->get("text", "");
|
||||
if($action eq "input") {
|
||||
my $rep = $EQW->SendConsoleMessage($text);
|
||||
if($rep ne "") {
|
||||
print "{";
|
||||
print "\"status\" : 0,";
|
||||
print "\"message\" : \"$rep\"";
|
||||
print "}";
|
||||
return;
|
||||
}
|
||||
} else {
|
||||
print "{";
|
||||
print "\"status\" : 0,";
|
||||
print "\"message\" : \"Unknown action sent to console.\"";
|
||||
print "}";
|
||||
return;
|
||||
}
|
||||
|
||||
print "{";
|
||||
print "\"status\" : 1,";
|
||||
print "\"message\" : \"\"";
|
||||
print "}";
|
||||
?>
|
||||
Reference in New Issue
Block a user