-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathhelp.php
220 lines (208 loc) · 12.5 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
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
<?php
/**
* Copyright (C) 2013-2014 ModernBB Group
* Based on code by FluxBB copyright (C) 2008-2012 FluxBB
* Based on code by Rickard Andersson copyright (C) 2002-2008 PunBB
* Licensed under GPLv3 (http://modernbb.be/license.php)
*/
define('FORUM_ROOT', dirname(__FILE__).'/');
require FORUM_ROOT.'include/common.php';
if ($luna_user['g_read_board'] == '0')
message($lang['No view'], false, '403 Forbidden');
$page_title = array(luna_htmlspecialchars($luna_config['o_board_title']), $lang['Help']);
define('FORUM_ACTIVE_PAGE', 'help');
require FORUM_ROOT.'header.php';
?>
<h2><?php echo $lang['Help'] ?></h2>
<div class="panel panel-default">
<div class="panel-heading">
<h3 class="panel-title"><?php echo $lang['BBCode'] ?></h3>
</div>
<div class="panel-body">
<p><a name="bbcode"></a><?php echo $lang['BBCode info'] ?></p>
<ul class="nav nav-tabs">
<li class="active"><a href="#text" data-toggle="tab"><?php echo $lang['Text style'] ?></a></li>
<li><a href="#links" data-toggle="tab"><?php echo $lang['Multimedia'] ?></a></li>
<li><a href="#quotes" data-toggle="tab"><?php echo $lang['Quotes'] ?></a></li>
<li><a href="#code" data-toggle="tab"><?php echo $lang['Code'] ?></a></li>
<li><a href="#lists" data-toggle="tab"><?php echo $lang['Lists'] ?></a></li>
<li><a href="#smilies" data-toggle="tab"><?php echo $lang['Smilies'] ?></a></li>
</ul>
<div class="tab-content">
<div class="tab-pane active" id="text">
<p><?php echo $lang['Text style info'] ?></p>
<p><code>[b]<?php echo $lang['Bold text'] ?>[/b]</code> <?php echo $lang['produces'] ?> <strong><?php echo $lang['Bold text'] ?></strong></p>
<p><code>[u]<?php echo $lang['Underlined text'] ?>[/u]</code> <?php echo $lang['produces'] ?> <span class="bbu"><?php echo $lang['Underlined text'] ?></span></p>
<p><code>[i]<?php echo $lang['Italic text'] ?>[/i]</code> <?php echo $lang['produces'] ?> <em><?php echo $lang['Italic text'] ?></em></p>
<p><code>[s]<?php echo $lang['Strike-through text'] ?>[/s]</code> <?php echo $lang['produces'] ?> <span class="bbs"><?php echo $lang['Strike-through text'] ?></span></p>
<p><code>[ins]<?php echo $lang['Inserted text'] ?>[/ins]</code> <?php echo $lang['produces'] ?> <ins><?php echo $lang['Inserted text'] ?></ins></p>
<p><code>[color=#FF0000]<?php echo $lang['Red text'] ?>[/color]</code> <?php echo $lang['produces'] ?> <span style="color: #ff0000"><?php echo $lang['Red text'] ?></span></p>
<p><code>[color=blue]<?php echo $lang['Blue text'] ?>[/color]</code> <?php echo $lang['produces'] ?> <span style="color: blue"><?php echo $lang['Blue text'] ?></span></p>
<p><code>[sub]<?php echo $lang['Sub text'] ?>[/sub]</code> <?php echo $lang['produces'] ?> <sub><?php echo $lang['Sub text'] ?></sub></p>
<p><code>[sup]<?php echo $lang['Sup text'] ?>[/sup]</code> <?php echo $lang['produces'] ?> <sup><?php echo $lang['Sup text'] ?></sup></p>
<p><code>[h]<?php echo $lang['Heading text'] ?>[/h]</code> <?php echo $lang['produces'] ?></p> <h4><?php echo $lang['Heading text'] ?></h4>
</div>
<div class="tab-pane" id="links">
<p><?php echo $lang['Links info'] ?></p>
<p><code>[url=<?php echo luna_htmlspecialchars(get_base_url(true).'/') ?>]<?php echo luna_htmlspecialchars($luna_config['o_board_title']) ?>[/url]</code> <?php echo $lang['produces'] ?> <a href="<?php echo luna_htmlspecialchars(get_base_url(true).'/') ?>"><?php echo luna_htmlspecialchars($luna_config['o_board_title']) ?></a></p>
<p><code>[url]<?php echo luna_htmlspecialchars(get_base_url(true).'/') ?>[/url]</code> <?php echo $lang['produces'] ?> <a href="<?php echo luna_htmlspecialchars(get_base_url(true).'/') ?>"><?php echo luna_htmlspecialchars(get_base_url(true).'/') ?></a></p>
<p><code>[email]myname@example.com[/email]</code> <?php echo $lang['produces'] ?> <a href="mailto:myname@example.com">myname@example.com</a></p>
<p><code>[email=myname@example.com]<?php echo $lang['My email address'] ?>[/email]</code> <?php echo $lang['produces'] ?> <a href="mailto:myname@example.com"><?php echo $lang['My email address'] ?></a></p>
<p><a name="img"></a><?php echo $lang['Images info'] ?></p>
<p><code>[img=<?php echo $lang['ModernBB bbcode test'] ?>]<?php echo luna_htmlspecialchars(get_base_url(true)) ?>/img/test.png[/img]</code> <?php echo $lang['produces'] ?> <img style="height: 21px" src="<?php echo luna_htmlspecialchars(get_base_url(true)) ?>/img/test.png" alt="<?php echo $lang['ModernBB bbcode test'] ?>" /></p>
<br />
<p><?php echo $lang['Video info'] ?></p>
<p><code>[video][url]<?php echo $lang['Video link'] ?>[/url][/video]</code>
</div>
<div class="tab-pane" id="quotes">
<p><?php echo $lang['Quotes info'] ?></p>
<p><code>[quote=James]<?php echo $lang['Quote text'] ?>[/quote]</code></p>
<p><?php echo $lang['produces quote box'] ?></p>
<blockquote><footer><cite>James <?php echo $lang['wrote'] ?></cite></footer><p><?php echo $lang['Quote text'] ?></p></blockquote>
<p><?php echo $lang['Quotes info 2'] ?></p>
</div>
<div class="tab-pane" id="code">
<p><?php echo $lang['Code info'] ?></p>
<p><code>[code]<?php echo $lang['Code text'] ?>[/code]</code></p>
<p><?php echo $lang['produces code box'] ?></p>
<pre><?php echo $lang['Code text'] ?></pre>
<p><code>[c]<?php echo $lang['Code text'] ?>[/c]</code> <?php echo $lang['produces code box'] ?> <code><?php echo $lang['Code text'] ?></code></p>
</div>
<div class="tab-pane" id="lists">
<p><a name="lists"></a><?php echo $lang['List info'] ?></p>
<p><code>[list][*]<?php echo $lang['List text 1'] ?>[/*][*]<?php echo $lang['List text 2'] ?>[/*][*]<?php echo $lang['List text 3'] ?>[/*][/list]</code>
<br /><span><?php echo $lang['produces list'] ?></span></p>
<div class="postmsg">
<ul><li><p><?php echo $lang['List text 1'] ?></p></li><li><p><?php echo $lang['List text 2'] ?></p></li><li><p><?php echo $lang['List text 3'] ?></p></li></ul>
</div>
<p><code>[list=1][*]<?php echo $lang['List text 1'] ?>[/*][*]<?php echo $lang['List text 2'] ?>[/*][*]<?php echo $lang['List text 3'] ?>[/*][/list]</code>
<br /><span><?php echo $lang['produces decimal list'] ?></span></p>
<div class="postmsg">
<ol class="decimal"><li><p><?php echo $lang['List text 1'] ?></p></li><li><p><?php echo $lang['List text 2'] ?></p></li><li><p><?php echo $lang['List text 3'] ?></p></li></ol>
</div>
</div>
<div class="tab-pane" id="smilies">
<p><a name="smilies"></a><?php echo $lang['Smilies info'] ?></p>
<?php
// Display the smiley set
require FORUM_ROOT.'include/parser.php';
$smiley_groups = array();
foreach ($smilies as $smiley_text => $smiley_img)
$smiley_groups[$smiley_img][] = $smiley_text;
foreach ($smiley_groups as $smiley_img => $smiley_texts)
echo "\t\t".'<p><code>'.implode('</code> '.$lang['and'].' <code>', $smiley_texts).'</code> <span>'.$lang['produces'].'</span> <img src="'.luna_htmlspecialchars(get_base_url(true)).'/style/Core/img/smilies/'.$smiley_img.'" width="15" height="15" alt="'.$smiley_texts[0].'" /></p>'."\n";
?>
</div>
</div>
</div>
</div>
<div class="panel panel-default">
<div class="panel-heading">
<h3 class="panel-title"><?php echo $lang['General use'] ?></h3>
</div>
<div class="panel-body">
<p><?php echo $lang['General use info'] ?></p>
<ul class="nav nav-tabs">
<li class="active"><a href="#forum" data-toggle="tab"><?php echo $lang['Forums and topics'] ?></a></li>
<li><a href="#profile" data-toggle="tab"><?php echo $lang['Profile'] ?></a></li>
<li><a href="#search" data-toggle="tab"><?php echo $lang['Search'] ?></a></li>
</ul>
<div class="tab-content">
<div class="tab-pane active" id="forum">
<h3><?php echo $lang['Labels question'] ?></h3>
<p><?php echo $lang['Labels info'] ?></p>
<table class="table">
<thead>
<tr>
<th><?php echo $lang['Label'] ?></th>
<th><?php echo $lang['Explanation'] ?></th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="label label-success"><?php echo $lang['Sticky'] ?></span></td>
<td><?php echo $lang['Sticky explanation'] ?></td>
</tr>
<tr>
<td><span class="label label-danger"><?php echo $lang['Closed'] ?></span></td>
<td><?php echo $lang['Closed explanation'] ?></td>
</tr>
<tr>
<td><span class="label label-info"><?php echo $lang['Moved'] ?></span></td>
<td><?php echo $lang['Moved explanation'] ?></td>
</tr>
<!-- <tr>
<td><span class="label label-warning"><?php echo $lang['Star'] ?></span></td>
<td><?php echo $lang['Star explanation'] ?></td>
</tr> -->
<?php if (!$luna_user['is_guest'] && $luna_config['o_has_posted'] == '1') { ?>
<tr>
<td><span class="glyphicon glyphicon-asterisk"></span></td>
<td><?php echo $lang['Posted explanation'] ?></td>
</tr>
<?php } ?>
</tbody>
</table>
<h3><?php echo $lang['Content question'] ?></h3>
<p><?php echo $lang['Content answer'] ?></p>
<h3><?php echo $lang['Topics question'] ?></h3>
<p><?php echo $lang['Topics answer'] ?></p>
</div>
<div class="tab-pane" id="profile">
<h3><?php echo $lang['Profile question'] ?></h3>
<p><?php echo $lang['Profile answer'] ?></p>
<h3><?php echo $lang['Information question'] ?></h3>
<p><?php echo $lang['Information answer'] ?></p>
</div>
<div class="tab-pane" id="search">
<h3><?php echo $lang['Advanced search question'] ?></h3>
<p><?php echo $lang['Advanced search answer'] ?></p>
<h3><?php echo $lang['More search question'] ?></h3>
<p><?php echo $lang['More search answer'] ?></p>
</div>
</div>
</div>
</div>
<?php
if ($luna_user['is_admmod']) {
?>
<div class="panel panel-default">
<div class="panel-heading">
<h3 class="panel-title"><?php echo $lang['Moderating'] ?></h3>
</div>
<div class="panel-body">
<p><?php echo $lang['Moderating info'] ?></p>
<ul class="nav nav-tabs">
<li class="active"><a href="#forums" data-toggle="tab"><?php echo $lang['Forums'] ?></a></li>
<li><a href="#topics" data-toggle="tab"><?php echo $lang['Topics'] ?></a></li>
<li><a href="#users" data-toggle="tab"><?php echo $lang['Users'] ?></a></li>
</ul>
<div class="tab-content">
<div class="tab-pane active" id="forums">
<h3><?php echo $lang['Moderate forum question'] ?></h3>
<p><?php echo $lang['Moderate forum answer'] ?></p>
</div>
<div class="tab-pane" id="topics">
<h3><?php echo $lang['Moderate topic question'] ?></h3>
<p><?php echo $lang['Moderate topic answer 1'] ?></p>
<p><?php echo $lang['Moderate topic answer 2'] ?></p>
</div>
<div class="tab-pane" id="users">
<h3><?php echo $lang['Moderate user question'] ?></h3>
<p><?php echo $lang['Moderate user answer 1'] ?></p>
<p><?php echo $lang['Moderate user answer 2'] ?></p>
<p><?php echo $lang['Moderate user answer 3'] ?></p>
</div>
</div>
</div>
</div>
<script type="text/javascript">
$(document).ready(function(){
$("#user").focus();
var hash = location.hash, hashPieces = hash.split('?'), activeTab = $('[href=' + hashPieces[0] + ']');
activeTab && activeTab.tab('show');
});
</script>
<?php
}
require FORUM_ROOT.'footer.php';