예제 #1
0
function WriteTitleSection($xml)
{
    global $serverStatusString;
    echo '<img class="left" src="' . $xml['serversite'][0]['gamelogo'][0] . '" alt="game logo">';
    echo '<span class="title">' . $xml['serversite'][0]['title'][0] . '</span>';
    //echo '<a href="http://arianne.sourceforge.net"><img class="right" src="http://arianne.sourceforge.net/images/ariannePowered.png" alt="Arianne Powered!"></a>';
    if ($xml['serversite'][0]['serverdata'][0]['serverstate']['0 attr']['enable'] == "1") {
        echo '<p>';
        echo GetServerStatus($xml) ? $xml['serversite'][0]['serverdata'][0]['serverstate'][0]['up'][0] : $xml['serversite'][0]['serverdata'][0]['serverstate'][0]['down'][0];
        echo '</p>';
    }
}
예제 #2
0
파일: homelab.php 프로젝트: labrack/HomeLab
            </div>             
        </th> 
        <th class="tg-yw4l"></th>     
      </tr>
      <tr>
        <th class="tg-yw4l"></th>
        <th class="tg-yw4l">
            <div class="square" style="background: #FFFFFF;">
                <div style="float: left; margin: 15px; text-align: left; line-height: 25px;">
                    <strong>Name:</strong> host_name <br />
                    <strong>IP:</strong> <?php 
echo gethostbyname('host_name');
?>
<br />
                    <strong>Status:</strong> <?php 
echo GetServerStatus('IP_Address', 3389);
?>
<br />
                </div>
            </div>
        </th>
        <th class="tg-yw4l"></th> 
        <th class="tg-yw4l"></th>     
        <th class="tg-yw4l"></th>
        <th class="tg-yw4l"></th>
        <th class="tg-yw4l"></th> 
        <th class="tg-yw4l"></th>     
      </tr>
      <tr>
        <th class="tg-yw4l"></th>
        <th class="tg-yw4l"></th>
예제 #3
0
                    <div class="service-block service-block-default">            
                        <i class="icon-custom icon-lg icon-bg-u rounded-x icon-line icon-rocket"></i>
                        <h2 class="heading-sm">Chat Enabled</h2>
                        <p>routers with Demon<span class="color-green">Saw</span> chat enabled.</p>
                        <ul class="list-unstyled">
                            <li>bucket1.demonbucket.com (Status: <?php 
echo GetServerStatus('bucket1.demonbucket.com');
?>
)</li>
                            <li>blackunicorn.xyz:8080 <br>(Status: <?php 
echo GetServerStatus('blackunicorn.xyz', 8080);
?>
)<br>
                            Provided By:<a href="http://blackunicorn.xyz"> blackunicorn.xyz</a></li>
                            <li>y-cwmwl.co.uk:8181 <br> (Status:  <?php 
echo GetServerStatus('y-cwmwl.co.uk', 8181);
?>
)</li>  
                            <li><span class="page-scroll"><a href="#contact">Submit a Router</a></span></li>
                        </ul>                        
                    </div>
                </div>
            </div>
        </div>
       
        <div class="call-action-v1">
            <div class="container">
                <div class="call-action-v1-box">
                    <div class="call-action-v1-in">
                        <p>Demon<span class="color-green">Bucket</span> Servers are funded by Community supporters. If you you would like to help keep the servers up and running please show your support by donating. </p>
                    </div>
예제 #4
0
                        <p>Community routers submitted to the Demon<span class="color-green">Bucket</span> Router List.</p>
                        <ul class="list-unstyled">
                            <li>d3crypt.ddns.net <br> (Status:  <?php 
echo GetServerStatus('d3crypt.ddns.net', 80);
?>
)</li>
                            <li>5.9.91.163:27182 <br> (Status: <?php 
echo GetServerStatus('5.9.91.163', 27182);
?>
)</li>
                            <li>y-cwmwl.co.uk:8181 <br> (Status:  <?php 
echo GetServerStatus('y-cwmwl.co.uk', 8181);
?>
)</li>
                            <li>msg.blacklistlink.com :60605 <br> (Status:  <?php 
echo GetServerStatus('msg.blacklistlink.com', 60605);
?>
)</li>
                            <li><span class="page-scroll"><a href="#contact">Submit a Router</a></span></li>  
                        </ul>                        
                    </div>
                </div>
            </div>
        </div>
       
        <div class="call-action-v1">
            <div class="container">
                <div class="call-action-v1-box">
                    <div class="call-action-v1-in">
                        <p>Demon<span class="color-green">Bucket</span> Servers are funded by Community supporters. If you would like to help keep the servers up and running please show your support by donating. </p>
                    </div>
예제 #5
0
              </div>
              <div class="mdl-card__supporting-text mdl-color-text--black">
		 <div>Network:</div>
                 <div>Router -		<?php 
echo GetServerStatus('192.168.0.1', 80);
?>
</div>
		 <div>Wireless AP -	<?php 
echo GetServerStatus('192.168.0.100', 80);
?>
</div>
		 <div>Appliances:</div>
                 <div>Printer -		<?php 
echo GetServerStatus('192.168.0.5', 80);
?>
</div>
                 <div>Surveillance -	<?php 
echo GetServerStatus('192.168.0.7', 80);
?>
</div>
              </div>
            </div>
          </div>
        </div>
      </main>
    </div>
      <a href="http://*****:*****@192.168.0.7/PSIA/Streaming/channels/201/picture" target="_blank" id="view-source" class="mdl-button--fab mdl-js-button mdl-button--raised mdl-js-ripple-effect mdl-button--colored mdl-color-text--white"><i class="material-icons">add</i></a>
    <script src="https://code.getmdl.io/1.1.1/material.min.js"></script>
  </body>
</html>
예제 #6
0
<!DOCTYPE html>
<!--
To change this license header, choose License Headers in Project Properties.
To change this template file, choose Tools | Templates
and open the template in the editor.
-->
<html>
    <head>
        <meta charset="UTF-8">
        <title></title>
    </head>
    <body>
        <?php 
$hostname = 'http://localhost/smart_router/server_status.php';
//        $port = 80;
function GetServerStatus($hostname, $timeout)
{
    $status = array("ONLINE", "OFFLINE");
    $fp = fsockopen($hostname, $errstr = 'Error', $timeout = 2);
    if (!$fp) {
        return $status[1];
    } else {
        return $status[0];
    }
}
echo GetServerStatus('http://localhost/smart_router/server_status.php', 80);
?>
    </body>
</html>
예제 #7
0
            </div>             
        </th> 
        <th class="tg-yw4l"></th>     
      </tr>
      <tr>
        <th class="tg-yw4l"></th>
        <th class="tg-yw4l">
            <div class="square" style="background: #FFFFFF;">
                <div style="float: left; margin: 15px; text-align: left; line-height: 25px;">
                    <strong>Name:</strong> PC_NAME <br />
                    <strong>IP:</strong> <?php 
echo gethostbyname('PC_NAME');
?>
<br />
                    <strong>Status:</strong> <?php 
echo GetServerStatus('PC_NAME', PORT_NR);
echo "\t";
echo GetLatency('IP_ADDRESS', PORT_NR);
?>
<br />
                </div>
            </div>
        </th>
        <th class="tg-yw4l"></th> 
        <th class="tg-yw4l"></th>     
        <th class="tg-yw4l"></th>
        <th class="tg-yw4l"></th>
        <th class="tg-yw4l"></th> 
        <th class="tg-yw4l"></th>     
      </tr>
      <tr>
예제 #8
0
파일: index.php 프로젝트: hbh7/startpage
?>
</div></li>
								<li><div><span><a href="http://sonerezh.hbh7.com"><strong>10.20.31.102 - Sonerezh</strong></a></span><?php 
echo GetServerStatus('10.20.31.102', 80);
?>
</div></li>
								<li><div><span><a href="http://ampache.hbh7.com"><strong>10.20.31.103 - Ampache</strong></a></span><?php 
echo GetServerStatus('10.20.31.103', 80);
?>
</div></li>
								<li><div><span><a href="http://subsonic.hbh7.com"><strong>10.20.31.104 - Subsonic</strong></a></span><?php 
echo GetServerStatus('10.20.31.104', 80);
?>
</div></li>
								<li><div><span><a href="https://onlyoffice.hbh7.com"><strong>10.20.31.111 - OnlyOffice</strong></a></span><?php 
echo GetServerStatus('10.20.31.111', 80);
?>
</div></li>
							</ul>
					</div>
					<div class="box">
						<div class="boxHeader" id="boxHeader3">Hobby</div>
							<ul>
								<li><a href="http://www.twitch.tv/monstercat">Monstercat Twitch</a></li>
								<li><a href="https://hbh7.com/p/">Glype Proxy</a></li>
								<li><a href="https://github.com/">Github</a></li>
								<li><a href="https://amazon.com/">Amazon</a></li>
								<li><a href="https://ebay.com/">eBay</a></li>
								<li><a href="http://youtube.com">Youtube</a></li>
								<li><a href="http://vessel.com">Vessel</a></li>
							</ul>