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

Last change on this file since 27153 was 26387, checked in by mistic100, 10 years ago

update for 2.6

File size: 821 bytes
Line 
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
14define('URLUPLOADER_ID',      basename(dirname(__FILE__)));
15define('URLUPLOADER_PATH' ,   PHPWG_PLUGINS_PATH . URLUPLOADER_ID . '/');
16define('URLUPLOADER_ADMIN',   get_root_url() . 'admin.php?page=plugin-' . URLUPLOADER_ID);
17
18
19if (defined('IN_ADMIN'))
20{
21  add_event_handler('tabsheet_before_select', 'urluploader_tabsheet_before_select', EVENT_HANDLER_PRIORITY_NEUTRAL, 2);
22}
23
24add_event_handler('ws_add_methods', 'urluploader_ws_add_methods');
25
26
27include_once(URLUPLOADER_PATH . 'include/functions.inc.php');
28include_once(URLUPLOADER_PATH . 'include/ws_functions.inc.php');
Note: See TracBrowser for help on using the repository browser.