Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local args = {...}
- local h = http.get("https://cc.tylertwining.com/samples/httpgathervar/1point0.php")
- local p0 = h.readAll()
- local h2 = http.get("https://cc.tylertwining.com/samples/httpgathervar/1point1.php")
- local p1 = h2.readAll()
- h.close()h2.close()
- local currentVersion = "1.0"
- if #args >= 1 then
- currentVersion = args[1]
- end
- if p0 == currentVersion then
- print("1point0.php says we're up to date!")
- else
- print("1point0.php says we're out of date!")
- end
- if p1 == currentVersion then
- print("1point1.php says we're up to date!")
- else
- print("1point1.php says we're out of date!")
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement