Last change
on this file since 20524 was
19831,
checked in by mistic100, 12 years ago
|
make sure temp folder is created on the right place
|
File size:
963 bytes
|
Rev | Line | |
---|
[16063] | 1 | <?php |
---|
| 2 | /* |
---|
| 3 | Plugin Name: Flickr2Piwigo |
---|
| 4 | Version: auto |
---|
[17476] | 5 | Description: Import pictures from your Flickr account |
---|
[16087] | 6 | Plugin URI: http://piwigo.org/ext/extension_view.php?eid=612 |
---|
[16063] | 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 | |
---|
[19831] | 15 | define('FLICKR_PATH', PHPWG_PLUGINS_PATH . basename(dirname(__FILE__)) . '/'); |
---|
| 16 | define('FLICKR_ADMIN', get_root_url() . 'admin.php?page=plugin-' . basename(dirname(__FILE__))); |
---|
| 17 | define('FLICKR_FS_CACHE', PHPWG_ROOT_PATH . $conf['data_location'] . 'flickr_cache/'); |
---|
[16063] | 18 | |
---|
| 19 | |
---|
[19537] | 20 | if (defined('IN_ADMIN')) |
---|
| 21 | { |
---|
| 22 | add_event_handler('get_admin_plugin_menu_links', 'flickr_admin_menu'); |
---|
[16071] | 23 | |
---|
[19537] | 24 | function flickr_admin_menu($menu) |
---|
| 25 | { |
---|
| 26 | array_push($menu, array( |
---|
| 27 | 'NAME' => 'Flickr2Piwigo', |
---|
| 28 | 'URL' => FLICKR_ADMIN, |
---|
| 29 | )); |
---|
| 30 | return $menu; |
---|
| 31 | } |
---|
[16063] | 32 | } |
---|
| 33 | |
---|
| 34 | |
---|
[16071] | 35 | include_once(FLICKR_PATH . 'include/ws_functions.inc.php'); |
---|
[16063] | 36 | |
---|
[16071] | 37 | add_event_handler('ws_add_methods', 'flickr_add_ws_method'); |
---|
[16063] | 38 | |
---|
| 39 | ?> |
---|
Note: See
TracBrowser
for help on using the repository browser.