changeset 3274:dc2eecba9982

Forget db
author Minoru Konno <c113069@e.koeki-u.ac.jp>
date Sat, 23 Jul 2016 11:31:06 +0900
parents 706c45790b74
children 59c39e2c63e3
files event/oasis2016/db/point.yaml event/oasis2016/tori/ckgame.rb
diffstat 2 files changed, 4 insertions(+), 9 deletions(-) [+]
line wrap: on
line diff
--- a/event/oasis2016/db/point.yaml	Fri Jul 22 21:14:15 2016 +0900
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,6 +0,0 @@
----
-info:
-  ! '':
-    name: aa
-    bingo:
-      "きゅうり": true
--- a/event/oasis2016/tori/ckgame.rb	Fri Jul 22 21:14:15 2016 +0900
+++ b/event/oasis2016/tori/ckgame.rb	Sat Jul 23 11:31:06 2016 +0900
@@ -15,13 +15,13 @@
 form_name=c["playname"]        # nameをフォームから取得(もしあれば)
 form_kwd=c["keyword"]          # keywordも取得(もしあれば)
 
-if cookie_id == nil             # (1)もしcookieからのidがなければ新規生成
+#if cookie_id == nil             # (1)もしcookieからのidがなければ新規生成
   # 新規idは、現在時刻を秒(to_i)にした文字列(to_s)と乱数の組み合わせ
   newid = Time.now.to_i.to_s + "/" + rand(99999).to_s
   id=newid                      # 新規idをidとする
-else                            # (2)cookieからのidがあればそれをidとする
+#else                            # (2)cookieからのidがあればそれをidとする
   id=cookie_id
-end
+#end
 
 # idをすぐcookieで相手ブラウザに送る
 # 変数の期限を24時間に設定し、expire変数に入れる
@@ -79,6 +79,7 @@
 <title>まちがいみつけでみっちゃ</title>
 <link rel="stylesheet" type="text/css" href="../attack.css">
 </head>
+
 <body>
 <img src="../img/logo.png" width="900px" height="100px">
 <h1>%s</h1>

yatex.org