Outils pour utilisateurs

Outils du site


bloc_note

Différences

Ci-dessous, les différences entre deux révisions de la page.

Lien vers cette vue comparative

Les deux révisions précédentesRévision précédente
Prochaine révision
Révision précédente
bloc_note [2025/02/26 11:25] adminbloc_note [2025/03/24 15:27] (Version actuelle) admin
Ligne 2: Ligne 2:
  
 <code> <code>
-#!/bin/bash+        <g id="SANDOUVILLE" transform="matrix(2.91786,0,0,2.64787,-910.867,-504.816)"> 
 + <ellipse cx="475.825" cy="305.328" rx="0.902" ry="0.994" style="fill:rgb(216,29,29);"/
 + <g transform="matrix(0.0639002,0,0,0.0708526,474.795,304.48)"> 
 + <g> 
 + <path id="Rectangle-24" serif:id="Rectangle-2" d="M24,11L26,11L26,13.686L13.686,26L2,13.686L13.686,2L26,2L26,8L24,8L23,5L14.929,5L6.188,13.741L13.742,21.701L23,12.444L24,11Z" style="fill:rgb(26,26,26);"/
 + <path id="D4" serif:id="D" d="M13.342,17.085C12.996,17.085 12.623,17.074 12.225,17.052C11.827,17.031 11.461,17 11.128,16.96L11.128,9.795C11.504,9.708 11.925,9.64 12.39,9.59C12.855,9.54 13.307,9.515 13.748,9.515C15.191,9.515 16.272,9.823 16.993,10.44C17.713,11.057 18.073,12.01 18.073,13.3C18.073,14.187 17.9,14.908 17.555,15.465C17.21,16.022 16.691,16.431 15.998,16.693C15.304,16.954 14.419,17.085 13.342,17.085ZM13.938,15.34C14.378,15.34 14.737,15.273 15.015,15.14C15.293,15.007 15.502,14.791 15.64,14.493C15.778,14.194 15.848,13.793 15.848,13.29C15.848,12.793 15.775,12.396 15.63,12.098C15.485,11.799 15.272,11.583 14.99,11.45C14.708,11.317 14.353,11.25 13.923,11.25C13.832,11.25 13.728,11.256 13.608,11.268C13.487,11.279 13.386,11.293 13.303,11.31L13.303,15.325C13.456,15.335 13.667,15.34 13.938,15.34Z" style="fill:rgb(50,50,50);"/> 
 + </g> 
 + </g> 
 + </g>
  
-echo "Content-type: text/html" 
-echo "" 
- 
-# Récupération de l'IP du client 
-if [[ -n "$HTTP_X_FORWARDED_FOR" ]]; then 
-    client_ip=$(echo "$HTTP_X_FORWARDED_FOR" | cut -d',' -f1) 
-elif [[ -n "$HTTP_X_REAL_IP" ]]; then 
-    client_ip="$HTTP_X_REAL_IP" 
-else 
-    client_ip="$REMOTE_ADDR" 
-fi 
- 
-# Génération de la page HTML 
-cat <<EOF 
-<!DOCTYPE html> 
-<html lang="fr"> 
-<head> 
-    <meta charset="UTF-8"> 
-    <meta name="viewport" content="width=device-width, initial-scale=1.0"> 
-    <title>Votre Adresse IP</title> 
-    <style> 
-        body { font-family: Arial, sans-serif; text-align: center; margin-top: 50px; } 
-        #ip { font-size: 24px; font-weight: bold; margin: 20px; display: inline-block; } 
-        button { padding: 10px 20px; font-size: 18px; cursor: pointer; } 
-    </style> 
-</head> 
-<body> 
-    <h1>Votre Adresse IP</h1> 
-    <p id="ip">$client_ip</p> 
-    <button type="button" id="copyBtn">Copier l'IP</button> 
- 
-    <script> 
-        document.addEventListener("DOMContentLoaded", function() { 
-            document.getElementById("copyBtn").addEventListener("click", function() { 
-                var ipText = document.getElementById("ip").innerText; 
- 
-                if (navigator.clipboard && navigator.clipboard.writeText) { 
-                    navigator.clipboard.writeText(ipText).then(() => { 
-                        alert("Adresse IP copiée : " + ipText); 
-                    }).catch(err => { 
-                        console.error("Erreur lors de la copie :", err); 
-                    }); 
-                } else { 
-                    console.warn("L'API Clipboard n'est pas supportée, utilisation de la méthode alternative."); 
- 
-                    // Méthode alternative 
-                    var tempInput = document.createElement("textarea"); 
-                    tempInput.value = ipText; 
-                    document.body.appendChild(tempInput); 
-                    tempInput.select(); 
-                    document.execCommand("copy"); 
-                    document.body.removeChild(tempInput); 
- 
-                    alert("Adresse IP copiée (méthode alternative) : " + ipText); 
-                } 
-            }); 
-        }); 
-    </script> 
-</body> 
-</html> 
-EOF 
 </code> </code>
bloc_note.1740565535.txt.gz · Dernière modification : 2025/02/26 11:25 de admin