mirror of
https://github.com/easy-wi/developer.git
synced 2025-02-20 11:23:28 +08:00
Fix Gameserver Buttons
This commit is contained in:
parent
d690b341a5
commit
d9362d137e
@ -41,7 +41,7 @@
|
||||
<?php echo $table_row['nameremoved'];?>
|
||||
</div>
|
||||
<?php } ?>
|
||||
<section <?php if ($gsnavigation=='1' ){ echo 'style="padding-left: 20px"';} else { echo 'style="display:none!important"';} ?>>
|
||||
<section>
|
||||
<div class="form-group">
|
||||
<a href="userpanel.php?w=gs&d=rs&id=<?php echo $table_row['id'];?>&r=gs" onclick="return confirm('<?php echo $table_row['server'];?>: <?php echo $sprache->confirm_restart;?>');">
|
||||
<button class="btn btn-outline-success inline"><i class="icon-white icon-play"></i>
|
||||
@ -131,15 +131,6 @@
|
||||
<li class="list-group-item"><b>GameSwitch:</b>
|
||||
<?php echo $table_row['shorten'];?>
|
||||
</li>
|
||||
<li class="list-group-item"><b>Ping:</b>
|
||||
<?php
|
||||
$port = $table_row['port'];
|
||||
$host = $table_row['ip'].':'.++$port;
|
||||
$host2 = $table_row['ip'];
|
||||
if ($pingcfg == '1') { $pingTime = shell_exec('ping -W 3 -q -c 2 -s 21 ' . $host2 . ' | grep -o "... ms" ');
|
||||
echo "$pingTime"; } else {echo "ping function disabled";}
|
||||
?>
|
||||
</li>
|
||||
<li class="list-group-item"><b>Location:</b>
|
||||
<?php $host2 = $table_row['ip']; $xmlcu = simplexml_load_file("http://ip-api.com/xml/".$host2); echo "$xmlcu->country"; ?>
|
||||
</li>
|
||||
@ -185,3 +176,4 @@
|
||||
</div>
|
||||
</div></section></section></div></div>
|
||||
<?php }?>
|
||||
</div></div>
|
Loading…
x
Reference in New Issue
Block a user