source: extensions/flickr2piwigo/main.inc.php @ 17135

Last change on this file since 17135 was 16087, checked in by mistic100, 12 years ago

forgot to fill plugin uri, auto update won't like that

File size: 906 bytes
RevLine 
[16063]1<?php 
2/*
3Plugin Name: Flickr2Piwigo
4Version: auto
5Description: Extension for importing pictures from your Flickr account
[16087]6Plugin URI: http://piwigo.org/ext/extension_view.php?eid=612
[16063]7Author: Mistic
8Author URI: http://www.strangeplanet.fr
9*/
10
11if (!defined('PHPWG_ROOT_PATH')) die('Hacking attempt!');
12
13global $conf;
14
15define('FLICKR_PATH', PHPWG_PLUGINS_PATH . basename(dirname(__FILE__)) . '/');
16define('FLICKR_ADMIN', get_root_url() . 'admin.php?page=plugin-' . basename(dirname(__FILE__)));
17define('FLICKR_FS_CACHE', $conf['data_location'].'flickr_cache/');
18
19
[16071]20add_event_handler('get_admin_plugin_menu_links', 'flickr_admin_menu');
21
22function flickr_admin_menu($menu) 
[16063]23{
24  array_push($menu, array(
25    'NAME' => 'Flickr2Piwigo',
26    'URL' => FLICKR_ADMIN,
27  ));
28  return $menu;
29}
30
31
[16071]32include_once(FLICKR_PATH . 'include/ws_functions.inc.php');
[16063]33
[16071]34add_event_handler('ws_add_methods', 'flickr_add_ws_method');
[16063]35
36?>
Note: See TracBrowser for help on using the repository browser.