Пример #1
0
 public void verifyCredentials()
 {
     //TODO: Hash password if you have the time
     string[] varNames  = { "username", "password" };
     string[] varValues = { username, password };
     dbInteractionScript.sendToDB("http://psiwebservice/verifyCredentials.php", varNames, varValues);
 }
Пример #2
0
 //TODO: The Register page, as it is, is not exactly compatible with how things are set up in the DB. Have it insert password and username and save the other values for later.
 private IEnumerator sendToDB()
 {
     interactDBScript.sendToDB(destinationURL, varNames, varValues);
     while (interactDBScript.IsRequesting)
     {
         yield return(null);
     }
     Debug.Log(interactDBScript.CleanData);
     buttonPressScript.loadScene();
 }
 private IEnumerator sendToDB()
 {
     string[] varNames  = new string[] { "username", "idade", "altura", "etnia", "profissao", "corPreferida", "olhos", "corCabelo", "filhos", "animais", "musica", "idolos", "filmes", "temposLivres", "defeitos", "tracos", "importante" };
     string[] varValues = new string[] { username, idade, altura, etnia, profissao, corPreferida, olhos, corCabelo, filhos, animais, musica, idolos, filmes, temposLivres, defeitos, tracos, importante };
     dbInteractionScript.sendToDB("http://psiwebservice/registerInformation.php", varNames, varValues);
     while (dbInteractionScript.IsRequesting)
     {
         yield return(null);
     }
     Debug.Log(dbInteractionScript.CleanData[0]);
 }
Пример #4
0
 public IEnumerator verifyingCredentials()
 {
     //TODO: Hash password if you have the time
     string[] varNames = { "username", "password" };
     string[] varValues = { username, password };
     dbInteractionScript.sendToDB("http://psiwebservice/verifyCredentials.php", varNames, varValues);
     while (dbInteractionScript.IsRequesting)
     {
         yield return null;
     }
     string temp = dbInteractionScript.CleanData[0];
     if (temp.Equals("true"))
     {
         buttonPressScript.loadScene();
     }
 }
Пример #5
0
 private void sendNotification()
 {
     string[] varNames  = { "sender", "receiver", "descricao", "isSeen" };
     string[] varValues = { senderUsername, destinationUsername, textOfNotification, "false" };
     dbInteractionScript.sendToDB("http://psiwebservice/sendNotification.php", varNames, varValues);
 }