aboutsummaryrefslogtreecommitdiff
path: root/lib/MasterWebInterface/Handler
diff options
context:
space:
mode:
Diffstat (limited to 'lib/MasterWebInterface/Handler')
-rwxr-xr-xlib/MasterWebInterface/Handler/Extra/JSON.pm1
-rwxr-xr-xlib/MasterWebInterface/Handler/FrontPage.pm2
-rwxr-xr-xlib/MasterWebInterface/Handler/ServInfo.pm6
-rwxr-xr-xlib/MasterWebInterface/Handler/Tools/Version.pm6
4 files changed, 8 insertions, 7 deletions
diff --git a/lib/MasterWebInterface/Handler/Extra/JSON.pm b/lib/MasterWebInterface/Handler/Extra/JSON.pm
index 9d6c56f..8283718 100755
--- a/lib/MasterWebInterface/Handler/Extra/JSON.pm
+++ b/lib/MasterWebInterface/Handler/Extra/JSON.pm
@@ -38,6 +38,7 @@ sub serverlist_json {
search => $f->{q},
gamename => $gamename,
page => $f->{p},
+ filter => 1,
);
# return json data as the response
diff --git a/lib/MasterWebInterface/Handler/FrontPage.pm b/lib/MasterWebInterface/Handler/FrontPage.pm
index f57c8e1..ce13ab5 100755
--- a/lib/MasterWebInterface/Handler/FrontPage.pm
+++ b/lib/MasterWebInterface/Handler/FrontPage.pm
@@ -28,7 +28,7 @@ sub main {
$self->htmlHeader(title => "Welcome");
# load NEW SERVERS list from database
- my ($list, $np, $p) = $self->dbServerListGet(results => 8, sort => 'added', reverse => 1);
+ my ($list, $np, $p) = $self->dbServerListGet(results => 8, sort => 'added', reverse => 1, filter => 1);
my $odd = 0;
# print list of new servers added to the database
diff --git a/lib/MasterWebInterface/Handler/ServInfo.pm b/lib/MasterWebInterface/Handler/ServInfo.pm
index e0aff47..3987e8c 100755
--- a/lib/MasterWebInterface/Handler/ServInfo.pm
+++ b/lib/MasterWebInterface/Handler/ServInfo.pm
@@ -206,9 +206,9 @@ sub show_server {
Tr;
td "Flags: ";
td;
- i ($info->{b333ms} ? "direct uplink, " : "applet or manual, ");
- i ($info->{blacklisted} ? "blacklisted, " : "not blacklisted, ");
- i ($info->{password} ? "passworded" : "not passworded");
+ ($info->{b333ms} ? span class => "g", "direct uplink, " : span class => "o", "applet or manual, ");
+ ($info->{blacklisted} ? span class => "r", "blacklisted, " : span class => "g", "not blacklisted, ");
+ ($info->{password} ? span class => "y", "passworded" : span class => "g", "not passworded");
end;
end;
end;
diff --git a/lib/MasterWebInterface/Handler/Tools/Version.pm b/lib/MasterWebInterface/Handler/Tools/Version.pm
index 9ffe41a..db306a1 100755
--- a/lib/MasterWebInterface/Handler/Tools/Version.pm
+++ b/lib/MasterWebInterface/Handler/Tools/Version.pm
@@ -29,9 +29,9 @@ sub version {
p "This MasterServer Interface has the following version information:";
table;
- Tr; td "build_type"; td "333networks Masterserver Development Interface ";end;
- Tr; td "build_version"; td "3.0.0";end;
- Tr; td "build_date"; td "2017-09-25";end;
+ Tr; td "build_type"; td "333networks Masterserver Web Interface ";end;
+ Tr; td "build_version"; td "3.0.1";end;
+ Tr; td "build_date"; td "2017-09-27";end;
Tr; td "build_author"; td "Darkelarious, darkelarious\@333networks.com";end;
end;