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

Forgot this file with last commit

This commit is contained in:
mcfly
2009-01-07 20:04:25 +00:00
parent b489d7cef3
commit c35959a7ea

View File

@@ -11,20 +11,23 @@
| GNU General Public License (http://gnu.org).
|
| $Source: /cvs_backup/e107_0.8/e107_files/shortcode/batch/bbcode_shortcodes.php,v $
| $Revision: 1.9 $
| $Date: 2009-01-07 15:40:06 $
| $Author: secretr $
| $Revision: 1.10 $
| $Date: 2009-01-07 20:04:25 $
| $Author: mcfly_e107 $
+----------------------------------------------------------------------------+
*/
if (!defined('e107_INIT')) { exit; }
include_once(e_HANDLER.'shortcode_handler.php');
include_lan(e_LANGUAGEDIR.e_LANGUAGE."/lan_ren_help.php");
global $register_bb;
$bbcode_shortcodes = $tp -> e_sc -> parse_scbatch(__FILE__);
include_lan(e_LANGUAGEDIR.e_LANGUAGE.'/lan_ren_help.php');
/*
SC_BEGIN BB
$codes = array('bb', 'bb_help', 'bb_preimagedir');
register_shortcode('bbcode_shortcodes', $codes);
class bbcode_shortcodes
{
function get_bb($parm)
{
//FIXME - cachevars/getcachedvars!
global $pref, $eplug_bb, $bbcode_func, $bbcode_help, $bbcode_filedir, $bbcode_imagedir, $bbcode_helpactive, $bbcode_helptag, $register_bb, $imode;
@@ -35,9 +38,9 @@ $bbcode_help = ($bbcode_help) ? $bbcode_help : "help";
$bbcode_tag = ($bbcode_helptag != 'helpb') ? ",'$bbcode_helptag'" : "";
$rand = rand(1000,9999);
$imagedir_display = str_replace("../","",$bbcode_imagedir);
$imagedir_display = str_replace('../','',$bbcode_imagedir);
if($parm == "emotes")
if($parm == 'emotes')
{
if ($pref['comments_emoticons'] && $pref['smiley_activate'] && !defsettrue('e_WYSIWYG'))
{
@@ -125,16 +128,10 @@ if($_function)
}
return $text;
}
SC_END
SC_BEGIN BB_HELP
function get_bb_help($parm)
{
if(defsettrue('e_WYSIWYG')) { return; }
global $bbcode_helpactive,$bbcode_helptag;
if($parm) $bbcode_helptag = $parm;
@@ -142,17 +139,14 @@ SC_BEGIN BB_HELP
$bbcode_helpactive = TRUE;
//FIXME - better bb help
return "<input id='{$bbcode_helptag}' class='tbox large helpbox' type='text' name='{$bbcode_helptag}' size='90' readonly='readonly' />";
SC_END
}
SC_BEGIN BB_PREIMAGEDIR
function get_bb_preimagedir($parm)
{
if(defsettrue('e_WYSIWYG')) { return; }
global $bbcode_imagedir;
$bbcode_imagedir = $parm;
return;
SC_END
*/
}
}
?>