# HG changeset patch # User ARAKI Tsuyohito # Date 1437742974 -32400 # Node ID 39ae95bb079f5f24c46632bd2884782e24c1d93f # Parent 7c0965aade2911030f6789dd54b41021810e250a htpasswd diff -r 7c0965aade29 -r 39ae95bb079f opencampus2015/accountcheck.rb --- a/opencampus2015/accountcheck.rb Fri Jul 24 20:51:49 2015 +0900 +++ b/opencampus2015/accountcheck.rb Fri Jul 24 22:02:54 2015 +0900 @@ -61,8 +61,22 @@ if id == nil number = db.execute(num, "aa") +begin id = number[0][0].to_i + 1 - exp = 0 +rescue + db.execute(ins4, "a") + 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" diff -r 7c0965aade29 -r 39ae95bb079f opencampus2015/admin/.htaccess --- a/opencampus2015/admin/.htaccess Fri Jul 24 20:51:49 2015 +0900 +++ b/opencampus2015/admin/.htaccess Fri Jul 24 22:02:54 2015 +0900 @@ -2,8 +2,8 @@ AddType "text/html; charset=utf-8" .rb AddType "text/html; charset=utf-8" .html Options +ExecCGI -#AuthUserFile /home/www/skip/opencampus2015/admin/.htpasswd #for_skip -AuthUserFile /home/irhome/c113/c113007/public_html/web/opencampus2015/admin/.htpasswd +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 diff -r 7c0965aade29 -r 39ae95bb079f opencampus2015/prof.rb --- a/opencampus2015/prof.rb Fri Jul 24 20:51:49 2015 +0900 +++ b/opencampus2015/prof.rb Fri Jul 24 22:02:54 2015 +0900 @@ -382,12 +382,17 @@ elsif bom == "girl5" image = "./img/girl5.png" end + +if bom == "" +else + image = "./img/#{bom}.png" +end ######################### ######################### ###################################--HTML--################## ###################################--------################## -printf(<<_EOS_, per, gage, per, per, per, color, qrAC, kkget, image, alt, name, person, cal, lv, comm, pt, m1, mimg1, m2, mimg2, esa) +printf(<<_EOS_, per, gage, per, per, per, color, kkget, image, alt, name, person, cal, lv, comm, pt, m1, mimg1, m2, mimg2, esa) -

%s

+

ほげほげ

%s