source: extensions/instagram2piwigo/main.inc.php @ 23007

Last change on this file since 23007 was 19561, checked in by mistic100, 12 years ago

first commit

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