From ff242e6e618ee53ebcd7251f9c26ff721c7a03b4 Mon Sep 17 00:00:00 2001 From: Ludovic Pouzenc Date: Sat, 12 Mar 2016 15:33:23 +0100 Subject: Initial import. --- maj/index.php | 139 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 139 insertions(+) create mode 100644 maj/index.php (limited to 'maj/index.php') diff --git a/maj/index.php b/maj/index.php new file mode 100644 index 0000000..f9ed143 --- /dev/null +++ b/maj/index.php @@ -0,0 +1,139 @@ + + * + * CHD OpenWRT is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * CHD OpenWRT is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with CHD OpenWRT. If not, see . +**/ + +require_once('config.php'); +?> + + + + + + Mise à jour du routeur + + + + + +Erreur : L'adresse publique $ip4pub n'est pas reconnue\n"; + exit(); + } + + $rest = file_get_contents($CONF_API_BASE_URL . "/gen_firm.php?ip4pub=".urlencode($ip4pub), false, NULL, 0, 256); + if ( $rest === FALSE ) { + echo "
Erreur : Pb webservice
\n"; + exit(); + } + + $result = json_decode($rest); + if ( !array_key_exists("initiales", $result) ) { + echo "
Erreur : Pb retour webservice
\n"; + exit(); + } + $ip4wan = $result->ip4wan; + $ip6prefix = $result->ip6prefix; + $constructeur = $result->constructeur; + $modele = $result->modele; + $profile = $result->profile; + $revision = $result->revision; + $adt_initiales = $result->initiales; + + $action=array_key_exists('dev', $_GET)?"gen-dev.php":"gen.php"; +?> +
+
+
+ Paramètres du réseau WiFi de maison + + + + + + + + + + + + + + + + + +
DésactivéMoyenFort
+
+
+
+ Administration du routeur + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+
    +
  • Utilisez ce formulaire depuis votre propre connexion internet CHD ;
  • +
  • Réutilisez les anciens paramètres WiFi si vous souhaitez éviter de devoir retapper le mot de passe sur vos équipements WiFi ;
  • +
  • Changez le mot de passe d'administration (initialement : admin) ;
  • +
+
+
+
+ + -- cgit v1.1