TinyPortal

Development => Block Codes => Topic started by: Gax on September 15, 2009, 04:32:54 PM

Title: [Block] Aion Server Status
Post by: Gax on September 15, 2009, 04:32:54 PM
I'll update this if Server IP's change.

You'll need to upload up.gif and down.gif to your images directory.

(https://www.tinyportal.net/proxy.php?request=http%3A%2F%2Fwww.paragonsite.net%2Fimages%2Fup.gif&hash=ea2407b23cd4a40b805ca25503b68c492355844a)

(https://www.tinyportal.net/proxy.php?request=http%3A%2F%2Fwww.paragonsite.net%2Fimages%2Fdown.gif&hash=84f07db8b3e87660199bf5ecbee9b5ddd6e492cf)

Demo: http://www.paragonsite.net


/***********************************
********Created by Gax********
****www.paragonsite.net****
*************Paragon*************
*************************************/

//needed to work in a php block
global $uport, $sport, $lport, $port, $l1, $u1;

//Update server
$u1 = '206.127.153.187';

//Login Server
$l1 = '206.127.153.247';

//Servers
$d1 = '206.127.155.67';
$d2 = '206.127.155.69';
$d3 = '206.127.155.71';
$d4 = '206.127.155.73';
$d5 = '206.127.155.75';
$d6 = '206.127.155.77';
$d7 = '206.127.155.66';
$d8 = '206.127.155.70';
$d9 = '206.127.155.72';
$d10 = '206.127.155.74';
$d11 = '206.127.155.76';
$d12 = '206.127.155.68';
$d13 = '206.127.155.82';
$d14 = '206.127.155.83';

//login Server name
$nl1 = 'Login';

//Update Server name
$nu1 = 'Update';

//Server Names

$n1 = 'Israphel'; //East
$n2 = 'Zikel'; //East
$n3 = 'Triniel'; //East
$n4 = 'Lumiel'; //East
$n5 = 'Marchutan'; //East
$n6 = 'Azphel'; //East
$n7 = 'Siel'; //West
$n8 = 'Vaizel'; //West
$n9 = 'Kaisinel'; //West
$n10 = 'Yustiel'; //West
$n11 = 'Ariel'; //West
$n12 = 'Nezekan'; //Oceanic
$n13 = 'Fregion'; //West
$n14 = 'Meslamtaeda'; //East

//Login Port
$lport = '2106';

//Server Port
$sport = '7777';

//Update Port
$uport = '80';


//Function to check response time
//Edit below at your own risk
function pingDomain($domain){

    global $uport, $sport, $lport, $port, $l1, $u1;
   
    if ($domain == $l1){
       $port = $lport;
        }
    else if ($domain == $u1){
       $port = $uport;
       }
    else{
        $port = $sport;
        }

    $starttime = microtime(true);
    $file      = @fsockopen($domain, $port, $errno, $errstr, 1);
    $stoptime  = microtime(true);
    $status    = 0;

    if (!$file) $status = -1;  // Site is down
    else {
        fclose($file);
        $status = ($stoptime - $starttime) * 1000;
        $status = floor($status);
    }
    return $status;
}

echo'
<style type="text/css">
body, table {
font-family: Tahoma, Verdana, Arial, sans-serif;
font-size: 11px;
font-weight: bold;
}

hr {
color: #ffffff;
background-color: #ffffff;
height: 2px;
}

</style>
<table>';

     $status = pingDomain($u1);
     if ($status != -1) echo '<tr><td width="80">' ,$nu1, '</td><td width="15"><img src="/images/up.gif"></td><td>(' ,$status, ' ms)</td></tr>';
     else               echo '<tr><td width="80">' ,$nu1, '</td><td width="15"><img src="/images/down.gif"></td><td></td></tr>';

     $status = pingDomain($l1);
     if ($status != -1) echo '<tr><td>' ,$nl1, '</td><td width="15"><img src="/images/up.gif"></td><td>(' ,$status, ' ms)</td></tr>';
     else               echo '<tr><td>' ,$nl1, '</td><td width="15"><img src="/images/down.gif"></td><td></td></tr>';

echo'
</table>
<br />
<table width="100%">
     <tr><td width="55"><hr></td><td align="center">East</td><td width="55"><hr></td></tr>
</table>
<table>';

     $status = pingDomain($d1);
     if ($status != -1) echo '<tr><td width="80">' ,$n1, '</td><td width="15"><img src="/images/up.gif"></td><td>(' ,$status, ' ms)</td></tr>';
     else               echo '<tr><td width="80">' ,$n1, '</td><td width="15"><img src="/images/down.gif"></td><td></td></tr>';

     $status = pingDomain($d2);
     if ($status != -1) echo '<tr><td>' ,$n2, '</td><td><img src="/images/up.gif"></td><td>(' ,$status, ' ms)</td></tr>';
     else               echo '<tr><td>' ,$n2, '</td><td><img src="/images/down.gif"></td><td></td></tr>';

     $status = pingDomain($d3);
     if ($status != -1) echo '<tr><td>' ,$n3, '</td><td><img src="/images/up.gif"></td><td>(' ,$status, ' ms)</td></tr>';
     else               echo '<tr><td>' ,$n3, '</td><td><img src="/images/down.gif"></td><td></td></tr>';

     $status = pingDomain($d4);
     if ($status != -1) echo '<tr><td>' ,$n4, '</td><td><img src="/images/up.gif"></td><td>(' ,$status, ' ms)</td></tr>';
     else               echo '<tr><td>' ,$n4, '</td><td><img src="/images/down.gif"></td><td></td></tr>';

     $status = pingDomain($d5);
     if ($status != -1) echo '<tr><td>' ,$n5, '</td><td><img src="/images/up.gif"></td><td>(' ,$status, ' ms)</td></tr>';
     else               echo '<tr><td>' ,$n5, '</td><td><img src="/images/down.gif"></td><td></td></tr>';

     $status = pingDomain($d6);
     if ($status != -1) echo '<tr><td>' ,$n6, '</td><td><img src="/images/up.gif"></td><td>(' ,$status, ' ms)</td></tr>';
     else               echo '<tr><td>' ,$n6, '</td><td><img src="/images/down.gif"></td><td></td></tr>';

     $status = pingDomain($d14);
     if ($status != -1) echo '<tr><td>' ,$n14, '</td><td><img src="/images/up.gif"></td><td>(' ,$status, ' ms)</td></tr>';
     else               echo '<tr><td>' ,$n14, '</td><td><img src="/images/down.gif"></td><td></td></tr>';
     
echo'
</table>
<br />
<table width="100%">
     <tr><td width="55"><hr></td><td align="center">West</td><td width="55"><hr></td></tr>
</table>
<table>';

     $status = pingDomain($d7);
     if ($status != -1) echo '<tr><td width="80">' ,$n7, '</td><td width="15"><img src="/images/up.gif"></td><td>(' ,$status, ' ms)</td></tr>';
     else               echo '<tr><td width="80">' ,$n7, '</td><td width="15"><img src="/images/down.gif"></td><td></td></tr>';

     $status = pingDomain($d8);
     if ($status != -1) echo '<tr><td>' ,$n8, '</td><td><img src="/images/up.gif"></td><td>(' ,$status, ' ms)</td></tr>';
     else               echo '<tr><td>' ,$n8, '</td><td><img src="/images/down.gif"></td><td></td></tr>';

     $status = pingDomain($d9);
     if ($status != -1) echo '<tr><td>' ,$n9, '</td><td><img src="/images/up.gif"></td><td>(' ,$status, ' ms)</td></tr>';
     else               echo '<tr><td>' ,$n9, '</td><td><img src="/images/down.gif"></td><td></td></tr>';

     $status = pingDomain($d10);
     if ($status != -1) echo '<tr><td>' ,$n10, '</td><td><img src="/images/up.gif"></td><td>(' ,$status, ' ms)</td></tr>';
     else               echo '<tr><td>' ,$n10, '</td><td><img src="/images/down.gif"></td><td></td></tr>';

     $status = pingDomain($d11);
     if ($status != -1) echo '<tr><td>' ,$n11, '</td><td><img src="/images/up.gif"></td><td>(' ,$status, ' ms)</td></tr>';
     else               echo '<tr><td>' ,$n11, '</td><td><img src="/images/down.gif"></td><td></td></tr>';

     $status = pingDomain($d13);
     if ($status != -1) echo '<tr><td>' ,$n13, '</td><td><img src="/images/up.gif"></td><td>(' ,$status, ' ms)</td></tr>';
     else               echo '<tr><td>' ,$n13, '</td><td><img src="/images/down.gif"></td><td></td></tr>';
     
echo'
</table>
<br />
<table width="100%">
     <tr><td width="45"><hr></td><td align="center">Oceanic</td><td width="45"><hr></td></tr>
</table>
<table>';

     $status = pingDomain($d12);
     if ($status != -1) echo '<tr><td width="80">' ,$n12, '</td><td width="15"><img src="/images/up.gif"></td><td>(' ,$status, ' ms)</td></tr>';
     else               echo '<tr><td width="80">' ,$n12, '</td><td width="15"><img src="/images/down.gif"></td><td></td></tr>';

     echo '</table>';


Title: Re: [BLOCK] Aion Server Status
Post by: ZarPrime on September 15, 2009, 04:43:37 PM
Hello Gax,

Welcome to TinyPortal.

Do you have a demo setup that people can see?

ZarPrime
Title: Re: [BLOCK] Aion Server Status
Post by: Gax on September 15, 2009, 04:44:26 PM
Quote from: ZarPrime on September 15, 2009, 04:43:37 PM
Hello Gax,

Welcome to TinyPortal.

Do you have a demo setup that people can see?

ZarPrime

Just added. ;)
Title: Re: [Block] Aion Server Status
Post by: Gax on September 19, 2009, 03:47:42 PM
Updated  ;)
Title: Re: [Block] Aion Server Status
Post by: Freddy on September 19, 2009, 03:55:13 PM
Nice site - just wondering if this game is subscription based or a one-off purchase ?

Cheers :)
Title: Re: [Block] Aion Server Status
Post by: Gax on September 19, 2009, 03:57:37 PM
Purchase the game and comes with free expansions. Monthly fee of $14.99 USD
Title: Re: [Block] Aion Server Status
Post by: Freddy on September 19, 2009, 04:08:21 PM
Thanks.  I was hoping it would be non-subscription... like Guild Wars.
Title: Re: [Block] Aion Server Status
Post by: Trolle on September 28, 2009, 03:09:56 PM
Hi, awesome bloc, but now I wanna change it for EU servers, how do I find the ips for eu?
Title: Re: [Block] Aion Server Status
Post by: Freddy on September 28, 2009, 03:41:34 PM
If the details have been released to the public then I guess you should be asking that question on some of the many forums dedicated to the game.
Title: Re: [Block] Aion Server Status
Post by: Trolle on September 28, 2009, 04:28:09 PM
Ah, yeah maybe. Just thought he had some way to get the US, didn't know if that they were officially released. But I'll check on that, thanks  :-*
Title: Re: [Block] Aion Server Status
Post by: Freddy on September 28, 2009, 04:31:58 PM
No problem - I did actually try searching for the info on Yahoo and Google, but I couldn't find anything that told you the IP address.  I figure if you are playing the game you may know better places to look.  Best of luck.
Title: Re: [Block] Aion Server Status
Post by: Gax on September 29, 2009, 12:09:00 AM
I log onto the server and use nestat in a cmd prompt. You'll recognize the Aion server ip due to the 7777 port trailing it.
Title: Re: [Block] Aion Server Status
Post by: IchBin on September 30, 2009, 03:36:33 PM
I split your guys posts out of this topic. Moved to the support board instead since it wasn't really related to a block code problem or question.
Title: Re: [Block] Aion Server Status
Post by: Macbeth on October 01, 2009, 06:45:00 PM
Was wondering if you could update the ips? :P
Title: Re: [Block] Aion Server Status
Post by: Macbeth on October 01, 2009, 07:39:21 PM
Nevermind noticed the ips are updated. Anyways, I have tried it but noticed that everything except Update is down.