static void Credits(InfoWriter writer) { writer.Header(InfoResources.Credits); // TODO: creditz, can we pull it from git? writer.Table(new string[][] { }, new[] { "Contribution", "Authors" }); }
static void Variables(Context ctx, InfoWriter writer) { writer.Header("Variables"); writer.Table( ((IDictionary <IntStringKey, PhpValue>)ctx.Request).Select(pair => new[] { $"$_REQUEST['{pair.Key}']", Export(ctx, pair.Value) }).Concat( ((IDictionary <IntStringKey, PhpValue>)ctx.Get).Select(pair => new[] { $"$_GET['{pair.Key}']", Export(ctx, pair.Value) }).Concat( ((IDictionary <IntStringKey, PhpValue>)ctx.Post).Select(pair => new[] { $"$_POST['{pair.Key}']", Export(ctx, pair.Value) }).Concat( ((IDictionary <IntStringKey, PhpValue>)ctx.Cookie).Select(pair => new[] { $"$_COOKIE['{pair.Key}']", Export(ctx, pair.Value) }).Concat( ((IDictionary <IntStringKey, PhpValue>)ctx.Server).Select(pair => new[] { $"$_SERVER['{pair.Key}']", Export(ctx, pair.Value) }) )))), new[] { InfoResources.Variable, InfoResources.Value }); }
static void Env(Context ctx, InfoWriter writer) { writer.Header(InfoResources.Environment); writer.Table(ctx, ctx.Env, new[] { InfoResources.Variable, InfoResources.Value }); }