source: extensions/piwigo-openstreetmap/admin/admin_boot.php @ 24865

Last change on this file since 24865 was 24677, checked in by ddtddt, 11 years ago

[extensions] - piwigo-openstreetmap - add file for translate

File size: 1.5 KB
Line 
1<?php
2/***********************************************
3* File      :   admin_boot.php
4* Project   :   piwigo-openstreetmap
5* Descr     :   Generate the admin panel
6*
7* Created   :   11.06.2013
8*
9* Copyright 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// Hook to a admin config page
31add_event_handler('get_admin_plugin_menu_links', 'osm_admin_menu');
32function osm_admin_menu($menu)
33{
34        array_push($menu,
35                array(
36                        'NAME' => 'OpenStreetMap',
37                        'URL'  => get_admin_plugin_menu_link(dirname(__FILE__).'/admin.php')
38                )
39        );
40        return $menu;
41}
42
43// Exit if we don't want batch_manager support
44if ($conf['osm_conf']['batch_manager'])
45{
46        // Batch_manager support
47        include_once(dirname(__FILE__).'/admin_batchmanager.php');
48}
49
50?>
Note: See TracBrowser for help on using the repository browser.