-
Notifications
You must be signed in to change notification settings - Fork 1
/
join_text_captcha.asp
executable file
·366 lines (244 loc) · 12.1 KB
/
join_text_captcha.asp
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
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
<%@LANGUAGE="VBSCRIPT" CODEPAGE="1252"%>
<!-- #include file = "upload/config.asp" -->
<!--#INCLUDE FILE="captcha/_captcha.asp"-->
<!-- #include file = "Connections/gazzabazza.asp" -->
<%
if request.Form("join") <> "" then
vJoin = request.Form("join")
vJoin = replace(vJoin,"'","'")
vJoin = replace(vJoin,"é","é")
vJoin = replace(vJoin,"á","á")
vJoin = replace(vJoin,"í","í")
vJoin = replace(vJoin,"ó","ó")
vJoin = replace(vJoin,"ú","ú")
vJoin = replace(vJoin,"ñ","ñ")
vJoin = replace(vJoin,"à","à")
vJoin = replace(vJoin,"¿","¿")
vJoin = replace(vJoin,chr(10),"<br />")
else
vJoin = ""
end if
%>
<%
Set gazzabazza2 = Server.CreateObject("ADODB.Connection")
gazzabazza2.open MM_gazzabazza_STRING
SQL= "SELECT ideas FROM texto WHERE ideas='"&vJoin&"'"
Set gazzabazza2 = gazzabazza2.Execute(SQL)
%>
<%
if vJoin <> "" AND request.Form("Submit") <> "" AND len(request("imagecheck"))>0 AND ucase("" & request("imagecheck")) = ucase("" & session("checktext")) AND gazzabazza2.EOF then
Set gazzabazza = Server.CreateObject("ADODB.Connection")
gazzabazza.open MM_gazzabazza_STRING
SQL="INSERT INTO texto (ideas) values ('"& vJoin &"')"
Set recordSet=gazzabazza.Execute(SQL)
gazzabazza.close
Set gazzabazza = nothing
end if
%>
<%
if vJoin <> "" AND request.Form("Submit") <> "" AND len(request("imagecheck"))>0 and ucase("" & request("imagecheck")) = ucase("" & session("checktext")) AND gazzabazza2.EOF then
Dim objCDOMail
Set objCDOMail = Server.CreateObject("CDONTS.NewMail")
objCDOMail.From = "[email protected]"
objCDOMail.To= "[email protected]"
objCDOMail.Subject= "TEXTO en Gazza&Bazza"
vMessage = " Nuevo texto en la web: <br><br> <b> "& vJoin &" </b> "
objCDOMail.BodyFormat = 0
objCDOMail.MailFormat = 0
objCDOMail.Body=vMessage
objCDOMail.Send
Set objCDOMail=Nothing
end if
%>
<%Dim string_photo3,string_part3
string_photo3= request.QueryString("msg")
string_part3=Right(string_photo3,4)
%>
<%Dim string_var,string_part
string_var= request.QueryString("msg")
string_part=Right(string_var,5)
%>
<%
if string_part3 = ".jpg" OR string_part3 = ".gif" OR string_part3 = ".bmp" OR string_part3 = ".JPG" OR string_part3 = ".GIF" OR string_part3 = ".BMP" OR string_part = ".jpeg" OR string_part = ".JPEG" then
Set gazzabazza = Server.CreateObject("ADODB.Connection")
gazzabazza.open MM_gazzabazza_STRING
SQL="INSERT INTO imagenes (imagen) values ('"& request.QueryString("msg") &"')"
Set recordSet=gazzabazza.Execute(SQL)
gazzabazza.close
Set gazzabazza = nothing
end if
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<script type="text/javascript" src="http://use.typekit.com/zgr2ihx.js"></script>
<script type="text/javascript">try{Typekit.load();}catch(e){}</script>
<link rel="icon" href="icon.ico" type="image/x-icon" />
<link rel="shortcut icon" href="icon.ico" type="image/x-icon" />
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title>El Azar Manda en Nuestras Vidas</title>
<link href="css_randomness/gazzabazza.css" rel="stylesheet" type="text/css">
<style type="text/css">
<!--
body {
background-image: url("images_randomness/linea.jpg");
}
.Style1 {color: #333333}
.Estilo2 {
font-size: 14px;
font-weight: bold;
color: #756F61;
}
.Estilo3 {
font-size: 14px;
font-weight: bold;
color: #746E5E;
}
.Estilo4 {
font-size: 16px;
font-weight: bold;
color: #666666;
}
.Style2 {color:#000000; height:auto; margin-top:15px; margin-bottom:30px; font-family: "Trebuchet MS", Arial, Helvetica, sans-serif;}
.Style3 {color: #746E5E; font-weight: bold;}
.Style4 {color: #333333; font-family: "Trebuchet MS", Arial, Helvetica, sans-serif; }
-->
</style>
<script language="JavaScript" type="text/JavaScript">
<!--
function MM_findObj(n, d) { //v4.01
var p,i,x; if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
if(!x && d.getElementById) x=d.getElementById(n); return x;
}
function MM_validateForm() { //v4.0
var i,p,q,nm,test,num,min,max,errors='',args=MM_validateForm.arguments;
for (i=0; i<(args.length-2); i+=3) { test=args[i+2]; val=MM_findObj(args[i]);
if (val) { nm=val.name; if ((val=val.value)!="") {
if (test.indexOf('isEmail')!=-1) { p=val.indexOf('@');
if (p<1 || p==(val.length-1)) errors+='- '+nm+' must contain an e-mail address.\n';
} else if (test!='R') { num = parseFloat(val);
if (isNaN(val)) errors+='- '+nm+' must contain a number.\n';
if (test.indexOf('inRange') != -1) { p=test.indexOf(':');
min=test.substring(8,p); max=test.substring(p+1);
if (num<min || max<num) errors+='- '+nm+' must contain a number between '+min+' and '+max+'.\n';
} } } else if (test.charAt(0) == 'R') errors += ' ¿Qué? ¿No vas a escribir nada?\n'; }
} if (errors) alert(errors);
document.MM_returnValue = (errors == '');
}
//-->
</script>
</head>
<body>
<div class="container">
<div class="profoto">
<div class="cadre">
<p align="center">
<a href="http://www.gazzabazza.net"><img src="images_randomness/gazza_bazza.jpg" border="0" alt="¡Quiero más!" title="¡Quiero más!" ></a>
<br>
<span class="linkcontact2"> </span>
<hr color="#999999">
<p><span class="texto Style1" valign="top"></span></p>
<form action="upload/uploadfile.asp" method="post" enctype="multipart/form-data">
</form>
<div align="center">
<p><span class="texto Style1" id="texto" valign="top">
</span>
<%
If NOT gazzabazza2.EOF then
%>
<p class="linkcontact2"><strong>¿Te creías original?<br>
<br>
</strong>Pues no lo fuiste esta vez!<br>
Este texto ya se le ocurrió a alguien antes.<br>
Dale, escribe otro pues!<br>
<strong>Gracias!</strong></p>
<p class="linkcontact2"><strong>Espera un segundo y puedes volver a intentarlo!</strong>
</p>
<META HTTP-EQUIV="Refresh" CONTENT="4">
<%else%>
<%if vJoin <> "" AND request.Form("Submit") <> "" AND len(request("imagecheck"))>0 and ucase("" & request("imagecheck")) = ucase("" & session("checktext")) AND gazzabazza2.EOF then%>
<span class="linkcontact2">El texto:<br>
<strong><%=request.Form("join")%></strong>
<br>
ha sido incluido con éxito!<br>
</span>
<br>
<span class="texto"><span class="Estilo4">Gracias !</span></span><br>
<br>
<p class="linkcontact2"><strong>Espera un segundo y continúa!</strong> </p>
<META HTTP-EQUIV="Refresh" CONTENT="4">
<%else%>
<div align="left"> <span class="Style2" valign="top"><span class="Style3"><font size="4">Escribe tus pensamientos : </font></span></span><span class="texto" valign="top">
</span></div>
</div>
<form name="form1" method="post" action="join_text.asp">
<div align="center">
<div align="center">
<textarea name="join" cols="30" rows="4" wrap="virtual" class="texto" id="join"><%=vJoin%></textarea>
<input name="" type="hidden" value="<%=vJoin%>">
<%
session("checktext") = RandomText(3)
%>
<%
if len(request("imagecheck"))>0 then response.write "<br><span class='linkcontact2'><font size='2'><b> Has debido escribir mal la prueba de humanidad <br>(o eso o eres un replicante).<br>Inténtalo de nuevo o pulsa F5 si encuentras algún problema.</b></font></span><br>"
%>
<br>
<span class="contact"><strong>Eres humano?<br>
Pruébalo !</strong>
</span><br />
<input type="text" name="imagecheck" size="5" />
<br>
</div>
<div align="center"> <br>
<img alt="Human image test" src="captcha/generate-captcha.asp" border="0"/>
<span class="linkcontact2"><br>
<%
if len(request("imagecheck"))>0 then response.write "<span class='linkcontact2'><font size='1'><br>Si tienes algún problema<br> para leer o escribir lo que está encima <b>presiona F5</b></font><br></span>"
%>
<br>
</span></div>
<div align="center">
<input name="Submit" type="submit" class="Style3" onClick="MM_validateForm('join','','R');return document.MM_returnValue" value="Subir el texto!">
</div>
</div>
</form>
</div>
</div>
<div class="recontainer"><div class="boton" align="center">
<div class="contact" align="center">
<div align="center">
<span class="linkcontact"><strong><a href="join_images.asp">SUBIR IMÁGENES</a></strong> // <strong><a href="join_text.asp">SUBIR TEXTO</a></strong> <br>
<br>
El Azar Manda<span class="barre"> <font size="2">©</font> </span> G&B 2009<br>
:::<strong><a href="about.asp"> Sobre G&B</a></strong> ::: <a href="http://translate.google.com/translate_t#" target="_blank">Traductor</a> ::: <a href="contact.asp">Contacta</a> :::<br>
</span><br>
<a href="http://creativecommons.org/licenses/by-nc-sa/3.0/es/" target="_blank" rel="license"><img src="http://i.creativecommons.org/l/by-nc-sa/3.0/es/80x15.png" alt="Creative Commons License" border="0" style="border-width:0" /></a><br />
<span xmlns:dc="http://purl.org/dc/elements/1.1/" href="http://purl.org/dc/dcmitype/InteractiveResource" property="dc:title" rel="dc:type"></span> <%
end if
%>
</div>
</div>
</div>
</div>
<%end if%>
</div>
</div>
<script language="JavaScript">
var pagetitle = document.title;
var scriptlocation = "gbstats/track.asp";
var pagedata = 'mtpt=' + escape(pagetitle) + '&mtr=' + escape(document.referrer) + '&mtt=2&mts=' + window.screen.width + 'x' + window.screen.height + '&mti=1&mtz=' + Math.random();
document.write ('<img height=1 width=1 ');
document.write ('src="' + scriptlocation + '?' + pagedata + '">');
</script>
<noscript>
<img src="gbstats/track.asp?mtt=2&mti=1" border=0>
</noscript>
</body>
</html>
<%
gazzabazza2.close
Set gazzabazza2 = nothing
%>