Skip to content

Commit

Permalink
i update my file index.php to index.html
Browse files Browse the repository at this point in the history
  • Loading branch information
abdelkarimhajji committed Dec 30, 2023
1 parent 3de9337 commit 6254e86
Showing 1 changed file with 13 additions and 13 deletions.
26 changes: 13 additions & 13 deletions ipTv/index.php → ipTv/index.html
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
<?php
include "connecte.php";
// header('Content-Type: text/html; charset=utf-8');
session_start();
$ip_address = $_SERVER['REMOTE_ADDR'];
if (!isset($_SESSION['visit_counter'])) {
// Set the initial value of the visit counter
$sql = "INSERT INTO dataWebSite (visite, ip)
VALUES (1, '$ip_address')";
mysqli_query($conn, $sql);
$_SESSION['visit_counter'] = '1';
}
?>

<!-- // include "connecte.php";
// // header('Content-Type: text/html; charset=utf-8');
// session_start();
// $ip_address = $_SERVER['REMOTE_ADDR'];
// if (!isset($_SESSION['visit_counter'])) {
// // Set the initial value of the visit counter
// $sql = "INSERT INTO dataWebSite (visite, ip)
// VALUES (1, '$ip_address')";
// mysqli_query($conn, $sql);
// $_SESSION['visit_counter'] = '1';
// } -->

<!DOCTYPE html>
<html lang="en">
<head>
Expand Down

0 comments on commit 6254e86

Please sign in to comment.