-- XML File Handler
function xmlFileHandler(gReturn)
local xmlFile = xmlLoadFile(xmlFileName) -- TUTAJ JEST B??D
if not xmlFile then
xmlFile = xmlCreateFile(xmlFileName,"settings")
xmlNodeSetAttribute(xmlFile,"autologin","false")
end
xmlNodeSetAttribute(xmlFile,"username",tostring(guiGetText(editUsername)))
xmlNodeSetAttribute(xmlFile,"password",tostring(guiGetText(editPassword)))
xmlSaveFile(xmlFile)
xmlUnloadFile(xmlFile)
if (gReturn) then
if (gReturn == true) then
loginPanel()
else
return
end
end
end