Mercurial > hgrepos > hgweb.cgi > skipweb
changeset 2496:fb687c57f54d
acc cal=>up
author | ARAKI Tsuyohito <c113007@e.koeki-u.ac.jp> |
---|---|
date | Wed, 08 Jul 2015 19:03:02 +0900 |
parents | f236ab082d22 |
children | 0dab7c9b48b5 |
files | oasis2015/accountcheck.rb |
diffstat | 1 files changed, 4 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/oasis2015/accountcheck.rb Wed Jul 08 19:01:40 2015 +0900 +++ b/oasis2015/accountcheck.rb Wed Jul 08 19:03:02 2015 +0900 @@ -9,7 +9,7 @@ db = SQLite3::Database.new("sql/main.sq3") #sql = "insert into test values(?, ?, ?, ?, ?, ?, ?, ?, ?)" sql = "insert into test values (?, 0, 0, 0, 0, 0, 0, 0, 0)" -squp = "update test set name = ? where id = ?" +squp = "update test set cal = ? where id = ?" #, cal=?, age=?, sex=?, aria=?, exp=?, pt=?, lv=? where id = ?" toi = "insert into toi values (?, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0)" @@ -46,7 +46,7 @@ age = c["age"] sex = c["sex"] aria = c["aria"] -namae = name + id = c.cookies["id"][0] if id == nil srand @@ -56,7 +56,7 @@ lv = 1 # db.execute(sql, id, name, cal, age, sex, aria, exp, pt, lv) db.execute(sql, id) - db.execute(squp, namae, id) + db.execute(squp, cal, id) db.execute(toi, id) db.execute(item, id) @@ -71,7 +71,7 @@ Set-Cookie:id=%s ;expires=%s Set-Cookie:pass=%s ;expires=%s\n\n", id, expires, id2, expires) -printf(<<_EOS_, namae, id.to_i) +printf(<<_EOS_, name, id.to_i) <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> <html> <head>