-
Notifications
You must be signed in to change notification settings - Fork 0
/
index_loc.php
60 lines (53 loc) · 2.69 KB
/
index_loc.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
<?php
if(session_status() === PHP_SESSION_NONE) session_start();
// pour les variables de session----------------------
$_SESSION["domaine"]=$_SERVER['HTTP_HOST'];$_SESSION["exeption_db"]="";
$_SESSION["id_session"] = session_id();
include ("admin/config.php");
// Check connection DB
mysqli_report(MYSQLI_REPORT_OFF);
$conn = @new mysqli(SERVEUR, UTILISATEUR, MOTDEPASSE, DBASE);
if (!$conn) {echo "pas de BD : ".DBASE ;$_SESSION["exeption_db"]="pas de connexion à la BD"; }
//
// pour vérifier la connexion au net------------------
if (!$sock = @fsockopen('www.google.fr', 80)) {$_SESSION["TC"]="0";}
else {$_SESSION["TC"]="200";}
// -variables----------------------------------------
$_SESSION["version"]="2.2.7";//
$_SESSION["d_root"]=$_SERVER["DOCUMENT_ROOT"];
$_SESSION["d_admin"]=$_SERVER["DOCUMENT_ROOT"]."/admin/";
$_SESSION["d_include"]=$_SERVER["DOCUMENT_ROOT"]."/include/";
//$_SESSION["domaine"]=$_SERVER['HTTP_HOST'];
// ----------------------------------------------------
// début du programme
//$files_custom = scandir(custom/php);
//$compteur = count($files_custom);
include ("include/entete_html.php");// la partie <head de la page html
include ("include/header.php");// l' affichage du menu de la page d'accueil
include ("include/accueil.php");// l' affichage page accueil
if (ON_MET==true) include ("include/meteo.php"); // une page de prévision météo
include ("include/interieur.php");// plan intérieur
include ("include/clavier_code.php");
if (ON_ALARM==true) include ("include/alarmes.php"); // alarmes absence et nuit
if (ON_GRAPH==true) include ("include/graphiques.php");// édition de graphiques
// autre pages disponibles à décommenter pour les inclure
if (ON_EXT==true) include ("include/exterieur.php");
if (ON_ONOFF==true) include ("include/mur_inter.php");
if (ON_APP==true) include ("include/app_diverses.php");
// administration
include ("include/admin.php");
if (ON_ZIGBEE==true) include ("include/zigbee.php");// fronted zigbee2mqtt
if (ON_ZWAVE==true) include ("include/zwave.php");// webUI zwavejs2mqtt
if (ON_MUR==true) {include ("include/mur_cam.php");$_SESSION["zmuser"]=ZMUSER;
$_SESSION["zmpass"]=ZMPASS;}
if (ON_DVR==true) include ("include/dvr.php");
if (ON_NAGIOS==true) include ("include/nagios.php");//monitoring
if (ON_SPA==true) include ("include/spa.php");//spa
if (ON_HABRIDGE==true) include ("include/habridge.php");//pont hue Alexa
if (ON_RECETTES==true) include ("include/recettes.php");//recettes
if (URLIOB!="") include ("include/iobroker.php");//iobroker
include ("include/modes_emploi.php");
# include ("custom/php/worx.php");
include ("include/footer.php");// fin de la page avec les scrpits JS
?>
</body></html>