Last change
on this file since 18671 was
17314,
checked in by mistic100, 12 years ago
|
- many small improvements
- protect "generic" functions
- complete localization
|
File size:
907 bytes
|
Line | |
---|
1 | <?php |
---|
2 | /* |
---|
3 | Plugin Name: PBase2Piwigo |
---|
4 | Version: auto |
---|
5 | Description: Import photos from PBase |
---|
6 | Plugin URI: http://piwigo.org/ext/extension_view.php?eid=627 |
---|
7 | Author: Mistic |
---|
8 | Author URI: http://www.strangeplanet.fr |
---|
9 | */ |
---|
10 | |
---|
11 | if (!defined('PHPWG_ROOT_PATH')) die('Hacking attempt!'); |
---|
12 | |
---|
13 | global $conf; |
---|
14 | |
---|
15 | define('PBASE_PATH', PHPWG_PLUGINS_PATH . basename(dirname(__FILE__)) . '/'); |
---|
16 | define('PBASE_ADMIN', get_root_url() . 'admin.php?page=plugin-' . basename(dirname(__FILE__))); |
---|
17 | define('PBASE_FS_CACHE', $conf['data_location'].'pbase_cache/'); |
---|
18 | |
---|
19 | if (defined('IN_ADMIN')) |
---|
20 | { |
---|
21 | add_event_handler('get_admin_plugin_menu_links', 'pbase_admin_menu'); |
---|
22 | |
---|
23 | function pbase_admin_menu($menu) |
---|
24 | { |
---|
25 | array_push($menu, array( |
---|
26 | 'NAME' => 'PBase2Piwigo', |
---|
27 | 'URL' => PBASE_ADMIN, |
---|
28 | )); |
---|
29 | return $menu; |
---|
30 | } |
---|
31 | } |
---|
32 | |
---|
33 | include_once(PBASE_PATH . 'include/ws_functions.inc.php'); |
---|
34 | |
---|
35 | add_event_handler('ws_add_methods', 'pbase_add_ws_method'); |
---|
36 | |
---|
37 | ?> |
---|
Note: See
TracBrowser
for help on using the repository browser.