Last change
on this file since 20425 was
19830,
checked in by mistic100, 12 years ago
|
make sure temp folder is created on the right place
|
File size:
962 bytes
|
Line | |
---|
1 | <?php |
---|
2 | /* |
---|
3 | Plugin Name: Google2Piwigo |
---|
4 | Version: auto |
---|
5 | Description: Import photos from your Google account (including Picasa Web Albums) |
---|
6 | Plugin URI: http://piwigo.org/ext/extension_view.php?eid=628 |
---|
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('PICASA_WA_PATH', PHPWG_PLUGINS_PATH . basename(dirname(__FILE__)) . '/'); |
---|
16 | define('PICASA_WA_ADMIN', get_root_url() . 'admin.php?page=plugin-' . basename(dirname(__FILE__))); |
---|
17 | define('PICASA_WA_CACHE', PHPWG_ROOT_PATH . $conf['data_location'] . 'picasa_wa_cache/'); |
---|
18 | |
---|
19 | |
---|
20 | add_event_handler('get_admin_plugin_menu_links', 'picasa_wa_admin_menu'); |
---|
21 | |
---|
22 | function picasa_wa_admin_menu($menu) |
---|
23 | { |
---|
24 | array_push($menu, array( |
---|
25 | 'NAME' => 'Google2Piwigo', |
---|
26 | 'URL' => PICASA_WA_ADMIN, |
---|
27 | )); |
---|
28 | return $menu; |
---|
29 | } |
---|
30 | |
---|
31 | |
---|
32 | include_once(PICASA_WA_PATH . 'include/ws_functions.inc.php'); |
---|
33 | |
---|
34 | add_event_handler('ws_add_methods', 'picasa_wa_add_ws_method'); |
---|
35 | |
---|
36 | ?> |
---|
Note: See
TracBrowser
for help on using the repository browser.