*
* @see Wrt3g_Config
*/
- public function loadConfig($options)
+ public function loadConfig($options = array())
{
$this->config = new Wrt3g_Config($this);
$this->config->load($options);
* @license AGPL v3
* @link http://cweiske.de/linksys-wrt3g-tools.htm
*/
-require_once dirname(__FILE__) . '/../config.php';
require_once 'Wrt3g.php';
if (isset($argv[1]) && $argv[1] == 'autoconf') {
try {
$router = new Wrt3g();
- $router->host = $GLOBALS['linksys-wrt3g-tools']['host'];
- $router->user = $GLOBALS['linksys-wrt3g-tools']['user'];
- $router->password = $GLOBALS['linksys-wrt3g-tools']['password'];
+ $router->loadConfig();
$arStatus = $router->getConnectionStatus();