Code: Select all
function checkVersionInStore(plugin)
local http = luacom.CreateObject('winhttp.winhttprequest.5.1')
local strRequest = 'http://www.family-historian.co.uk/lnk/checkpluginversion.php?'
if tonumber(plugin) then
strRequest = strRequest..'id='..plugin
elseif plugin then
strRequest = strRequest..'name='..plugin
end