<?php
/*
+ ----------------------------------------------------------------------------------------------------+
|        e107 website system 
|        Plugin BBcode File :  e107_plugins/lightbox/e_bb.php
|        Email: support@free-source.net
|        $Revision: 372 $
|        $Date: 2007-02-12 23:22:29 +0200 (Mon, 12 Feb 2007) $
|        $Author: secretr $
|        Copyright Corllete Lab ( http://www.clabteam.com ) under GNU GPL License (http://gnu.org)
|        Support Sites : http://www.free-source.net/ | http://dev.e107bg.org/
+----------------------------------------------------------------------------------------------------+
*/
global $pref;
if (!defined('e107_INIT')) { exit; }

$lan_file = e_PLUGIN."lightbox/languages/".e_LANGUAGE.".php";
include_lan($lan_file); 

if($pref['lightb_enabled']){
    $bb['name']		= 'lightbox'; 
    $bb['onclick']		= "lbBBConfirm"; 
    $bb['onclick_var']	= "1"; 
    
    $bb['icon']		= e_PLUGIN."lightbox/images/bb.png";
    $bb['helptext']		= LB_LAN_12;
    $bb['function']		= 'lbBBcode';   
    $bb['function_var']     = $pref['lightb_wperms'];  
    
    // append the bbcode to the default templates:
     
    $BBCODE_TEMPLATE .= "{BB=lightbox}"; 
    $BBCODE_TEMPLATE_NEWSPOST .= "{BB=lightbox}";
    $BBCODE_TEMPLATE_ADMIN .= "{BB=lightbox}";
    $BBCODE_TEMPLATE_CPAGE .= "{BB=lightbox}"; 
    
    $eplug_bb[] = $bb;  // add to the global list 
}
?>