// - Version Index.php avec bandeau Annonce
// $pub_haut = "rezomaison";
$title = "La Maison de la Domotique - Le Magazine / Portail de l'habitat communicant";
$meta_keywords = "domotique,domotic,cpl,x10,xdom,home,cinema,maison,communicante,communicant,habitat,confort,courant,porteur,bâtiment,habitat,universel,intelligent,biometrie,ntic,confortique,automation,ligne,powerline,network,networking,news,video,camera,surveillance,webcam,jmlab,hager,legrand,unidom,appartement,thermostat,chauffage,lumière,constructeur,securité,immotique,intelligent,confort,x10,tebis,hager,varuna,hestia,lutron,crestron,alarme,économie,énergie,handicap,handicape,surveillance,telecommande,telephone,telesurveillance,electricien,electricite,amenagement,chauffage,eclairage,infrarouge,automatic,automatique,automatisation,automatisme,domicile,habitation,feng-shui,installateur,installation,programmateur,renovation,residence,portail,volet,domoticien,palm,smartphone,nfc,consuel";
$meta_description = "Le Magazine de la Domotique et de l'habitat communicant : informations produits, news, tests, fiches, forums, installateurs - Premier portail Français Domotique par NTIC Edition®";
include($_SERVER['DOCUMENT_ROOT']."/inc/menu.php");
include($_SERVER['DOCUMENT_ROOT']."/inc/connect_base.php");
?>
// Premier encart
$encart = array();
$encart['1'] = "./encarts/encarttwitter.html";
$encart['2'] = "./encarts/encartclub.html";
$encart['3'] = "./rire/encartrire.html";
include($encart[mt_rand(1,3)]);
// $encart['2'] = "./stopaffaires/SC9100.html";
// $encart['2'] = "./modules/deltadore/encartdelta.html";
?>
|
 |
// Deuxième encart
$encart = array();
$encart['1'] = $_SERVER["DOCUMENT_ROOT"]."/html/encart2annonces.html";
include($encart[mt_rand(1,1)]);
?>
|
 |
 |
A la "une" actuellement |
|
[Archives] |
 |
|
// Défini le nombre d'articlés à afficher
$nb_affichage_articles = 3;
// Derniers articles
$ligne_aff = 0;
mysql_query('SET NAMES "UTF8"');
$rs_derniers_articles = mysql_query("SELECT * FROM articles WHERE date <= '".date('Ymd')."' AND (affichage='1' OR affichage='2') ORDER BY ID DESC LIMIT 0,$nb_affichage_articles");
while ($datas_articles = mysql_fetch_assoc($rs_derniers_articles)) {
$ligne_aff++;
print("\n");
if (ereg("http://", $datas_articles['lien'])) {
print(" ");
} else if (!empty($datas_articles['lien'])) {
print(" ");
} else {
$titre_lien = sprintf("%04d", $datas_articles['ID'])."-".creer_titre_article($datas_articles['titre']).".html";
print(" ");
}
print($datas_articles['titre']."\n");
if ($datas_articles['accroche'] != "") {
print("  ");
}
// Fichier article
if (!empty($datas_articles['debut'])) {
echo $datas_articles['debut'];
} else if ($datas_articles['article'] != "") {
$article = implode("", file("articles/".$datas_articles['article'].".php"));
$pattern = "<[^>]+>";
$article = eregi_replace($pattern,"",$article);
$article = eregi_replace("\n", "", $article);
$article = eregi_replace("\r", "", $article);
$article = stripslashes($article);
$mots = explode(" ", $article);
// $i utilisé pour le numéro de colonne dans le tableau
// $mot pour compter le nombre de mots affichés
// $mots, bien sûr, c'est le tableau des mots ;)
$i = 0;
$mot = 0;
while ($mot <= 26 AND isset($mots[$i])) {
if ($mots[$i] != "" && $mots[$i] != " ") {
echo $mots[$i]." ";
$mot++;
}
$i++;
}
echo "...\n";
}
print(" \n");
//if ($ligne_aff != $nb_affichage_articles) {
// echo " \n";
//}
print(" \n");
}
?> |
|
 |
|
 |
pub_centre(); ?> |
 |
$encart = array();
$encart['1'] = $_SERVER["DOCUMENT_ROOT"]."/html/pub_phare.html";
$encart['2'] = $_SERVER["DOCUMENT_ROOT"]."/html/pub_fvs.html";
include($encart[mt_rand(2,2)]);
?>
|
 |
Infos pratiques |
|
|
|
 |
 |
Le Forum |
|
|
derniers_messages_forum(3); ?>
|
|
 |
|
|