error 1045: acces denied for user 'nil' localhost -using password:YES-
what should i do?
this happen when i put my path
Looks great mate, is it possible have guild logo?
Definitely using this with my server when you release it! Great freakin' work, keep it up!
When you do the shop system, could you set it up to allow us to give items with actionIDs/uniqueIDs?
Hopefully mounts, outfits and addons will be an option too.
Another side note, possibly make the shop page have category tabs on the side so we can edit easily for vip items, supplies, decorations, etc.
data.contributors = http:get("https://api.github.com/repos/Raggaer/castro/contributors")
-- Required headers
local headers = {
["Content-Type"] = "application/json",
["X-Auth-Key"] = config.cloudflare.api_key,
["X-Auth-Email"] = config.cloudflare.email
}
local update = http:curl({
method = "PUT",
headers = headers,
data = string.format('{"type":"%s", "name":"%s", "content":"%s"}', record.type, record.name, newIp),
url = string.format("%s/zones/%s/dns_records/%s", config.cloudflare.url, config.cloudflare.zone_id, record.id)
})
External plugins are already supported =)You should allow external plugins/extensions too. Do as Wordpress, you can download plugins from the server or upload it yourself on folder. If the folder exists, you just need to enable/disable.
function get()
-- Block access for anyone who is not admin
if not session:isLogged() or not session:isAdmin() then
http:redirect("/")
return
end
if not app.Plugin.Enabled then
http:redirect("/")
return
end
local c = {}
c.method = "POST"
c.url = app.Plugin.Origin .. "/plugin/view/" .. http.getValues.id .. "/download"
c.authentication = {}
c.authentication.username = app.Plugin.Username
c.authentication.password = app.Plugin.Password
local resp, _, code = http:curl(c)
if code == 500 then
session:setFlash("Error", json:unmarshal(resp).Message)
http:redirect("/subtopic/admin/extensions/view?id=" .. http.getValues.id)
return
end
http:setHeader("Content-Type", "application/zip")
http:setHeader("Content-Disposition", "attachment; filename=plugin.zip")
http:write(resp)
end