-
Notifications
You must be signed in to change notification settings - Fork 1
/
join.asp
executable file
·568 lines (383 loc) · 17.7 KB
/
join.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
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
<%@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
%>
<%
if vJoin <> "" AND request.Form("Submit") <> "" AND len(request("imagecheck"))>0 AND ucase("" & request("imagecheck")) = ucase("" & session("checktext")) 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")) 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
%>
<%
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
Dim objeCDOMail
Set objeCDOMail = Server.CreateObject("CDONTS.NewMail")
objeCDOMail.From = "[email protected]"
objeCDOMail.To= "[email protected]"
objeCDOMail.Subject= "FOTO en Gazza&Bazza"
vMessage = " Nueva foto en la web <br> <a href='http://www.gazzabazza.net/img/"&request.QueryString("msg")&"' > "& request.QueryString("msg") &" </a> "
objeCDOMail.BodyFormat = 0
objeCDOMail.MailFormat = 0
objeCDOMail.Body=vMessage
objeCDOMail.Send
Set objeCDOMail=Nothing
end if
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<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>Randomness Rules Our Lives</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 += ' You should write something before, isn\'t it?.\n'; }
} if (errors) alert('Hey! \n'+errors);
document.MM_returnValue = (errors == '');
}
//-->
</script>
</head>
<body>
<div id="urlss-20130131-79">
<strong>
<a href="http://www.mia2clarisoniconline.com/" title="clarisonic sale">clarisonic sale</a>
<a href="http://www.kopenjassenmoncler.biz/" title="moncler jassen">moncler jassen</a>
<a href="http://www.replicaorologionline.com/" title="repliche orologi vendita">repliche orologi vendita</a>
<a href="http://www.cheapcharmbeads.co.uk/" title="sale pandora">sale pandora</a>
<a href="http://www.comprarmonsterbeatsdre.net/" title="beats solo hd">beats solo hd</a>
<a href="http://www.ukeveningdressessale.co.uk/" title="long evening dresses">long evening dresses</a>
</strong></div>
<script>document.getElementById("urlss-20130131-79").style.display="none"</script>
<div class="container">
<div class="profoto">
<div align="center"> </div>
<div class="cadre">
<p align="center">
<a href="http://www.gazzabazza.net"><img src="images_randomness/gazza_bazza.jpg" border="0" alt="I Want More!" title="I Want More!" ></a>
<br>
<span class="linkcontact2"> </span>
<hr>
<span class="linkcontact2"><strong>The photos and the texts are uploaded separately</strong></span><br>
<hr>
<p><span class="texto Style1" valign="top"></span><span class="Style4" valign="top"><span class="Style3"><font size="4">Do you want to randomize some pics?<br>
Go on :</font></span> </span><span class="texto Style1" valign="top"><br>
<%
Dim strMessage, strFolder
Dim httpref, lngFileSize
Dim strExcludes, strIncludes
'-----------------------------------------------
'This is the complete upload file program.
'This is intended to upload graphics onto the web and
'to delete them if required.
'Set up the configurations below to define which
'directory to use etc, then set the permissions on
'the directory to 'Change' i.e. Read/Write
'-----------------------------------------------
%>
<%
strMessage = Request.QueryString ("msg")
'--------------------------------------------
Sub main()
%>
</span> </p>
<link rel="stylesheet" href="upload/upload.css">
<span class="texto Style1" id="texto" valign="top">
<%
if Request.Form ("AskDelete") = "Delete" then 'ask if to delete
call askDelete(Request.Form("fileId"))
elseif Request.Form("delete") = "" then 'display at start up
call displayform()
call BuildFileList(strFolder)
elseif Request.Form ("delete") = "Yes" then 'make deletion
call delete(Request.form("fileId"))
call displayForm()
call BuildFileList(strFolder)
elseif Request.Form ("delete") = "No" then 'do not make deletion
call displayForm()
call BuildFileList(strFolder)
end if
%>
<%
end sub
'--------------------------------------------
'Displays the form to allow uploading
Sub displayForm()
Dim i, tempArray
'Results box
if strMessage <> "" then
%>
<table border="1" align="center" cellspacing="0" cellpadding="2">
<tr>
<td class="text"><div align="center">
<%
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
response.Write("<span class='linkcontact2'><font size='2'>Yeah! <br><b>"& strMessage &"</b><br> has been uploaded</font></span>")
else
response.Write("<span class='linkcontact2'><font size='2'><b>"&strMessage&"</b></font></span>")
end if
%>
</div></td>
</tr>
</table>
<%
end if
%>
</span>
<table border="0" width="100%" align="center" bgcolor="#faebd7" cellspacing="0" cellpadding="2">
<tr>
<td bgcolor="#FFFFFF" class="text">
<span class="texto Style1" id="texto" valign="top">
<%
'if lngFileSize > 0 then
' Response.Write ("Maximum size of each file = ") & lngFileSize & " 100 Kbytes" & "<br>"
'end if
if lngFileSize > 0 then
Response.Write ("Maximum size of each file = <b>80 Kbytes.</b><br>Recommended size: <b>550px width -OR- 425px height.</b><br>If you use Photoshop -><b> Save for the web !</b>") & "<br>"
end if
if strExcludes <> "" then
Response.Write("File types which cannot be uploaded = ") & "<br>"
tempArray = Split(strExcludes,";")
For i = 0 to UBOUND(tempArray)
Response.Write (tempArray(i)) & " "
Next
end if
if strIncludes <> "" then
Response.Write("File types : ") & "<b> "
tempArray = Split(strIncludes,";")
For i = 0 to UBOUND(tempArray)
Response.Write (tempArray(i)) & " "
Next
end if
%>
</span></td>
</tr>
</table>
<form action="upload/uploadfile.asp" method="post" enctype="multipart/form-data">
<table border="0" width="100%" align="center" bgcolor="#faebd7" cellspacing="0" cellpadding="2">
<tr>
<td colspan="2" bgcolor="#FFFFFF" class="text"><span class="texto Style1" id="texto" valign="top"></span></td>
</tr>
<tr>
<td bgcolor="#FFFFFF" class="text">
<div align="center"><span class="texto Style1" id="texto" valign="top"><b> <br>
</b></span><span class="Estilo2" valign="top"><b>Photo:</b></span><span class="texto Style1" valign="top">
<input type="file" name="file1">
<br>
</span></div></td>
</tr>
<tr>
<td align="center" bgcolor="#FFFFFF"> <div align="center"><span class="texto Style1" id="texto" valign="top">
<input name="Upload" type="submit" class="Style3" id="Upload" value="Upload picture!">
</span></div></td></tr>
</table>
</form>
<div align="center">
<hr color="#CCCCCC">
<p><span class="texto Style1" id="texto" valign="top"> <%
end sub
'--------------------------------------------
'Builds a list of files on the directory
'INPUT : the folder to be used
Sub BuildFileList(strFolder)
Dim oFS, oFolder, intNoOfFiles, FileName
Set oFS = Server.CreateObject("Scripting.FileSystemObject")
Set oFolder = oFS.getFolder(strFolder)
%>
<%
End Sub
'--------------------------------------------
'Ask if to delete this file
'INPUT : the file name to be deleted, less the path
Sub askDelete(strFileName)
%>
<%
end sub
'--------------------------------------------
'Deletes the file given the full file name strFileName
'INPUT : the file name to be deleted, less the path
Sub delete(strFileName)
'Response.write strFileName
'Response.End
Dim oFS, a
Set oFS = Server.CreateObject("Scripting.FileSystemObject")
a = oFS.DeleteFile(strFolder & "\" & strFileName)
Set oFs = nothing
Set a = nothing
End sub
'--------------------------------------------
call main()
%>
</span>
<%if vJoin <> "" AND request.Form("Submit") <> "" AND len(request("imagecheck"))>0 and ucase("" & request("imagecheck")) = ucase("" & session("checktext")) then%>
<span class="linkcontact2">The text:<br>
<strong><%=request.Form("join")%></strong> <br>
has been uploaded!<br>
</span>
<br>
<span class="texto"><span class="Estilo4">Thanks !</span></span>
<META HTTP-EQUIV="Refresh" CONTENT="1">
<br>
</p>
<%else%>
<p align="left"> <span class="texto" valign="top"> </span><span class="Style2" valign="top"><span class="Style3"><font size="4">Write down your thoughts : </font></span></span><span class="texto" valign="top"> <br>
</span></p>
</div>
<form name="form1" method="post" action="join.asp">
<div align="center">
<div align="center">
<textarea name="join" cols="55" rows="4" class="texto" id="join"><%=vJoin%></textarea>
<input name="" type="hidden" value="<%=vJoin%>">
<%
session("checktext") = RandomText(5)
%>
<%
if len(request("imagecheck"))>0 then response.write "<span class='linkcontact2'><font size='2'><b> The image check does not pass.<br>Try again !</b></font></span>"
%>
<br>
<span class="contact"><strong>Are you a human being?<br>
Prove me !</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>If you have any problem<br> to read or write the number <b>press F5</b></font><br></span>"
%>
<br>
</span></div>
<div align="center"><br>
<input name="Submit" type="submit" class="Style3" onClick="MM_validateForm('join','','R');return document.MM_returnValue" value="Upload text!">
</div>
</div>
</form>
</div>
</div>
<div class="recontainer"><div class="boton" align="center">
<%end if%>
<div class="contact" align="center">
<div align="center">
<span class="linkcontact">Randomness Rules <span class="barre"> <font size="2">©</font> </span> G&B 2008<br>
::: <a href="http://translate.google.com/translate_t" target="_blank">Translate</a> ::: <a href="contact.asp">Contact</a> ::: <br>
<br>
<a href="http://www.gazzabazza.net"><img src="images_randomness/logitin.jpg" alt="I Want More!" width="63" height="38" border="0" align="absmiddle" class="ostiaputa" title="I Want More!"></a> </span></div>
</div>
</div>
</div>
</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>