Mercurial > hgrepos > hgweb.cgi > skipweb
changeset 576:c02da18b51e3
Update
author | MURAKAMI Masaki <c112124@h.koeki-u.ac.jp> |
---|---|
date | Fri, 25 Jul 2014 14:36:53 +0900 |
parents | 79cbef12b16a |
children | 15acb069930b |
files | minato2014/env.rb |
diffstat | 1 files changed, 23 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/minato2014/env.rb Fri Jul 25 14:36:53 2014 +0900 @@ -0,0 +1,23 @@ +#!/usr/bin/env ruby +#coding:euc-jp + + + +print "Content-type: text/html\n\n" +print "<html> + <head> + <title>環境変数一覧</title> + </head> + <body> + <table align=\"center\" border=\"1\" bordercolor=\"#000099\" cellspacing=\"0\"> + <caption>環境変数一覧</caption>" + +ENV.each { |k,v| +# v = v.gsub(/\w/, "*") #サンプルのため非表示(この行を削除してください) + print "<tr><td>#{k}</td><td>#{v}</td></tr>\n" +} + +print"</table> + </body> + </html>" +