-
Notifications
You must be signed in to change notification settings - Fork 3
/
taggroup.php
47 lines (38 loc) · 1.25 KB
/
taggroup.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
<?php
include_once "conf.php";
include_once "core.php";
include "indexauthedcheck.php";
if (!isset($_GET['tag']))
die("undef tag");
$_TAGS = json_decode(file_get_contents("tags.json"), true);
if (!isset($_TAGS[$_GET['tag']]))
die("tag '".$tag."' is not registered");
$_ID = $_CONF['rootid'];
?><!DOCTYPE html>
<html>
<head lang="fr">
<meta charset="utf-8">
<title><?=$_CONF['titlebase']?> : Filter by tag</title>
<link rel="stylesheet" href="main.css" type="text/css">
<script type="text/javascript" src="rsrc/jquery-3.3.1.min.js" crossorigin="anonymous"></script>
</head>
<body showlinks="true">
<header>
<span id="path">
<a id="homebutton" href="index.php"></a>
</span>
<?php $_CONF['enablebatchmove'] = false; include "indexheaderright.php"; ?>
</header>
<?php include "indexitemtemplates.html"; ?>
<?php include "indextagform.html"; ?>
<script type="text/javascript" src="indexmain.js"></script>
<h2 class="taggroup">Tag <?=$_GET['tag']?></h2>
<div class="root" id="tagroot"></div>
<script type="text/javascript">
glob_modify = <?=(($_PUBLICEDIT||$_AUTHED)?'true':'false')?>;
$(function () {
LoadTagGroup("tagroot", "<?=$_CONF['rootid']?>", "<?=$_GET['tag']?>", false, glob_modify);
});
</script>
</body>
</html>