ÿØÿà JFIF ` ` ÿþxØ
| Server IP : 109.234.164.53 / Your IP : 216.73.216.110 Web Server : Apache System : Linux cervelle.o2switch.net 4.18.0-553.32.1.lve.el8.x86_64 #1 SMP Thu Dec 19 13:14:03 UTC 2024 x86_64 User : computer3 ( 1098) PHP Version : 7.1.33 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /home/computer3/fermegarat.com/OLD/ |
Upload File : |
<?php
/*
Module : Front-Office - Accueil
Date : Juin 2015
Version Shop : V15.6
Auteur : Guillaume MADIOT - Computer 64
*/
//****************************************************************************************//
//************************************* Configuration ************************************//
//****************************************************************************************//
// Chargement fichiers de configuration.
require('libs/Smarty.class.php');
// Démarrage du moteur TPL.
$smarty = new Smarty;
// Chargement des Fonctions Globals.
require('fonctions.php');
// Facebook partage
$img_facebook= "";
$Image_facebook_defaut = "logo.png";
if ($img_facebook==''){ $img_facebook=$Image_facebook_defaut; $dossier_faceb = "templates/shop/img/"; } else { $dossier_faceb = "uploadfiles/blog/"; $img_facebook=$img_facebook; }
$url_img_faceb = $dossier_faceb . $img_facebook;
$smarty->assign("img_facebook", $url_img_faceb);
//****************************************************************************************//
//*********************************** Slideshow accueil **********************************//
//****************************************************************************************//
$sql = $GLOBALS['bdd']->query('SELECT name, picture, url, target FROM slideshow_pictures
WHERE status = 1 AND slideshow = 2 AND (SELECT status FROM slideshows WHERE id = 2) = 1
ORDER BY position');
$result = $sql->fetchAll();
$smarty->assign("pictures", $result);
//****************************************************************************************//
//*************************************** Articles ***************************************//
//****************************************************************************************//
$sql = $GLOBALS['bdd']->query('SELECT seo, title, picture, date_insere FROM blog
WHERE status = 1
ORDER BY position ASC');
$result = $sql->fetchAll();
$smarty->assign("articles", $result);
//*************************************** Affichage **************************************//
$smarty->display('blog.tpl');
?>