projects
/
GitHub
/
Stricted
/
speedport-hybrid-php-api.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
4ae464d
)
remove debug code
author
Stricted
<info@stricted.de>
Sun, 28 Jun 2015 07:21:37 +0000
(09:21 +0200)
committer
Stricted
<info@stricted.de>
Sun, 28 Jun 2015 07:21:37 +0000
(09:21 +0200)
speedport.class.php
patch
|
blob
|
blame
|
history
diff --git
a/speedport.class.php
b/speedport.class.php
index 90f5c32154dc8658d5337baf6a07d1443d6d987f..1650c5b98427967b5e31eb7d112706cb06cad025 100644
(file)
--- a/
speedport.class.php
+++ b/
speedport.class.php
@@
-247,7
+247,7
@@
class speedport {
$fields = array('exporttype' => '3');
$cookie = 'challengev='.$this->challenge.'; '.$this->session;
$data = $this->sentRequest($path, $fields, $cookie);
$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');
}
if (empty($data['body'])) {
throw new Exception('unable to get syslog data');
}
@@
-255,6
+255,18
@@
class speedport {
return explode("\n", $data['body']);
}
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
*
/**
* check if firmware is actual
*