5384d919f067e5efdb2fec5c20ccd25586d4a1de
[linksys-wrt3g-tools.git] / scripts / status.php
1 <?php
2 /**
3 * Shows router UMTS status
4 *
5 * PHP version 5
6 *
7 * @category Tools
8 * @package  linksys-wrt3g-tools
9 * @author   Christian Weiske <cweiske@cweiske.de>
10 * @license  AGPL v3
11 * @link     http://cweiske.de/linksys-wrt3g-tools.htm
12 */
13 require_once dirname(__FILE__) . '/config.php';
14 require_once 'Wrt3g.php';
15 try {
16     $w = new Wrt3g();
17     $arStatus = $w->getStatus();
18     foreach ($arStatus as $key => $value) {
19         echo $key . ': ' . $value . "\n";
20     }
21 } catch (Exception $e) {
22     echo 'Error: ' . $e->getMessage() . "\n";
23 }
24 ?>