This repository has been archived by the owner on Mar 2, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3
/
help.php
71 lines (61 loc) · 2.17 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
65
66
67
68
69
70
71
<?php
/**
* Copyright (c) 2016 AvikB, some rights reserved.
* Copyright under Creative Commons Attribution-ShareAlike 3.0 Unported,
* for details visit: https://creativecommons.org/licenses/by-sa/3.0/
*
* @Contributors:
* Created by AvikB for noncommercial MusicBee project.
* Spelling mistakes and fixes from community members.
*
*/
require_once $_SERVER['DOCUMENT_ROOT'] . '/functions.php';
if(isset($_GET['press'])) {
include $link['root'] . 'views/press.template.php';
exit();
} elseif (isset($_GET['release-note'])) {
include $link['root'] . 'views/releasenote.template.php';
exit();
} elseif (isset($_GET['api'])) {
include $link['root'] . 'views/api.template.php';
exit();
} elseif (isset($_GET['credit'])) {
include $link['root'] . 'views/credit.template.php';
exit();
}elseif(isset($_GET['faq'])) {
include $link['root'].'views/help.template.php';
exit();
}else {
header('Location: '.$link['faq'], true, 301);
exit();
}
function secondery_nav_generator($active=''){
global $link, $setting, $lang, $mb;
echo '
<div class="secondery_nav" id="secondery_nav">
<div id="nav" class="secondery_nav_wrap">
<ul class="left">
<li class="expand">
<a href="javascript:void(0)" onclick="expand_second_menu()"><i class="fa fa-bars"></i></a>
</li>';
foreach ($mb['main_menu']['help']['sub_menu'] as $item) {
if(isset($item['href']) && !isset($item['hide'])) {
echo '<li><a href="' . $item['href'] . '" ', (strpos($item['href'],$_SERVER['REDIRECT_URL']))? 'class="active_menu_link"' : '','>' . $item['icon'].' '.$item['title'] . '</a></li>';
}
}
echo '</ul><ul class="right>" ';
if($active == 'release-note'){
$releasenotedata = getVersionInfo(0, "byAllReleases");
echo'<li class="input_wrap">
<select name="release_note_jump" id="release_note_jump" onfocus="">
<option value="top_jump">'. $lang['jumpto_release'].'</option>';
if(count($releasenotedata) > 0) {
foreach($releasenotedata as $key => $value) {
echo '<option>'.str_replace(".", "-", $value['version']).'</option>';
}
}
echo ' </select>
</li>';
}
echo '</ul></div></div>';
}