02-19-2017, 05:41 PM
I've never developed on Android, but I can tell you how to do it over $_GET and then you'll have to work out how to do it over post so you're not sending passwords in the clear.
1. Create a login.php file in /usersc
2. Paste these contents in there...
http://pastebin.com/uTmcwxnW
3. Go to the gear in the upper right corner, click admin dashboard.
4. Click the 3rd panel at the top. Just opening the panel will add this file to the db properly.
5. Now you can login by passing $_GET or $_POST straight to login.php
6. The fastest way to test it is to logout and then send a get request like this...
http://yourdomain.com/usersc/login.php?u...d=password
You should automatically be logged back in and get redirected to the account.php page.
7. Then you just have to figure out how to send $_POST data from your app to the server. Note that Input::get will look for $_POST data and if it doesn't find it, it will look for $_GET data. So, the same method will work regardless of how you pass your data.
1. Create a login.php file in /usersc
2. Paste these contents in there...
http://pastebin.com/uTmcwxnW
3. Go to the gear in the upper right corner, click admin dashboard.
4. Click the 3rd panel at the top. Just opening the panel will add this file to the db properly.
5. Now you can login by passing $_GET or $_POST straight to login.php
6. The fastest way to test it is to logout and then send a get request like this...
http://yourdomain.com/usersc/login.php?u...d=password
You should automatically be logged back in and get redirected to the account.php page.
7. Then you just have to figure out how to send $_POST data from your app to the server. Note that Input::get will look for $_POST data and if it doesn't find it, it will look for $_GET data. So, the same method will work regardless of how you pass your data.