galaxyoyo.com => ynerant.fr
This commit is contained in:
parent
358f554188
commit
1e186f1944
|
@ -268,7 +268,7 @@ public class Game {
|
||||||
@Override
|
@Override
|
||||||
public void run() {
|
public void run() {
|
||||||
try {
|
try {
|
||||||
URL url = new URL("http://galaxyoyo.com/tarot/game.php");
|
URL url = new URL("http://ynerant.fr/tarot/game.php");
|
||||||
final HttpURLConnection co = (HttpURLConnection) url.openConnection();
|
final HttpURLConnection co = (HttpURLConnection) url.openConnection();
|
||||||
co.setRequestMethod("POST");
|
co.setRequestMethod("POST");
|
||||||
co.setRequestProperty("token", PreferenceManager.getDefaultSharedPreferences(MainActivity.INSTANCE).getString("token", null));
|
co.setRequestProperty("token", PreferenceManager.getDefaultSharedPreferences(MainActivity.INSTANCE).getString("token", null));
|
||||||
|
|
|
@ -65,7 +65,7 @@ public class Player {
|
||||||
@Override
|
@Override
|
||||||
public void run() {
|
public void run() {
|
||||||
try {
|
try {
|
||||||
URL url = new URL("http://galaxyoyo.com/tarot/player.php");
|
URL url = new URL("http://ynerant.fr/tarot/player.php");
|
||||||
final HttpURLConnection co = (HttpURLConnection) url.openConnection();
|
final HttpURLConnection co = (HttpURLConnection) url.openConnection();
|
||||||
co.setRequestMethod("POST");
|
co.setRequestMethod("POST");
|
||||||
co.setRequestProperty("token", PreferenceManager.getDefaultSharedPreferences(MainActivity.INSTANCE).getString("token", null));
|
co.setRequestProperty("token", PreferenceManager.getDefaultSharedPreferences(MainActivity.INSTANCE).getString("token", null));
|
||||||
|
|
|
@ -63,7 +63,7 @@ public class HomeFragment extends Fragment {
|
||||||
public void run() {
|
public void run() {
|
||||||
try {
|
try {
|
||||||
Looper.prepare();
|
Looper.prepare();
|
||||||
URL url = new URL("http://galaxyoyo.com/tarot/check_token.php");
|
URL url = new URL("http://ynerant.fr/tarot/check_token.php");
|
||||||
final HttpURLConnection co = (HttpURLConnection) url.openConnection();
|
final HttpURLConnection co = (HttpURLConnection) url.openConnection();
|
||||||
co.setRequestMethod("POST");
|
co.setRequestMethod("POST");
|
||||||
co.setRequestProperty("token", token.getText().toString());
|
co.setRequestProperty("token", token.getText().toString());
|
||||||
|
|
|
@ -484,7 +484,7 @@ public class NewGameFragment extends Fragment {
|
||||||
Game g = getGame();
|
Game g = getGame();
|
||||||
|
|
||||||
try {
|
try {
|
||||||
URL url = new URL("https://galaxyoyo.com/tarot/game.php?add_game");
|
URL url = new URL("https://ynerant.fr/tarot/game.php?add_game");
|
||||||
HttpURLConnection co = (HttpURLConnection) url.openConnection();
|
HttpURLConnection co = (HttpURLConnection) url.openConnection();
|
||||||
co.setRequestMethod("POST");
|
co.setRequestMethod("POST");
|
||||||
co.setRequestProperty("token", PreferenceManager.getDefaultSharedPreferences(MainActivity.INSTANCE).getString("token", null));
|
co.setRequestProperty("token", PreferenceManager.getDefaultSharedPreferences(MainActivity.INSTANCE).getString("token", null));
|
||||||
|
|
Loading…
Reference in New Issue