Révision e464d4d0
b/index.php | ||
---|---|---|
5 | 5 |
* |
6 | 6 |
* This source code is licensed under the GNU General Public License, |
7 | 7 |
* Version 2. See the file COPYING for more details. |
8 |
* |
|
9 |
* Le système de fichiers doit être au même encodage |
|
10 |
* que les chaîne de caractère de PHP (default_charset). |
|
8 | 11 |
*/ |
9 | 12 |
|
10 | 13 |
function getConges($path, &$employes, &$conges) { |
... | ... | |
13 | 16 |
if ($dir = opendir($path)) { |
14 | 17 |
while (($file = readdir($dir)) !== FALSE) { |
15 | 18 |
if (is_file("$path/$file")) { |
16 |
$employes[] = utf8_decode($file); |
|
19 |
$employes[] = $file; |
|
17 | 20 |
$dates = file("$path/$file"); |
18 | 21 |
foreach ($dates as $date) $conges[$file][] = rtrim($date); |
19 | 22 |
} |
... | ... | |
90 | 93 |
?> |
91 | 94 |
<html> |
92 | 95 |
<head> |
93 |
<title>Gestion de congés</title> |
|
96 |
<title>Gestion de congés</title> |
|
94 | 97 |
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> |
95 | 98 |
<meta http-equiv="Content-language" content="fr" /> |
96 | 99 |
<meta name="copyright" content="Tous droits réservés - All Rights Reserved" /> |
Formats disponibles : Unified diff