<div id="carouselExampleIndicators" class="carousel slide  d-lg-none " data-bs-ride="true">
  <div class="carousel-indicators">
    <button type="button" data-bs-target="#carouselExampleIndicators" data-bs-slide-to="0" class="active" aria-current="true" aria-label="Slide 1" style="background:none;border:1px solid black;"></button>
    <button type="button" data-bs-target="#carouselExampleIndicators" data-bs-slide-to="1" aria-label="Slide 2" style="background:none;border:1px solid black;"></button>
    <button type="button" data-bs-target="#carouselExampleIndicators" data-bs-slide-to="2" aria-label="Slide 3" style="background:none;border:1px solid black;"></button>
    <button type="button" data-bs-target="#carouselExampleIndicators" data-bs-slide-to="3" aria-label="Slide 4" style="background:none;border:1px solid black;"></button>
    <button type="button" data-bs-target="#carouselExampleIndicators" data-bs-slide-to="4" aria-label="Slide 5" style="background:none;border:1px solid black;"></button>
    <button type="button" data-bs-target="#carouselExampleIndicators" data-bs-slide-to="5" aria-label="Slide 6" style="background:none;border:1px solid black;"></button>
    <button type="button" data-bs-target="#carouselExampleIndicators" data-bs-slide-to="6" aria-label="Slide 7" style="background:none;border:1px solid black;"></button>
  </div>
  <div class="carousel-inner">
    <div class="carousel-item active">
      <img src="logo/jpg.jpg" class="d-block w-100 " alt="...">
    </div>
    <div class="carousel-item">
      <img src="logo/jpg.jpg" class="d-block w-100" alt="...">
    </div>
    <div class="carousel-item">
      <img src="photo/1661441700570-1117745807.jpg" class="d-block w-100" alt="...">
    </div>
    <div class="carousel-item">
      <img src="photo/1661442329945630850668.jpg" class="d-block w-100" alt="...">
    </div>
    <div class="carousel-item">
      <img src="photo/1661442576841-2038222896.jpg" class="d-block w-100" alt="...">
    </div>
    <div class="carousel-item">
      <img src="https://i.ytimg.com/vi/yCnJfCvfxPs/maxresdefault.jpg" class="d-block w-100" alt="...">
    </div>
    <div class="carousel-item">
      <img src="photo/1661444392153-2091361619.jpg" class="d-block w-100" alt="...">
    </div>
  </div>
  <button class="carousel-control-prev" type="button" data-bs-target="#carouselExampleIndicators" data-bs-slide="prev" style="background:none;border:none;">
    <span class="carousel-control-prev-icon" aria-hidden="true"></span>
    <span class="visually-hidden"  style="color:black">Previous</span>
  </button>
  <button class="carousel-control-next" type="button" data-bs-target="#carouselExampleIndicators" data-bs-slide="next" style="background:none;border:none;">
    <span class="carousel-control-next-icon" aria-hidden="true"></span>
    <span class="visually-hidden" style="color:black">Next</span>
  </button>
</div>
<!--Responsive Laptop-->
<div class="container-fluid  d-none d-lg-block">
    <div class="slider responsive d-block-inline">
				<div>
      <img src="https://neplych.com/wp-content/uploads/2022/04/Highest-Grossing-Movies-of-2022-Worldwide-Box-Office.jpg" class="d-block w-100" alt="...">
				</div>
				<div>
				<img src="logo/10781611.png" class="d-block w-100 " alt="...">
				</div>
				<div>
				      <img src="photo/1661441700570-1117745807.jpg" class="d-block w-100 h-50" alt="...">
				</div>
				<div>
					      <img src="photo/1661444392153-2091361619.jpg" class="d-block w-100 h-50" alt="...">
				</div>
				<div>
                    <img src="photo/1661442329945630850668.jpg" class="d-block w-100" alt="...">
				</div>
				<div>
      <img src="https://i.ytimg.com/vi/yCnJfCvfxPs/maxresdefault.jpg" class="d-block w-100" alt="...">
				</div>
				<div>
      <img src="photo/1661442576841-2038222896.jpg" class="d-block w-100" alt="...">
				</div>
			</div>
</div>
=

<?php

if(1 == 1){

    $Chaines = $bdd->query('SELECT * FROM chaines  WHERE logo != "" AND Visibilte="visible" ORDER BY GroupTitle');

echo '<h5 class="text-light">Les ch창ines DaliooTv</h5>';

echo'<div class="row m-2">';

while ($chaine = $Chaines->fetch()) {

  // code...

?>

        <div class="col-3 col-md-2 mt-2 col-lg-1 p-1"><a href="chaines-tv.php?id=<?php echo $chaine['id_chaine']; ?>"><div class="card-img bg-logo" style="height:80px;background-align:center;"><img src="<?php if(!empty($chaine['logo'])){echo $chaine['logo'];}else{echo"backgroung.jpeg

";} ?>" class="img-fluid" style="height:100%;width: 100%;"></div></a>

       </div><br>

<?php

}

echo"</div>";

}

?>
=========
<?php
include 'connexion/connexionserveur.php';
include"protection-adresse-ip.php";
//include '../osms-php-master/src/Osms.php';
//inscription
if (isset($_POST['button-registre'])) {
  $ville = $_POST['ville'];
  $nom = htmlspecialchars($_POST['nom']);
  $prenom = htmlspecialchars($_POST['prenom']);
  $mdp = $_POST['password'];
  $sex = htmlspecialchars($_POST['genre']);
  $mdp2 = $_POST['passwordC'];
  $phone = htmlspecialchars($_POST['numero']);
  $mail = htmlspecialchars($_POST['mail']);
  if ($mdp == $mdp2) {
  if(strlen($phone) == 10 AND strlen($mdp) >= 4 AND strlen($prenom) >= 3  AND strlen($nom) >= 3){
         #Verification de compte
     $NewUsers = $bdd->prepare('SELECT * FROM utilisateurs WHERE phone=?');
    $NewUsers->execute(array($phone));
    $NewUsersExist = $NewUsers->rowcount();
    if ($NewUsersExist == 1) {
      $messages = '<font color="black"><bUn compte existe avec ce numéro</b></font>';
    }else{
        #Abonnement gratuit
        //$bonus = 604800;#7Jours
        $bonus = 172800;#2Jours
        $debut_abonnement = date("U");
        $fin_abonnement = $debut_abonnement + $bonus;
        $FinJours = date('j')+2;
        $FinMois = date('m');
        $FinAnne = date('Y');
        #Ajout dans la base
        $photo = "https://daliootv.com/files/images/logo/logo-daliootv-orange.png";
      $ajout = $bdd->prepare('INSERT INTO utilisateurs(email,nom,prenom,phone,password,genre,debut_abonnement,fin_abonnement,abonnement,photo,FinJours,FinMois,FinAnnes,ville,Date,bouquet) VALUES(?,?,?,?,?,?,?,?,?,?,?,?,?,?,now(),?)');
    $ajout->execute(array($mail,$nom,$prenom,$phone,$mdp,$sex,$debut_abonnement,$fin_abonnement,"actif",$photo,$FinJours,$FinMois,$FinAnne,$ville,"promo"));
    ############Verification########
    $apres = $bdd->prepare('SELECT * FROM utilisateurs WHERE phone=? AND password=?');
    $apres->execute(array($phone,$mdp));
    $apresExact = $apres->rowcount();
    $informations = $apres->fetch();
    if ($apresExact == 1) {
      //$id = urlencode($_SESSION['id']);
      $_SESSION['id'] = $informations['id'];
      $_SESSION["prenom"] = $informations['prenom'];
    $_SESSION["phone"] = $informations['phone'];
    $_SESSION["pays"] = $informations['pays'];
    $_SESSION["PhotoProfile"] = $informations['photo'];
    #Sms de bienvenue des uttilasteurs
    if(isset($phonee)){
    $phones = substr($phone,1,9);
    $messages = 'Bonjour '.$prenom.' bienvenue sur l\'application Daliootv. votre compte a été créé avec succès, daliootv.com';
    $curl = curl_init();
    curl_setopt_array($curl, array(
  CURLOPT_URL => 'https://api.orange.com/smsmessaging/v1/outbound/tel%3A%2B243851388940/requests',
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => '',
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 0,
  CURLOPT_FOLLOWLOCATION => true,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => 'POST',
  CURLOPT_POSTFIELDS =>'{
	"outboundSMSMessageRequest": {
		"address": "tel:+243'.$phones.'",
		"senderAddress":"tel:+243851388940",
		"outboundSMSTextMessage": {
			"message": "'.$messages.'"
		}
	}
} ',
  CURLOPT_HTTPHEADER => array(
    'Content-Type: application/json',
    'Authorization: Bearer L8B7MvQXeBYNU6tOMS4wqE2UDeTs'
  ),
));

$response = curl_exec($curl);
curl_close($curl);
//echo $response;
    }
      header('location: index.php?Users='.$informations['id'].'&new=offres');
    }else{
        //Problème au niveau de connexion.
        $messages = '<font color="black"><b>Utilisateur introuvable !</b></font>';
    }
    }
    
  }else{
       $messages = '<font color="black"><b>Vérifier bien vos identité (Nom, Prénom, Numéro).</b></font>';
  }
  }else{
       $messages = '<font color="black"><b>Mot de pass non identique !</b></font>';
  }
}
//echo $_SERVER["REQUEST_METHOD"];
//End
?>
