remove debug code
authorStricted <info@stricted.de>
Sun, 28 Jun 2015 07:21:37 +0000 (09:21 +0200)
committerStricted <info@stricted.de>
Sun, 28 Jun 2015 07:21:37 +0000 (09:21 +0200)
speedport.class.php

index 90f5c32154dc8658d5337baf6a07d1443d6d987f..1650c5b98427967b5e31eb7d112706cb06cad025 100644 (file)
@@ -247,7 +247,7 @@ class speedport {
                $fields = array('exporttype' => '3');
                $cookie = 'challengev='.$this->challenge.'; '.$this->session;
                $data = $this->sentRequest($path, $fields, $cookie);
-               print_r($data);
+               
                if (empty($data['body'])) {
                        throw new Exception('unable to get syslog data');
                }
@@ -255,6 +255,18 @@ class speedport {
                return explode("\n", $data['body']);
        }
        
+       /*
+       public function resetToFactoryDefault () {
+               $path = 'data/resetAllSetting.json';
+               $fields = array('csrf_token' => 'nulltoken', 'showpw' => 0, 'password' => $this->hash, 'reset_all' => 'true');
+               $cookie = 'challengev='.$this->challenge.'; '.$this->session;
+               $data = $this->sentRequest($path, $fields, $cookie);
+               $json = json_decode($data['body'], true);
+               
+               return $json;
+       }
+       */
+       
        /**
         * check if firmware is actual
         *