Skip to content

Commit

Permalink
Updated the code to work with Fritz!OS 5.50
Browse files Browse the repository at this point in the history
with new LUA Loginpage.
  • Loading branch information
Manawyrm committed Sep 22, 2013
1 parent cd0c0a0 commit 5ffb40b
Show file tree
Hide file tree
Showing 3 changed files with 263 additions and 95 deletions.
6 changes: 3 additions & 3 deletions fritzdocsis_.php
@@ -1,8 +1,8 @@
#!/usr/bin/php
<?php
// Configure me hard!
$password="YouPassword";
$fritzbox_ip="fritz.box";
// Please configure Fritz!Box Login Data in /lib/fritzbox_user.conf.php

$tmpFile="/tmp/fritzdocsis.db.";
$tmpFileMaxAge="60";

Expand All @@ -13,7 +13,7 @@
// Check if we have to do a new DOCSIS query
if(!file_exists($tmpFile."downstream") || (filemtime($tmpFile."downstream") < time() - $tmpFileMaxAge)) {
// Get us a new fritzbox handler
$fritz = new fritzbox_api($password, $fritzbox_ip);
$fritz = new fritzbox_api();
/*
// Refresh the Page
$params = array(
Expand Down

0 comments on commit 5ffb40b

Please sign in to comment.