-
Notifications
You must be signed in to change notification settings - Fork 0
/
toolbar.importusers.html.php
executable file
·69 lines (63 loc) · 2.09 KB
/
toolbar.importusers.html.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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
<?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);
class importToolbar {
/**
* Displays toolbar
*
*/
function _DEFAULT(){
mosMenuBar::startTable();
mosMenuBar::addNew('new');
mosMenuBar::spacer();
mosMenuBar::editHTML('edit_source','Edit Mail');
mosMenuBar::spacer();
mosMenuBar::editHTML('edit_config','Edit Config');
mosMenuBar::spacer();
mosMenuBar::help('importusers.html', true );
mosMenuBar::endTable();
}
/*
* Display import modes
*/
function importUsers(){
mosMenuBar::startTable();
mosMenuBar::custom('import', 'apply.png', 'apply_f2.png','Import', false );
mosMenuBar::spacer();
mosMenuBar::custom('testmode', 'apply.png', 'apply_f2.png','Test', false );
mosMenuBar::spacer();
mosMenuBar::cancel('cancel');
mosMenuBar::endTable();
}
/*
* Display editing tools
*/
function editMail(){
mosMenuBar::startTable();
mosMenuBar::save('save_mail', 'Save Mail');
mosMenuBar::spacer();
mosMenuBar::cancel('cancel');
mosMenuBar::endTable();
}
function editConfig(){
mosMenuBar::startTable();
mosMenuBar::save('save_config', 'Save Config');
mosMenuBar::spacer();
mosMenuBar::cancel('cancel');
mosMenuBar::endTable();
}
}
?>