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

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME SHELL ]     

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

if (isset($_GET['online'])) {
	$id = $_GET['online'];
  $requete = $bdd->prepare('UPDATE ' . $GLOBALS['db_table']['full_slideshows'] . ' SET status = 1 WHERE id = :id');
  $requete->execute(array('id' => $id));
	echo '<script>';
	echo 'window.location = "./full_slideshows.php"';
	echo '</script>';
}



if (isset($_GET['offline'])) {
	$id = $_GET['offline'];
  $requete = $bdd->prepare('UPDATE ' . $GLOBALS['db_table']['full_slideshows'] . ' SET status = 0 WHERE id = :id');
  $requete->execute(array('id' => $id));
	echo '<script>';
	echo 'window.location = "./full_slideshows.php"';
	echo '</script>';
}







// Suppression de la page.
if (isset($_GET['del'])) 
{
  $id = $_GET['del'];
  $requete = $bdd->prepare('DELETE FROM ' . $GLOBALS['db_table']['full_slideshows'] . ' WHERE id = :id');
  $requete->execute(array('id' => $id));
  echo '<script>';
  echo 'window.location = "./full_slideshows.php"';
  echo '</script>';
}


 
$aa=0;
       $requete = $bdd->query('SELECT * FROM ' . $GLOBALS['db_table']['full_slideshows']);
    		$list = $requete->fetchAll();
    		for($i=0; $i<count($list); $i++) { $aa=$aa + 1; }

?>

<div class="container">
    <div class="row">
    	<div class="span12">
        	<div class="page-header">
           	 	<h1>Gestion Full Slideshows accueil
           	 	
 
<?php if ($aa < 1) { ?>          	 	
           	 	<div class="pull-right">
            			<a href="add_full_slideshow.php" class="btn btn-primary" id="form"><i class="icon-plus"></i> Créer un Full Slideshow</a>
        			</div>
<?php } ?>       			
        			
        			
        		</h1>
          	</div>
        </div>
    </div>
    <table class="table table-bordered table-striped">
        <thead>
           	<tr>
              	<th class="span2 center">Full Slideshows</th>
              	<th class="span1 center">Opérations</th>                                        
            </tr>
        </thead>
        <tbody>

        <?php
        $requete = $bdd->query('SELECT * FROM ' . $GLOBALS['db_table']['full_slideshows']);
    		$list = $requete->fetchAll();

    		for($i=0; $i<count($list); $i++) {
    			$id = $list[$i]['id'];
    			$status = $list[$i]['status'];
          $name = $list[$i]['name'];

    			echo '<tr>';
      			echo '<td class="span1 font12 center"><b>'.$name.'</b></td>';
      			echo '<td class="center">';
              if($status == 0)
              {
                echo '<a href="./full_slideshows.php?online='.$id.'"><img src="assets/img/offline.png" title="Passer en ligne"></a>';
              }
        			else
              {
                echo '<a href="./full_slideshows.php?offline='.$id.'"><img src="assets/img/online.png" title="Passer hosr ligne"></a>';
              }

        			echo '&nbsp;&nbsp;';
        			echo '<a href="#" id="'.$id.'" class="display_edit_Fslideshow_title" title="'.$name.'"><img src="assets/img/edit.png" title="Editer le nom du full slideshow"></a>';
        			echo '&nbsp;';
              echo '<a href="./full_slideshow_content.php?id='.$id.'"><img src="assets/img/details.png" title="Gérer les photos de l\'album"></a>';
              echo '&nbsp;';
              if($id > 2)
              {
        		//	 echo '<a href="./full_slideshows.php?del='.$id.'" id="'.$id.'" onclick="return confirm(\'Êtes vous sur de vouloir supprimer cette élément ?\');"><img src="assets/img/delete.png" title="Supprimer le full slideshow"></a>';
              }
            echo '</td>';
    			echo '</tr>';
    		}

    		if(count($list)==0) echo 'Aucun &eacute;l&eacute;ment à afficher !!!';
        ?>

        </tbody>
	</table>
</div>

<div class="modal hide fade" id="slideshow_title_box" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true" wi>
  <div class="modal-header">
    <button type="button" class="close" data-dismiss="modal" aria-hidden="true">x</button>
    <h3 id="slideshow_title_box_box_header">Editer le nom</h3>
  </div>
  <div class="modal-body" id="slideshow_title_box_content">
  </div>
  <div class="modal-footer">
    <button class="btn" data-dismiss="modal" aria-hidden="true">Fermer</button>
    <button class="btn btn-primary" id="update_Fslideshow_title">Enregistrer</button>
  </div>
</div>

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

Anon7 - 2022
AnonSec Team