source: extensions/user_mass_register/main.inc.php @ 30946

Last change on this file since 30946 was 18826, checked in by plg, 12 years ago

new plugin to register many users at once

File size: 1.2 KB
Line 
1<?php 
2/*
3Plugin Name: User Mass Register
4Version: auto
5Description: Register several users at once
6Plugin URI: auto
7Author: plg
8Author URI: http://le-gall.net/pierrick
9*/
10
11defined('PHPWG_ROOT_PATH') or die('Hacking attempt!');
12
13global $prefixeTable;
14
15// +-----------------------------------------------------------------------+
16// | Define plugin constants                                               |
17// +-----------------------------------------------------------------------+
18
19defined('UMR_ID') or define('UMR_ID', basename(dirname(__FILE__)));
20define('UMR_PATH' ,   PHPWG_PLUGINS_PATH . UMR_ID . '/');
21define('UMR_ADMIN',   get_root_url() . 'admin.php?page=plugin-' . UMR_ID);
22
23// +-----------------------------------------------------------------------+
24// | Add event handlers                                                    |
25// +-----------------------------------------------------------------------+
26
27// admin plugins menu link
28add_event_handler('get_admin_plugin_menu_links', 'umr_admin_plugin_menu_links');
29
30/**
31 * admin plugins menu link
32 */
33function 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.