check your server status Created By Muntadher Safaa published in R4P3.NET

Should I Continue With Scripts


  • Total voters
    8
Status
Not open for further replies.
Dec 19, 2015
114
15
53
Hello R4P3 community !

I Have created A Script For People That Would Like To Check if their servers are up or down and in the website you just need to type your server ip and port for each server and the query port .

This Script Have Style With It So You Don't need To Waste your time making styles .

Download Link : *REMOVED*
VirusTotal : *REMOVED*
Results : 0 / 54

If You Want the codes only.
PHP:
<?php[/B][/B][/B]
[B][B][B]if(isset($_POST['button']))
  {
  require_once("libraries/TeamSpeak3/TeamSpeak3.php");

  try{
  $ts3 = TeamSpeak3::factory("serverquery://name:password@ip:10011/?server_port=port");
 
  echo "
  <table class=\"table table-striped table-hover \">
  <thead>
  <tr>
  <th>Server Status</th>
  <th>Server Name</th>
  <th>Server Adresse</th>
  <th>Slots</th>
  <th>Server Version</th>
  </tr>
  </thead>
  <tbody>
  <tr>
  <td style=\"color:#00C900;\">Online</td>
  <td>$ts3->virtualserver_name</td>
  <td>$ts3->virtualserver_port</td>
  <td>$ts3->virtualserver_clientsonline / $ts3->virtualserver_maxclients</td>
  <td>$ts3->virtualserver_version</td>
  ";
  }
  catch(Exception $e)
  {
  echo "
  <table class=\"table table-striped table-hover \">
  <thead>
  <tr>
  <th>Server Status</th>
  <th>Server Name</th>
  <th>Server Adresse</th>
  <th>Slots</th>
  <th>Server Version</th>
  </tr>
  </thead>
  <tbody>
  <tr>
  <td style=\"color:#FF0000;\">Offline</td>
  <td>-</td>
  <td>-</td>
  <td>-</td>
  <td>-</td>
  ";
  }
  }
?>
HTML:
<!DOCTYPE html>[/B][/B][/B]
[B][B][B]<html>
<head>
<meta charset="UTF-8"/>
<title> Free TeamSpeak 3 Server Status </title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<script type="application/x-javascript"> addEventListener("load", function() { setTimeout(hideURLbar, 0); }, false); function hideURLbar(){ window.scrollTo(0,1); } </script>
<!-- Custom Theme files -->
<link href="css/style.css" rel="stylesheet" type="text/css" media="all" />
<!-- //Custom Theme files -->
<!-- web font -->
<link href='//fonts.googleapis.com/css?family=Dosis:400,300,200,500,600,700,800' rel='stylesheet' type='text/css'>
<!-- //web font -->
</head>
<body>
    <!-- main -->
    <div class="main">
        <h1> Check Your Server Status </h1>
        <div class="main-row">
            <div class="agileits-top">
                <center><form action="#" method="post">
                    <input maxlength="30" placeholder="Ex: 127.0.0.1" style="text-align:center;float:left; width:120px;" class="form-control" id="inputDefault" TYPE = "Text" VALUE ="" NAME = "IP">
                    <input maxlength="5" placeholder="9987" style="text-align:center;float:left; width:60px;" class="form-control" id="inputDefault" TYPE = "Text" VALUE ="" NAME = "PORT">
                    <input placeholder="10011" maxlength="5" style="text-align:center;float:left; width:60px;" class="form-control" id="inputDefault" TYPE = "Text" VALUE ="" NAME = "QPORT">
                    <input style="float:left; margin-left:10px;" type="submit" class="btn btn-default" name="button" value="Check this Server"/>
                </form></center>
                <p><a> Thanks For Using Our Website !</a></p>
            </div>  
        </div>
        <!-- copyright -->
        <div class="copyright">
            <p> © 2016 R4P3.NET . All rights reserved | Design by <a href="#" target=""> Muntadher Safaa </a></p>
        </div>
        <!-- //copyright -->
    </div>
    <!-- //main -->
</body>
</html>
 
Last edited by a moderator:
Status
Not open for further replies.
Top