source: branches/rsr.v5.1.dev/web/punbb/help.php @ 1

Last change on this file since 1 was 1, checked in by dj3c1t, 13 years ago

import initial

File size: 7.0 KB
Line 
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
27define('PUN_HELP', 1);
28
29define('PUN_ROOT', './');
30require PUN_ROOT.'include/common.php';
31
32
33if ($pun_user['g_read_board'] == '0')
34        message($lang_common['No view']);
35
36
37// Load the help.php language file
38require PUN_ROOT.'lang/'.$pun_user['language'].'/help.php';
39
40
41$page_title = pun_htmlspecialchars($pun_config['o_board_title']).' / '.$lang_help['Help'];
42require PUN_ROOT.'header.php';
43
44?>
45<h2><?php echo $lang_common['BBCode'] ?></h2>
46<div class="box">
47        <div class="inbox">
48                <p><a name="bbcode"></a><?php echo $lang_help['BBCode info 1'] ?></p><br />
49                <p><?php echo $lang_help['BBCode info 2'] ?></p>
50        </div>
51</div>
52<h2><?php echo $lang_help['Text style'] ?></h2>
53<div class="box">
54        <p><?php echo $lang_help['Text style info'] ?></p><br />
55        <div style="padding-left: 4px">
56                [b]<?php echo $lang_help['Bold text'] ?>[/b] <?php echo $lang_help['produces'] ?> <b><?php echo $lang_help['Bold text'] ?></b><br />
57                [u]<?php echo $lang_help['Underlined text'] ?>[/u] <?php echo $lang_help['produces'] ?> <span class="bbu"><?php echo $lang_help['Underlined text'] ?></span><br />
58                [i]<?php echo $lang_help['Italic text'] ?>[/i] <?php echo $lang_help['produces'] ?> <i><?php echo $lang_help['Italic text'] ?></i><br />
59                [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 />
60                [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>
61        </div>
62</div>
63<h2><?php echo $lang_help['Links and images'] ?></h2>
64<div class="box">
65        <p><?php echo $lang_help['Links info'] ?></p><br />
66        <div style="padding-left: 4px">
67                [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 />
68                [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 />
69                [email]myname@mydomain.com[/email] <?php echo $lang_help['produces'] ?> <a href="mailto:myname@mydomain.com">myname@mydomain.com</a><br />
70                [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 />
71        </div>
72        <p><a name="img"></a><?php echo $lang_help['Images info'] ?></p>
73        <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>
74</div>
75<h2><?php echo $lang_help['Quotes'] ?></h2>
76<div class="box">
77        <div style="padding-left: 4px">
78                <?php echo $lang_help['Quotes info'] ?><br /><br />
79                &#160;&#160;&#160;&#160;[quote=James]<?php echo $lang_help['Quote text'] ?>[/quote]<br /><br />
80                <?php echo $lang_help['produces quote box'] ?><br /><br />
81                <div class="postmsg">
82                        <blockquote><div class="incqbox"><h4>James <?php echo $lang_common['wrote'] ?>:</h4><p><?php echo $lang_help['Quote text'] ?></p></div></blockquote>
83                </div>
84                <br />
85                <?php echo $lang_help['Quotes info 2'] ?><br /><br />
86                &#160;&#160;&#160;&#160;[quote]<?php echo $lang_help['Quote text'] ?>[/quote]<br /><br />
87                <?php echo $lang_help['produces quote box'] ?><br /><br />
88                <div class="postmsg">
89                        <blockquote><div class="incqbox"><p><?php echo $lang_help['Quote text'] ?></p></div></blockquote>
90                </div>
91        </div>
92</div>
93<h2><?php echo $lang_help['Code'] ?></h2>
94<div class="box">
95        <div style="padding-left: 4px">
96                <?php echo $lang_help['Code info'] ?><br /><br />
97                &#160;&#160;&#160;&#160;[code]<?php echo $lang_help['Code text'] ?>[/code]<br /><br />
98                <?php echo $lang_help['produces code box'] ?><br /><br />
99                <div class="postmsg">
100                        <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>
101                </div>
102        </div>
103</div>
104<h2><?php echo $lang_help['Nested tags'] ?></h2>
105<div class="box">
106        <div style="padding-left: 4px">
107                <?php echo $lang_help['Nested tags info'] ?><br /><br />
108                &#160;&#160;&#160;&#160;[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 />
109        </div>
110</div>
111<h2><?php echo $lang_common['Smilies'] ?></h2>
112<div class="box">
113        <div style="padding-left: 4px">
114                <a name="smilies"></a><?php echo $lang_help['Smilies info'] ?><br /><br />
115<?php
116
117// Display the smiley set
118@include_once PUN_ROOT.'cache/cache_smilies.php';
119if (!defined('PUN_CACHE_SMILEY'))
120{
121        require_once PUN_ROOT.'include/cache_smilies.php';
122        generate_smiley_cache();
123        require PUN_ROOT.'cache/cache_smilies.php';
124}
125
126$num_smilies = count($smiley_text);
127for ($i = 0; $i < $num_smilies; ++$i)
128{
129        // Is there a smiley at the current index?
130        if (!isset($smiley_text[$i]))
131                continue;
132
133        echo "\t\t".'&#160;&#160;&#160;&#160;'.$smiley_text[$i];
134
135        // Save the current text and image
136        $cur_img = $smiley_img[$i];
137        $cur_text = $smiley_text[$i];
138
139        // Loop through the rest of the array and see if there are any duplicate images
140        // (more than one text representation for one image)
141        for ($next = $i + 1; $next < $num_smilies; ++$next)
142        {
143                // Did we find a dupe?
144                if (isset($smiley_img[$next]) && $smiley_img[$i] == $smiley_img[$next])
145                {
146                        echo ' '.$lang_common['and'].' '.$smiley_text[$next];
147
148                        // Remove the dupe so we won't display it twice
149                        unset($smiley_text[$next]);
150                        unset($smiley_img[$next]);
151                }
152        }
153
154        echo ' '.$lang_help['produces'].' <img src="img/smilies/'.$cur_img.'" alt="'.$cur_text.'" /><br />'."\n";
155}
156
157?>
158                <br />
159        </div>
160</div>
161<?php
162
163require PUN_ROOT.'footer.php';
Note: See TracBrowser for help on using the repository browser.