/// <summary> /// Writes all information about Phalanger and external PHP modules to output. /// </summary> /// <param name="output">An output where to write information.</param> /// <param name="sections">A mask of sections which to write.</param> public static void Write(Sections /*!*/ sections, TextWriter /*!*/ output) { output.Write(htmlPrologue); output.Write(htmlStyle, htmlCss); if ((sections & Sections.General) != 0) { WriteLogo(output); } if ((sections & (Sections.Configuration | Sections.General)) != 0) { output.Write("<h2>"); output.Write(CoreResources.GetString("info_config")); output.Write("</h2>"); WriteConfiguration(output); } if ((sections & Sections.Credits) != 0) { output.Write("<h2>"); output.Write(CoreResources.GetString("info_credits")); output.Write("</h2>"); WriteCredits(output); } #if !SILVERLIGHT if ((sections & Sections.Extensions) != 0) { output.Write("<h2>"); output.Write(CoreResources.GetString("info_loaded_extensions")); output.Write("</h2>"); output.Write(Externals.PhpInfo()); } #endif if ((sections & Sections.Environment) != 0) { output.Write("<h2>"); output.Write(CoreResources.GetString("info_environment_variables")); output.Write("</h2>"); WriteEnvironmentVariables(output); } if ((sections & Sections.Variables) != 0) { output.Write("<h2>"); output.Write(CoreResources.GetString("info_global_variables")); output.Write("</h2>"); WriteGlobalVariables(output); } if ((sections & Sections.License) != 0) { output.Write("<h2>"); output.Write(CoreResources.GetString("info_license")); output.Write("</h2>"); WriteLicense(output); } output.Write(htmlEpilogue); }