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'); ?>