Mercurial > hgrepos > hgweb.cgi > skipweb
changeset 700:bc37a7f34a5c
test
author | MURAKAMI Masaki <c112124@h.koeki-u.ac.jp> |
---|---|
date | Tue, 23 Jun 2015 17:15:58 +0900 |
parents | d4631cac88f2 |
children | 54b08f411d60 |
files | 2014OC/Bingo.rb 2014OC/accountcheck.rb |
diffstat | 2 files changed, 4 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/2014OC/Bingo.rb Tue Jun 23 16:13:50 2015 +0900 +++ b/2014OC/Bingo.rb Tue Jun 23 17:15:58 2015 +0900 @@ -50,7 +50,7 @@ "http://www.w3.org/TR/html4/strict.dtd"> <html> <head> -<meta http-equiv="refresh" content="2.5;http://skip.koeki-prj.org/2014OC/Bingo.rb"> +<meta http-equiv="refresh" content="2.5;http://skip.koeki-prj.org/2014OC/account.html"> </head> <title>たいとる</title> <body> @@ -89,11 +89,11 @@ ### Making randam number ### def taiou(sidesize) - srand(6789012345) + srand(987654321) stamp = Hash.new("n") stamp_name = ["kamo1", "kamo2", "kamo3", "kamo4", "kamo5", "kamo6", "kamo7", "kamo8", "kamo9"] (sidesize**2).times do |n| - stamp[rand(10000000000)] = stamp_name[n] + stamp[rand(10000000)] = stamp_name[n] end stamp end
--- a/2014OC/accountcheck.rb Tue Jun 23 16:13:50 2015 +0900 +++ b/2014OC/accountcheck.rb Tue Jun 23 17:15:58 2015 +0900 @@ -45,7 +45,7 @@ db.execute(sql,name,sex,age,aria,job,'000010000','n,n,n,n,kamo1,n,n,n,n',0,0,mg); #初期値 end -expires = "Sun, 26 Jul 2015 00:00:00 GMT" +expires = "SAT, 24 Oct 2015 00:00:00 GMT" printf("Content-type: text/html; charset=UTF-8 Set-Cookie:id=%s ;expires=%s