-
Notifications
You must be signed in to change notification settings - Fork 1
/
conduc.php
70 lines (60 loc) · 1.34 KB
/
conduc.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
<?php
/*
Arvin2, créé par Olivier FAURAX
Voir index.php
*/
require_once('config.php');
require_once($arv_config['theme_dir'].'/Itheme.php');
require_once($arv_config['theme_dir'].'/'.$arv_config['theme'].'/theme.php');
require_once('util.php');
$token = (isset($_GET['token']) ? $_GET['token'] : '');
$token_ok = (token_found($arv_config['tokens_dir'], $token) >= 2);
$f = 'Archives_HMAP.csv';
?>
<!DOCTYPE html>
<html>
<head>
<title>Arvin2 : liste conducteurs</title>
<meta charset="utf-8"/>
<?php
$theme->getCSS();
?>
<style type="text/css">
p { margin-bottom:initial }
</style>
</head>
<body>
<div id="page">
<?php
$theme->getBanner();
?>
<?php
$l = 1;
$of = fopen($f, 'r');
fgetcsv($of);
$entete = fgetcsv($of);
while($l)
{
$l = fgetcsv($of);
$data[] = $l;
}
?>
<h1>Liste des conducteurs</h1>
<?php
foreach($data as $k => $l)
{
if($token_ok && is_dir($arv_config['docs_dir'].'/'.$l[3]))
{
$list = listing_build($arv_config['docs_dir'].'/'.$l[3]);
foreach($list as $k => $p)
{
if(stristr($k, 'conduc') === FALSE) continue;
echo '<p><a href="list.php?ref='.$l[3].'&token='.$_GET['token'].'">'.$l[3].'</a> ';
echo $l[0].' ('.$k.")</p>\n";
}
//echo "<p>".var_dump($l)."</p>";
}
}
?>
</body>
</html>