*/
require_once 'Wrt3g.php';
-$options = array();
-foreach (array('host', 'user', 'password') as $variable) {
- if (isset($_SERVER[$variable])) {
- $options[$variable] = $_SERVER[$variable];
- }
-}
-
if (isset($argv[1]) && $argv[1] == 'autoconf') {
$router = new Wrt3g();
- $router->loadConfig($options);
+ $router->loadConfig();
if ($router->config->host === null) {
echo "no (no host configured)\n";
} else {
try {
$router = new Wrt3g();
- $router->loadConfig($options);
+ $router->loadConfig();
$arStatus = $router->getConnectionStatus();