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, ) ); } /* Plugin version insert */ $template->assign( array( 'LCAS_VERSION' => $version, 'LCAS_PATH' => LCAS_PATH, ) ); // +-----------------------------------------------------------------------+ // | errors display | // +-----------------------------------------------------------------------+ if ( isset ($errors) and count($errors) != 0) { $template->assign('errors',array()); foreach ($errors as $error) { array_push($page['errors'], $error); } } } } // +-----------------------------------------------------------------------+ // | templates init | // +-----------------------------------------------------------------------+ $template->assign( array( 'LCAS_VERSION' => $version, 'LCAS_PATH' => LCAS_PATH, 'PWG_insensitive_case_logon' => ($conf['insensitive_case_logon']), 'Personalized_not_allowed' => (!isset($conf['LCAS_replacement_set'][0])), 'LCAS_final_case' => $conf_LCAS[0], 'LCAS_Option' => $conf_LCAS[1], 'LCAS_MAIL_TRUE' => $conf_LCAS[2]=='true' ? 'checked="checked"' : '' , 'LCAS_MAIL_FALSE' => $conf_LCAS[2]=='false' ? 'checked="checked"' : '' , 'LCAS_MAILTEXT' => $conf_LCAS[3] ) ); // +-----------------------------------------------------------------------+ // | 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'); ?>