+ case site_code
+ when "up"
+ if locked
+ "#{site_url}/upload.cgi?mode=dl&file=#{number}"
+ else
+ "#{site_url}/src/#{code}.#{extname}"
+ end
+ when "file"
+ if locked
+ "#{site_url}/?mode=pass&idd=#{number}"
+ else
+ "#{site_url}/?id=#{number}"
+ end
+ when "mini"
+ "#{site_url}/log/#{number}.#{extname}"
+ when "accs"
+ "#{site_url}/src/MMD#{code}.#{extname}.html"
+ when "cu"
+ if locked
+ "#{site_url}/upload.cgi?mode=dl&file=#{number}"
+ else
+ fixed_number = '%05d' % number
+ "#{site_url}/src/MMD#{fixed_number}.#{extname}"
+ end
+ when "bo"
+ "#{site_url}/dl#{number}"
+ end