-
Notifications
You must be signed in to change notification settings - Fork 0
/
safety.php
350 lines (267 loc) · 12.7 KB
/
safety.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
<?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 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Safety-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">
<!--This is the START of the header section-->
<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" class="current" 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" 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">All Events</a></p>
</div>
<div class="newsboxheader">
<h2> <a href="results.php" title="Results">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">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"><img src="images/facebookbutton1.jpg" width="145" height="100" alt="ULRF Facebook page" /></a>
<br />
<a href="https://twitter.com/ULRFederation"> <img src="images/twitterbutton1.jpeg" width="145" height="100" alt="ULRF 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="safety.php">Safety</a> | </p>
<hr />
<h2>Tides</h2>
<p>Tides are a major concern for the city clubs as they restrict water access to the city part of the Shannon. The clubs affected by this are Athlunkard Boat Club, St. Michaels Rowing Club and Shannon Rowing Club.
Members of these clubs should plan there training accordingly so as not to be slipping on a going tide and find themselves unable to come back in</p>
<br />
<p>A tide timetable for Limerick city and its environs can be found <a href="http://www.sfpc.ie/download/tides/2012%20tides.pdf" target="_blank">here</a></p>
<br />
<p><a href="#top">Back to top</a></p>
<hr />
<h2>Weather</h2>
<p>As an outdoor sport we are greatly affected by weather. Strong winds can come appear without warning and threaten your safety therefore we have compiled a windguru page of most of the locations in Ireland where the club will be competing and training. It can be found <a href="http://www.windguru.cz/int/index.php?go=1&lang=eng&wj=kmh&tj=c&odh=6&doh=18&fhours=120&vp=1&pi=1&pu=190055">here</a></p>
<br />
<p><a href="#top">Back to top</a></p>
<hr />
<h2>Water Safety</h2>
<p>Water safety is a top priority for the club. It is the clubs policy that water safety should not be taken for granted. All members should be able to swim if they are to use a boat. All Boats when on the water should be accompanied by a safety launch with a coach. All safety launches are equipped with a ring boy.</p>
<br />
<p>In the event of an incident on the water the emergency services should be contacted if needed. Those involved must also fill out an incident report to be given to the club safety officer</p>
<br />
<p>The Circulation pattern for the city (past Shannon Bridge is along the bank when traveling back to the city and in the middle when traveling out of the city.</p>
<br />
<p> The Circulation pattern for O'Brien's bridge is along the Limerick bank when traveling from Connectionless Rowing Club to O'Brien's bridge village and the Clare bank when traveling from O'Brians bridge village to Castleconnell. </p>
<br />
<p> In the event of a crash all incidents must be reported to the club safety officer.</p>
<br />
<p><a href="#top">Back to top</a></p>
<hr />
<h2>First Aid</h2>
<p>All coaches for the United Limerick Rowing Federation have completed a basic first aid course as well as defibrillator course. Easy to use Defibrillator are located in both St. Michaels rowing club and Castleconnell rowing club in case of emergency.</p>
<br />
<p><a href="#top">Back to top</a></p>
<hr />
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<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">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" >All Event</a></p>
</div>
<!-- this is the start of the sponsers section-->
<div class="newsboxheader">
<h2> <a href="aboutus.php" title="About Us"> 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" /></a>
<a href="http://greentrackstours.com/"> <img src="images/greentracktours1.jpg" alt="Sponser: 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="Accessiblity">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>