From 2294b80d5e02d9952284d9841958e98322c0c81a Mon Sep 17 00:00:00 2001 From: Ale32bit Date: Sun, 1 Nov 2015 12:12:55 +0100 Subject: [PATCH] Delete api.lua --- src/apps/cst/api.lua | 49 -------------------------------------------- 1 file changed, 49 deletions(-) delete mode 100644 src/apps/cst/api.lua diff --git a/src/apps/cst/api.lua b/src/apps/cst/api.lua deleted file mode 100644 index 51423ca..0000000 --- a/src/apps/cst/api.lua +++ /dev/null @@ -1,49 +0,0 @@ -function login(name,pass) - local stream = http.get("http://crystalcoins.site88.net/user.php?action=login&user="..name.."&pass="..pass) - local erg = stream.readAll() - stream.close() - if erg == "true" then - return true - else - return false - end -end - -function create(name,pass) - local stream = http.get("http://crystalcoins.site88.net/user.php?action=create&user="..name.."&pass="..pass) - local erg = stream.readAll() - stream.close() - if erg == "Success!" then - return true - else - return false - end -end - -function newpass(name,oldpass,newpass) - local stream = http.get("http://crystalcoins.site88.net/user.php?action=newpass&user="..name.."&oldpass="..oldpass.."&pass="..newpass) - local erg = stream.readAll() - stream.close() - return erg -end - -function delete(name,pass) - local stream = http.get("http://crystalcoins.site88.net/user.php?action=delete&user="..name.."&pass="..pass) - local erg = stream.readAll() - stream.close() - return erg -end - -function getBalance(name) - local stream = http.get("http://crystalcoins.site88.net/user.php?action=getBalance&user="..name) - local erg = stream.readAll() - stream.close() - return erg -end - -function transaction(user,pass,to,amt) - local stream = http.get("http://crystalcoins.site88.net/user.php?action=transaction&user="..user.."&pass="..pass.."&to="..to.."&amt="..amt) - local erg = stream.readAll() - stream.close() - return erg -end \ No newline at end of file