diff options
Diffstat (limited to 'test')
-rw-r--r-- | test/cookie/index.php | 6 | ||||
-rw-r--r-- | test/index.html | 12 | ||||
-rw-r--r-- | test/value/index.php | 7 | ||||
-rw-r--r-- | test/value/no/index.html | 12 | ||||
-rw-r--r-- | test/value/yes/index.html | 12 |
5 files changed, 49 insertions, 0 deletions
diff --git a/test/cookie/index.php b/test/cookie/index.php new file mode 100644 index 0000000..7a11bf1 --- /dev/null +++ b/test/cookie/index.php @@ -0,0 +1,6 @@ +<?php + +setcookie("_flmobile_test", "This is a test value", 0, "/", ".familine.minteck.org", true, true); + +?> +Cookie set, click the Button button now. diff --git a/test/index.html b/test/index.html new file mode 100644 index 0000000..36c09f1 --- /dev/null +++ b/test/index.html @@ -0,0 +1,12 @@ +<!DOCTYPE html> +<html lang="en"> +<head> + <meta charset="UTF-8"> + <title>Title</title> +</head> +<body> + <form action="/test/cookie"> + <input type="submit" value="Click to test"> + </form> +</body> +</html>
\ No newline at end of file diff --git a/test/value/index.php b/test/value/index.php new file mode 100644 index 0000000..3e9ef74 --- /dev/null +++ b/test/value/index.php @@ -0,0 +1,7 @@ +<?php + +if (isset($_COOKIE["_flmobile_test"])) { + header("Location: /test/value/yes"); +} else { + header("Location: /test/value/no"); +}
\ No newline at end of file diff --git a/test/value/no/index.html b/test/value/no/index.html new file mode 100644 index 0000000..36c09f1 --- /dev/null +++ b/test/value/no/index.html @@ -0,0 +1,12 @@ +<!DOCTYPE html> +<html lang="en"> +<head> + <meta charset="UTF-8"> + <title>Title</title> +</head> +<body> + <form action="/test/cookie"> + <input type="submit" value="Click to test"> + </form> +</body> +</html>
\ No newline at end of file diff --git a/test/value/yes/index.html b/test/value/yes/index.html new file mode 100644 index 0000000..36c09f1 --- /dev/null +++ b/test/value/yes/index.html @@ -0,0 +1,12 @@ +<!DOCTYPE html> +<html lang="en"> +<head> + <meta charset="UTF-8"> + <title>Title</title> +</head> +<body> + <form action="/test/cookie"> + <input type="submit" value="Click to test"> + </form> +</body> +</html>
\ No newline at end of file |