# HG changeset patch # User GOTO Sakuya # Date 1446176559 -32400 # Node ID 25f7b4ff3bc65e8c259fc6acffc236c497536827 # Parent 510673c66330bdc32285b3f9ee7d638fed9daef3# Parent 99ebd8665b879849a91d7c0d7a1fd9e1ea73fdab resolved diff -r 510673c66330 -r 25f7b4ff3bc6 .hgignore --- a/.hgignore Thu Oct 29 18:56:38 2015 +0900 +++ b/.hgignore Fri Oct 30 12:42:39 2015 +0900 @@ -2,5 +2,4 @@ *.eps *.dat *.sq3 - #* diff -r 510673c66330 -r 25f7b4ff3bc6 bisyozyo/#index.html# --- a/bisyozyo/#index.html# Thu Oct 29 18:56:38 2015 +0900 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,22 +0,0 @@ - - -美少女図鑑 - - - -
-

めんこいガール

- -

めんこいガール

-

東北公益文科大学で噂の美少女に取材、撮影を行い、美少女に迫るコーナー -です -美少女たちから自分よりも可愛い人を紹介してもらい、リレー方式で美少女を紹 -介していきます。

- -

-

-
- - \ No newline at end of file diff -r 510673c66330 -r 25f7b4ff3bc6 enq/#anquate.html# --- a/enq/#anquate.html# Thu Oct 29 18:56:38 2015 +0900 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,25 +0,0 @@ - - - -アンケート結果 - - -

アンケート結果

-

アルス美容院

-

仏壇の佐藤

-

庄内ホルモン

-

亀屋

-

菊池菓子舗

-

小の木

-

栗原甘泉堂

-

港タクシー

-

港時計店

-

モアレ

-

尾川園

-

cafe+POM

-

竹内菓子舗

-

きもの千尋草

-

佐々木富蔵商店

-

土筆

- - \ No newline at end of file diff -r 510673c66330 -r 25f7b4ff3bc6 enq/#kikuti.html# --- a/enq/#kikuti.html# Thu Oct 29 18:56:38 2015 +0900 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,110 +0,0 @@ - - - - 菊池菓子舗調査結果 - - - - -
-

SWAN×SKIP現地調査第二弾調査結果

- -

菊池菓子舗

- -
    -
  1. -

    お店の客層はどの層が一番多いですか?
    - 1.~10代 2.20~30代  3.40~50代 4.60代~

    -

    3.40〜50代

    -
  2. - -
  3. -

    どのような客が多いですか?
    - 1.学生 2.サラリーマン 3.子連れの家族 4.カップル 5.その他

    -

    5.その他(主婦)

    -
  4. - -
  5. -

    この店に一番のおすすめ商品を教えて下さい。

    -

    酒田娘(あんこ、コーヒー、やきいも)

    -
  6. - -
  7. -

    お店を宣伝する上で、不便を感じることはありますか?

    -

    いいえ

    -
  8. - -
  9. -

    お店にこんなのがあったらよい、と考えているものがありましたら教えて下さい。

    -

    _

    -
  10. - -
  11. -

    おすすめの穴場がありましたら教えて下さい。

    -

    _

    -
  12. - -
  13. -

    今後どのようなお客樣を増やしていきたいと考えていますか?

    -

    全年齢層

    -
  14. - -
  15. -

    お店でインターネットを利用していますか?
    - 1.はい 2.いいえ

    -

    1.はい

    -
      -
    1. はいと答えた人
      - お使いのプロバイダ を教えて下さい。 -
    2. -

      不明

      -
    3. いいえと答えた人
      - 使用していない理由を教えて下さい。 -

      _

      -
    4. -
    -
  16. - -
  17. -

    お店の facebook やホームページを持っていますか?
    - 1.はい 2.いいえ

    -

    1.はい(HP あり)

    -
  18. - -
  19. -

    電話回線は何をお使いですか?

    -

    -
  20. - -
  21. -

    携帯やスマートフォンで情報を検索する機会はありますか?
    - 1.はい 2.いいえ

    -

    1.はい

    -
  22. - -
  23. -

    今後、中町のお店とSKIPが連携して情報発信を行う際に協力していただ - けますか?
    - 1.はい 2.いいえ

    -

    1.はい

    -
  24. - -
  25. -

    (13で はい と答えた人)
    - どのような情報を発信していきたいですか?また、どのような活動をしたい - ですか?
    - (自由解答)

    -

    社長不在のため、保留

    -
  26. - -
  27. -

    私達は、地域人たちや観光客などにもっと酒田の情報を発信していきた - いと思っているのですが、商店街の方として何かご意見、ご要望はありま - すか?自由にご記入ください。

    -

    社長不在のため、保留

    -
  28. - -
-
- -ko \ No newline at end of file diff -r 510673c66330 -r 25f7b4ff3bc6 enq/#tomizou.html# --- a/enq/#tomizou.html# Thu Oct 29 18:56:38 2015 +0900 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,109 +0,0 @@ - - -佐々木富造商店調査結果 - - - - -
-

SWAN×SKIP現地調査第二弾調査結果

- -

佐々木富造商店

- -
    -
  1. -

    お店の客層はどの層が一番多いですか?
    - 1.~10代 2.20~30代  3.40~50代 4.60代~

    -

    -
  2. - -
  3. -

    どのような客が多いですか?
    - 1.学生 2.サラリーマン 3.子連れの家族 4.カップル 5.その他

    -

    2.5(お年寄り)

    -
  4. - -
  5. -

    この店に一番のおすすめ商品を教えて下さい。

    -

    日本酒

    -
  6. - -
  7. -

    お店を宣伝する上で、不便を感じることはありますか?

    -

    _

    -
  8. - -
  9. -

    お店にこんなのがあったらよい、と考えているものがありましたら教えて下 さい。

    -

    _

    -
  10. - -
  11. -

    おすすめの穴場がありましたら教えて下さい。

    -

    _

    -
  12. - -
  13. -

    今後どのようなお客樣を増やしていきたいと考えていますか?

    -

    どの世代のお客様も増やしていきたい。

    -
  14. - -
  15. -

    お店でインターネットを利用していますか?
    - 1.はい 2.いいえ

    -

    -
      -
    1. はいと答えた人
      - お使いのプロバイダ-を教えて下さい。 -
    2. -

      OCN

      -
    3. いいえと答えた人
      - 使用していない理由を教えて下さい。 -

      _

      -
    4. -
    -
  16. - -
  17. -

    お店の facebook やホームページを持っていますか?
    - 1.はい 2.いいえ

    -

    1(楽天に出店している)

    -
  18. - -
  19. -

    電話回線は何をお使いですか?

    -

    フレッツ光、ISDN

    -
  20. - -
  21. -

    携帯やスマートフォンで情報を検索する機会はありますか?
    - 1.はい 2.いいえ

    -

    -
  22. - -
  23. -

    今後、中町のお店とSKIPが連携して情報発信を行う際に協力していただ - けますか?
    - 1.はい 2.いいえ

    -

    -
  24. - -
  25. -

    (13で はい と答えた人)
    - どのような情報を発信していきたいですか?また、どのような活動をしたい - ですか?
    - (自由解答)

    -

    _

    -
  26. - -
  27. -

    私達は、地域人たちや観光客などにもっと酒田の情報を発信していきた - いと思っているのですが、商店街の方として何かご意見、ご要望はありま - すか?自由にご記入ください。

    -

    宣伝してもらいたい。対策はこれから考えたいと思っている。

    -
  28. - -
-
- - diff -r 510673c66330 -r 25f7b4ff3bc6 enq/#tukushi.html# --- a/enq/#tukushi.html# Thu Oct 29 18:56:38 2015 +0900 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,111 +0,0 @@ - - - - 土筆調査結果 - - - - -
-

SWAN×SKIP現地調査第二弾調査結果

- -

土筆

- -
    -
  1. -

    お店の客層はどの層が一番多いですか?
    - 1.~10代 2.20~30代  3.40~50代 4.60代~

    -

    4.60代〜、夜は若者の利用も多い

    -
  2. - -
  3. -

    どのような客が多いですか?
    - 1.学生 2.サラリーマン 3.子連れの家族 4.カップル 5.その他

    -

    5.その他(お昼は高齢者、夜はサラリーマン)

    -
  4. - -
  5. -

    この店に一番のおすすめ商品を教えて下さい。

    -

    Aランチ、Bランチ

    -
  6. - -
  7. -

    お店を宣伝する上で、不便を感じることはありますか?

    -

    予約をしていないお客様への対応(土筆は予約制)

    -
  8. - -
  9. -

    お店にこんなのがあったらよい、と考えているものがありましたら教えて下さい。

    -

    お店のホームページ

    -
  10. - -
  11. -

    おすすめの穴場がありましたら教えて下さい。

    -

    響や(居酒屋)

    -
  12. - -
  13. -

    今後どのようなお客樣を増やしていきたいと考えていますか?

    -

    宴会がメインなので社会人

    -
  14. - -
  15. -

    お店でインターネットを利用していますか?
    - 1.はい 2.いいえ

    -

    1.いいえ

    -
      -
    1. はいと答えた人
      - お使いのプロバイダ を教えて下さい。 -
    2. -

      不明

      -
    3. いいえと答えた人
      - 使用していない理由を教えて下さい。 -

      使い方が分からない

      -
    4. -
    -
  16. - -
  17. -

    お店の facebook やホームページを持っていますか?
    - 1.はい 2.いいえ

    -

    2.いいえ

    -
  18. - -
  19. -

    電話回線は何をお使いですか?

    -

    いいえ

    -
  20. - -
  21. -

    携帯やスマートフォンで情報を検索する機会はありますか?
    - 1.はい 2.いいえ

    -

    -

    -
  22. - -
  23. -

    今後、中町のお店とSKIPが連携して情報発信を行う際に協力していただ - けますか?
    - 1.はい 2.いいえ

    -

    1.はい(時間が合えば)

    -
  24. - -
  25. -

    (13で はい と答えた人)
    - どのような情報を発信していきたいですか?また、どのような活動をしたい - ですか?
    - (自由解答)

    -

    気軽に入れるように値段をリーズナブルにしたい。

    -
  26. - -
  27. -

    私達は、地域人たちや観光客などにもっと酒田の情報を発信していきた - いと思っているのですが、商店街の方として何かご意見、ご要望はありま - すか?自由にご記入ください。

    -

    駐車場がないのでつくって欲しい。活気のない時期があるので活気が - 欲しい。

    -
  28. - -
-
- - \ No newline at end of file diff -r 510673c66330 -r 25f7b4ff3bc6 minato2014/#account.html# Binary file minato2014/#account.html# has changed diff -r 510673c66330 -r 25f7b4ff3bc6 oasis2015/#.htaccess# --- a/oasis2015/#.htaccess# Thu Oct 29 18:56:38 2015 +0900 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,3 +0,0 @@ -AddHandler cgi-script .rb -Options +ExecCGI -AddType "text/html; charset=utf-8" .html diff -r 510673c66330 -r 25f7b4ff3bc6 oasis2015/accountcheck.rb --- a/oasis2015/accountcheck.rb Thu Oct 29 18:56:38 2015 +0900 +++ b/oasis2015/accountcheck.rb Fri Oct 30 12:42:39 2015 +0900 @@ -83,7 +83,7 @@ -expires = "SAT, 24 Oct 2015 00:00:00 GMT" +expires = "SAT, 31 Oct 2015 00:00:00 GMT" printf("Content-type: text/html; charset=UTF-8 Set-Cookie:id=%s ;expires=%s diff -r 510673c66330 -r 25f7b4ff3bc6 oasis2015/prof.rb --- a/oasis2015/prof.rb Thu Oct 29 18:56:38 2015 +0900 +++ b/oasis2015/prof.rb Fri Oct 30 12:42:39 2015 +0900 @@ -134,6 +134,7 @@ qrAC = qrc ###生成したハッシュには、"乱数"=>"記号"が入っている getAC = ARGV[0].to_i ###URL?以降の文字(特定の乱数)を取得してgetACに代入 qr = qrAC[getAC] ###特定の"乱数"が一致すると、"乱数"=>"記号"がqrに正しく入力される。 +qr = ARGV[0] if qr =="a" && q1 == 0 q1 += 1 jikan2 = db.execute(jikan1, "a") diff -r 510673c66330 -r 25f7b4ff3bc6 opencampus2015/#accountcheck.rb# --- a/opencampus2015/#accountcheck.rb# Thu Oct 29 18:56:38 2015 +0900 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,142 +0,0 @@ -#!/usr/bin/env ruby22 -# -*- coding: utf-8 -*- - -require 'sqlite3' -require 'kconv' -require 'cgi' -require 'csv' - -c = CGI.new(:tag_maker => "html5", :accept_charest => "UTF-8") -db = SQLite3::Database.new("sql/main.sq3") -csv = "list.csv" - -sql = "insert into test values(?, ?, ?, ?, ?, ?, ?, ?, ?)" - -toi = "insert into toi values (?, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0)" -item = "insert into goods values (?, 0, 0, 0, 0, 0, 0)" - -name = c["name"] -pswd = c["pswd"] -cle1 = "CREATE TABLE IF NOT EXISTS test(id, name, cal, age, sex, pswd, exp, pt, lv)" -cle2 = "CREATE TABLE IF NOT EXISTS toi(id, q1, q2, q3, q4, q5, q6, q7, q8, q9, q10)" -cle3 = "CREATE TABLE IF NOT EXISTS goods(id, g1, g2, g3, g4, g5, g6)" -cle4 = "CREATE TABLE IF NOT EXISTS time(cd, now, id)" -cle5 = "CREATE TABLE IF NOT EXISTS num(cd, id)" -cle6 = "CREATE TABLE IF NOT EXISTS pass(id, pass, name)" - -cle7 = "CREATE TABLE IF NOT EXISTS zukan(no, name, tah, lv2, lv3, lv4, lv5)" -cle8 = "CREATE TABLE IF NOT EXISTS box(id, no1, e1, t1, tm1, no2, e2, t2, tm2, no3, e3, t3, tm3)" -ins8 = "insert into box values(?,?,0,?,?,0,0,0,0,0,0,0,0)" - -ins4 = 'insert into time values(?, 61, "n")' -ins5 = 'insert into num values("aa",0)' -ins6 = 'insert into pass values(?, ?, ?)' -num = "select id from num where cd = ?" -numup = "update num set id = ? where cd = ?" - -db.execute(cle1) -db.execute(cle2) -#db.execute(cle3) -db.execute(cle4) -db.execute(cle5) -db.execute(cle6) -db.execute(cle7) -db.execute(cle8) -if name == "createman789789789" - ("a".."j").each{|x|db.execute(ins4,x)} - db.execute(ins5) - #system `sqlite3 -separator , /sql/main.sq3 ".import list.csv zukan"` #(ins7) - CSV.foreach(csv) do |row| - db.execute("INSERT INTO zukan VALUES(?,?,?,?,?,?,?)",*row) - end -end - -name = c["name"] -namae = "#{name}" -cal = c["cal"] -age = c["age"] -sex = c["sex"] -aria = c["aria"] - - -id = c.cookies["id"][0] -pass = c.cookies["pass"][0] -no1 = db.execute("select no from zukan where name = ?",cal)[0][0] -t1 = db.execute("select tah from zukan where name = ?",cal)[0][0] - - -if id == nil - number = db.execute(num, "aa") - begin - id = number[0][0].to_i + 1 - rescue - ("a".."j").each{|x| db.execute(ins4,x)} - # db.execute(ins4, "b") - # db.execute(ins4, "c") - # db.execute(ins4, "d") - # db.execute(ins4, "e") - # db.execute(ins4, "f") - # db.execute(ins4, "g") - # db.execute(ins4, "h") - # db.execute(ins4, "i") - # db.execute(ins4, "j") - db.execute(ins5) - id = number[0][0].to_i + 1 - end - exp = 0 - pt = 0 - lv = 1 - cd = "aa" - if pass == nil - pass = id - end - db.execute(ins6, id, pass, name) - db.execute(sql, id, name, cal, age, sex, aria, exp, pt, lv) - db.execute(toi, id) - # db.execute(item, id) - db.execute(numup, id, cd) - db.execute(ins8,id,no1,t1.to_i/5,t1) -end -# srand(id.to_i) -# id2 = rand(1000000) -id2 = pass - - - -expires = "SAT, 24 Oct 2015 00:00:00 GMT" - -printf("Content-type: text/html; charset=UTF-8 -Set-Cookie:id=%s ;expires=%s -Set-Cookie:pass=%s ;expires=%s\n\n", id, expires, id2, expires) - -printf(<<_EOS_, name, id.to_i) - - - - - - - - - - - - - -Registering Account - - - -

Miyazac Quest

-

登録完了!

-

よくきた_ %s _よ!

-

おまえのIDは%04dだ!

-
始めよう!
-
-
- -_EOS_ -if name == "createman987987987" -filename ='sql/main.sq3' -File.delete filename -end diff -r 510673c66330 -r 25f7b4ff3bc6 opencampus2015/#battle.rb# --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/opencampus2015/#battle.rb# Fri Oct 30 12:42:39 2015 +0900 @@ -0,0 +1,181 @@ +#!/usr/bin/env ruby22 +# -*- coding: utf-8 -*- +require 'cgi' +require 'sqlite3' +require 'kconv' +c = CGI.new(:tag_maker => "html5", :accept_charest => "UTF-8") +db = SQLite3::Database.new("./sql/main.sq3") + +per = "%" +id = c.cookies["id"][0] +person = id.to_i + +data = "select * from test where id = ?" +cook = db.execute(data, person) +printf("Content-type: text/html; charset=UTF-8\n\n") + +begin +id,name,cal,age,sex,aria,exp,pt,lv = cook[0] +rescue +printf(<<_EOS_) + + + + + + + +Miyazac Quest + + + + +
+

記録が無くなったようだ...

記憶も消してやりなおしたまえ......

+
新規記憶の作成
+
作成前に記憶を消す
+
skip@xxxx.co.jp
+ + + + +_EOS_ +exit(0) ##プログラム終了! これがないと以降のプログラムが動いてしまう。 +end + +#################キャラクタ######### +chenge = c["chenge"].to_i +box = db.execute("select * from box where id = ?",id) +hoge,no1,e1,t1,tm1,no2,e2,t2,tm2,no3,e3,t3,tm3=box[0] +newname = "select name from zukan where no = ?" +if chenge == 2 + db.execute("update box set no1=?,e1=?,t1=?,tm1=?,no2=?,e2=?,t2=?,tm2=? where id = ?",no2,e2,t2,tm2,no1,e1,t1,tm1,id) +calname = db.execute(newname,no2)[0][0] + +db.execute("update test set cal = ? where id = ?",calname,id) +elsif chenge == 3 + db.execute("update box set no1=?,e1=?,t1=?,tm1=?,no3=?,e3=?,t3=?,tm3=? where id = ?",no3,e3,t3,tm3,no1,e1,t1,tm1,id) +calname = db.execute(newname,no3)[0][0] +db.execute("update test set cal = ? where id = ?",calname,id) +end + +##################################レベル処理する#### +gage = 0 +e1 = db.execute("select e1 from box where id = ?",person)[0][0]#じぶんのidのboxにある一体目の経験値 +no1 = db.execute("select no1 from box where id = ?",person)[0][0] +no2 = db.execute("select no2 from box where id = ?",person)[0][0].to_i#2体目id +no3 = db.execute("select no3 from box where id = ?",person)[0][0].to_i#3体目id +lv2 = db.execute("select lv2 from zukan where no = ?",no1)[0][0].to_i +lv3 = db.execute("select lv3 from zukan where no = ?",no1)[0][0].to_i +lv4 = db.execute("select lv4 from zukan where no = ?",no1)[0][0].to_i +lv5 = db.execute("select lv5 from zukan where no = ?",no1)[0][0].to_i +if e1 < lv2 +lv = 1 +gage = 100-(e1/lv2.to_f*100) +elsif e1 >= lv5 +lv = 5 +gage = 0 +elsif e1 >= lv4 +lv = 4 +gage = 100-(e1-lv4)/(lv5-lv4.to_f)*100 +elsif e1 >= lv3 +lv = 3 +gage = 100-(e1-lv3)/(lv4-lv3.to_f)*100 +elsif e1 >= lv2 +lv = 2 +gage = 100-(e1-lv2)/(lv3-lv2.to_f)*100 +end######################################### + + +image = "./img/#{cal}#{lv}.png" +alt = "#{cal}.png" + + + +if lv == 1 + color = "black" +elsif lv == 2 + color = "navy" +elsif lv == 3 + color = "green" +elsif lv == 4 + color = "red" +elsif lv == 5 + color = "yellow" +else + color = "pink" + image = "./img/snail.png" + alt = "snails_bug" +end + +printf(<<_EOS_, per, gage, per, per, per, color, cal, image, alt, name, person, cal, lv) + + + + + + + + + + + + + +BATTLE! + + + + +
%s
+

Miyazac Quest

+ +
+
+%s +
+ + + + +
name:%s
id:%04d
cara:%s
lv.%d
+
+ +
+

exp

+
+ + + + + +_EOS_ diff -r 510673c66330 -r 25f7b4ff3bc6 opencampus2015/accountcheck.rb --- a/opencampus2015/accountcheck.rb Thu Oct 29 18:56:38 2015 +0900 +++ b/opencampus2015/accountcheck.rb Fri Oct 30 12:42:39 2015 +0900 @@ -103,7 +103,7 @@ -expires = "SUN, 25 Oct 2015 00:00:00 GMT" +expires = "SUN, 5, MAR 2017 00:00:00 GMT" printf("Content-type: text/html; charset=UTF-8 Set-Cookie:id=%s ;expires=%s diff -r 510673c66330 -r 25f7b4ff3bc6 opencampus2015/admin/#.htaccess# --- a/opencampus2015/admin/#.htaccess# Thu Oct 29 18:56:38 2015 +0900 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,10 +0,0 @@ -AddHandler cgi-script .rb -AddType "text/html; charset=utf-8" .rb -AddType "text/html; charset=utf-8" .html -Options +ExecCGI -AuthUserFile /home/www/skip/opencampus2015/admin/.htpasswd -#AuthUserFile /home/irhome/c113/c113007/public_html/web/opencampus2015/admin/.htpasswd#for_roy -AuthGroupFile /dev/null -AuthName "splatoon! piyopiyogirl" -AuthType Basic -#require valid-user #This require make password diff -r 510673c66330 -r 25f7b4ff3bc6 opencampus2015/prof.rb --- a/opencampus2015/prof.rb Thu Oct 29 18:56:38 2015 +0900 +++ b/opencampus2015/prof.rb Fri Oct 30 12:42:39 2015 +0900 @@ -274,8 +274,6 @@ elsif no2 > 0 && no3 > 0 chengeform +="