Line | |
---|
1 | <?php |
---|
2 | /* |
---|
3 | Plugin Name: User Mass Register |
---|
4 | Version: auto |
---|
5 | Description: Register several users at once |
---|
6 | Plugin URI: auto |
---|
7 | Author: plg |
---|
8 | Author URI: http://le-gall.net/pierrick |
---|
9 | */ |
---|
10 | |
---|
11 | defined('PHPWG_ROOT_PATH') or die('Hacking attempt!'); |
---|
12 | |
---|
13 | global $prefixeTable; |
---|
14 | |
---|
15 | // +-----------------------------------------------------------------------+ |
---|
16 | // | Define plugin constants | |
---|
17 | // +-----------------------------------------------------------------------+ |
---|
18 | |
---|
19 | defined('UMR_ID') or define('UMR_ID', basename(dirname(__FILE__))); |
---|
20 | define('UMR_PATH' , PHPWG_PLUGINS_PATH . UMR_ID . '/'); |
---|
21 | define('UMR_ADMIN', get_root_url() . 'admin.php?page=plugin-' . UMR_ID); |
---|
22 | |
---|
23 | // +-----------------------------------------------------------------------+ |
---|
24 | // | Add event handlers | |
---|
25 | // +-----------------------------------------------------------------------+ |
---|
26 | |
---|
27 | // admin plugins menu link |
---|
28 | add_event_handler('get_admin_plugin_menu_links', 'umr_admin_plugin_menu_links'); |
---|
29 | |
---|
30 | /** |
---|
31 | * admin plugins menu link |
---|
32 | */ |
---|
33 | function umr_admin_plugin_menu_links($menu) |
---|
34 | { |
---|
35 | array_push( |
---|
36 | $menu, |
---|
37 | array( |
---|
38 | 'NAME' => 'User Mass Register', |
---|
39 | 'URL' => UMR_ADMIN, |
---|
40 | ) |
---|
41 | ); |
---|
42 | |
---|
43 | return $menu; |
---|
44 | } |
---|
45 | ?> |
---|
Note: See
TracBrowser
for help on using the repository browser.