-
Notifications
You must be signed in to change notification settings - Fork 0
/
contactus.php
417 lines (326 loc) · 15 KB
/
contactus.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
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
<?php require_once('Connections/msc36_rowerreg.php'); ?>
<?php
if (!function_exists("GetSQLValueString")) {
function GetSQLValueString($theValue, $theType, $theDefinedValue = "", $theNotDefinedValue = "")
{
if (PHP_VERSION < 6) {
$theValue = get_magic_quotes_gpc() ? stripslashes($theValue) : $theValue;
}
$theValue = function_exists("mysql_real_escape_string") ? mysql_real_escape_string($theValue) : mysql_escape_string($theValue);
switch ($theType) {
case "text":
$theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
break;
case "long":
case "int":
$theValue = ($theValue != "") ? intval($theValue) : "NULL";
break;
case "double":
$theValue = ($theValue != "") ? doubleval($theValue) : "NULL";
break;
case "date":
$theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
break;
case "defined":
$theValue = ($theValue != "") ? $theDefinedValue : $theNotDefinedValue;
break;
}
return $theValue;
}
}
?>
<?php
// *** Validate request to login to this site.
if (!isset($_SESSION)) {
session_start();
}
$loginFormAction = $_SERVER['PHP_SELF'];
if (isset($_GET['accesscheck'])) {
$_SESSION['PrevUrl'] = $_GET['accesscheck'];
}
if (isset($_POST['email'])) {
$loginUsername=$_POST['email'];
$password=$_POST['password'];
$MM_fldUserAuthorization = "userlevel";
$MM_redirectLoginSuccess = "index.php";
$MM_redirectLoginFailed = "logintake2.php";
$MM_redirecttoReferrer = false;
mysql_select_db($database_msc36_rowerreg, $msc36_rowerreg);
$LoginRS__query=sprintf("SELECT email, password, userlevel FROM users WHERE email=%s AND password=%s",
GetSQLValueString($loginUsername, "text"), GetSQLValueString($password, "text"));
$LoginRS = mysql_query($LoginRS__query, $msc36_rowerreg) or die(mysql_error());
$loginFoundUser = mysql_num_rows($LoginRS);
if ($loginFoundUser) {
$loginStrGroup = mysql_result($LoginRS,0,'userlevel');
if (PHP_VERSION >= 5.1) {session_regenerate_id(true);} else {session_regenerate_id();}
//declare two session variables and assign them
$_SESSION['MM_Username'] = $loginUsername;
$_SESSION['MM_UserGroup'] = $loginStrGroup;
if (isset($_SESSION['PrevUrl']) && false) {
$MM_redirectLoginSuccess = $_SESSION['PrevUrl'];
}
header("Location: " . $MM_redirectLoginSuccess );
}
else {
header("Location: ". $MM_redirectLoginFailed );
}
}
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Contact Us-United Limerick Rowing Federation</title>
<link rel="icon" type="image/ico" href="images/rowingfavicon.ico"/>
<link href="css-base1.2.css" rel="stylesheet" type="text/css" title="default" />
<link href="css-base-opendyslexic.css" rel="stylesheet" type="text/css" title="opendyslexic" />
<script src="styleswitch.js" language="JavaScript" type="text/javascript"></script>
</head>
<body onload="set_style_from_cookie()">
<form action="styleswitch.js" >
<input type="submit" onclick="switch_style('default'); return false;" name="default" value="Default view" id="default" />
<input type="submit" onclick="switch_style('opendyslexic'); return false;" name="opendyslexic" value="Dyslexic Aid" id="opendyslexic" />
</form>
<p><a href="accessability.php">Need Help ?</a></p>
<!--******This is the START of the wrapper*******-->
<div id="wrapper">
<a name="top" id="top"></a>
<div id="header" title="United Limerick Rowing Federation, 'Rowing together'"><h1>United Limerick Rowing Federation
"Rowing Together" </h1>
</div>
<!--This is the ENDd of the header section-->
<!--This is the START of the Navbar-->
<div id="navbar">
<div id="navlinks">
<ul>
<li><a href="home.php" title="Hompage">Home</a></li>
<li><a href="aboutus.php" title="About Us" >About Us</a></li>
<li><a href="regattacalender.php" title="Regatta calender">Competitive</a></li>
<li><a href="results.php" title="Results Page" >Results</a></li>
<li> <a href="otherevents.php" title="Club Events" >Club Events</a></li>
<li><a href="safety.php" title="Saftey Information" >Safety</a></li>
<li> <a href="rowinglinks.php" title="Rowing Links" >Other Links</a></li>
<li> <a href="index.php" title="Members Area" >Members</a></li>
<li> <a href="gallery.php" title="Gallery">Gallery</a></li>
<li> <a href="contactus.php" class="current" title="Contact Us">Contact</a></li>
</ul>
</div>
</div>
<!--This is the END of the navbar-->
<!--This is the START of the innerwrapper-->
<div id="innerwrapper">
<!--This is the START of the subsetarea1-->
<div id="subsetarea1">
<div class="newsboxheader">
<h2><a href="regattacalender.php" title="Regatta Calender">Upcoming Events</a></h2>
</div>
<div class="newsbox">
<p>>>20 Oct Skibbereen Head of the River,NRC</p>
<p>>>10 Nov Neptune Head of the River, Blessington</p>
<p>>>01 Dec Castleconnell Head of the River, Obrians Bridge</p>
<p>>>05 Jan Kerry Head of the River, Kilorgran</p>
<p>>><a href="regattacalender.php" title="Regatta Calender">All Events</a></p>
</div>
<div class="newsboxheader">
<h2> <a href="results.php" title="Results Page">Latest Results</a></h2>
</div>
<div class="newsbox">
<p>>>05 Aug Carrick on Shannon sprint Regatta</p>
<p>>>21 Jul Home International Regatta</p>
<p>>>12 Jul Irish Rowing Championships 2012</p>
<p>>>24 Jun Fermoy Regatta 2012</p>
<p>>><a href="results.php" title="Results Page">All Results</a></p>
</div>
<div class="newsboxheader">
<h2> <a href="contactus.php" title="Contact Us">Connect with us</a></h2>
</div>
<div class="newsbox">
<a href="https://www.facebook.com/pages/United-Limerick-Rowing-Federation/368315433254464?ref=hl" title="Our Facebook Page"><img src="images/facebookbutton1.jpg" width="145" height="100" alt="ULRF Facebook page" /></a>
<a href="https://twitter.com/ULRFederation"> <img src="images/twitterbutton1.jpeg" width="145" height="100" alt="ULRF Twitter Page" title="Our Twitter Page" /></a>
</div>
<div class="newsboxheader">
<h2> <a href="gallery.php" title="Gallery"> Random Image </a></h2>
</div>
<div class="newsbox">
<img src="otherimages/<?php echo rand(1,12);?>.jpg" alt="Random Image from the Gallery" width="145" height="100" />
</div>
<!--this is the END of subsetarea1-->
</div>
<!-- this is the start of the main area-->
<div id="mainarea">
<p>| <a href="home.php">Home</a> | <a href="contactus.php">Contact Us</a> |</p>
<hr />
<h2>Get in Contact with Us</h2>
<p> </p>
<FORM id="form2" name="form2" METHOD="POST" ACTION="http://msc36.cmsmotion.com/cgi-bin/cgiemail/emailtemplate.txt">
<div class="form2">
<p>
<label for="name">Name:</label>
<INPUT TYPE="text" NAME="name" ID="name" placeholder="Your Name" />
</p>
<p> </p>
<p>
<label for="email2">Email: </label>
<INPUT TYPE="text" NAME="email2" ID="email2" placeholder="Email Address" />
</p>
<p> </p>
<p>
<label for="subject">Subject:</label>
<INPUT TYPE="text" NAME="subject" ID="subject" placeholder="Subject" />
</p>
<p> </p>
<p><label for="comments">Comments:</label></p>
</div>
<div class="contactusphoto"><img src="images/contactus.jpg" width="300" height="173" alt="Contact Us Please" /></div>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<div class="commentsarea">
<textarea name="comments" id="comments" cols="45" rows="5" placeholder="Comments"></textarea>
</div>
<p> </p>
<p> </p>
<p>
<INPUT TYPE="hidden" NAME="success" VALUE="http://msc36.cmsmotion.com/contactussuccess.php">
</p>
<p> </p>
<div class="submit">
<p>
<INPUT TYPE="submit" NAME="submit" ID="submit" value="Submit" />
</p>
</div>
</form>
<p> </p>
<p> </p>
<p><a href="#top">Back to top</a></p>
<hr />
<h2> <acronym title="United Limerick Rowing Federation">ULRF</acronym> Main Contacts </h2>
<h3>Club Houses</h3>
<ul>
<li>St. Michaels Rowing Club, O'Callaghan Strand, Limerick.<br /> Located on northern side of the Shannon river and adjacent to the City Slipway.</li>
<li> </li>
<li>Castleconnell Boat Club, Worlds End, Castleconnell Village, County Limerick.</li>
<li></li>
</ul>
<p><a href="#top">Back to top</a></p>
<hr />
<h3>New Members</h3>
<p> </p>
<p>To join St. Michaels Rowing Club please attend any Friday from 4pm-7pm.</p>
<p> </p>
<p>To join Athlunkard Boat Club please attend any Thursday from 4pm-7pm.</p>
<p> </p>
<p>To join Castleconnel Boat Club please attend any Saturday 11am-1pm</p>
<p> </p>
<p>To join Shannon Rowing Club please attend any Saturday 1pm-4pm</p>
<p> </p>
<p>To join the University of Limerick Club please contact the Student Union</p>
<p> </p>
<p>For any Members already in affiliated clubs ask your coach for more information</p>
<p> </p>
<p><a href="#top">Back to top</a></p>
<hr />
<h3>Website or Club information</h3>
<p> </p>
<p> Site Admin: </p>
<p><a href="mailto:[email protected]">[email protected]</a></p>
<p> </p>
<p> </p>
<p><a href="#top">Back to top</a></p>
<hr />
<h3>St. Michaels Rowing Club</h3>
<p> </p>
<p><iframe width="300" height="250" frameborder="0" scrolling="no" marginheight="0" marginwidth="0" src="http://maps.google.com/maps?f=q&source=embed&hl=en&geocode=&q=st+michaels+rowing+club+limerick+ireland&sll=52.66337,-8.639717&sspn=0.023894,0.077248&ie=UTF8&hq=st+michaels+rowing+club&hnear=Limerick,+Co.+Limerick,+Ireland&ll=52.665244,-8.634567&spn=0.007808,0.012875&t=h&output=embed"></iframe></p>
<br />
<small><a href="http://maps.google.com/maps?f=q&source=embed&hl=en&geocode=&q=st+michaels+rowing+club+limerick+ireland&sll=52.66337,-8.639717&sspn=0.023894,0.077248&ie=UTF8&hq=st+michaels+rowing+club&hnear=Limerick,+Co.+Limerick,+Ireland&ll=52.665244,-8.634567&spn=0.007808,0.012875&t=h" title="St.Michaels Rowing Club Boathouse Google Map">View Larger Map</a></small>
<p><a href="#top">Back to top</a></p>
<hr />
<h3>Castleconnell Boat Club</h3>
<p> </p>
<p><iframe width="300" height="300" frameborder="0" scrolling="no" marginheight="0" marginwidth="0" src="https://maps.google.com/maps?q=52.726579,-8.504749&num=1&t=h&ie=UTF8&ll=52.726572,-8.504448&spn=0.001949,0.003219&z=17&output=embed"></iframe></p>
<p> </p>
<small><a href="https://maps.google.com/maps?q=52.726579,-8.504749&num=1&t=h&ie=UTF8&ll=52.726572,-8.504448&spn=0.001949,0.003219&z=17&source=embed" title="Castleconnel Boat Club Google Map">View Larger Map</a></small>
<p><a href="#top">Back to top</a></p>
<hr />
<!--This is the end of the main area-->
</div>
<!-- This is the start of subsetarea2-->
<div id="subsetarea2">
<div class="newsboxheader">
<h2> <a href="index.php"> Members Area</a></h2>
</div>
<div class="newsbox">
<?php if (isset($_SESSION['MM_Username'])) {
echo("<p>Logged on as: ". $_SESSION['MM_Username']); ?> </p>
<?php }
else { ?>
<form id="form1" method="POST" action="<?php echo $loginFormAction; ?>">
<p>
<label for="email">Email:</label>
<input type="text" name="email" id="email" placeholder="Email" />
</p>
<p>
<label for="password">Password:</label>
<input type="password" name="password" id="password" placeholder="Password" />
</p>
<p> </p>
<p>
<input type="submit" name="login" id="login" value="Login" />
</p>
</form>
<p> </p>
<?php } ?>
</div>
<div class="newsboxheader">
<h2> <a href="limerickregatta.php" title="Limerick Regatta"> Limerick Regatta </a></h2>
</div>
<div class="newsbox">
<h3>Overall club (Points)</h3>
<p>>>1. St. Michaels Rowing Club Limerick (593)</p>
<p>>>2. Castleconnell Boat Club Limerick (489) </p>
<p>>>3. Shannon Rowing Club Limerick (359)</p>
<p>>><a href="limerickregatta.php" title="Limerick Regatta">Overall Results </a></p>
</div>
<div class="newsboxheader">
<h2> <a href="otherevents.php" title="Club Events"> Fundraising</a></h2>
</div>
<div class="newsbox">
<p>>>06 Nov,Pub Quiz, Jerry Flannerys Bar 8pm-11pm</p>
<p>>>25 Dec, Sponsored Row, Shannon Bridge to the Snuff Box 10am-11am</p>
<p>>><a href="otherevents.php" title="Club Events">All Event</a></p>
</div>
<!-- this is the start of the sponsers section-->
<div class="newsboxheader">
<h2> <a href="aboutus.php" title="About Us Page"> Sponsors</a></h2>
</div>
<div class="newsbox">
<a href="http://www.bettercallsaul.com/"> <img src="images/bettercallsaul1.jpg" width="145" height="100" alt="Sponser:Legal Services By Saul Goodman" title="Better Call saul" /></a>
<a href="http://greentrackstours.com/"> <img src="images/greentracktours1.jpg" alt="Sponser: Green Track Tours" title="Green Track Tours" /> </a>
</div>
<!--This is the end of subsetarea2 -->
</div>
<!--This is the START of footer-->
<div id="footer">
<div id="footerlinks">
<ul>
<li> <a href="sitemap.php" title="Sitemap">Site Map</a> </li>
<li><a href="accessability.php" title="Accessability Page">Accessibility</a> </li>
</ul>
</div>
</div>
<!-- this is the END of the footer-->
</div>
<!-- this is he END of the inner wrapper-->
</div>
<!-- This is the END of the wrapper-->
</body>
</html>