Revert "add experimental Speedportw724v class"
authorStricted <info@stricted.de>
Sat, 8 Aug 2015 13:56:44 +0000 (15:56 +0200)
committerStricted <info@stricted.de>
Sat, 8 Aug 2015 13:59:04 +0000 (15:59 +0200)
see test branch for more informations

README.md
Speedportw724v.class.php [deleted file]

index c5a0abd460665fd6bd82081074c1ee8b91017515..f046add56fdf55085326d1ba0e7dbb6642bb906f 100644 (file)
--- a/README.md
+++ b/README.md
@@ -1,6 +1,6 @@
 ### speedport hybrid php api
 
-[![Build Status](https://travis-ci.org/Stricted/speedport-hybrid-php-api.svg)](https://travis-ci.org/Stricted/speedport-hybrid-php-api) [![Release](https://img.shields.io/github/release/Stricted/speedport-hybrid-php-api.svg?style=flat-square)](https://github.com/Stricted/speedport-hybrid-php-api/releases/latest) [![License](https://img.shields.io/badge/license-LGPLv3-brightgreen.svg?style=flat-square)](https://github.com/Stricted/speedport-hybrid-php-api/blob/master/LICENSE)
+[![Build Status](https://travis-ci.org/Stricted/speedport-hybrid-php-api.svg?branch=master)](https://travis-ci.org/Stricted/speedport-hybrid-php-api) [![Release](https://img.shields.io/github/release/Stricted/speedport-hybrid-php-api.svg)](https://github.com/Stricted/speedport-hybrid-php-api/releases/latest) [![License](https://img.shields.io/badge/license-LGPLv3-brightgreen.svg)](https://github.com/Stricted/speedport-hybrid-php-api/blob/master/LICENSE)
 
 Access Speedport Hybrid Router through PHP
 
diff --git a/Speedportw724v.class.php b/Speedportw724v.class.php
deleted file mode 100644 (file)
index 2f7a37a..0000000
+++ /dev/null
@@ -1,28 +0,0 @@
-<?php
-require_once('SpeedportHybrid.class.php');
-
-/**
- * @author      Jan Altensen (Stricted)
- * @license     GNU Lesser General Public License <http://opensource.org/licenses/lgpl-license.php>
- * @copyright   2015 Jan Altensen (Stricted)
- */
-class Speedportw724v extends SpeedportHybrid {
-       public function login ($password) {
-               /* this is experimental, i dont have a speedport w724v so i cant test this
-                * feel free to test it and report if it dosent work
-                */
-               $path = 'data/Login.json';
-               $this->hash = md5($password);
-               $fields = array('password' => $this->hash, 'password_shadowed' => $this->hash, 'showpw' => 0);
-               $data = $this->sentRequest($path, $fields);
-               $json = $this->getValues($data['body']);
-               
-               if (isset($json['login']) && $json['login'] == 'success') {
-                       $this->cookie = $data['header']['Set-Cookie'];
-                       
-                       return true;
-               }
-               
-               return false;
-       }
-}