source: extensions/music_player/main.inc.php @ 32840

Last change on this file since 32840 was 10175, checked in by ddtddt, 14 years ago

[extensions] - music_player - add lv_LV (Latvian) thanks to Aivars Baldone

File size: 1.3 KB
Line 
1<?php
2/*
3Plugin Name: music_player
4Version: auto
5Description: play music
6Plugin URI: http://phpwebgallery.net/ext/extension_view.php?eid=162
7Author: Flop25
8Author URI: http://www.planete-flop.fr/
9
10*/
11
12if (!defined('PHPWG_ROOT_PATH')) die('Hacking attempt!');
13
14$plugin_name = basename(dirname(__FILE__));
15$plugin_path = dirname(__FILE__).'/';
16
17global $prefixeTable;
18
19define('MP_PLAYLIST' , $prefixeTable . 'mp_playlist');
20define('MP_MUSIC' , $prefixeTable . 'mp_music');
21define('MP_PATH', dirname(__FILE__).'/' );
22define('MP_NAME', basename(dirname(__FILE__)) );
23define('MP_LOCALEDIT_PATH' , PHPWG_PLUGINS_PATH . basename(dirname(__FILE__)) . '/');
24
25include_once(dirname(__FILE__).'/class.inc.php');
26
27add_event_handler('get_admin_plugin_menu_links', array(&$m_p, 'mp_lien_menu') );
28
29
30add_event_handler('loc_end_index', array(&$m_p, 'placer_icon') );
31
32global $conf;
33$conf_plugin = explode("," , $conf['mp_plugin']);
34if (isset($conf_plugin[0]) and $conf_plugin[0]=="true")
35{
36        add_event_handler('blockmanager_apply', array(&$m_p, 'placer_block'));
37        add_event_handler('blockmanager_register_blocks', array(&$m_p, 'register_mp_menubar_blocks'));
38}
39
40add_event_handler('loc_begin_page_header', array(&$m_p, 'add_css') );
41
42
43$m_p = new Musicplayer(MP_NAME, MP_PATH);
44set_plugin_data($m_p->plugin_name, $m_p);
45
46?>
Note: See TracBrowser for help on using the repository browser.