From ace4f4e56406f2754b142b4252f0411636b5b49d Mon Sep 17 00:00:00 2001 From: Christian Weiske Date: Wed, 8 Dec 2010 20:19:41 +0100 Subject: move executable scripts to scripts/ --- scripts/status.php | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 scripts/status.php (limited to 'scripts/status.php') diff --git a/scripts/status.php b/scripts/status.php new file mode 100644 index 0000000..5384d91 --- /dev/null +++ b/scripts/status.php @@ -0,0 +1,24 @@ + +* @license AGPL v3 +* @link http://cweiske.de/linksys-wrt3g-tools.htm +*/ +require_once dirname(__FILE__) . '/config.php'; +require_once 'Wrt3g.php'; +try { + $w = new Wrt3g(); + $arStatus = $w->getStatus(); + foreach ($arStatus as $key => $value) { + echo $key . ': ' . $value . "\n"; + } +} catch (Exception $e) { + echo 'Error: ' . $e->getMessage() . "\n"; +} +?> \ No newline at end of file -- cgit v1.2.3