1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-12 01:25:01 +02:00

more convrol over bbarea, some code need more attention/rewrite

This commit is contained in:
secretr
2009-09-19 15:21:51 +00:00
parent c475b061bc
commit a0c9a66cae
4 changed files with 75 additions and 61 deletions

View File

@@ -11,8 +11,8 @@
| GNU General Public License (http://gnu.org).
|
| $Source: /cvs_backup/e107_0.8/e107_handlers/ren_help.php,v $
| $Revision: 1.9 $
| $Date: 2009-01-15 15:42:24 $
| $Revision: 1.10 $
| $Date: 2009-09-19 15:21:50 $
| $Author: secretr $
+----------------------------------------------------------------------------+
*/
@@ -31,10 +31,11 @@ function ren_help($mode = 1, $addtextfunc = "addtext", $helpfunc = "help")
function display_help($tagid="helpb", $mode = 1, $addtextfunc = "addtext", $helpfunc = "help")
function display_help($tagid="helpb", $mode = 1, $addtextfunc = "addtext", $helpfunc = "help", $helpsize = '')
{
if(defsettrue('e_WYSIWYG')) { return; }
global $tp, $pref, $eplug_bb, $bbcode_func, $register_bb, $bbcode_help, $bbcode_helpactive, $bbcode_helptag;
global $tp, $pref, $eplug_bb, $bbcode_func, $register_bb, $bbcode_help, $bbcode_helpactive, $bbcode_helptag, $bbcode_helpsize;
$bbcode_helpsize = $helpsize;
$bbcode_func = $addtextfunc;
$bbcode_help = $helpfunc;
@@ -67,6 +68,7 @@ function display_help($tagid="helpb", $mode = 1, $addtextfunc = "addtext", $help
}
}
$temp = array();
$temp['news'] = $BBCODE_TEMPLATE_NEWSPOST;
$temp['submitnews'] = $BBCODE_TEMPLATE_SUBMITNEWS;
$temp['extended'] = $BBCODE_TEMPLATE_NEWSPOST;
@@ -76,7 +78,7 @@ function display_help($tagid="helpb", $mode = 1, $addtextfunc = "addtext", $help
$temp['maintenance']= $BBCODE_TEMPLATE_ADMIN;
$temp['comment'] = "{BB_HELP}<br />".$BBCODE_TEMPLATE;
if($temp[$mode])
if(isset($temp[$mode]))
{
$BBCODE_TEMPLATE = $temp[$mode];
}