author | Dan |
Thu, 12 Jul 2007 01:04:01 -0400 | |
changeset 2 | a8a21e1c7afa |
parent 0 | f9ffdbd96607 |
child 3 | c0c445d4a13e |
permissions | -rw-r--r-- |
0 | 1 |
<?php |
2 |
/*********************************************************************** |
|
3 |
||
4 |
Copyright (C) 2002-2005 Rickard Andersson (rickard@punbb.org) |
|
5 |
||
6 |
This file is part of PunBB. |
|
7 |
||
8 |
PunBB is free software; you can redistribute it and/or modify it |
|
9 |
under the terms of the GNU General Public License as published |
|
10 |
by the Free Software Foundation; either version 2 of the License, |
|
11 |
or (at your option) any later version. |
|
12 |
||
13 |
PunBB is distributed in the hope that it will be useful, but |
|
14 |
WITHOUT ANY WARRANTY; without even the implied warranty of |
|
15 |
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|
16 |
GNU General Public License for more details. |
|
17 |
||
18 |
You should have received a copy of the GNU General Public License |
|
19 |
along with this program; if not, write to the Free Software |
|
20 |
Foundation, Inc., 59 Temple Place, Suite 330, Boston, |
|
21 |
MA 02111-1307 USA |
|
22 |
||
23 |
************************************************************************/ |
|
24 |
||
25 |
||
26 |
// Tell header.php to use the help template |
|
27 |
define('PUN_HELP', 1); |
|
28 |
||
2
a8a21e1c7afa
Let's just say that the API loads. While a decent part of PunBB works, we've still got a LONG way to go, mainly with form validation and security. At this point, Punano is NOT secure as far as privileges and user levels go.
Dan
parents:
0
diff
changeset
|
29 |
//define('PUN_ROOT', './'); |
a8a21e1c7afa
Let's just say that the API loads. While a decent part of PunBB works, we've still got a LONG way to go, mainly with form validation and security. At this point, Punano is NOT secure as far as privileges and user levels go.
Dan
parents:
0
diff
changeset
|
30 |
//require PUN_ROOT.'include/common.php'; |
a8a21e1c7afa
Let's just say that the API loads. While a decent part of PunBB works, we've still got a LONG way to go, mainly with form validation and security. At this point, Punano is NOT secure as far as privileges and user levels go.
Dan
parents:
0
diff
changeset
|
31 |
|
a8a21e1c7afa
Let's just say that the API loads. While a decent part of PunBB works, we've still got a LONG way to go, mainly with form validation and security. At this point, Punano is NOT secure as far as privileges and user levels go.
Dan
parents:
0
diff
changeset
|
32 |
global $pun_db, $pun_user, $pun_config, $lang_common; |
a8a21e1c7afa
Let's just say that the API loads. While a decent part of PunBB works, we've still got a LONG way to go, mainly with form validation and security. At this point, Punano is NOT secure as far as privileges and user levels go.
Dan
parents:
0
diff
changeset
|
33 |
|
0 | 34 |
|
35 |
||
36 |
if ($pun_user['g_read_board'] == '0') |
|
37 |
message($lang_common['No view']); |
|
38 |
||
39 |
||
40 |
// Load the help.php language file |
|
41 |
require PUN_ROOT.'lang/'.$pun_user['language'].'/help.php'; |
|
42 |
||
43 |
||
44 |
$page_title = pun_htmlspecialchars($pun_config['o_board_title']).' / '.$lang_help['Help']; |
|
45 |
require PUN_ROOT.'header.php'; |
|
46 |
||
47 |
?> |
|
48 |
<h2><?php echo $lang_common['BBCode'] ?></h2> |
|
49 |
<div class="box"> |
|
50 |
<div class="inbox"> |
|
51 |
<p><a name="bbcode"></a><?php echo $lang_help['BBCode info 1'] ?></p><br /> |
|
52 |
<p><?php echo $lang_help['BBCode info 2'] ?></p> |
|
53 |
</div> |
|
54 |
</div> |
|
55 |
<h2><?php echo $lang_help['Text style'] ?></h2> |
|
56 |
<div class="box"> |
|
57 |
<p><?php echo $lang_help['Text style info'] ?></p><br /> |
|
58 |
<div style="padding-left: 4px"> |
|
59 |
[b]<?php echo $lang_help['Bold text'] ?>[/b] <?php echo $lang_help['produces'] ?> <b><?php echo $lang_help['Bold text'] ?></b><br /> |
|
60 |
[u]<?php echo $lang_help['Underlined text'] ?>[/u] <?php echo $lang_help['produces'] ?> <span class="bbu"><?php echo $lang_help['Underlined text'] ?></span><br /> |
|
61 |
[i]<?php echo $lang_help['Italic text'] ?>[/i] <?php echo $lang_help['produces'] ?> <i><?php echo $lang_help['Italic text'] ?></i><br /> |
|
62 |
[color=#FF0000]<?php echo $lang_help['Red text'] ?>[/color] <?php echo $lang_help['produces'] ?> <span style="color: #ff0000"><?php echo $lang_help['Red text'] ?></span><br /> |
|
63 |
[color=blue]<?php echo $lang_help['Blue text'] ?>[/color] <?php echo $lang_help['produces'] ?> <span style="color: blue"><?php echo $lang_help['Blue text'] ?></span> |
|
64 |
</div> |
|
65 |
</div> |
|
66 |
<h2><?php echo $lang_help['Links and images'] ?></h2> |
|
67 |
<div class="box"> |
|
68 |
<p><?php echo $lang_help['Links info'] ?></p><br /> |
|
69 |
<div style="padding-left: 4px"> |
|
70 |
[url=<?php echo $pun_config['o_base_url'].'/' ?>]<?php echo pun_htmlspecialchars($pun_config['o_board_title']) ?>[/url] <?php echo $lang_help['produces'] ?> <a href="<?php echo $pun_config['o_base_url'].'/' ?>"><?php echo pun_htmlspecialchars($pun_config['o_board_title']) ?></a><br /> |
|
71 |
[url]<?php echo $pun_config['o_base_url'].'/' ?>[/url] <?php echo $lang_help['produces'] ?> <a href="<?php echo $pun_config['o_base_url'] ?>"><?php echo $pun_config['o_base_url'].'/' ?></a><br /> |
|
72 |
[email]myname@mydomain.com[/email] <?php echo $lang_help['produces'] ?> <a href="mailto:myname@mydomain.com">myname@mydomain.com</a><br /> |
|
73 |
[email=myname@mydomain.com]<?php echo $lang_help['My e-mail address'] ?>[/email] <?php echo $lang_help['produces'] ?> <a href="mailto:myname@mydomain.com"><?php echo $lang_help['My e-mail address'] ?></a><br /><br /> |
|
74 |
</div> |
|
75 |
<p><a name="img"></a><?php echo $lang_help['Images info'] ?></p> |
|
76 |
<div>[img]http://www.punbb.org/img/small_logo.png[/img] <?php echo $lang_help['produces'] ?> <img src="http://www.punbb.org/img/small_logo.png" alt="http://www.punbb.org/img/small_logo.png" /></div> |
|
77 |
</div> |
|
78 |
<h2><?php echo $lang_help['Quotes'] ?></h2> |
|
79 |
<div class="box"> |
|
80 |
<div style="padding-left: 4px"> |
|
81 |
<?php echo $lang_help['Quotes info'] ?><br /><br /> |
|
82 |
[quote=James]<?php echo $lang_help['Quote text'] ?>[/quote]<br /><br /> |
|
83 |
<?php echo $lang_help['produces quote box'] ?><br /><br /> |
|
84 |
<div class="postmsg"> |
|
85 |
<blockquote><div class="incqbox"><h4>James <?php echo $lang_common['wrote'] ?>:</h4><p><?php echo $lang_help['Quote text'] ?></p></div></blockquote> |
|
86 |
</div> |
|
87 |
<br /> |
|
88 |
<?php echo $lang_help['Quotes info 2'] ?><br /><br /> |
|
89 |
[quote]<?php echo $lang_help['Quote text'] ?>[/quote]<br /><br /> |
|
90 |
<?php echo $lang_help['produces quote box'] ?><br /><br /> |
|
91 |
<div class="postmsg"> |
|
92 |
<blockquote><div class="incqbox"><p><?php echo $lang_help['Quote text'] ?></p></div></blockquote> |
|
93 |
</div> |
|
94 |
</div> |
|
95 |
</div> |
|
96 |
<h2><?php echo $lang_help['Code'] ?></h2> |
|
97 |
<div class="box"> |
|
98 |
<div style="padding-left: 4px"> |
|
99 |
<?php echo $lang_help['Code info'] ?><br /><br /> |
|
100 |
[code]<?php echo $lang_help['Code text'] ?>[/code]<br /><br /> |
|
101 |
<?php echo $lang_help['produces code box'] ?><br /><br /> |
|
102 |
<div class="postmsg"> |
|
103 |
<div class="codebox"><div class="incqbox"><h4><?php echo $lang_common['Code'] ?>:</h4><div class="scrollbox" style="height: 4.5em"><pre><?php echo $lang_help['Code text'] ?></pre></div></div></div> |
|
104 |
</div> |
|
105 |
</div> |
|
106 |
</div> |
|
107 |
<h2><?php echo $lang_help['Nested tags'] ?></h2> |
|
108 |
<div class="box"> |
|
109 |
<div style="padding-left: 4px"> |
|
110 |
<?php echo $lang_help['Nested tags info'] ?><br /><br /> |
|
111 |
[b][u]<?php echo $lang_help['Bold, underlined text'] ?>[/u][/b] <?php echo $lang_help['produces'] ?> <span class="bbu"><b><?php echo $lang_help['Bold, underlined text'] ?></b></span><br /><br /> |
|
112 |
</div> |
|
113 |
</div> |
|
114 |
<h2><?php echo $lang_common['Smilies'] ?></h2> |
|
115 |
<div class="box"> |
|
116 |
<div style="padding-left: 4px"> |
|
117 |
<a name="smilies"></a><?php echo $lang_help['Smilies info'] ?><br /><br /> |
|
118 |
<?php |
|
119 |
||
120 |
// Display the smiley set |
|
121 |
require PUN_ROOT.'include/parser.php'; |
|
122 |
||
123 |
$num_smilies = count($smiley_text); |
|
124 |
for ($i = 0; $i < $num_smilies; ++$i) |
|
125 |
{ |
|
126 |
// Is there a smiley at the current index? |
|
127 |
if (!isset($smiley_text[$i])) |
|
128 |
continue; |
|
129 |
||
130 |
echo "\t\t".' '.$smiley_text[$i]; |
|
131 |
||
132 |
// Save the current text and image |
|
133 |
$cur_img = $smiley_img[$i]; |
|
134 |
$cur_text = $smiley_text[$i]; |
|
135 |
||
136 |
// Loop through the rest of the array and see if there are any duplicate images |
|
137 |
// (more than one text representation for one image) |
|
138 |
for ($next = $i + 1; $next < $num_smilies; ++$next) |
|
139 |
{ |
|
140 |
// Did we find a dupe? |
|
141 |
if (isset($smiley_img[$next]) && $smiley_img[$i] == $smiley_img[$next]) |
|
142 |
{ |
|
143 |
echo ' '.$lang_common['and'].' '.$smiley_text[$next]; |
|
144 |
||
145 |
// Remove the dupe so we won't display it twice |
|
146 |
unset($smiley_text[$next]); |
|
147 |
unset($smiley_img[$next]); |
|
148 |
} |
|
149 |
} |
|
150 |
||
151 |
echo ' '.$lang_help['produces'].' <img src="img/smilies/'.$cur_img.'" width="15" height="15" alt="'.$cur_text.'" /><br />'."\n"; |
|
152 |
} |
|
153 |
||
154 |
?> |
|
155 |
<br /> |
|
156 |
</div> |
|
157 |
</div> |
|
158 |
<?php |
|
159 |
||
160 |
require PUN_ROOT.'footer.php'; |