"'.$lcas_previous_compare_user.'"'); } } else { // Username is empty array_push($page['errors'], l10n('LCAS_Err_Userlist_Empty_New_Username')); } } // +-----------------------------------------------------------------------+ // | user list | // +-----------------------------------------------------------------------+ $lcas_previous_compare_user = ''; $visible_user_list = array(); foreach ($page['all_users'] as $local_user) { if ($lcas_previous_compare_user != $local_user['transformed']) { $display = 'orange'; $lcas_previous_compare_user = $local_user['transformed']; } else { $display = ''; } $template->append( 'users', array( 'ID' => $local_user['id'], 'USERNAME' => stripslashes($local_user['username']), 'COMPARE' => stripslashes($local_user['transformed']), 'EMAIL' => get_email_address_as_display_text($local_user['email']), 'DISPLAY' => $display, ) ); } } } // +-----------------------------------------------------------------------+ // | templates init | // +-----------------------------------------------------------------------+ $template->assign( array( 'LCAS_VERSION' => $version, 'LCAS_PATH' => LCAS_PATH, 'LCAS_Option' => $conf_LCAS[0], 'LCAS_MAIL_TRUE' => $conf_LCAS[1] == 'true' ? 'checked = "checked"' : '' , 'LCAS_MAIL_FALSE' => $conf_LCAS[1] == 'false' ? 'checked = "checked"' : '' , 'LCAS_MAILTEXT' => $conf_LCAS[2] ) ); // +-----------------------------------------------------------------------+ // | errors display | // +-----------------------------------------------------------------------+ if (isset ($errors) and count($errors) != 0) { $template->assign('errors',array()); foreach ($errors as $error) { array_push($page['errors'], $error); } } // +-----------------------------------------------------------------------+ // | templates display | // +-----------------------------------------------------------------------+ $template->set_filename('plugin_admin_content', dirname(__FILE__) . '/template/global.tpl'); $template->assign_var_from_handle('ADMIN_CONTENT', 'plugin_admin_content'); ?>