source: extensions/url_uploader/main.inc.php @ 20064

Last change on this file since 20064 was 20064, checked in by mistic100, 11 years ago

remove useless plugins menu item

File size: 1.3 KB
RevLine 
[19804]1<?php 
2/*
3Plugin Name: URL Uploader
4Version: auto
5Description: Add photos from remote URL (see Admin->Photos->Add)
6Plugin URI: auto
7Author: Mistic
8Author URI: http://www.strangeplanet.fr
9*/
10
11defined('PHPWG_ROOT_PATH') or die('Hacking attempt!');
12
13
14// +-----------------------------------------------------------------------+
15// | Define plugin constants                                               |
16// +-----------------------------------------------------------------------+
17defined('URLUPLOADER_ID') or define('URLUPLOADER_ID', basename(dirname(__FILE__)));
18define('URLUPLOADER_PATH' ,   PHPWG_PLUGINS_PATH . URLUPLOADER_ID . '/');
19define('URLUPLOADER_ADMIN',   get_root_url() . 'admin.php?page=plugin-' . URLUPLOADER_ID);
20
21
22// +-----------------------------------------------------------------------+
23// | Add event handlers                                                    |
24// +-----------------------------------------------------------------------+
25if (defined('IN_ADMIN'))
26{
27  // new tab on photo page
28  add_event_handler('tabsheet_before_select', 'urluploader_tabsheet_before_select', EVENT_HANDLER_PRIORITY_NEUTRAL, 2);
29}
30
31// add API function
32add_event_handler('ws_add_methods', 'urluploader_ws_add_methods');
33
34include_once(URLUPLOADER_PATH . 'include/functions.inc.php');
35include_once(URLUPLOADER_PATH . 'include/ws_functions.inc.php');
36
37?>
Note: See TracBrowser for help on using the repository browser.