Skip to content

Commit

Permalink
Merge pull request #1 from casdr/analysis-z3woQ1
Browse files Browse the repository at this point in the history
Applied fixes from StyleCI
  • Loading branch information
casdr committed Mar 7, 2016
2 parents 0c01e9b + 04fd99d commit 70c954c
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 14 deletions.
11 changes: 7 additions & 4 deletions index.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

include('servers.php');
include 'servers.php';

?>

Expand Down Expand Up @@ -50,13 +50,16 @@

<?php

foreach($servers as $s=>$k) { ?>
foreach ($servers as $s => $k) {
?>

<tr><td><h2><center><?php echo $k[0]; ?></center></h2></td><td><h2><center><span class="stat" id="<?php echo $s; ?>"><span class="label label-default">Loading</span></span></center></h2></td></tr>
<tr><td><h2><center><?php echo $k[0];
?></center></h2></td><td><h2><center><span class="stat" id="<?php echo $s;
?>"><span class="label label-default">Loading</span></span></center></h2></td></tr>

<?php

} ?>
} ?>

</table>

Expand Down
8 changes: 2 additions & 6 deletions ping.php
Original file line number Diff line number Diff line change
@@ -1,17 +1,13 @@
<?php

include('servers.php');
include 'servers.php';

$s = $servers[$_GET['id']];

$fp = fsockopen($s[1], $s[2], $errno, $errstr, 2);

if($fp) {

if ($fp) {
echo '<span class="label label-success">Online</span>';

} else {

echo '<span class="label label-danger">Offline</span>';

}
8 changes: 4 additions & 4 deletions servers.php
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
<?php

$servers = array(
$servers = [

array('LET', 'lowendtalk.com', 80),
['LET', 'lowendtalk.com', 80],

array('Downie', 'ashityserver.nl', 80),
['Downie', 'ashityserver.nl', 80],

);
];

0 comments on commit 70c954c

Please sign in to comment.