-
Notifications
You must be signed in to change notification settings - Fork 0
/
e_bb.php
32 lines (26 loc) · 986 Bytes
/
e_bb.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
<?php
if (!defined('e107_INIT')) { exit; }
$lan_file = e_PLUGIN."ytm_gallery/languages/".e_LANGUAGE.".php";
require_once(file_exists($lan_file) ? $lan_file : e_PLUGIN."ytm_gallery/languages/English.php");
//
$bb['name'] = "yt";
$bb['onclick'] = "";
$bb['onclick_var'] = LAN_YTM_BB_02;
$bb['icon'] = e_PLUGIN."ytm_gallery/images/bb.png";
$bb['helptext'] = LAN_YTM_BB_01;
$bb['function'] = "";
$bb['function_var'] = "";
// append the bbcode to the default templates if set in the config:
$query = "SELECT bb_class FROM ".MPREFIX."er_ytm_gallery WHERE id = '1'";
$result = mysql_query($query);
while ($row = mysql_fetch_array($result,MYSQL_ASSOC)) {
$showcheck = $row['bb_class'];
}
if(check_class($showcheck)) { //hide button if necessary
$BBCODE_TEMPLATE .= "{BB=yt}";
$BBCODE_TEMPLATE_NEWSPOST .= "{BB=yt}";
$BBCODE_TEMPLATE_ADMIN .= "{BB=yt}";
$BBCODE_TEMPLATE_CPAGE .= "{BB=yt}";
}
$eplug_bb[] = $bb;
?>