changeset 2181:3e0c1405756b

coop => coupon
author SUZUKI Takehisa <c110128@e.koeki-u.ac.jp>
date Fri, 24 Jan 2014 15:33:53 +0900
parents 428be07823ba
children 8c588120d0d8 9030f5fca2a8
files coop/#entry.rb?240999# coop/.htaccess coop/.png coop/106996.png coop/1078021.png coop/1165563.png coop/1310236.png coop/1547608.png coop/1574204.png coop/1637816.png coop/1674821.png coop/2146728.png coop/2151630.png coop/2246529.png coop/239137.png coop/2404662.png coop/2445413.png coop/2487941.png coop/2579504.png coop/2680544.png coop/2904846.png coop/2905842.png coop/2958496.png coop/3035447.png coop/3185616.png coop/3266671.png coop/3294276.png coop/3613326.png coop/3649577.png coop/3728969.png coop/3826311.png coop/3913940.png coop/4024713.png coop/4110511.png coop/4223796.png coop/429439.png coop/4433124.png coop/446666.png coop/4475590.png coop/4568417.png coop/4705368.png coop/4728617.png coop/4744520.png coop/4744755.png coop/5077710.png coop/5110665.png coop/511114.png coop/5129960.png coop/5375454.png coop/5521914.png coop/5626796.png coop/5658776.png coop/5725029.png coop/5750404.png coop/5871409.png coop/5901629.png coop/5907193.png coop/5933209.png coop/5958001.png coop/6043745.png coop/6097675.png coop/6146230.png coop/619248.png coop/6213023.png coop/6273985.png coop/6285579.png coop/652143.png coop/6569302.png coop/6603997.png coop/6679174.png coop/6820704.png coop/6824363.png coop/690339.png coop/6977825.png coop/710028.png coop/7717974.png coop/776357.png coop/7797363.png coop/7837452.png coop/7898781.png coop/7949720.png coop/8178850.png coop/8471049.png coop/8504782.png coop/8597726.png coop/8641398.png coop/8823758.png coop/8938859.png coop/9001520.png coop/9020411.png coop/9086182.png coop/9089721.png coop/9172971.png coop/9302599.png coop/9418431.png coop/9443378.png coop/9467002.png coop/9544566.png coop/9555208.png coop/9573072.png coop/9580413.png coop/9757894.png coop/9884841.png coop/entry.html coop/entry.rb coop/login.html coop/login.rb coop/pass.csv coop/pass.rb coop/url.rb
diffstat 110 files changed, 0 insertions(+), 345 deletions(-) [+]
line wrap: on
line diff
--- a/coop/#entry.rb?240999#	Fri Jan 24 15:32:35 2014 +0900
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,8 +0,0 @@
-#!/usr/bin/env ruby
-# coding: euc-jp
-
-idlist = (1..100).collect{rand(10000000)}
-if idlist.index(ARGV[0].to_i)
-   print"hogehoge"				
-end				   
-printf"%s",ARGV[0]
--- a/coop/.htaccess	Fri Jan 24 15:32:35 2014 +0900
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,4 +0,0 @@
-AddHandler cgi-script   .rb
-AddType	"text/html; charset=utf-8" .rb
-AddType "text/x-server-parsed-html" .shtml
-Options +ExecCGI +Includes 
Binary file coop/.png has changed
Binary file coop/106996.png has changed
Binary file coop/1078021.png has changed
Binary file coop/1165563.png has changed
Binary file coop/1310236.png has changed
Binary file coop/1547608.png has changed
Binary file coop/1574204.png has changed
Binary file coop/1637816.png has changed
Binary file coop/1674821.png has changed
Binary file coop/2146728.png has changed
Binary file coop/2151630.png has changed
Binary file coop/2246529.png has changed
Binary file coop/239137.png has changed
Binary file coop/2404662.png has changed
Binary file coop/2445413.png has changed
Binary file coop/2487941.png has changed
Binary file coop/2579504.png has changed
Binary file coop/2680544.png has changed
Binary file coop/2904846.png has changed
Binary file coop/2905842.png has changed
Binary file coop/2958496.png has changed
Binary file coop/3035447.png has changed
Binary file coop/3185616.png has changed
Binary file coop/3266671.png has changed
Binary file coop/3294276.png has changed
Binary file coop/3613326.png has changed
Binary file coop/3649577.png has changed
Binary file coop/3728969.png has changed
Binary file coop/3826311.png has changed
Binary file coop/3913940.png has changed
Binary file coop/4024713.png has changed
Binary file coop/4110511.png has changed
Binary file coop/4223796.png has changed
Binary file coop/429439.png has changed
Binary file coop/4433124.png has changed
Binary file coop/446666.png has changed
Binary file coop/4475590.png has changed
Binary file coop/4568417.png has changed
Binary file coop/4705368.png has changed
Binary file coop/4728617.png has changed
Binary file coop/4744520.png has changed
Binary file coop/4744755.png has changed
Binary file coop/5077710.png has changed
Binary file coop/5110665.png has changed
Binary file coop/511114.png has changed
Binary file coop/5129960.png has changed
Binary file coop/5375454.png has changed
Binary file coop/5521914.png has changed
Binary file coop/5626796.png has changed
Binary file coop/5658776.png has changed
Binary file coop/5725029.png has changed
Binary file coop/5750404.png has changed
Binary file coop/5871409.png has changed
Binary file coop/5901629.png has changed
Binary file coop/5907193.png has changed
Binary file coop/5933209.png has changed
Binary file coop/5958001.png has changed
Binary file coop/6043745.png has changed
Binary file coop/6097675.png has changed
Binary file coop/6146230.png has changed
Binary file coop/619248.png has changed
Binary file coop/6213023.png has changed
Binary file coop/6273985.png has changed
Binary file coop/6285579.png has changed
Binary file coop/652143.png has changed
Binary file coop/6569302.png has changed
Binary file coop/6603997.png has changed
Binary file coop/6679174.png has changed
Binary file coop/6820704.png has changed
Binary file coop/6824363.png has changed
Binary file coop/690339.png has changed
Binary file coop/6977825.png has changed
Binary file coop/710028.png has changed
Binary file coop/7717974.png has changed
Binary file coop/776357.png has changed
Binary file coop/7797363.png has changed
Binary file coop/7837452.png has changed
Binary file coop/7898781.png has changed
Binary file coop/7949720.png has changed
Binary file coop/8178850.png has changed
Binary file coop/8471049.png has changed
Binary file coop/8504782.png has changed
Binary file coop/8597726.png has changed
Binary file coop/8641398.png has changed
Binary file coop/8823758.png has changed
Binary file coop/8938859.png has changed
Binary file coop/9001520.png has changed
Binary file coop/9020411.png has changed
Binary file coop/9086182.png has changed
Binary file coop/9089721.png has changed
Binary file coop/9172971.png has changed
Binary file coop/9302599.png has changed
Binary file coop/9418431.png has changed
Binary file coop/9443378.png has changed
Binary file coop/9467002.png has changed
Binary file coop/9544566.png has changed
Binary file coop/9555208.png has changed
Binary file coop/9573072.png has changed
Binary file coop/9580413.png has changed
Binary file coop/9757894.png has changed
Binary file coop/9884841.png has changed
--- a/coop/entry.html	Fri Jan 24 15:32:35 2014 +0900
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,21 +0,0 @@
-<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
-	"http://www.w3.org/TR/html4/strict.dtd">
-<html>
-<head>
-<title>さんぷる</title>
-<style type="text/css">
-<!--
-
--->
-</style>
-<link rel="stylesheet" type="text/css" href="ほげ.css">
-</head>
-
-<body>
-<h1>QRコード</h1>
-<p>
-<img src="8178850.png" alt="QRコード" width="212" height="212"></p>
-<address>c110128&#x40;f.koeki-u.ac.jp</address>
-
-</body>
-</html>
--- a/coop/entry.rb	Fri Jan 24 15:32:35 2014 +0900
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,42 +0,0 @@
-#!/usr/bin/env ruby
-# coding: euc-jp
-
-require 'cgi'
-#require 'digest'
-
-c = CGI.new('html4Tr')
-me = File.basename(c.script_name)
-
-c0 = c.cookies['id']
-ip = ENV['REMOTE_ADDR']
-i = 0
-
-
-srand(56384679263254687)
-10000.times {rand(1000000)}
-idlist = (1..100).collect{rand(10000000)}
-
-cookie = CGI::Cookie.new({'name' => 'id',
-                           'value' => "#{ip}",
-                           'domain' => c.server_name,
-                           'path' => c.script_name})
-
-cookie.expires = Time.now + 10
-
-c.out({'cookie' => cookie}) do
-  c.html({'PRETTY' => ' '}) do
-    c.head do
-      c.title {'サンプル'}
-    end + c.body do
-      if idlist.index(ARGV[0].to_i)
-        c.p{'おめでとう'} +
-          c.p{
-          c.code{cookie[0]}}
-      elsif i >= 50
-        c.p{'ごめんなさい'}
-      else 
-        c.p{'error'}
-      end
-    end
-  end
-end
--- a/coop/login.html	Fri Jan 24 15:32:35 2014 +0900
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,24 +0,0 @@
-<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
-	"http://www.w3.org/TR/html4/strict.dtd">
-<html>
-<head>
-<title>サンプルページ</title>
-<style type="text/css">
-<!--
-
--->
-</style>
-<link rel="stylesheet" type="text/css" href="ほげ.css">
-</head>
-
-<body>
-<h1>ああああ</h1>
-<p>御利用ありがとうございます</p>
-
-
-
-
-<address>c110128&#x40;f.koeki-u.ac.jp</address>
-
-</body>
-</html>
--- a/coop/login.rb	Fri Jan 24 15:32:35 2014 +0900
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,87 +0,0 @@
-#!/usr/bin/env ruby
-# coding: euc-jp
-
-require 'pg'
-require 'cgi'
-require 'date'
-
-c = CGI.new(:accept_charset => "EUC-JP")
-
-i = 0
-pa = []
-day = []
-ip = ENV['REMOTE_ADDR']
-
-pghost = "localhost"
-pgport = 5432
-pgoptions = nil
-pgtty = nil
-dbname = "coop"
-dbuser = "c110128"
-passwd = nil
-
-print "Content-type: text/html; charset=EUC-JP\n\n"
-print "<html>
-<head><title>サンプル</title><link rel=\"stylesheet\" 
-type = \"text/css\" href=\"data.css\"></head><body>"
-print"<p>#{ip}</p>"
-begin 
-  conn = PGconn.connect(pghost,pgport,pgoptions,pgtty,dbname,dbuser,passwd)  
-  tuple = conn.exec(
-                    "select count(*) from log;"
-                    )
-rescue
-  print"<p>error</p>"
-else
-  tuple.each{|line|
-    for comp in line
-      i = comp[1].to_i
-    end
-  }
-end
-
-if i < 100
-
-  i = i + 1
-  begin
-    conn = PGconn.connect(pghost,pgport,pgoptions,pgtty,dbname,dbuser,passwd)  
-    tuple = conn.exec(
-                      "select pass from pass where id = #{i};"
-                      )
-  rescue
-    print"<p>error</p>"
-  else
-    tuple.each{|line|
-      for comp in line
-        pa = comp[1]
-        print"<p>おめでとう</p>"
-        print"<p>パスワードは#{pa}です</p>"
-      end
-    }
-  end
-  day = Time.now
-
-  begin 
-    conn = PGconn.connect(pghost,pgport,pgoptions,pgtty,dbname,dbuser,passwd)  
-    tuple = conn.exec(
-                      "insert into log values('#{pa}','#{ip}','#{day}');"
-                      )
-  rescue
-    print"<p>error</p>"
-  else
-    tuple.each{|line|
-      for comp in line
-        
-      end
-    }
-  end
-  
-elsif i >= 100
-  print"<p>ごめんなさい</p>"
-  print"<p>もう品切れです</p>"
-else
-  print"<p>error</p>"
-  
-end
-
-print"</body></html>\n"
--- a/coop/pass.csv	Fri Jan 24 15:32:35 2014 +0900
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,100 +0,0 @@
-1,UeJkolZs
-2,wTA9lnSY
-3,kPTprdhQ
-4,yVikbT2a
-5,PYluIVXR
-6,JdQVITR5
-7,QrsuHXpx
-8,qDPHfQ4F
-9,ZFnABQa7
-10,AcjvugyH
-11,UZ8cufiW
-12,H5a0CWVZ
-13,AnrHyNQz
-14,nGEtA2OD
-15,DTrGteal
-16,8jGviSpf
-17,P920GcXQ
-18,Nrv23uR1
-19,pYxgyJVK
-20,cLSDnAZa
-21,nQ42IwbK
-22,s0POX19K
-23,wej2oiMc
-24,NoR3Djdf
-25,hCOSmfVp
-26,HLvIdYUS
-27,F2vTPCNS
-28,PmEyxc0h
-29,YxPbuGF7
-30,FwrKAdRD
-31,0kWHDtLE
-32,HpxdVKJe
-33,8DzjJePu
-34,FmI2ujGZ
-35,eqWVFcgx
-36,G2dgVlnA
-37,bA7CYiDy
-38,Aqnw2WM9
-39,0nDNaF1L
-40,IKhT8QEY
-41,73uAQwzi
-42,CegT9jqp
-43,lItzu7v9
-44,7E2vDgJ4
-45,gqNMI7Qt
-46,gOG1nzqo
-47,zvKlGiEp
-48,rpASeJtu
-49,LJosh6ue
-50,59PR4p6l
-51,K0D9ktGp
-52,yE3CAhJc
-53,vBf9EaeW
-54,Xceu5YAF
-55,tVPOi5vB
-56,bJcQFHxL
-57,JzagE6Ww
-58,pfB3PSeU
-59,9QE3z4ak
-60,eZpKirGg
-61,LqrmFvYI
-62,ZnoClqwu
-63,nU60X2Mi
-64,Rd3OlvAX
-65,TjsYnv1W
-66,5EK4mD8R
-67,YkhgylKO
-68,kJ72X15P
-69,j1NMZbyg
-70,6idROeQc
-71,Z3JbDWex
-72,fvDtNzAZ
-73,34YNS9xD
-74,kp7SNDhd
-75,KeLdI4ua
-76,g6OMNYa5
-77,NV8LJYAc
-78,2yPGFblv
-79,3vljUb9O
-80,nwpa3OEU
-81,xUTDbEJP
-82,pnaUvf7d
-83,uf2dVhy9
-84,vZw5JGSs
-85,u871exsP
-86,H1rOpkfW
-87,oP9sJxtL
-88,C1vXmxpL
-89,RhacbQ4l
-90,QadAOuU6
-91,hRPVAaZQ
-92,u0yphb5g
-93,9MVrhAXO
-94,CQEruboX
-95,2osWTYKn
-96,SZHxhebt
-97,s4xjzeTL
-98,1Fa50jXP
-99,zUck5JaP
-100,CShpV6eB
--- a/coop/pass.rb	Fri Jan 24 15:32:35 2014 +0900
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,37 +0,0 @@
-#!/usr/bin/env ruby
-# coding: euc-jp
-
-pass = []
-c = []
-b = 0
-
-def shuffle(a)
-  srand
-  0.upto(a.length-1) do |i|
-    j = rand(a.length)   
-    w = a[i]
-    a[i] = a[j]
-    a[j] = w
-  end
-  a
-end
-
-pass = ("a".."z").to_a+("0".."9").to_a+("A".."Z").to_a
-
-
-
-while b <= 100
-pass = shuffle(pass)
-c << pass[0..7].join 
-
-b += 1
-end
-b = 1
-c.uniq!
-
-open("pass.txt", "w") do |pass2| 
-  while b <= 100 
-    pass2.printf("%d,%s\n",b,c[b])
-    b += 1
-  end
-end
--- a/coop/url.rb	Fri Jan 24 15:32:35 2014 +0900
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,22 +0,0 @@
-#!/usr/bin/env ruby
-# coding: euc-jp
-
-
-pass = []
-i = 0
-
-srand(56384679263254687)
-10000.times {rand(1000000)}
-idlist = (1..50).collect{rand(10000000)}
-
-while i <= 50 
-  pass << idlist[i]
-  i+=1
-end
-
-i=0
-
-while i <= 50 
-  system("qrencode -o #{pass[i]}.png 'http://skip.koeki-prj.org/coop/entry.rb?#{pass[i]}' ")
-  i+=1
-end

yatex.org