2 /***********************************************************************
4 Copyright (C) 2002-2005 Rickard Andersson (rickard@punbb.org)
6 This file is part of PunBB.
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.
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.
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,
23 ************************************************************************/
26 // Tell header.php to use the help template
27 define('PUN_HELP', 1);
29 define('PUN_ROOT', './');
30 require PUN_ROOT
.'include/common.php';
33 if ($pun_user['g_read_board'] == '0')
34 message($lang_common['No view']);
37 // Load the help.php language file
38 require PUN_ROOT
.'lang/'.$pun_user['language'].'/help.php';
41 $page_title = pun_htmlspecialchars($pun_config['o_board_title']).' / '.$lang_help['Help'];
42 require PUN_ROOT
.'header.php';
45 <h2
><?php
echo $lang_common['BBCode'] ?
></h2
>
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
>
52 <h2
><?php
echo $lang_help['Text style'] ?
></h2
>
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
>
63 <h2
><?php
echo $lang_help['Links and images'] ?
></h2
>
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
/>
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>
75 <h2
><?php
echo $lang_help['Quotes'] ?
></h2
>
77 <div style
="padding-left: 4px">
78 <?php
echo $lang_help['Quotes info'] ?
><br
/><br
/>
79  
; 
; 
; 
;[quote
=James
]<?php
echo $lang_help['Quote text'] ?
>[/quote
]<br
/><br
/>
80 <?php
echo $lang_help['produces quote box'] ?
><br
/><br
/>
82 <blockquote
><div
class="incqbox"><h4
>James
<?php
echo $lang_common['wrote'] ?
>:</h4
><p
><?php
echo $lang_help['Quote text'] ?
></p
></div
></blockquote
>
85 <?php
echo $lang_help['Quotes info 2'] ?
><br
/><br
/>
86  
; 
; 
; 
;[quote
]<?php
echo $lang_help['Quote text'] ?
>[/quote
]<br
/><br
/>
87 <?php
echo $lang_help['produces quote box'] ?
><br
/><br
/>
89 <blockquote
><div
class="incqbox"><p
><?php
echo $lang_help['Quote text'] ?
></p
></div
></blockquote
>
93 <h2
><?php
echo $lang_help['Code'] ?
></h2
>
95 <div style
="padding-left: 4px">
96 <?php
echo $lang_help['Code info'] ?
><br
/><br
/>
97  
; 
; 
; 
;[code
]<?php
echo $lang_help['Code text'] ?
>[/code
]<br
/><br
/>
98 <?php
echo $lang_help['produces code box'] ?
><br
/><br
/>
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
>
104 <h2
><?php
echo $lang_help['Nested tags'] ?
></h2
>
106 <div style
="padding-left: 4px">
107 <?php
echo $lang_help['Nested tags info'] ?
><br
/><br
/>
108  
; 
; 
; 
;[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
/>
111 <h2
><?php
echo $lang_common['Smilies'] ?
></h2
>
113 <div style
="padding-left: 4px">
114 <a name
="smilies"></a
><?php
echo $lang_help['Smilies info'] ?
><br
/><br
/>
117 // Display the smiley set
118 require PUN_ROOT
.'include/parser.php';
120 $num_smilies = count($smiley_text);
121 for ($i = 0; $i < $num_smilies; ++
$i)
123 // Is there a smiley at the current index?
124 if (!isset($smiley_text[$i]))
127 echo "\t\t".' '.$smiley_text[$i];
129 // Save the current text and image
130 $cur_img = $smiley_img[$i];
131 $cur_text = $smiley_text[$i];
133 // Loop through the rest of the array and see if there are any duplicate images
134 // (more than one text representation for one image)
135 for ($next = $i +
1; $next < $num_smilies; ++
$next)
137 // Did we find a dupe?
138 if (isset($smiley_img[$next]) && $smiley_img[$i] == $smiley_img[$next])
140 echo ' '.$lang_common['and'].' '.$smiley_text[$next];
142 // Remove the dupe so we won't display it twice
143 unset($smiley_text[$next]);
144 unset($smiley_img[$next]);
148 echo ' '.$lang_help['produces'].' <img src="img/smilies/'.$cur_img.'" width="15" height="15" alt="'.$cur_text.'" /><br />'."\n";
157 require PUN_ROOT
.'footer.php';