Sha256: 52b6f478d5dddb4a3c8188743f4bafe05ed71c70aebfe22fc7f3300fe866a268
Contents?: true
Size: 574 Bytes
Versions: 1
Compression:
Stored size: 574 Bytes
Contents
args = { "host" => $validate_login["_SERVER"]["HTTP_HOST"] } if $validate_login["_SERVER"]["HTTPS"] or $validate_login["_SERVER"]["HTTP_SSL_ENABLED"] args["ssl"] = true args["port"] = 443 args["validate"] = false end http = Knj::Http.new(args) http.cookies["KnjappserverSession"] = $validate_login["_COOKIE"]["KnjappserverSession"] data = http.get("/?show=users_login") if data["data"].to_s.index("<form method=\"post\" action=\"?show=user_login") == nil print JSON.generate( "Enabled" => true ) else print JSON.generate( "Enabled" => false ) end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
knjtasks-0.0.3 | scripts/fckeditor_validate_login.rb |