Mercurial > hgrepos > hgweb.cgi > skipweb
changeset 823:39ae95bb079f
htpasswd
author | ARAKI Tsuyohito <c113007@e.koeki-u.ac.jp> |
---|---|
date | Fri, 24 Jul 2015 22:02:54 +0900 |
parents | 7c0965aade29 |
children | 0a606921d6cf |
files | opencampus2015/accountcheck.rb opencampus2015/admin/.htaccess opencampus2015/prof.rb |
diffstat | 3 files changed, 24 insertions(+), 5 deletions(-) [+] |
line wrap: on
line diff
--- 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"
--- 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
--- 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) <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" @@ -430,7 +435,7 @@ </head> <body> -<header><p>%s</p></header> +<header><p></p></header> <h1>ほげほげ</h1> <h2>%s</h2>