-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.php
159 lines (139 loc) · 5.67 KB
/
index.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
<html>
<head>
<meta http-equiv="Content-type" content="text/html; charset=utf-8" />
<link rel="shortcut icon" href="favicon.ico">
</head>
<body>
<form action="index.php" method="post">
<br>
<a href="http://www.findthatbike.co.uk">find that bike In UK</a><br>
<br>
Search for bike on cz/sk bike bazars<br>
<input type="radio" name="search" value=""><input type="text" name="search" id="searchid" value=""><br>
<input type="radio" name="search" value="enduro"> Search for enduro.<br>
<input type="radio" name="search" value="bighit"> Search for BigHit.<br>
<input type="radio" name="search" value="YT"> Search for YT.<br>
<input type="radio" name="search" value="wicked"> Search for wicked.<br>
<input type="radio" name="search" value="trek"> Search for Trek.<br>
<input type="radio" name="search" value="norco"> Search for norco.<br>
<input type="radio" name="search" value="onone"> Search for on-one.<br>
<input type="radio" name="search" value="ragley"> Search for ragley.<br>
<input type="radio" name="search" value="mongoose"> Search for mongoose.<br>
<input type="radio" name="search" value="dartmoor"> Search for dartmoor.<br>
<input type="radio" name="search" value="nsbike"> Search for nsbike.<br>
<input type="radio" name="search" value="charge"> Search for charge.<br>
<input type="radio" name="search" value="caprnka"> Search for caprnka.<br>
<input type="radio" name="search" value="devilwork"> Search for devilwork.<br>
<input type="radio" name="search" value="duratec"> Search for duratec.<br>
<input type="radio" name="search" value="mrazek"> Search for mrazek.<br>
<input type="radio" name="search" value="franta"> Search for franta.<br>
<input type="radio" name="search" value="nukeproof"> Search for nukeproof.<br>
<input type="radio" name="search" value="banshee"> Search for banshee.<br>
<input type="radio" name="search" value="commencal"> Search for commencal.<br>
<input type="radio" name="search" value="agang"> Search for agang.<br>
<input type="submit" name="submit" value="Submit"><br>
</form>
<?
header('charset=utf-8');
$date = date('d-m-Y');
$file = 'searches';
if (isset($_POST['submit'])) {
if ($_POST['search']=="charge") {
print "Ak si nasiel <b>charge blender</b> niekde na predaj, prosim kontaktuj mna na <b>[email protected]</b><br>";
print "If you find black charge blender with bomber fork somewhere on net, please contact me on [email protected]<br><br><hr>";
$command = "python bikesearch.py charge 2>&1";
# Ak si nasiel charge blender niekde na predaj, prosim kontaktuj mna na [email protected]
# If you find black charge blender with bomber fork somewhere on net, please contact me on [email protected]
# $command = "python bikesearch.py charge 2>&1";
}
else {
$command = "python bikesearch.py ".$_POST['search']." 2>&1";
}
# $command = "python bikesearch.py ".$_POST['search']." 2>&1";
# if ($_POST['search']=="enduro") {
# $command = "python bikesearch.py enduro 2>&1";
# }
# if ($_POST['search']=="bighit") {
# $command = "python bikesearch.py bighit 2>&1";
# }
# if ($_POST['search']=="YT") {
# $command = "python bikesearch.py YT 2>&1";
# }
# if ($_POST['search']=="wicked") {
# $command = "python bikesearch.py wicked 2>&1";
# }
# if ($_POST['search']=="trek") {
# $command = "python bikesearch.py trek 2>&1";
# }
# if ($_POST['search']=="norco") {
# $command = "python bikesearch.py norco 2>&1";
# }
# if ($_POST['search']=="nsbike") {
# $command = "python bikesearch.py ns+bike 2>&1";
# }
# if ($_POST['search']=="devilwork") {
# $command = "python bikesearch.py devilwork 2>&1";
# }
# if ($_POST['search']=="duratec") {
# $command = "python bikesearch.py duratec 2>&1";
# }
# if ($_POST['search']=="onone") {
# $command = "python bikesearch.py on-one 2>&1";
# }
# if ($_POST['search']=="mongoose") {
# $command = "python bikesearch.py mongoose 2>&1";
# }
# if ($_POST['search']=="dartmoor") {
# $command = "python bikesearch.py dartmoor 2>&1";
# }
# if ($_POST['search']=="ragley") {
# $command = "python bikesearch.py ragley 2>&1";
# }
# if ($_POST['search']=="banshee") {
# $command = "python bikesearch.py banshee 2>&1";
# }
# if ($_POST['search']=="caprnka") {
# $command = "python bikesearch.py caprnka 2>&1";
# }
# if ($_POST['search']=="charge") {
# print "Ak si nasiel <b>charge blender</b> niekde na predaj, prosim kontaktuj mna na <b>[email protected]</b><br>";
# print "If you find black charge blender with bomber fork somewhere on net, please contact me on [email protected]<br><br><hr>";
# $command = "python bikesearch.py charge 2>&1";
# # Ak si nasiel charge blender niekde na predaj, prosim kontaktuj mna na [email protected]
# # If you find black charge blender with bomber fork somewhere on net, please contact me on [email protected]
## $command = "python bikesearch.py charge 2>&1";
# }
# if ($_POST['search']=="mrazek") {
# $command = "python bikesearch.py mrazek 2>&1";
# }
# if ($_POST['search']=="franta") {
# $command = "python bikesearch.py franta 2>&1";
# }
# if ($_POST['search']=="nukeproof") {
# $command = "python bikesearch.py nukeproof 2>&1";
# }
# if ($_POST['search']=="commencal") {
# $command = "python bikesearch.py commencal 2>&1";
# }
# if ($_POST['search']=="agang") {
# $command = "python bikesearch.py agang 2>&1";
# }
$client = $_SERVER['REMOTE_ADDR'];
$logdate = date('d.m.Y H:i:s', time());
$openf = file_get_contents($file);
$l = $client." - - ".$logdate." Search: ".$_POST['search']."\n";
$openf .= $l;
file_put_contents($file, $openf);
# $command = "python bikesearch.py mongoose 2>&1";
$pid = popen( $command,"r");
while( !feof( $pid ) )
{
echo fread($pid, 256);
flush();
ob_flush();
usleep(10000);
}
pclose($pid);
}
?>
</html>