-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathhelp.php
64 lines (47 loc) · 2.11 KB
/
help.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
<?php
$target = '';
function inreferer($substring) {
$referrer = $_SERVER['HTTP_REFERER'];
return strpos($referrer, $substring) !== false;
}
if (inreferer('archive_prints')) $target = 'intro#drucke';
elseif (inreferer('/print/faust')) $target = 'intro#text';
elseif (inreferer('/text')) $target = 'intro#text';
elseif (inreferer('/print/text')) $target = 'intro#text';
elseif (inreferer('/print/app')) $target = 'intro_text#apparat';
elseif (inreferer('/print/')) $target = 'intro#drucke';
elseif (inreferer('/meta/')) $target = 'metadata';
elseif (inreferer('view=structure')) $target = 'metadata';
elseif (inreferer('macrogenesis')) $target = '/macrogenesis/help';
elseif (inreferer('genesis_faust')) $target = 'intro#genesis_part';
elseif (inreferer('genesis_bargraph')) $target = 'intro#genesis_bargraph';
elseif (inreferer('genesis')) $target = 'intro#genesis';
elseif (inreferer('search')) $target = 'intro#volltextsuche';
elseif (inreferer('testimon')) $target = 'intro#testimony';
elseif (inreferer('view=document_text')) $target = 'transcription_guidelines#txt_Transkr_Hss';
elseif (inreferer('view=text')) $target = 'transcription_guidelines#txt_Transkr_Hss';
elseif (inreferer('view=print')) $target = 'transcription_guidelines#txt_Transkr_Hss';
elseif (inreferer('view=document')) $target = 'transcription_guidelines#dok_Transkr_Hss';
elseif (inreferer('view=facsimile_document')) $target = 'transcription_guidelines#dok_Transkr_Hss';
else $target = 'intro';
if ($target) {
header('Location: ' . $target);
exit();
}
?>
<?php include "includes/header.php"; ?>
<section class="center pure-g-r">
<div class="pure-u-1-5"></div>
<article class="pure-u-3-5">
<p>Einige Benutzungshinweise finden Sie <a href="intro">in der Einführung in die Ausgabe</a>.</p>
</article>
<div class="pure-u-1-5">
</div>
</section>
<script type="text/javascript">
requirejs(['faust_common'], function(Faust) {
// set breadcrumbs
document.getElementById("breadcrumbs").appendChild(Faust.createBreadcrumbs([{caption: "Hilfe"}]));
});
</script>
<?php include "includes/footer.php"; ?>