This repository has been archived by the owner on Mar 11, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path2nd.php
186 lines (186 loc) · 7.21 KB
/
2nd.php
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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
<?php
require_once("config.php");
$id = stripslashes($_COOKIE["id"]);
$name = stripslashes($_POST["name"]);
$mail = stripslashes($_POST["mail"]);
$skype = stripslashes($_POST["skype"]);
$post = stripslashes($_POST["post"]);
$exp = stripslashes($_POST["exp"]);
$key = stripslashes($_POST["key"]);
$key1 = $_COOKIE["id"];
if($key !== $key1)
{
header("Location:index.php?status=nokey");
}
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Recrutare</title>
<link href="css/bootstrap.min.css" rel="stylesheet">
<link href="css/style.min.css" rel="stylesheet">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.3/jquery.min.js"></script>
<script src="js/bootstrap.min.js"></script>
<!--[if lt IE 9]>
<script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script>
<script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
<![endif]-->
</head>
<body>
<center style="margin-top: 10px;"><img src="img/logo.png" /></center>
<div id='bs'>
<div id='hide'><center>
<pre><b>
Pentru a da proba pentru alt/e post/uri esti rugat sa îi anunti pe urmatorii:
Naihaz - pentru traducator (skype - dinu.marian90)
Harvu - pentru verificator (skype - harvujr)
Fmohican - pentru encoder si uploader (skype - fmohican12)
</b></pre></center>
<?
echo "<h3>Bun, te numesti $name si vrei sa fii $post . Sa vedem ce poti face.</h3><hr/>";
if($post == "traducator")
{
$test = rand(1,3);
$result = $sql->query("select * from `traducere` where `testid`='$test'");
if($result->num_rows > 0)
{
$row = $result->fetch_row();
$test = $row["1"];
$text = strtr($row["2"], [
'Ș' => 'Ș',
'ș' => 'ș',
'Ț' => 'Ț',
'ț' => 'ț',
'Ă' => 'Ă',
'ă' => 'ă',
'Â' => 'Â',
'â' => 'â',
'Î' => 'Î',
'î' => 'î',
]);
echo "Bun am dat cu zaru si a picat testul ".$row["1"].". Mult success!";
echo "<center><h2>Folositi diactitice!</h2></center>";
echo "<div style='word-break: keep-all;'>".$text."</div>";
echo "
<form action='mail.php' method='POST'>
<div class='form-group'>
<label for='exampleInputEmail1'>Traducere:</label>
<textarea class='form-control' rows='3' name='text' type='text' required='required' autocomplete='off' required></textarea>
</div>
<input type='hidden' name='id' value='$id'>
<input type='hidden' name='name' value='$name'>
<input type='hidden' name='mail' value='$mail'>
<input type='hidden' name='skype' value='$skype'>
<input type='hidden' name='post' value='$post'>
<input type='hidden' name='exp' value='$exp'>
<input type='hidden' name='test' value='$test'>
<button type='submit' class='btn btn-default btn-danger'>Trimite Aplicatia</button>
</form>
";
}
else
echo "<h1>NO DATA</h1>";
}
if($post == "verificator")
{
$test = rand(1,3);
$result = $sql->query("select * from `verificare` where `testid`='$test'");
if($result->num_rows > 0)
{
$row = $result->fetch_row();
$test = $row["1"];
$text = strtr($row["2"], [
'Ș' => 'Ș',
'ș' => 'ș',
'Ț' => 'Ț',
'ț' => 'ț',
'Ă' => 'Ă',
'ă' => 'ă',
'Â' => 'Â',
'â' => 'â',
'Î' => 'Î',
'î' => 'î',
]);
echo "Bun am dat cu zaru si a picat testul ".$row["1"].". Mult success!";
echo "<center><h2>Folositi diactitice!</h2></center>";
echo "<p class='help-block'>Nota: Greselile de ortografie, exprimare si lipsa diacritice sunt facute intentionat. NU ESTE O EROARE. Ati aplicat pentru verificator.</p>";
echo "<div style='word-break: keep-all;'>".$text."</div>";
echo "
<form action='mail.php' method='POST'>
<div class='form-group'>
<label for='exampleInputEmail1'>Traducere:</label>
<textarea class='form-control' rows='3' name='text' type='text' required='required' autocomplete='off' required></textarea>
</div>
<input type='hidden' name='id' value='$id'>
<input type='hidden' name='name' value='$name'>
<input type='hidden' name='mail' value='$mail'>
<input type='hidden' name='skype' value='$skype'>
<input type='hidden' name='post' value='$post'>
<input type='hidden' name='exp' value='$exp'>
<input type='hidden' name='test' value='$test'>
<button type='submit' class='btn btn-default btn-danger'>Trimite Aplicatia</button>
</form>
";
}
else
echo "<h1>NO DATA</h1>";
}
if($post == "tmanga")
echo "Te contactam noi pentru test.
<form action='mail.php' method='POST'>
<input type='hidden' name='id' value='$id'>
<input type='hidden' name='name' value='$name'>
<input type='hidden' name='mail' value='$mail'>
<input type='hidden' name='skype' value='$skype'>
<input type='hidden' name='post' value='$post'>
<input type='hidden' name='exp' value='$exp'>
<button type='submit' class='btn btn-default btn-danger'>Trimite Aplicatia</button>
</form>";
if($post == "emanga")
echo "Te contactam noi pentru test.
<form action='mail.php' method='POST'>
<input type='hidden' name='id' value='$id'>
<input type='hidden' name='name' value='$name'>
<input type='hidden' name='mail' value='$mail'>
<input type='hidden' name='skype' value='$skype'>
<input type='hidden' name='post' value='$post'>
<input type='hidden' name='exp' value='$exp'>
<button type='submit' class='btn btn-default btn-danger'>Trimite Aplicatia</button>
</form>";
if($post == "encoder")
echo "Te contactam noi pentru test.
<form action='mail.php' method='POST'>
<input type='hidden' name='id' value='$id'>
<input type='hidden' name='name' value='$name'>
<input type='hidden' name='mail' value='$mail'>
<input type='hidden' name='skype' value='$skype'>
<input type='hidden' name='post' value='$post'>
<input type='hidden' name='exp' value='$exp'>
<button type='submit' class='btn btn-default btn-danger'>Trimite Aplicatia</button>
</form>";
if($post == "uploader")
echo "Ok! Te vom contacta cat de curand pentru a discuta despre functia de uploader. Te rog apasa pe 'Trimite Aplicatia' pentru a finaliza cererea.
<form action='mail.php' method='POST'>
<input type='hidden' name='id' value='$id'>
<input type='hidden' name='name' value='$name'>
<input type='hidden' name='mail' value='$mail'>
<input type='hidden' name='skype' value='$skype'>
<input type='hidden' name='post' value='$post'>
<input type='hidden' name='exp' value='$exp'>
<button type='submit' class='btn btn-default btn-danger'>Trimite Aplicatia</button>
</form>";
if($post == "webdev")
echo "Ok! Te vom contacta cat de curand pentru a discuta despre detalii. Te rog apasa pe 'Trimite Aplicatia' pentru a finaliza cererea.
<form action='mail.php' method='POST'>
<input type='hidden' name='id' value='$id'>
<input type='hidden' name='name' value='$name'>
<input type='hidden' name='mail' value='$mail'>
<input type='hidden' name='skype' value='$skype'>
<input type='hidden' name='post' value='$post'>
<input type='hidden' name='exp' value='$exp'>
<button type='submit' class='btn btn-default btn-danger'>Trimite Aplicatia</button>
</form>";
?>