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
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
|
<!DOCTYPE html> <html> <head> <title>GRID TIP Application Form</title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> <SCRIPT language='javascript'>
function cancel_application(){ window.location = "gridtip.php"; } function to_login(){ window.location = "login.php";
} </script>
<!-- Piwik --> <script type="text/javascript"> var _paq = _paq || []; /* tracker methods like "setCustomDimension" should be called before "trackPageView" */ _paq.push(['trackPageView']); _paq.push(['enableLinkTracking']); (function() { var u="//mamnaslim.dsmynas.net/piwik/"; _paq.push(['setTrackerUrl', u+'piwik.php']); _paq.push(['setSiteId', '1']); var d=document, g=d.createElement('script'), s=d.getElementsByTagName('script')[0]; g.type='text/javascript'; g.async=true; g.defer=true; g.src=u+'piwik.js'; s.parentNode.insertBefore(g,s); })(); </script> <!-- End Piwik Code -->
<style type="text/css">
#menu__toggle { opacity: 0; } #menu__toggle:checked + .menu__btn > span { transform: rotate(45deg); } #menu__toggle:checked + .menu__btn > span::before { top: 0; transform: rotate(0deg); } #menu__toggle:checked + .menu__btn > span::after { top: 0; transform: rotate(90deg); } #menu__toggle:checked ~ .menu__box { left: 0 !important; } .menu__btn { position: fixed; top: 20px; left: 20px; width: 26px; height: 26px; cursor: pointer; z-index: 1; } .menu__btn > span, .menu__btn > span::before, .menu__btn > span::after { display: block; position: absolute; width: 100%; height: 2px; background-color: #616161; transition-duration: .25s; } .menu__btn > span::before { content: ''; top: -8px; } .menu__btn > span::after { content: ''; top: 8px; } .menu__box { display: block; position: fixed; top: 0; left: -100%; width: 300px; height: 100%; margin: 0; padding: 40px 0; list-style: none; background-color: #ECEFF1; box-shadow: 2px 2px 6px rgba(0, 0, 0, .4); transition-duration: .25s; overflow: auto; } .menu__item { display: block; padding: 12px 24px; color: #333; font-family: Arial, sans-serif; font-size: 18px; font-weight: 400; text-decoration: none; transition-duration: .25s; } .menu__item:hover { background-color: #CFD8DC; text-decoration: none; } .menu__home { position: fixed; top: 7px; right: 17px; }
</style>
</head>
<body bgcolor="#FFFFFF" text="#000000" link='#000000' alink='#000000' vlink='#000000'>
<link href="shoutbox/style.css" rel="stylesheet" type="text/css" />
<div class="hamburger-menu"> <input id="menu__toggle" type="checkbox" /> <label class="menu__btn" for="menu__toggle"> <span></span> </label>
<ul class="menu__box"> <li><h1> GRID TIP</h></li>
<li><a class="menu__item" href="login.php" target="mainFrame">Login</a></li> <li><a class="menu__item" href="tipsresults.php" target="mainFrame">Tips & Results</a></li> <li><a class="menu__item" href="schedule.php" target="mainFrame">Schedule</a></li> <li><a class="menu__item" href="rules.php" target="mainFrame">Rules</a></li> <li><a class="menu__item" href="members.php" target="mainFrame">Members List</a></li> <li><a class="menu__item" href="halloffame.php" target="mainFrame">Hall of Fame</a></li> <li><a class="menu__item" href="statistics.php" target="mainFrame">Statistics</a></li> <li><a class="menu__item" href="archive.php" target="mainFrame">Archive</a></li> <li><a class="menu__item" href="../gridtip_2025/" target="_blank">Last Season</a></li> <li><a class="menu__item" href="https://median.co/share/molnwl#apk" target="_blank">App</a></li> <li><a class="menu__item" href="admin/admin.html" target="mainFrame">Admin</a></li> <li><a class="menu__item" href="impressum_en.php" target="mainFrame">Legal Notice</a></li> </ul>
<div class="menu__home"> <a href="gridtip.php" target="mainFrame"><img src="images/home.png" width="32" height="28"></a> </div>
</div>
<br><br><br>
<p align="center"><font face="Arial, Helvetica, sans-serif" size="6"><b>Application Form</b></font></p> <?PHP
require("listbox.php"); require("date_diff_f1.php"); require("dbconnect.php");
dbconnect();
$favdriver=mysql_query("SELECT a_id,a_lname,a_fname FROM alldrivers ORDER BY a_lname,a_fname;");
?> <table width="100%" border="0" cellspacing="5" cellpadding="5"> <tr> <td> </td> </tr> <tr height="325"> <td width="25%" valign="top" height="200">
<form enctype="multipart/form-data" name='form_user' action="<?= $PHP_SELF; ?>" method=post> <input type="hidden" name="submitted" value="true">
<?PHP require("fileupload-class.php");
#--------------------------------# # Variables #--------------------------------#
// The path to the directory where you want the // uploaded files to be saved. This MUST end with a // trailing slash unless you use $path = ""; to // upload to the current directory. Whatever directory // you choose, please chmod 777 that directory.
$path = "images/";
// The name of the file field in your form.
$upload_file_name = "userfile";
// ACCEPT mode - if you only want to accept // a certain type of file. // possible file types that PHP recognizes includes: // // OPTIONS INCLUDE: // text/plain // image/gif // image/jpeg // image/png
// Accept ALL files $acceptable_file_types = "";
// If no extension is supplied, and the browser or PHP // can not figure out what type of file it is, you can // add a default extension - like ".jpg" or ".txt"
$default_extension = "";
// MODE: if you are attempting to upload // a file with the same name as another file in the // $path directory // // OPTIONS: // 1 = overwrite mode // 2 = create new with incremental extention // 3 = do nothing if exists, highest protection
$mode = 2; ?>
<table width="100%" border="0" cellspacing="5" cellpadding="5"> <?PHP $error_msg="";
if ($_REQUEST['submitted']) { // Submit-Button gedrückt
$user_found=mysql_query("SELECT u_id FROM users where (u_name='".$_REQUEST['appform_username']."');");
if (($_REQUEST['appform_username']=="") or ($_REQUEST['appform_realname']=="") or ($_REQUEST['appform_email']=="") or ($erg=mysql_fetch_array($user_found))) {
$error_msg="You did not provide all necessary information"; if ($erg['u_id']) {$error_msg="user already exists";}
?> <tr> <td> </td> <td width="135"> </td> <td> </td> </tr> <tr> <td> <div align="right"><font face="Arial, Helvetica, sans-serif" size="4">Your Username</font></div> </td> <td width="135"> <input type="text" name="appform_username" maxlength="3" size="30" value=<?= $_REQUEST['appform_username'] ?>> </td> <td> <font face="Arial, Helvetica, sans-serif" size="3">(max. 3 characters)</font> </td> </tr> <tr> <td> <div align="right"><font face="Arial, Helvetica, sans-serif" size="4">Your Passcode</font></div> </td> <td width="135"> <input type="password" name="appform_passcode" maxlength="20" size="30" value=<?= $_REQUEST['appform_passcode'] ?>> </td> <td> <font face="Arial, Helvetica, sans-serif" size="3">(max. 20 characters)</font> </td> </tr> <tr> <td> <div align="right"><font face="Arial, Helvetica, sans-serif" size="4">Your Picture *</font></div> </td> <td colspan="2"> <input name="<?= $_REQUEST['upload_file_name']; ?>" type="file" size="30"> </td> </tr> <tr> <td> <div align="right"><font face="Arial, Helvetica, sans-serif" size="4">Your E-mail Address</font></div> </td> <td width="135"> <input type="text" name="appform_email" maxlength="40" size="30" value=<?= $_REQUEST['appform_email'] ?>> </td> <td> <font face="Arial, Helvetica, sans-serif" size="3">(please provide)</font> </td> </tr> <tr> <td> <div align="right"><font face="Arial, Helvetica, sans-serif" size="4">Your Realname</font></div> </td> <td width="135"> <input type="text" name="appform_realname" maxlength="40" size="30" value=<?= $_REQUEST['appform_realname'] ?>> </td> <td> <font face="Arial, Helvetica, sans-serif" size="3">(firstname middle lastname)</font> </td> </tr> <tr> <td> <div align="right"><font face="Arial, Helvetica, sans-serif" size="4">Your Nickname</font></div> </td> <td width="135"> <input type="text" name="appform_nickname" maxlength="20" size="30" value=<?= $_REQUEST['appform_nickname'] ?>> </td> <td> <font face="Arial, Helvetica, sans-serif" size="3">(optional)</font> </td> </tr> <tr> <td> <div align="right"><font face="Arial, Helvetica, sans-serif" size="4">Your Nationality</font></div> </td> <td width="135"> <input type="text" name="appform_nationality" maxlength="20" size="30" value=<?= $_REQUEST['appform_nationality'] ?>> </td> <td> <font face="Arial, Helvetica, sans-serif" size="3">(optional)</font> </td> </tr> <tr> <td> <div align="right"><font face="Arial, Helvetica, sans-serif" size="4">Your Favourite Driver</font></div> </td> <td width="135"> <?PHP echo $favdriver=listbox_field($favdriver, "appform_favdriver", $_REQUEST['appform_favdriver'],0);?> </td> <td> <font face="Arial, Helvetica, sans-serif" size="3">(optional)</font> </td> </tr> <tr> <td> <div align="right"><font face="Arial, Helvetica, sans-serif"><font face="Arial, Helvetica, sans-serif"><font size="3"><font size="2"></font></font></font></font></div> </td> <td colspan="2"> <font face="Arial, Helvetica, sans-serif" size="3"><i>* max. 200x200 pixel or leave blank for default picture</i></font> </td> </tr> <tr> <td colspan="3"> </td> </tr> <tr> <td colspan="3"> <div align="center"><font face='Verdana, Arial, Helvetica, sans-serif' size='2'><i>By submitting the above information, you agree to the processing and storage of the above data for the sole purpose of use within GRID TIP.</i></font></div> </td> </tr> <tr> <td> </td> <td width="135"> </td> <td> </td> </tr> <tr> <td> <div align="right"><font face="Arial, Helvetica, sans-serif"><font face="Arial, Helvetica, sans-serif"><font size="3"><font size="2"></font></font></font></font></div> </td> <td width="135"> <input type="submit" name="appform_submit" value="Submit"> </td> <td> <input type="button" name="appform_cancel" value="Cancel" onclick='cancel_application()'> </td> </tr> <tr> <td> </td> <td width="135"> </td> <td> </td> </tr> <tr> <td> </td> <td colspan="2"> <div align="left"> <font face="Arial, Helvetica, sans-serif" size="2" color="#FF0000"><b> <?= $error_msg ?> </b></font></div> </td> </tr> <?PHP } else {
// Create a new instance of the class $my_uploader = new uploader;
// OPTIONAL: set the max filesize of uploadable files in bytes $my_uploader->max_filesize(2000000);
// OPTIONAL: if you're uploading images, you can set the max pixel dimensions $my_uploader->max_image_size(200, 200); // max_image_size($width, $height)
// UPLOAD the file
if ($my_uploader->upload($_REQUEST['upload_file_name'] ,$acceptable_file_types, $default_extension)) { $success = $my_uploader->save_file($path, $mode); }
if (!$success) { // ERROR uploading... $error_msg="you did not provide a picture or your picture was too big.<BR>you can upload a new one in your profile after logging in!"; $picture_name="avatar.jpg"; } else { $picture_name=$my_uploader->file['name']; }
if ($_REQUEST['appform_favdriver']=="----------- please select -----------") { $favdriver_value=0; } else { $favdriver_value=$_REQUEST['appform_favdriver']; }
$inserted=mysql_query("INSERT INTO users (u_name,u_passcode,u_pic,u_realname,u_nickname,u_email,u_nationality,u_favdriver,u_since) VALUES (upper('".$_REQUEST['appform_username']."'),md5('".$_REQUEST['appform_passcode']."'),'".$picture_name."','".$_REQUEST['appform_realname']."','".$_REQUEST['appform_nickname']."','".$_REQUEST['appform_email']."','".$_REQUEST['appform_nationality']."','".$favdriver_value."',year(now()));");
$headers .="MIME-Version: 1.0 \n"; $headers .="From: admin.gridtip@gridtip.net \n"; $headers .="X-Mailer: WebMailer \n"; $headers .="X-Priority:3 \n"; $headers .="Content-Type: text/html; charset=iso-8859-1 \n";
$message=" <html><head><meta http-equiv='Content-Type' content='text/html; charset=iso-8859-1'></head> <body> <p><font face='Verdana, Arial, Helvetica, sans-serif' size='2'>Hello ".$_REQUEST['appform_username'].", <BR><BR> welcome to <a href='http://gridtip.net'><b>GRID TIP</b></a>, our private Formula 1 betting website. <BR><BR> You can find the rules and an explenation of the GRID TIP scoring system on the rules page of GRID TIP, that can be found in the hamburger menu on the website. <BR><BR> Keep in mind that your tips have to be placed at latest until the beginning of the corresponding event (Sprint Qualifying, Sprint, Qualifying or Race) of each Formula 1 Grand Prix (for the dates and times please consult the schedule page in the hamburger menu). <BR><BR> You will receive an email reminder on Friday of each Grand Prix weekend with the excact dates and times for all events of the upcoming GP weekend. <BR><BR> If you received this email and did not apply for a user for GRID TIP, please contact the website's admin (<a href='mailto:mam@heimam.at'>contact admin</a>). <BR><BR><BR> Cheers,<BR> Your <b>GRID TIP</b> Admin<BR><BR></font> <font size='1'>this is a no-reply address - do not reply to this email</font></p>";
$status= mail($_REQUEST['appform_email'],"GRID TIP - Welcome Message",$message,$headers); //echo "status:".$status; //echo "Empfänger:".$_REQUEST['appform_email']; ?> <tr> <td colspan="3" align="center"> </td> </tr> <tr> <td colspan="3" align="center"> <div align="center"><font face="Arial, Helvetica, sans-serif" size="4">You successfully applied for GRID TIP.</font></div> </td> </tr> <tr> <td colspan="3" align="center"> </td> </tr> <tr> <td colspan="3" align="center"> <div align="center"> <input type="button" name="appform_cancel" value="back to login" onclick='to_login()'> </div> </td> <tr> <td colspan="3" align="center"> </td> </tr> </tr> <tr> <td colspan="3" align="center"> <div align="center"> <font face="Arial, Helvetica, sans-serif" size="2" color="#FF0000"><b> <?= $error_msg ?> </b></font></div> </td> </tr> <tr> <td colspan="3" align="center"> </td> </tr> <?PHP
} } else { ?> <tr> <td> </td> <td width="135"> </td> <td> </td> </tr> <tr> <td> <div align="right"><font face="Arial, Helvetica, sans-serif" size="4">Your Username</font></div> </td> <td width="135"> <input type="text" name="appform_username" maxlength="3" size="30" > </td> <td><font face="Arial, Helvetica, sans-serif" size="3">(max. 3 characters)</font></td> </tr> <tr> <td> <div align="right"><font face="Arial, Helvetica, sans-serif" size="4">Your Passcode</font></div> </td> <td width="135"> <input type="password" name="appform_passcode" maxlength="20" size="30" > </td> <td><font face="Arial, Helvetica, sans-serif" size="3">(max. 20 characters)</font></td> </tr> <tr> <td> <div align="right"><font face="Arial, Helvetica, sans-serif" size="4">Your Picture *</font></div> </td> <td colspan="2"> <input name="<?= $upload_file_name; ?>" type="file" size="30"> </td> </tr> <tr> <td> <div align="right"><font face="Arial, Helvetica, sans-serif" size="4">Your E-mail Address</font></div> </td> <td width="135"> <input type="text" name="appform_email" maxlength="40" size="30" > </td> <td><font face="Arial, Helvetica, sans-serif" size="3">(please provide)</font></td> </tr> <tr> <td> <div align="right"><font face="Arial, Helvetica, sans-serif" size="4">Your Realname</font></div> </td> <td width="135"> <input type="text" name="appform_realname" maxlength="40" size="30" > </td> <td><font face="Arial, Helvetica, sans-serif" size="3">(firstname middle lastname)</font></td> </tr> <tr> <td> <div align="right"><font face="Arial, Helvetica, sans-serif" size="4">Your Nickname</font></div> </td> <td width="135"> <input type="text" name="appform_nickname" maxlength="20" size="30" > </td> <td><font face="Arial, Helvetica, sans-serif" size="3">(optional)</font></td> </tr> <tr> <td> <div align="right"><font face="Arial, Helvetica, sans-serif" size="4">Your Nationality</font></div> </td> <td width="135"> <input type="text" name="appform_nationality" maxlength="20" size="30"> </td> <td><font face="Arial, Helvetica, sans-serif" size="3">(optional)</font></td> </tr> <tr> <td> <div align="right"><font face="Arial, Helvetica, sans-serif" size="4">Your Favourite Driver</font></div> </td> <td width="135"> <?PHP echo $favdriver=listbox_field($favdriver, "appform_favdriver", $_REQUEST['appform_favdriver'],0);?> </td> <td><font face="Arial, Helvetica, sans-serif" size="3">(optional)</font></td> </tr> <tr> <td> <div align="right"></div> </td> <td colspan="2"><font face="Arial, Helvetica, sans-serif" size="3"><i>* max. 200x200 pixel or leave blank for default picture</i></font></td> </tr> <tr><td colspan="3"> </td> </tr> <tr><td colspan="3"><div align="center"><font face='Verdana, Arial, Helvetica, sans-serif' size='2'><i>By submitting the above information, you agree to the processing and storage of the above data for the sole purpose of use within GRID TIP.</i></font></div></td> </tr> <tr> <td> </td> <td width="135"> </td> <td> </td> </tr> <tr> <td> <div align="right"></div> </td> <td width="135"> <input type="submit" name="appform_submit" value="Submit"> </td> <td> <input type="button" name="appform_cancel" value="Cancel" onclick='cancel_application()'> </td> </tr> <tr> <td> </td> <td colspan="2"> <div align="left"> <font face="Arial, Helvetica, sans-serif" size="2" color="#FF0000"><b> <?= $error_msg ?> </b></font></div> </td> </tr> <?PHP } ?> </table>
</form> </td> </tr>
</table>
<div align='center'><font face='Verdana, Arial, Helvetica, sans-serif' size='3'>© 2023-2026 - GRID TIP</font></div> <p>
</body> </html>
|