-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtest1.php
More file actions
executable file
·60 lines (47 loc) · 1.52 KB
/
test1.php
File metadata and controls
executable file
·60 lines (47 loc) · 1.52 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
<div class="container mt-5">
<div class="row">
<form action="<?php $_PHP_SELF ?>" method="post">
<div class="form-group">
<?php
$x = "";
$y = "";
$z = "";
if ($_SERVER['REQUEST_METHOD'] === 'GET')
{
global $x , $y , $z;
$asd = file('ifadeler.txt');
shuffle($asd);
list($x,$y,$z) = explode("," , $asd[0]);
$myfile = fopen("Word-Status.txt", "w");
$tmp = $y . "," . $z;
fwrite($myfile , $tmp);
}
if ($_SERVER['REQUEST_METHOD'] === 'POST')
{
$oku = file("Word-Status.txt");
list($a,$b) = explode("," , $oku[0]);
if(isset($_POST['try']) && $_POST['try'] == trim($a) or isset($_POST['try']) && $_POST['try'] == trim($b)) {
echo '<div class="alert alert-success" role="alert">
True
</div>';
header('Refresh:1');
} else
{
echo "<div class='alert alert-danger' role='alert'>
False $a $b
</div>";
header('Refresh:1');
echo $_POST['try'];
}
}
?>
<label for="exampleInputEmail1">
<h1><?=$x; ?></h1>
Can you ?
</label>
<input type="text" class="form-control" name="try" placeholder="Enter V2 OR V3">
</div>
<button type="submit" class="btn btn-primary">TRY IT</button>
</form>
</div>
</div>