Check Version In Store (code snippet)
Posted: 26 Apr 2012 13:58
Jane, regarding the Check Version In Store snippet, the following variation appears to work well with only one parameter, or if parameter is missing:
ID:6191
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