1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
<?php
error_reporting(0);

include('core/init.inc.php');

$info = fetch_server_info($config['server']['ip'], $config['server']['port']);
$info1 = fetch_server_info($config['server1']['ip1'], $config['server1']['port1']);
$info2 = fetch_server_info($config['server2']['ip2'], $config['server2']['port2']);

$PC = $info['playerCount'];
$PC1 = $info1['playerCount'];
$PC2 = $info2['playerCount'];

$MP = $info['maxPlayers'];
$MP1 = $info1['maxPlayers'];
$MP2 = $info2['maxPlayers'];

$Players = array($PC, $PC1, $PC2);
$Max = array($MP, $MP1, $MP2);


$return = "\n"



// Header saying IP HTML, under font face Arial
// <h1><?php echo $config['server']['ip'];?></h1>


<html>


<head>
<title>LostCraft Server Status</title>

  <style type="text/css">
    
    body {
            position: center;
      margin-left: 8px
            font-family: Arial;
            background-image: url(http://files.enjin.com/71917/images/Status/BG.png);
            background-repeat: no-repeat;
            background-position: center;
    }


  </style>

</head>

<body>
<center>

  <div>
    <font face='Arial' color="white" size="2">
        
      
      
      <?php
      if ($info === false){
      ?>
      <p>
                <img src="http://files.enjin.com/71917/Pictures/Thread Headers/LostCraft SMP.png" /></br>
        <font color="red"><b>Offline</b></font>
            <br/><br/><br/>
      <?php
      }else{
      ?>
      <p>
                <img src="http://files.enjin.com/71917/Pictures/Thread Headers/LostCraft SMP.png" /></br>
        <font color="#00FF00"><b>Online</b></font>
      </P>
      <p>
        Currently Online: <b><?php echo $info['playerCount'];?> / <?php echo $info['maxPlayers'];?></b>
      </P>
      <p>
      </p>
            <hr/>

      <?php
      
      }
      ?>
      
    </font>
  </div>
    
    <div>
    <font face='Arial' color="white" size="2">
      
      
      <?php
      if ($info === false){
      ?>
      <p>
                <img src="http://files.enjin.com/71917/Pictures/Thread Headers/LostCraft PVP.png" /></br>
        <font color="red"><b>Offline</b></font>
            <br/><br/><br/>
      <?php
      }else{
      ?>
      <p>
                <img src="http://files.enjin.com/71917/Pictures/Thread Headers/LostCraft PVP.png" /></br>
        <font color="#00FF00"><b>Online</b></font>
      </P>
      <p>
        Currently Online: <b><?php echo $info1['playerCount'];?> / <?php echo $info1['maxPlayers'];?></b>
      </P>
      <p>
      </p>
            <hr/>


      <?php
      
      }
      ?>
      
    </font>
  </div>

    <div>
    <font face='Arial' color="white" size="2">
      
      
      <?php
      if ($info === false){
      ?>
      <p>
                <img src="http://files.enjin.com/71917/Pictures/Thread Headers/LostCraft FB.png" /></br>
        <font color="red"><b>Offline</b></font>
            <br/><br/><br/>
      <?php
      }else{
      ?>
      <p>
                <img src="http://files.enjin.com/71917/Pictures/Thread Headers/LostCraft FB.png" /></br>
        <font color="#00FF00"><b>Online</b></font>
      </P>
      <p>
        Currently Online: <b><?php echo $info2['playerCount'];?> / <?php echo $info2['maxPlayers'];?></b>
      </P>
      <p>
      <hr/>
      </p>


      <?php
      
      }
      ?>
      
    </font>
  </div>
    </a>
    
    
    
    <div>
    <?php
        echo "<font face='Arial'>";
        echo "Total Online Players = <B>" . array_sum($Players) . "\n";
        echo "/ " . array_sum($Max) . "\n </b>";     
        echo "</font>"
        ?>
        </br></br>
        <form><input type=button value="Refresh" onClick="window.location.reload()"></form>

    </div>
</body>



</center>
</html>