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