Revision 1710
Added by Luisehahne about 13 years ago
| index.php | ||
|---|---|---|
| 4 | 4 |
* @category admin |
| 5 | 5 |
* @package users |
| 6 | 6 |
* @author Ryan Djurovich, WebsiteBaker Project |
| 7 |
* @copyright 2009-2011, Website Baker Org. e.V.
|
|
| 7 |
* @copyright 2009-2012, WebsiteBaker Org. e.V.
|
|
| 8 | 8 |
* @link http://www.websitebaker2.org/ |
| 9 | 9 |
* @license http://www.gnu.org/licenses/gpl.html |
| 10 | 10 |
* @platform WebsiteBaker 2.8.x |
| ... | ... | |
| 25 | 25 |
|
| 26 | 26 |
// Setup template object, parse vars to it, then parse it |
| 27 | 27 |
// Create new template object |
| 28 |
$template = new Template(dirname($admin->correct_theme_source('users.htt')));
|
|
| 28 |
$template = new Template(dirname($admin->correct_theme_source('users.htt')),'keep');
|
|
| 29 | 29 |
// $template->debug = true; |
| 30 | 30 |
|
| 31 | 31 |
$template->set_file('page', 'users.htt');
|
| ... | ... | |
| 108 | 108 |
'TEXT_MODIFY' => $TEXT['MODIFY'], |
| 109 | 109 |
'TEXT_DELETE' => $TEXT['DELETE'], |
| 110 | 110 |
'TEXT_MANAGE_GROUPS' => ( $admin->get_permission('groups') == true ) ? $TEXT['MANAGE_GROUPS'] : "**",
|
| 111 |
'CONFIRM_DELETE' => (($iUserStatus == 1) ? $TEXT['ARE_YOU_SURE'] : $MESSAGE['USERS']['CONFIRM_DELETE'])
|
|
| 111 |
'CONFIRM_DELETE' => (($iUserStatus == 1) ? $TEXT['ARE_YOU_SURE'] : $MESSAGE['USERS_CONFIRM_DELETE'])
|
|
| 112 | 112 |
) |
| 113 | 113 |
); |
| 114 | 114 |
if ( $admin->get_permission('groups') == true ) $template->parse("groups", "manage_groups_block", true);
|
| ... | ... | |
| 118 | 118 |
|
| 119 | 119 |
// Setup template object, parse vars to it, then parse it |
| 120 | 120 |
// Create new template object |
| 121 |
$template = new Template(dirname($admin->correct_theme_source('users_form.htt')));
|
|
| 121 |
$template = new Template(dirname($admin->correct_theme_source('users_form.htt')),'keep');
|
|
| 122 | 122 |
// $template->debug = true; |
| 123 | 123 |
$template->set_file('page', 'users_form.htt');
|
| 124 | 124 |
$template->set_block('page', 'main_block', 'main');
|
| 125 |
$template->set_block('main_block', 'show_modify_loginname_block', 'show_modify_loginname');
|
|
| 126 |
$template->set_block('main_block', 'show_add_loginname_block', 'show_add_loginname');
|
|
| 125 | 127 |
$template->set_var('DISPLAY_EXTRA', 'display:none;');
|
| 126 | 128 |
$template->set_var('ACTIVE_CHECKED', ' checked="checked"');
|
| 127 | 129 |
$template->set_var('ACTION_URL', ADMIN_URL.'/users/add.php');
|
| ... | ... | |
| 129 | 131 |
$template->set_var('FTAN', $admin->getFTAN());
|
| 130 | 132 |
// insert urls |
| 131 | 133 |
$template->set_var(array( |
| 134 |
'USER_ID' => '', |
|
| 135 |
'USERNAME' => '', |
|
| 136 |
'DISPLAY_NAME' => '', |
|
| 137 |
'EMAIL' => '', |
|
| 132 | 138 |
'ADMIN_URL' => ADMIN_URL, |
| 133 | 139 |
'WB_URL' => WB_URL, |
| 134 | 140 |
'THEME_URL' => THEME_URL |
| ... | ... | |
| 215 | 221 |
'TEXT_NONE' => $TEXT['NONE'], |
| 216 | 222 |
'TEXT_HOME_FOLDER' => $TEXT['HOME_FOLDER'], |
| 217 | 223 |
'USERNAME_FIELDNAME' => $username_fieldname, |
| 218 |
'CHANGING_PASSWORD' => $MESSAGE['USERS']['CHANGING_PASSWORD']
|
|
| 224 |
'CHANGING_PASSWORD' => $MESSAGE['USERS_CHANGING_PASSWORD']
|
|
| 219 | 225 |
) |
| 220 | 226 |
); |
| 221 | 227 |
|
| 222 | 228 |
// Parse template for add user form |
| 229 |
$template->parse('show_modify_loginname', '', true);
|
|
| 230 |
$template->parse('show_add_loginname', 'show_add_loginname_block', true);
|
|
| 223 | 231 |
$template->parse('main', 'main_block', false);
|
| 224 | 232 |
$template->pparse('output', 'page');
|
| 225 | 233 |
|
Also available in: Unified diff
! update folder admin/groups, admin/users, admin/skel/htt