source: extensions/piwigo_videojs/admin/admin_boot.php @ 26319

Last change on this file since 26319 was 24676, checked in by ddtddt, 11 years ago

[extensions] - piwigo_videojs - add file for translate

File size: 1.7 KB
Line 
1<?php
2/***********************************************
3* File      :   admin_boot.php
4* Project   :   piwigo-videojs
5* Descr     :   Generate the admin panel
6*
7* Created   :   6.06.2013
8*
9* Copyright 2012-2013 <xbgmsharp@gmail.com>
10*
11*
12* This program is free software: you can redistribute it and/or modify
13* it under the terms of the GNU General Public License as published by
14* the Free Software Foundation, either version 3 of the License, or
15* (at your option) any later version.
16*
17* This program is distributed in the hope that it will be useful,
18* but WITHOUT ANY WARRANTY; without even the implied warranty of
19* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
20* GNU General Public License for more details.
21*
22* You should have received a copy of the GNU General Public License
23* along with this program.  If not, see <http://www.gnu.org/licenses/>.
24*
25************************************************/
26
27// Check whether we are indeed included by Piwigo.
28if (!defined('PHPWG_ROOT_PATH')) die('Hacking attempt!');
29
30// Define all videos with supported extensions
31define('SQL_VIDEOS', "(LOWER(`file`) LIKE '%.ogg' OR LOWER(`file`) LIKE '%.ogv' OR
32                LOWER(`file`) LIKE '%.mp4' OR LOWER(`file`) LIKE '%.m4v' OR
33                LOWER(`file`) LIKE '%.webm' OR LOWER(`file`) LIKE '%.webmv')");
34
35// Hook to add an admin config page
36add_event_handler('get_admin_plugin_menu_links', 'vjs_admin_menu');
37function vjs_admin_menu($menu)
38{
39        array_push($menu,
40                array(
41                        'NAME' => 'VideoJS',
42                        'URL'  => get_admin_plugin_menu_link(dirname(__FILE__).'/admin.php')
43                )
44        );
45        return $menu;
46}
47
48// Batch_manager support
49include_once(dirname(__FILE__).'/admin_batchmanager.php');
50
51?>
Note: See TracBrowser for help on using the repository browser.