# main.js の
output=output + "</select></td></tr><tr><td bgcolor=\"#CCCCFF\">アイテム</td><td bgcolor=\"#CCCCFF\"><select name=\"item\">" + itemlist + "</select><input type=\"hidden\" name=\"user\" value=\"" + num + "\"><input type=\"hidden\" name=\"code\" value=\"" + code + "\"><input type=\"hidden\" name=\"target\" value=\"\">";
if(user[num]["move"] <=0 && itemlist != "" && user[num]["status"].indexOf("s") == -1){
if(graph[user[num]["position"]][4] != "i"){ |
# ↑の下に↓を変更
output=output + "</select></td></tr><tr><td bgcolor=\"#CCCCFF\">アイテム</td><td bgcolor=\"#CCCCFF\"><select name=\"item\">" + itemlist + "</select><input type=\"hidden\" name=\"user\" value=\"" + num + "\"><input type=\"hidden\" name=\"code\" value=\"" + code + "\"><input type=\"hidden\" name=\"target\" value=\"\">";
if(user[num]["move"] <=0 && itemlist != ""
){
if(graph[user[num]["position"]][4] != "i"){ |
# item.cgi の
&lib'err(1,-2) if($form{'code'} ne $user{"${num}_code"});
&lib'err(14,-2) if($user{"${num}_item"}!~/$item/);
&lib'err(18,-2) if($user{"${num}_status"}=~/s/);
&lib'err(22,-2) if($user{"${num}_move"}>0);
&lib'err(27,-2) if $user{"*end"}==1; |
# ↑の下に↓を変更
&lib'err(1,-2) if($form{'code'} ne $user{"${num}_code"});
&lib'err(14,-2) if($user{"${num}_item"}!~/$item/);
&lib'err(22,-2) if($user{"${num}_move"}>0);
&lib'err(27,-2) if $user{"*end"}==1; |
|