-
Notifications
You must be signed in to change notification settings - Fork 0
/
toolbar.importusers.php
executable file
·42 lines (38 loc) · 1.17 KB
/
toolbar.importusers.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
<?php
/*
* Created on 3 Ïêô 2005
* @mamboversion 4.5.2
* @version 0.3
* @package ImportUsers
* @copyright (C) 2005 Nikos Anagnostou
* @copyright (C) for the import part of the code Wayne Stewart
* @license http://www.gnu.org/copyleft/gpl.html GNU/GPL
*/
/** ensure this file is being included by a parent file */
defined( '_VALID_MOS' ) or
die( 'Direct Access to this location is not allowed.' );
// ensure user has access to this function
if (!($acl->acl_check('administration', 'edit', 'users', $my->usertype, 'components', 'all') || $acl->acl_check('administration', 'edit', 'users', $my->usertype, 'components', 'com_dailymessage'))) {
mosRedirect('index2.php', _NOT_AUTH);
}
// include support libraries
require_once( $mainframe->getPath( 'toolbar_html' ) );
// handle the task
$task = mosGetParam( $_REQUEST, 'task', '' );
switch ($task) {
case 'new':
case 'import':
case 'testmode':
importToolbar::importUsers();
break;
case 'edit_source':
importToolbar::editMail();
break;
case 'edit_config':
importToolbar::editConfig();
break;
default:
importToolbar::_DEFAULT();
break;
}
?>