-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathlist.php
executable file
·46 lines (36 loc) · 1.01 KB
/
list.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
<?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_found = token_found($arv_config['tokens_dir'], $_GET['token']);
if($token_found < 1)
html_err('Jeton d\'accès invalide');
elseif($token_found < 2)
html_err('Jeton d\'accès expiré');
if(!check_ref($arv_config['docs_dir'], $_GET['ref']))
html_err('Référence invalide');
$listing = listing_build($arv_config['docs_dir'].'/'.$_GET['ref']);
?>
<!DOCTYPE html>
<html>
<head>
<title>Téléchargements <?php echo $_GET['ref'] ?></title>
<?php
$theme->getCSS();
?>
<meta charset="utf-8"/>
<meta name="viewport" content="width=device-width, initial-scale=1">
</head>
<body>
<div id="page">
<?php
$theme->getBanner();
?>
<h1><a href="index.php?s=<?php echo $_GET['ref'] ?>"><?php echo $_GET['ref'] ?></a></h1>
<?php
listing_render_list($listing, $_GET['token'], $_GET['ref'], $arv_config);
?>
</div>
</body>
</html>