Commit cb5a349216cc724c0a1c3562446bff62c5b1312b

Authored by Jean Wasilewski
1 parent 69eafcb3

Fix for the UTF8 and the dynamic inclusion

Showing 2 changed files with 4 additions and 0 deletions   Show diff stats
@@ -3,4 +3,7 @@ define("__MYSQL_USERNAME__", "crep"); @@ -3,4 +3,7 @@ define("__MYSQL_USERNAME__", "crep");
3 define("__MYSQL_PASSWORD__", "lescrepcestcool"); 3 define("__MYSQL_PASSWORD__", "lescrepcestcool");
4 define("__MYSQL_HOSTNAME__", "cambraisis.escaut.net"); 4 define("__MYSQL_HOSTNAME__", "cambraisis.escaut.net");
5 define("__MYSQL_DATABASE__", "crep"); 5 define("__MYSQL_DATABASE__", "crep");
  6 +mb_internal_encoding('UTF-8');
  7 +mb_http_output('UTF-8');
  8 +mb_http_input('UTF-8');
6 ?> 9 ?>
1 <?php 1 <?php
  2 +require_once("creds.php");
2 3
3 echo "<h2> News "; 4 echo "<h2> News ";
4 if(isset($_SESSION["admin"])&&$_SESSION["admin"]) 5 if(isset($_SESSION["admin"])&&$_SESSION["admin"])