Mercurial > hgrepos > hgweb.cgi > skipweb
changeset 696:807b41e4d042
test
author | MURAKAMI Masaki <c112124@h.koeki-u.ac.jp> |
---|---|
date | Tue, 23 Jun 2015 15:24:11 +0900 |
parents | 203bb2395cf5 |
children | cf6a229d02f6 |
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 09 18:55:55 2015 +0900 +++ b/2014OC/Bingo.rb Tue Jun 23 15:24:11 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/account.html"> +<meta http-equiv="refresh" content="2.5;http://roy.e.koeki-u.ac.jp/~c112124/web/2014OC/account.html"> </head> <title>たいとる</title> <body> @@ -89,11 +89,11 @@ ### Making randam number ### def taiou(sidesize) - srand(987654321) + srand(6789012345) stamp = Hash.new("n") stamp_name = ["kamo1", "kamo2", "kamo3", "kamo4", "kamo5", "kamo6", "kamo7", "kamo8", "kamo9"] (sidesize**2).times do |n| - stamp[rand(10000000)] = stamp_name[n] + stamp[rand(10000000000)] = stamp_name[n] end stamp end
--- a/2014OC/accountcheck.rb Tue Jun 09 18:55:55 2015 +0900 +++ b/2014OC/accountcheck.rb Tue Jun 23 15:24:11 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 = "SAT, 26 Oct 2014 00:00:00 GMT" +expires = "SAT, 26 JUL 2015 00:00:00 GMT" printf("Content-type: text/html; charset=UTF-8 Set-Cookie:id=%s ;expires=%s