UK Visa refusal and ban for 10 years ( false Documents) . Can I apply for Australia

My wife applied for the UK academic and I was the dependent. Our Application got refused and banned for 10 years – false documents. We didn’t reply to the refusals. Now 10 years are passed and I want to apply for Australia to get the Msc degree. My wife will be dependent this time. Can someone please let me know the possibilities for this matter. Thank you.

in_array function always returns false

I have an array and when using in_array to check if object exists it always returns false.

As an example, here is the array:

array:1 [ 0 => "name1, name2, name3" ] 

and this is how I check if index exists

if(!in_array('name1', $  array)) { return FALSE; } else { return TRUE;} 

Name1 exists in array I have however I think I’m missing something small here.

Not sure what it could be or even if this function is the right function to use to check? Expected result is to be true as object exists.

Thanks

Is There A Way To Make These Variables Switch From True To False, Or Am I Doing It Wrong

I am trying to build a program that allows for the simplification of the stage selection procedures in Smash. The main Way I am trying to allow the user to ban stages is to set a series of Boolean functions that they set as true or false so that illegal stages will never show up. The problem is, the Boolean variables I have in the function will not change from true to false.

the “Aban1” function is just supposed to take in the first ban, and make the variable associated with that stage as false. (this is not working and the source of the problem)

The “stagespitter function compares the boolean variables to another set that has already been set up by the user. it only outputs the stages if both the preset stage is true, and the stage that is able to be banned is true.

I have tried enumerated data types, although I think that was the wrong way to attempt this, as visual studio says that enums aren’t modifiable variables.

void Aban1(string ban1, bool PS2, bool PS1, bool BF, bool FD, bool SMASHVILLE, bool KALOS, bool TOWN, bool LYLAT, bool STORY, bool ISLAND);  void stagespitter(bool LYLAT, char chLylat, bool chPS1, bool PS1, bool PS2, char chPS2, char chBF, bool BF, char chFD, bool FD, char chIsland, bool ISLAND, char chStory, bool STORY, char chTown, bool TOWN, char chKalos, bool KALOS, char chSmashville, bool SMASHVILLE); //spits out the stages that are available   void Aban1(string ban1, bool PS2, bool PS1, bool BF, bool FD, bool SMASHVILLE, bool KALOS, bool TOWN, bool LYLAT, bool STORY, bool ISLAND) { //this should run the s if (ban1 == "PS2" || ban1 == "ps2" ) {      PS2 = false;     cout << "Banned ps2" << endl; } else if (ban1 == "PS1" || ban1 == "ps1") {     PS1 = false; } else if (ban1 == "BF" || ban1 == "bf" || ban1 == "bF") {     BF = false; } else if (ban1 == "Smash" || ban1 == "smash") {   //remember to set direction for this, as you have to type specifically     SMASHVILLE = false; } else if (ban1 == "Kalos" || ban1 == "kalos") {     KALOS = false; } else if (ban1 == "Town" || ban1 == "town") {     TOWN = false; } else if (ban1 == "FD" || ban1 == "fd" || ban1 == "fd") {     FD = false; } else if (ban1 == "story" || ban1 == "Story") {     STORY = false; } else if (ban1 == "Lylat" || ban1 == "lylat") {     LYLAT = false; } //make the final else loop it back else (ban1 == "Island" || ban1 == "island"); { //instead of running this over and over, make a function that compares the state of true and false of the bools and the functions associated with the stage     ISLAND = false; //and compares them only returning if both they accepted a stage, and it aint false, or not banned yet }}   void stagespitter(bool LYLAT, char chLylat, bool chPS1, bool PS1, bool PS2, char chPS2, char chBF, bool BF, char chFD, bool FD, char chIsland, bool ISLAND, char chStory, bool STORY, char chTown, bool TOWN, char chKalos, bool KALOS, char chSmashville, bool SMASHVILLE) { cout << "the Available stages are" << endl;  if (lylat(chLylat) == LYLAT && LYLAT == true) //set the bools equal to the function     cout << "Lylat Cruise" << endl;  if ((ps1(chPS1) == PS1) && (PS1 == true))     cout << "Pokemon Stadium 1" << endl;  if ((ps2(chPS2) == PS2) && (PS2 == true))     cout << "Pokemon Stadium 2" << endl;  if (battlefield(chBF) == BF && BF == true)     cout << "Battlefield" << endl;  if (finalDestination(chFD) == FD && FD == true) //something wrong here not adding up     cout << "Final Destination" << endl;  //not correctly orienting what is false, and giving stages that have already been delcared not valid if (yoshisIsland(chIsland) == ISLAND && ISLAND == true)//check the set equal parameters     cout << "YoShi's Island" << endl;  if (yoshisStory(chStory) == STORY && STORY == true)     cout << "Yoshi's Story" << endl;  if (townAndCity(chTown) == TOWN && TOWN == true)     cout << "Town and City" << endl;  if (kalos(chKalos) == KALOS && KALOS == true)     cout << "Kalos" << endl;  if (smashville(chSmashville) == SMASHVILLE && SMASHVILLE == true)     cout << "Smashville" << endl;} 

I want the boolean variables to be able to be set as false, right now they are not being set as false. I will also later need to reset the variables to true, but I am not at that point yet.

False positive SQL Injection by ZAP with adding new parameter query

I have a spring MVC web application and am running ZAP Active scan on it.

I noticed that ZAP will modify URL , and add additional parameter named query and value query+AND+1%3D1+--+ to test SQL Injection. And in my case, it raise HIGH MEDIUM SQL Injection.

The application is not even reading the parameter query and hence am sure the response is always the same, with or without this parameter. So my question is

What is the logic behind testing SQL Injection by adding a parameter which is not read by application and raising it as SQL Injection alert? I could understand when value of a parameter that is read in application is changed but not this. This has raised false positive SQL Injection in web applications that I work on.

This is related to a question that I have asked in Stackoverflow but havent found solution yet . https://stackoverflow.com/questions/51874818/false-positive-sql-injection-by-zap-in-spring-mvc

I hope to hear something in security forum.

The condition used in while loop doesnt stop when the condition is false

I was doing a simple program just to practice. The program is a game where the first player input a number between 1-100 and then the second player tries to guess.

main() {     int n, x;      do     {         printf("Type a number between 0 - 100:  ");         scanf_s("%d", &n);      } while (n < 0 || n>100);          printf("Guess the Number:   ");         scanf_s("%d", &x);      while (x != n)     {         if (x > n)             printf("Above\n\n");          else         {             if (x < n)                 printf("Under\n\n");         }         printf("valor:  ");         scanf("%x", &x);      }     printf("Congrats"); } 

If i type 20 for n and 20 for x it does what i expected. But if i type 20 for n and a number diffent of n for x, the while is true and inside it, if i assign the same number as n it doesnt stop the cycle as it is supposed to do. Could someone help me to figure out?

Преобразование типов на примере [] == ‘0’ которое вернет false

Правильно ли я понял преобразование типов? Я читал это.

Алгоритм:

[] приводится к примитиву потому что:

If Type(x) is Object and Type(y) is either String or Number, return the result of the comparison ToPrimitive(x) == y.

ToPrimitive вызывается с hint String, то есть подсказка что нужно преобразовать к строке. Такая подсказка указана из-за того что '0' строка.

ToPrimitive вызывает toString, возвращается пустая строка '' (перечисление элементов через запятую).

После этого выполняется еще одно выражение ==: '' === '0' (пустая строка из массива и изначальный ‘0’).

Тут уже срабатывает алгоритм сравнения строк:

If Type(x) is the same as Type(y), then

If Type(x) is String, then return true if x and y are exactly the same sequence of characters (same length and same characters in corresponding positions). Otherwise, return false.

То есть строки разные, поэтому false.


Я просто читал эту страницу, там залайкан не правильный ответ.