Api php template

From MikroTik Wiki
Jump to: navigation, search

This is a php template for working with RouterOS v3 API.

Requirements

1. It uses the php api Class found here : link API_PHP_class.

2. It is presented first in the forum here link Forum_link

3. overLIB popup JavaScript library is required for this and its included in the files (zip file) or can be found here:[1]

Connected Clients (from the registration table)


<?php

require('routeros_api.class.php');

$API = new routeros_api();

$API->debug = false;

if ($API->connect('192.168.1.2', 'api', 'api1234')) {      // Change this as necessery


 $API->write('/interface/wireless/registration-table/print',false);
 $API->write('=count-only=');

   $READ = $API->read(false);
   $ARRAY = $API->parse_response($READ);


	echo "Number of connected clients:" . substr($READ[1],5);

   $API->disconnect();

}

?>

Resources (cpu/mem/disk/version)


<?php

require('routeros_api.class.php');

$API = new routeros_api();

$API->debug = false;

if ($API->connect('192.168.1.2', 'api', 'api1234')) {   // Change this as necessery

$ARRAY = $API->comm("/system/resource/print");


   $first = $ARRAY['0'];
$memperc = ($first['free-memory']/$first['total-memory']);
$hddperc = ($first['free-hdd-space']/$first['total-hdd-space']);
$mem = ($memperc*100);
$hdd = ($hddperc*100);
echo "Mikrotik RouterOs 4.16 Resources";
echo "<br />";
echo "<table width=550 border=0 align=center>";

echo "<tr><td>Platform, board name and Ros version is:</td><td>" . $first['platform'] . " - " . $first['board-name'] . " - "  . $first['version'] . " - " . $first['architecture-name'] . "</td></tr><br />";
echo "<tr><td>Cpu and available cores:</td><td>" . $first['cpu'] . " at " . $first['cpu-frequency'] . " Mhz with " . $first['cpu-count'] . " core(s) "  . "</td></tr><br />";
echo "<tr><td>Uptime is:</td><td>" . $first['uptime'] . " (hh/mm/ss)" . "</td></tr><br />";
echo "<tr><td>Cpu Load is:</td><td>" . $first['cpu-load'] . " %" . "</td></tr><br />";
echo "<tr><td>Total,free memory and memory % is:</td><td>" . $first['total-memory'] . "Kb - " . $first['free-memory'] . "Kb - " . number_format($mem,3) . "% </td></tr><br />";
echo "<tr><td>Total,free disk and disk % is:</td><td>" . $first['total-hdd-space'] . "Kb - " . $first['free-hdd-space'] . "Kb - " . number_format($hdd,3) . "% </td></tr><br />";
echo "<tr><td>Sectors (write,since reboot,bad blocks):</td><td>" . $first['write-sect-total'] . " - " . $first['write-sect-since-reboot'] . " - " . $first['bad-blocks'] . "% </td></tr><br />";

echo "</table>";

echo "<br />";
echo "<br />";
echo "<br />";
echo "<br />Debug:";
echo "<br />";

   $API->disconnect();

}

?>

Registration Tables


<?php
  function popup( $text, $popup )
  {
  ?>
  <a href="javascript:void(0);" onmouseover="return overlib('<?php echo($popup); ?>
  ');" onmouseout="return nd();"><?php echo($text); ?></a>
  <?php
  }
  ?>
   
  <script type="text/javascript" src="overlib/overlib.js"><!-- overLIB (c) Erik Bosrup -->
  </script>

<?php

require('routeros_api.class.php');

$API = new routeros_api();

$API->debug = false;

if ($API->connect('192.168.1.2', 'api', 'api1234')) {    // Change this as necessery

$ARRAY = $API->comm("/interface/wireless/registration-table/print");


echo "<table width=100% border=1>";

echo "<tr><td align=left size=2>Id</td><td size=2>iface</td><td size=2>mac-address</td><td size=1>Ap</td><td size=1>wds</td><td>rx-rate</td><td>tx-rate</td><td>Data</td><td>uptime</td><td>Last Activity</td><td>signal strength</td><td>signal to noise</td><td>strength at rates</td><td>tx ccq</td><td>pthroughput</td><td>ack timeout</td><td>last ip</td><td>802.1x port en.</td><td>authentication type</td><td>encryption</td><td>group encryption</td><td>wmm</td></tr>";

echo "<tr><td align=left>";


for ($i=0; $i<250; $i++)

	{
$regtable = $ARRAY[$i];
	
	echo "<font color=#04B404 size=2>" . $regtable['.id'] . "</font><br>";
		}
		
echo "</td><td>";


for ($i=0; $i<250; $i++)

	{
$regtable = $ARRAY[$i];
	
	echo "<font color=#04B404 size=2>" . $regtable['interface'] . "</font><br>";
		}
		
echo "</td><td>";

for ($i=0; $i<250; $i++)

	{
$regtable = $ARRAY[$i];
	
	echo "<font color=#04B404 size=2>" . $regtable['mac-address'] . "</font><br>";
		}
		
echo "</td><td>";

for ($i=0; $i<250; $i++)

	{
$regtable = $ARRAY[$i];
	if ($regtable['ap']=="true")
         {
         echo "<font color=#04B404 size=2>" . $regtable['ap'] . "</font><br>";
         }else{
         echo "<font color=#FF0000 size=2>". $regtable['ap'] ."</font><br>";
         }

		}
		
echo "</td><td>";

for ($i=0; $i<250; $i++)

	{
$regtable = $ARRAY[$i];
		if ($regtable['wds']=="true")
         {
         echo "<font color=#04B404 size=2>" . $regtable['wds'] . "</font><br>";
         }else{
         echo "<font color=#FF0000 size=2>". $regtable['wds'] ."</font><br>";
         }
		}
		
echo "</td><td>";

for ($i=0; $i<250; $i++)

	{
$regtable = $ARRAY[$i];
	
	echo "<font color=#000099 size=2>" . $regtable['rx-rate'] . "</font><br>";
		}
		
echo "</td><td>";

for ($i=0; $i<250; $i++)

	{
$regtable = $ARRAY[$i];
	
	echo "<font color=#04B404 size=2>" . $regtable['tx-rate'] . "</font><br>";
		}
		
echo "</td><td>";

for ($i=0; $i<250; $i++)

	{
$regtable = $ARRAY[$i];
	echo popup('Data', 'Packets  ' . $regtable['packets'] . '<br/>Bytes  ' . $regtable['bytes'] . '<br/>Frames  ' . $regtable['frames'] . '<br/>Frame-Bytes  ' . $regtable['frame-bytes'] . '<br/>hw-frames  ' . $regtable['hw-frames'] . '<br/>hw-frame-bytes  ' . $regtable['hw-frame-bytes'] . '<br/>tx-frames-timed-out  ' . $regtable['tx-frames-timed-out']);

		}
		
echo "</td><td>";


for ($i=0; $i<250; $i++)

	{
$regtable = $ARRAY[$i];
	
	echo "<font color=#003300 size=2>" . $regtable['uptime'] . "</font><br>";
		}
		
echo "</td><td>";

for ($i=0; $i<250; $i++)

	{
$regtable = $ARRAY[$i];
	
	echo "<font color=#003300 size=2>" . $regtable['last-activity'] . "</font><br>";
		}
		
echo "</td><td>";

for ($i=0; $i<250; $i++)

	{
$regtable = $ARRAY[$i];
	
	echo "<font color=#880000 size=2>" . $regtable['signal-strength'] . "</font><br>";
		}
		
echo "</td><td>";

for ($i=0; $i<250; $i++)

	{
$regtable = $ARRAY[$i];
	
	echo "<font color=#A00000 size=2>" . $regtable['signal-to-noise'] . "</font><br>";
		}
		
echo "</td><td>";

for ($i=0; $i<250; $i++)

	{
$regtable = $ARRAY[$i];
$z=$regtable['wds'];

if ($z==true)
	{				
    echo    popup('Rates', $regtable['strength-at-rates'] ) ;
	}
	if ($z==false)
	{				
    echo    popup('Rates', $regtable['strength-at-rates'] ) ;
	}
	else 
	{
	echo " ";
	}
	}
		
echo "</td><td>";

for ($i=0; $i<250; $i++)

	{
$regtable = $ARRAY[$i];
	
	echo "<font color=#04B404 size=2>" . $regtable['tx-ccq'] . "</font><br>";
		}
		
echo "</td><td>";

for ($i=0; $i<250; $i++)

	{
$regtable = $ARRAY[$i];
	
	echo "<font color=#04B404 size=2>" . $regtable['p-throughput'] . "</font><br>";
		}
		
echo "</td><td>";

for ($i=0; $i<250; $i++)

	{
$regtable = $ARRAY[$i];
	
	echo "<font color=#04B404 size=2>" . $regtable['ack-timeout'] . "</font><br>";
		}
		
echo "</td><td>";

for ($i=0; $i<250; $i++)

	{
$regtable = $ARRAY[$i];
	
	echo "<font color=#04B404 size=2>" . $regtable['last-ip'] . "</font><br>";
		}
		
echo "</td><td>";

for ($i=0; $i<250; $i++)

	{
$regtable = $ARRAY[$i];
				if ($regtable['802.1x-port-enabled']=="true")
         {
         echo "<font color=#04B404 size=2>" . $regtable['802.1x-port-enabled'] . "</font><br>";
         }else{
         echo "<font color=#FF0000 size=2>". $regtable['802.1x-port-enabled'] ."</font><br>";
         }
		}
		
echo "</td><td>";

for ($i=0; $i<250; $i++)

	{
$regtable = $ARRAY[$i];

	echo "<font color=#CC0000 size=2>" . $regtable['authentication-type'] . "</font><br>";
		}
		
echo "</td><td>";

for ($i=0; $i<250; $i++)

	{
$regtable = $ARRAY[$i];
	
	echo "<font color=#CC0000 size=2>" . $regtable['encryption'] . "</font><br>";
		}
		
echo "</td><td>";

for ($i=0; $i<250; $i++)

	{
$regtable = $ARRAY[$i];
	
	echo "<font color=#CC0000 size=2>" . $regtable['group-encryption'] . "</font><br>";
		}
		
echo "</td><td>";

for ($i=0; $i<250; $i++)

	{
$regtable = $ARRAY[$i];
			if ($regtable['wmm-enabled']=="true")
         {
         echo "<font color=#04B404 size=2>" . $regtable['wmm-enabled'] . "</font><br>";
         }else{
         echo "<font color=#FF0000 size=2>". $regtable['wmm-enabled'] ."</font><br>";
         }
		}
		
echo "</td><td>";

for ($i=0; $i<250; $i++)

	{
$regtable = $ARRAY[$i];
	
	echo "<font color=#CC0000 size=2>" . $regtable['comment'] . "</font><br>";
		}
		
echo "</td><td>";
echo "</table>";
echo "<br />Debug:";
echo "<br />";


   $API->disconnect();

}

?>

Basic Interface List



<?php
  function popup( $text, $popup )
  {
  ?>
  <a href="javascript:void(0);" onmouseover="return overlib('<?php echo($popup); ?>
  ');" onmouseout="return nd();"><?php echo($text); ?></a>
  <?php
  }
  ?>
   
  <script type="text/javascript" src="overlib/overlib.js"><!-- overLIB (c) Erik Bosrup -->
  </script>

<?php

require('routeros_api.class.php');

$API = new routeros_api();

$API->debug = false;

if ($API->connect('192.168.1.2', 'api', 'api1234')) {

$ARRAY = $API->comm("/interface/getall");



echo "<table width=100% border=1>";

echo "<tr><td align=left size=3>Id</td><td size=3>name</td><td size=3>type</td><td size=3>dynamic</td><td size=3>disabled</td><td>mtu</td><td>l2mtu</td><td>comment</td></tr>";

echo "<tr><td align=left>";


for ($i=0; $i<20; $i++)

	{
$regtable = $ARRAY[$i];
	
	echo "<font color=#04B404 size=3>" . $regtable['.id'] . "</font><br>";
		}
		
echo "</td><td>";


for ($i=0; $i<250; $i++)

	{
$regtable = $ARRAY[$i];
	
	echo "<font color=#04B404 size=3>" . $regtable['name'] . "</font><br>";
		}
		
echo "</td><td>";

for ($i=0; $i<250; $i++)

	{
$regtable = $ARRAY[$i];
	
	echo "<font color=#04B404 size=3>" . $regtable['type'] . "</font><br>";
		}
		
echo "</td><td>";

for ($i=0; $i<250; $i++)

	{
$regtable = $ARRAY[$i];
	if ($regtable['dynamic']=="true")
         {
         echo "<font color=#04B404 size=3>" . $regtable['dynamic'] . "</font><br>";
         }else{
         echo "<font color=#FF0000 size=3>". $regtable['dynamic'] ."</font><br>";
         }

		}
		
echo "</td><td>";

for ($i=0; $i<250; $i++)

	{
$regtable = $ARRAY[$i];
		if ($regtable['disabled']=="true")
         {
         echo "<font color=#04B404 size=3>" . $regtable['disabled'] . "</font><br>";
         }else{
         echo "<font color=#FF0000 size=3>". $regtable['disabled'] ."</font><br>";
         }
		}
		
echo "</td><td>";

for ($i=0; $i<250; $i++)

	{
$regtable = $ARRAY[$i];
	
	echo "<font color=#000099 size=3>" . $regtable['mtu'] . "</font><br>";
		}
		
echo "</td><td>";

for ($i=0; $i<250; $i++)

	{
$regtable = $ARRAY[$i];
	
	echo "<font color=#04B404 size=3>" . $regtable['l2mtu'] . "</font><br>";
		}
		
echo "</td><td>";


echo "</table>";
echo "<br />Debug:";
echo "<br />";
print_r($ARRAY);
   $API->disconnect();

}

?>

Wireless Interface List



<?php
  function popup( $text, $popup )
  {
  ?>
  <a href="javascript:void(0);" onmouseover="return overlib('<?php echo($popup); ?>
  ');" onmouseout="return nd();"><?php echo($text); ?></a>
  <?php
  }
  ?>
   
  <script type="text/javascript" src="overlib/overlib.js"><!-- overLIB (c) Erik Bosrup -->
  </script>

<?php

require('routeros_api.class.php');

$API = new routeros_api();

$API->debug = false;

if ($API->connect('192.168.1.2', 'api', 'api1234')) {

$ARRAY = $API->comm("/interface/wireless/print");

echo "<table width=100% border=1>";

echo "<tr><td align=left size=2>Id</td><td size=2>name</td><td size=2>mtu</td><td size=1>mac-address</td><td size=1>arp</td><td width=100 size=5>interface type</td><td>mode</td><td>ssid</td><td>frequency</td><td>band</td><td>scan list</td><td>antenna mode</td><td>wds mode</td><td>wds default bridge</td><td>wds ignore ssid</td><td>default authentication</td><td>default forwarding</td><td>default ap tx limit</td><td>default client tx limit</td><td>hide ssid</td><td>security profile</td><td>compression</td></tr>";

echo "<tr><td align=left>";


for ($i=0; $i<250; $i++)

	{
$regtable = $ARRAY[$i];
	
	echo "<font color=#04B404 size=2>" . $regtable['.id'] . "</font><br>";
		}
		
echo "</td><td>";


for ($i=0; $i<250; $i++)

	{
$regtable = $ARRAY[$i];
	
	echo "<font color=#04B404 size=2>" . $regtable['name'] . "</font><br>";
		}
		
echo "</td><td>";

for ($i=0; $i<250; $i++)

	{
$regtable = $ARRAY[$i];
	
	echo "<font color=#04B404 size=2>" . $regtable['mtu'] . "</font><br>";
		}
		
echo "</td><td>";

for ($i=0; $i<250; $i++)

	{
$regtable = $ARRAY[$i];

         echo "<font color=#04B404 size=2>" . $regtable['mac-address'] . "</font><br>";

		}
		
echo "</td><td>";

for ($i=0; $i<250; $i++)

	{
$regtable = $ARRAY[$i];
			if ($regtable['arp']=="true")
         {
         echo "<font color=#04B404 size=2>" . $regtable['arp'] . "</font><br>";
         }else{
         echo "<font color=#FF0000 size=2>". $regtable['arp'] ."</font><br>";
         }
		}
		
echo "</td><td>";

for ($i=0; $i<250; $i++)

	{
$regtable = $ARRAY[$i];
	
	echo "<font color=#000099 size=1>" . $regtable['interface-type'] . "</font><br>";
		}
		
echo "</td><td>";

for ($i=0; $i<250; $i++)

	{
$regtable = $ARRAY[$i];
	
	echo "<font color=#04B404 size=2>" . $regtable['mode'] . "</font><br>";
		}
		
echo "</td><td>";

for ($i=0; $i<250; $i++)

	{
$regtable = $ARRAY[$i];
	
	echo "<font color=#003300 size=2>" . $regtable['ssid'] . "</font><br>";
		}
		
echo "</td><td>";

for ($i=0; $i<250; $i++)

	{
$regtable = $ARRAY[$i];
	
	echo "<font color=#003300 size=2>" . $regtable['frequency'] . "</font><br>";
		}
		
echo "</td><td>";

for ($i=0; $i<250; $i++)

	{
$regtable = $ARRAY[$i];
	
	echo "<font color=#880000 size=2>" . $regtable['band'] . "</font><br>";
		}
		
echo "</td><td>";

for ($i=0; $i<250; $i++)

	{
$regtable = $ARRAY[$i];
	
	echo "<font color=#A00000 size=2>" . $regtable['scan-list'] . "</font><br>";
		}
		
echo "</td><td>";

for ($i=0; $i<250; $i++)

	{
$regtable = $ARRAY[$i];
	
	echo "<font color=#04B404 size=2>" . $regtable['antenna-mode'] . "</font><br>";
		}
		
echo "</td><td>";

for ($i=0; $i<250; $i++)

	{
$regtable = $ARRAY[$i];
	echo popup('WDS', 'WDS Mode  ' . $regtable['wds-mode'] . '<br/>WDS Default Bridge  ' . $regtable['wds-default-bridge'] . '<br/>WDS Ignore SSID  ' . $regtable['wds-ignore-ssid']);

		}
		
echo "</td><td>";

for ($i=0; $i<250; $i++)

	{
$regtable = $ARRAY[$i];
			if ($regtable['default-authentication']=="true")
         {
         echo "<font color=#04B404 size=2>" . $regtable['default-authentication'] . "</font><br>";
         }else{
         echo "<font color=#FF0000 size=2>". $regtable['default-authentication'] ."</font><br>";
         }
		}
		
echo "</td><td>";

for ($i=0; $i<250; $i++)

	{
$regtable = $ARRAY[$i];
			if ($regtable['default-forwarding']=="true")
         {
         echo "<font color=#04B404 size=2>" . $regtable['default-forwarding'] . "</font><br>";
         }else{
         echo "<font color=#FF0000 size=2>". $regtable['default-forwarding'] ."</font><br>";
         }
		}
		
echo "</td><td>";

for ($i=0; $i<250; $i++)

	{
$regtable = $ARRAY[$i];

        echo "<font color=#FF0000 size=2>". $regtable['default-ap-tx-limit'] ."</font><br>";

		}
		
echo "</td><td>";

for ($i=0; $i<250; $i++)

	{
$regtable = $ARRAY[$i];

        echo "<font color=#FF0000 size=2>". $regtable['default-client-tx-limit'] ."</font><br>";

		}
		
echo "</td><td>";

for ($i=0; $i<250; $i++)

	{
$regtable = $ARRAY[$i];
				if ($regtable['hide-ssid']=="true")
         {
         echo "<font color=#04B404 size=2>" . $regtable['hide-ssid'] . "</font><br>";
         }else{
         echo "<font color=#FF0000 size=2>". $regtable['hide-ssid'] ."</font><br>";
         }
		}
		
echo "</td><td>";

for ($i=0; $i<250; $i++)

	{
$regtable = $ARRAY[$i];

	echo "<font color=#CC0000 size=2>" . $regtable['security-profile'] . "</font><br>";
		}
		
echo "</td><td>";

for ($i=0; $i<250; $i++)

	{
$regtable = $ARRAY[$i];
				if ($regtable['compression']=="true")
         {
         echo "<font color=#04B404 size=2>" . $regtable['compression'] . "</font><br>";
         }else{
         echo "<font color=#FF0000 size=2>". $regtable['compression'] ."</font><br>";
         }
		}
		
echo "</td><td>";

for ($i=0; $i<250; $i++)

	{
$regtable = $ARRAY[$i];
				if ($regtable['running']=="true")
         {
         echo "<font color=#04B404 size=2>" . $regtable['running'] . "</font><br>";
         }else{
         echo "<font color=#FF0000 size=2>". $regtable['running'] ."</font><br>";
         }
		}
		
echo "</td><td>";

for ($i=0; $i<250; $i++)

	{
$regtable = $ARRAY[$i];
			if ($regtable['disabled']=="true")
         {
         echo "<font color=#04B404 size=2>" . $regtable['disabled'] . "</font><br>";
         }else{
         echo "<font color=#FF0000 size=2>". $regtable['disabled'] ."</font><br>";
         }
		}
		
echo "</td><td>";

echo "</table>";
echo "<br />Debug:";
echo "<br />";
print_r($ARRAY);

   $API->disconnect();

}

?>


Hotspot Hosts List



<?php
  function popup( $text, $popup )
  {
  ?>
  <a href="javascript:void(0);" onmouseover="return overlib('<?php echo($popup); ?>
  ');" onmouseout="return nd();"><?php echo($text); ?></a>
  <?php
  }
  ?>
   
  <script type="text/javascript" src="overlib/overlib.js"><!-- overLIB (c) Erik Bosrup -->
  </script>

<?php

require('routeros_api.class.php');

$API = new routeros_api();

$API->debug = false;

if ($API->connect('192.168.1.2', 'api', 'api1234')) {

$ARRAY = $API->comm("/ip/hotspot/host/print");


echo "<table width=100% border=1>";

echo "<tr><td align=left size=3>Id</td><td size=3>mac-address</td><td size=3>address</td><td size=3>to-address</td><td>server</td><td>uptime</td><td>keepalive-timeout</td><td>found-by</td><td>DHCP</td><td>authorized</td><td>bypassed</td><td>comment</td></tr>";

echo "<tr><td align=left>";


for ($i=0; $i<250; $i++)

	{
$regtable = $ARRAY[$i];
	
	echo "<font color=#04B404 size=3>" . $regtable['.id'] . "</font><br>";
		}
		
echo "</td><td>";


for ($i=0; $i<250; $i++)

	{
$regtable = $ARRAY[$i];
	
	echo "<font color=#04B404 size=3>" . $regtable['mac-address'] . "</font><br>";
		}
		
echo "</td><td>";

for ($i=0; $i<250; $i++)

	{
$regtable = $ARRAY[$i];
	
	echo "<font color=#04B404 size=3>" . $regtable['address'] . "</font><br>";
		}
		
echo "</td><td>";

for ($i=0; $i<250; $i++)

	{
$regtable = $ARRAY[$i];

         echo "<font color=#04B404 size=3>" . $regtable['to-address'] . "</font><br>";
		}
		
echo "</td><td>";

for ($i=0; $i<250; $i++)

	{
$regtable = $ARRAY[$i];
	
	echo "<font color=#000099 size=3>" . $regtable['server'] . "</font><br>";
		}
		
echo "</td><td>";

for ($i=0; $i<250; $i++)

	{
$regtable = $ARRAY[$i];
	
	echo "<font color=#003300 size=3>" . $regtable['uptime'] . "</font><br>";
		}
		
echo "</td><td>";

for ($i=0; $i<250; $i++)

	{
$regtable = $ARRAY[$i];
	
	echo "<font color=#003300 size=3>" . $regtable['keepalive-timeout'] . "</font><br>";
		}
		
echo "</td><td>";

for ($i=0; $i<250; $i++)

	{
$regtable = $ARRAY[$i];
	
	echo "<font color=#880000 size=3>" . $regtable['found-by'] . "</font><br>";
		}
		
echo "</td><td>";

for ($i=0; $i<250; $i++)

	{
$regtable = $ARRAY[$i];
		if ($regtable['DHCP']=="true")
         {
         echo "<font color=#04B404 size=3>" . $regtable['DHCP'] . "</font><br>";
         }else{
         echo "<font color=#FF0000 size=3>". $regtable['DHCP'] ."</font><br>";
         }
		}
		
echo "</td><td>";

for ($i=0; $i<250; $i++)

	{
$regtable = $ARRAY[$i];
		if ($regtable['authorized']=="true")
         {
         echo "<font color=#04B404 size=3>" . $regtable['authorized'] . "</font><br>";
         }else{
         echo "<font color=#FF0000 size=3>". $regtable['authorized'] ."</font><br>";
         }
		}
		
echo "</td><td>";

for ($i=0; $i<250; $i++)

	{
$regtable = $ARRAY[$i];
		if ($regtable['bypassed']=="true")
         {
         echo "<font color=#04B404 size=3>" . $regtable['bypassed'] . "</font><br>";
         }else{
         echo "<font color=#FF0000 size=3>". $regtable['bypassed'] ."</font><br>";
         }
		}
		
echo "</td><td>";

for ($i=0; $i<250; $i++)

	{
$regtable = $ARRAY[$i];
	
	echo "<font color=#04B404 size=3>" . $regtable['comment'] . "</font><br>";
		}
		
echo "</td><td>";

echo "</table>";
echo "<br />Debug:";
echo "<br />";
print_r($ARRAY);

   $API->disconnect();

}

?>


See also