You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

10 vuotta sitten
10 vuotta sitten
1234567891011121314151617181920212223242526272829303132
  1. <?php
  2. function connecte($base)
  3. {
  4. $hote="localhost";
  5. $utilisateur="ecomonde";
  6. $pass="proot";
  7. if(!isset($connexion))
  8. {
  9. $connexion=mysql_connect($hote,$utilisateur,$pass) or die ("<div class='alert alert-danger'><strong>ERREUR : </strong>Connexion au serveur impossible !</div>");
  10. $db=mysql_select_db($base,$connexion) or die ("<div class='alert alert-danger'><strong>ERREUR : </strong>Selection de la base $base impossible !</div>");
  11. }
  12. mysql_query("SET NAMES UTF8");
  13. }
  14. function requete1l($sql)
  15. {
  16. $resultat=mysql_query($sql) or die("<div class='alert alert-danger'><strong>ERREUR : </strong>Requete $sql problematique !</div>");
  17. $ligne=mysql_fetch_array($resultat);
  18. return $ligne;
  19. }
  20. session_start();
  21. $status=$_SESSION['status'];
  22. connecte("ecomonde");
  23. $sql="SELECT * FROM membres WHERE id='$status'";
  24. $res=mysql_query($sql) or die("Erreur de requete $sql");
  25. while ($ligne=mysql_fetch_array($res)) {
  26. extract($ligne);
  27. $hash=md5($email);
  28. $latest_commit = file_get_contents('./version.txt');
  29. }
  30. ?>