~zalongwa/saris-ita/trunk

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
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
<?php

	session_start();

	session_cache_limiter('nocache');       

	@$loginerror  = $_SESSION['loginerror'];

	$_SESSION['loginerror'] = "";

	

	require_once('./Connections/zalongwa.php');

	#Get Organisation Name

	$qorg = "SELECT * FROM organisation";

	$dborg = mysql_query($qorg);

	$row_org = mysql_fetch_assoc($dborg);

	$org = $row_org['Name'];

	$post = $row_org['Address'];

	$phone = $row_org['tel'];

	$fax = $row_org['fax'];

	$email = $row_org['email'];

	$website = $row_org['website'];

	$city = $row_org['city'];

 if(isset($_POST['Submit']) && $_POST['Submit'] !=""){

		$today = date("F j, Y");   

		$LastName = addslashes($_POST['txtLastName']);

		$FirstName = addslashes($_POST['txtFirstName']);

		$byear = addslashes($_POST['txtYear']);

		$bmon = addslashes($_POST['txtMonth']);

		$bday = addslashes($_POST['txtDay']);

		$id = addslashes($_POST['txtRegNo']);

		$selectPosition = $_POST['selectPosition'];

		$username = addslashes($_POST['txtLogin']);

		$PWD = addslashes($_POST['txtPWD']);

		$Login=$username.$PWD;

		$Email = addslashes($_POST['txtEmail']);

		$fullname = $LastName . ", " . $FirstName;

		$bdate = $bday . " - " . $bmon . " - " . $byear;

		

		if(strlen($bdate)<>14){

		$_SESSION['loginerror'] = $bdate. ' - is Invalid Date of Birth! '; 

  		//echo '<meta http-equiv = "refresh" content ="0; url = registration.php">';

		}

	

		#check username

		if (!ereg("^(([A-Za-z0-9!#$%&*+/=?^_`{|}~-][A-Za-z0-9!#$%&*+/=?^_`{|}~\.-]{0,63})|(\"[^(\\|\")]{0,62}\"))$", $username)){

		$_SESSION['loginerror'] = $username.' - is a Bad Username! '; 

  		//echo '<meta http-equiv = "refresh" content ="0; url = registration.php">';

		 }

	   

		#check username

		if (!ereg("^(([A-Za-z0-9!#$%&*+/=?^_`{|}~-][A-Za-z0-9!#$%&*+/=?^_`{|}~\.-]{0,63})|(\"[^(\\|\")]{0,62}\"))$", $PWD)){

		$_SESSION['loginerror'] = $PWD.' - is a Bad Password! '; 

  		//echo '<meta http-equiv = "refresh" content ="0; url = registration.php">';

		 }

		#check if use has submitted valid email address

		function check_email_address($Email) {

		  // First, we check that there's one @ symbol, and that the lengths are right

		  if (!ereg("[^@]{1,64}@[^@]{1,255}", $Email)) {

			// Email invalid because wrong number of characters in one section, or wrong number of @ symbols.

			return false;

	  }

	  // Split it into sections to make life easier

	  $email_array = explode("@", $Email);

	  $local_array = explode(".", $email_array[0]);

	  for ($i = 0; $i < sizeof($local_array); $i++) {

		 if (!ereg("^(([A-Za-z0-9!#$%&'*+/=?^_`{|}~-][A-Za-z0-9!#$%&'*+/=?^_`{|}~\.-]{0,63})|(\"[^(\\|\")]{0,62}\"))$", $local_array[$i])) {

		  return false;

		}

	  }  

	  if (!ereg("^\[?[0-9\.]+\]?$", $email_array[1])) { // Check if domain is IP. If not, it should be valid domain name

		$domain_array = explode(".", $email_array[1]);

		if (sizeof($domain_array) < 2) {

			return false; // Not enough parts to domain

		}

		for ($i = 0; $i < sizeof($domain_array); $i++) {

		  if (!ereg("^(([A-Za-z0-9][A-Za-z0-9-]{0,61}[A-Za-z0-9])|([A-Za-z0-9]+))$", $domain_array[$i])) {

			return false;

		  }

		}

		  }

		  return true;

		}

		

		if($Email<>''){

				if (check_email_address($Email)) {

				  //echo $Email . ' is a valid email address. <br>';

					} else {

				$_SESSION['loginerror'] = $Email . '==> is not a valid email address! '; 

				//echo '<meta http-equiv = "refresh" content ="0; url = registration.php">';

				}

	}

	# check if user has created valid username and password

	

	if(strlen($id)<1){

	$_SESSION['loginerror'] = 'Invalid Identity Registration Number! '; 

	//echo '<meta http-equiv = "refresh" content ="0; url = registration.php">';

	}

	if(strlen($username)<5){

	$_SESSION['loginerror'] = 'User Name too short, User Name must be at least 5 characters! '; 

	//echo '<meta http-equiv = "refresh" content ="0; url = registration.php">';

	}

	if(strlen($PWD)<5){

	$_SESSION['loginerror'] = 'Password too short, Password must be at least 5 characters! '; 

	//echo '<meta http-equiv = "refresh" content ="0; url = registration.php">';

	}

	// search for existing students 

	

	$query = "SELECT student.RegNo

			  FROM student WHERE (student.RegNo='$id')";

	$result = mysql_query($query) or die("Tunasikitika Kuwa Hatuwezi Kukuhudumia Kwa Sasa.<br>");

	$regnoFound = mysql_num_rows($result);

	if ($regnoFound>0) {

					   $RegNo = mysql_result($result,0,'RegNo');

					   #check if username exist

					   $sql ="SELECT UserName			

							  FROM security WHERE UserName='$username'";

					   $result = mysql_query($sql) or die("Tunasikitika Kuwa Hatuwezi Kukuhudumia Kwa Sasa.<br>");

					   $usernameFound = mysql_num_rows($result);

					   if ($usernameFound>0) {

							$login     = mysql_result($result,0,'UserName');

									$_SESSION['loginerror'] = " Registration NOT successful! <br> Some one is already using this USERNAME: '".$username."'

									 						<br>Please Select Another Username"; 

									//echo '<meta http-equiv = "refresh" content ="0; url = registration.php">';

							}

					   #check if regno exist

					   $sql ="SELECT RegNo  			

							  FROM security WHERE RegNo = '$id'";

					   $result = mysql_query($sql) or die("Tunasikitika Kuwa Hatuwezi Kukuhudumia Kwa Sasa.<br>");

					   $noFound = mysql_num_rows($result);

					   if ($noFound>0) {

							$userregno = mysql_result($result,0,'userregno');

									$_SESSION['loginerror'] = "Registration NOT Successful! <br>

															  Re-registration is not allowed in ZALONGWA DATABASE<br>

															  There is already a user using this RegNo: ".$id."<br>

															  Please Sign in with your username and password!"; 

									echo '<meta http-equiv = "refresh" content ="0; url = index.php">';

									exit;

							}



				

	}else{

	$_SESSION['loginerror'] = $id.' - Invalid Identity Registration Number (ID RegNo)! '; 

	}

#if no error captured register the candidate

if ($_SESSION['loginerror']==""){

	// Generate SSHA jlungo hash

	$hash = "{jlungo-hash}" . base64_encode(pack("H*", sha1($PWD)));

	

	//create account

		$query = "INSERT INTO security (UserName, Password, FullName, RegNo, Position, AuthLevel, Email, LastLogin, Registered,DOB)

				 VALUES ('$username', '$hash', '$fullname', '$id', '$selectPosition', 'user', '$Email', now(), now(),'$bdate')";

		$result = mysql_query($query) or die("Query Failed, Words like Ng'ombe are not accepted <br>");

		

	//Update Birth Date

	$sql = "UPDATE security SET DBirth='$bdate' WHERE RegNo = '$id'";

	$query = mysql_query($sql);

		

	$_SESSION['loginerror'] = " Welcome '".$LastName.", ".$FirstName."' to ZALONGWA"; 

	$_SESSION['username']=$username;

	echo '<meta http-equiv = "refresh" content ="0; url = index.php">';

	exit;

}

	mysql_close( $zalongwa);

}

?>



<!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" xml:lang="en" lang="en">

<head>

<title>Zalongwa Software</title>

<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">

<meta name="keywords" content="ZALONGWA, zalongwa, Student Information System (SIS), accommodation information system, database system, examination database system, Student records system, database system">

<meta name="description" content="School Management Information System, Database System, Juma Lungo Lungo Lungo Lungo, Database System , Student Information System (SIS), Accommodation Record Keeping, Examination Results System, Student Normninal Roll Database">

<meta name="authors" content="Juma Hemed Lungo">

<link rel="stylesheet" type="text/css" href="themes/bluelagoon/style.css" media="screen,projection" />

<SCRIPT ID=clientEventHandlersJS LANGUAGE=javascript>

<!--

function fmAdd_onsubmit() {

if (fmAdd.txtLastName.value == "" || fmAdd.txtFirstName.value == "" || fmAdd.selectPosition.value=="" || fmAdd.txtLogin.value=="" || fmAdd.txtPWD.value=="" || fmAdd.txtRePWD.value=="")

	{window.alert("ZALONGWA System Asks You to Fill in the Blank Text Fields");

	return false;

	}

	 if (fmAdd.txtPWD.value != fmAdd.txtRePWD.value){

		window.alert("Password Texts donot Match, Enter them again, ZALONGWA");

		return false;

	}

}

//-->

</SCRIPT>

<script src="css/zalongwa.js" type="text/javascript"> </script>

<body onLoad="f_setfocus();">

<style type="text/css">

<!--

.style2 {color: #FFFFCC}

.style3 {color: #FFFFFF}

.style4 {

	font-family: Arial, Helvetica, sans-serif;

	font-size: 11px;

}

.style5 {color: #000000}

-->

</style>

<table border="0" cellspacing="0" cellpadding="0" width=100%>

<tr>

	<td align=center><br>

	  <br>

		<!-- Registration Form Starts -->

		<table border="0" cellspacing="0" cellpadding="0" width=540 style="border:2px solid rgb(119,119,119)">

		<tr>

			<td align=left>

			

			

			<table border="0" cellspacing="0" cellpadding='0' width='100%' background="themes/images/loginTopHeaderBg.gif">

			<tr>

				<td align=left><img src="themes/images/loginTopHeaderName.gif"></td>

				<td align=right><!--img src="themes/images/loginTopVersion.gif"--></td>

			</tr>

			</table>

			<table border="0" cellspacing="0" cellpadding='6' width='100%'>

			<tr>

				<td align=left valign=top class=small style="padding:10px">

					<!-- Sign in box -->

					<div align="center"><?php echo strtoupper($org)?><br>USER REGISTRATION FORM</div>

					<FORM action="<?php echo $_SERVER['PHP_SELF']?>" method=post enctype="application/x-www-form-urlencoded" name=fmAdd id=fmAdd onsubmit="return fmAdd_onsubmit()" LANGUAGE=javascript>

       <TABLE width="100%" BORDER=0 align="center" CELLPADDING=0 CELLSPACING=0 bordercolor="#006600" bgcolor="#FFFFCC">

							<?php

							if ($_SESSION['loginerror']!="")

							{

							?>

							<tr>

								<td colspan="6"><b class="small"><font color="Brown">

								<div align="center"></div><?php echo $_SESSION['loginerror']?></div>

								</font>

								</b>

								</td>

							</tr>

							<?php

							}

							?>

										 <TR>

                            <TD VALIGN=MIDDLE ALIGN=RIGHT colspan="4" height="28" nowrap <?php echo ($missingLastname)?'style=" color:#990000"':'';?>><div align="right" class="large"><font color="#0000CC">LAST NAME:</font></div></TD>

                            <TD colspan="2" ALIGN=LEFT VALIGN=MIDDLE><div align="left"><font face="Verdana, Arial, Helvetica, sans-serif" size="2" color="#000000">

                                  <INPUT TYPE="text" SIZE="29" name="txtLastName" value="<?php echo((isset($_POST["txtLastName"]))?$_POST["txtLastName"]:"") ?>">

</font><font color="#000000"><span class="large style4"><font color="#0000CC">(LASTNAME)</font></span> </font></div></TD>

                            

                          </TR>

                          <TR>

                            <TD VALIGN=MIDDLE ALIGN=RIGHT colspan="4" height="28" nowrap><div align="right" class="large"><font color="#0000CC">FIRST NAME: </font></div></TD>

                            <TD colspan="2" ALIGN=LEFT VALIGN=MIDDLE><div align="left"><font face="Verdana, Arial, Helvetica, sans-serif" size="2" color="#000000">

                                  <INPUT TYPE="text" SIZE="29" name="txtFirstName" value="<?php echo((isset($_POST["txtFirstName"]))?$_POST["txtFirstName"]:"") ?>">

</font><font color="#000000"><span class="large style4"><font color="#0000CC">(Firstname)</font></span> </font></div></TD>

                          </TR>

						    <TR>

                            <TD VALIGN=MIDDLE ALIGN=RIGHT colspan="4" height="28" nowrap><div align="right" class="large"><font color="#0000CC">DATE OF BIRTH: </font></div></TD>

                            <TD colspan="2" ALIGN=LEFT VALIGN=MIDDLE nowrap><div align="left"><font face="Verdana, Arial, Helvetica, sans-serif" size="2" color="#000000">

                            <select name="txtDay" id="select">

							<option value="<?php echo((isset($_POST["txtDay"]))?$_POST["txtDay"]:"") ?>"><?php echo((isset($_POST["txtDay"]))?$_POST["txtDay"]:"") ?></option>  

                              <option value=>---</option>

                              <option value="01">01</option>

                              <option value="02">02</option>

                              <option value="03">03</option>

                              <option value="04">04</option>

                              <option value="05">05</option>

                              <option value="06">06</option>

                              <option value="07">07</option>

                              <option value="08">08</option>

                              <option value="09">09</option>

                              <option value="10">10</option>

                              <option value="11">11</option>

                              <option value="12">12</option>

                              <option value="13">13</option>

                              <option value="14">14</option>

                              <option value="15">15</option>

                              <option value="16">16</option>

                              <option value="17">17</option>

                              <option value="18">18</option>

                              <option value="19">19</option>

                              <option value="20">20</option>

                              <option value="21">21</option>

                              <option value="22">22</option>

                              <option value="23">23</option>

                              <option value="24">24</option>

                              <option value="25">25</option>

                              <option value="26">26</option>

                              <option value="27">27</option>

                              <option value="28">28</option>

                              <option value="29">29</option>

                              <option value="30">30</option>

                              <option value="31">31</option>

                            </select>

                            <select name="txtMonth" id="txtMonth">

							<option value="<?php echo((isset($_POST["txtMonth"]))?$_POST["txtMonth"]:"") ?>"><?php echo((isset($_POST["txtMonth"]))?$_POST["txtMonth"]:"") ?></option>  

                              <option value=>-----------</option>

                              <option value="01">January</option>

                              <option value="02">February</option>

                              <option value="03">March</option>

                              <option value="04">April</option>

                              <option value="05">May</option>

                              <option value="06">June</option>

                              <option value="07">July</option>

                              <option value="08">August</option>

                              <option value="09">September</option>

                              <option value="10">October</option>

                              <option value="11">November</option>

                              <option value="12">December</option>

                            </select>

                            <input name="txtYear" type="text" id="txtYear" size="3" maxlength="4" value="<?php echo((isset($_POST["txtYear"]))?$_POST["txtYear"]:"") ?>">

                            </font><font color="#000000"><span class="large style4"><font color="#0000CC">(dd-mm-<font color="#0000CC">yyyy</font>)</font></span> </font></div></TD>

                          </TR>

                          <TR>

                            <TD VALIGN=middle height="28" colspan="4" ALIGN=right>

                            <div align="right" class="large"><font color="#0000CC">ID RegNo: </font></div></TD>

                            <TD colspan="2" ALIGN=LEFT VALIGN=TOP><div align="left"><font face="Verdana, Arial, Helvetica, sans-serif" size="2" color="#000000">

                                  <input name="txtRegNo" type="text" id="txtRegNo" size="29" value="<?php echo((isset($_POST["txtRegNo"]))?$_POST["txtRegNo"]:"") ?>">

                            </font><font color="#0000CC"></font></div></TD>

                          </TR>

                          <TR>

                            <TD colspan="4" VALIGN=MIDDLE ALIGN=RIGHT nowrap><div align="right" class="large"><font color="#0000CC">POSITION:</font></div></TD>

                            <TD colspan="2" ALIGN=LEFT VALIGN=MIDDLE><div align="left"><font face="Verdana, Arial, Helvetica, sans-serif" size="2" color="#000000">

                                  <select name="selectPosition" id="selectPosition">

							<option value="<?php echo((isset($_POST["selectPosition"]))?$_POST["selectPosition"]:"") ?>"><?php echo((isset($_POST["selectPosition"]))?$_POST["selectPosition"]:"") ?></option>  

                                    <option value="student">student</option>

                                    <option value="student">Lecturer</option>

                                    <option value="student">Administrator</option>

                                    <option value="student">Technician</option>

                                  </select>

                            </font></div></TD>

                          </TR>

                          <TR>

                            <TD height="19" colspan="4" ALIGN=RIGHT VALIGN=MIDDLE nowrap><div align="right" class="large"><font color="#0000CC">USERNAME: </font></div></TD>

                            <TD colspan="2" ALIGN=LEFT VALIGN=MIDDLE><div align="left"><font face="Verdana, Arial, Helvetica, sans-serif" size="2" color="#000000">

                                  <input name="txtLogin" type="text" id="txtLogin" size="29" value="<?php echo((isset($_POST["txtLogin"]))?$_POST["txtLogin"]:"") ?>">

</font><font color="#000000"><span class="large style4"><font color="#0000CC">(flastname)</font></span></font></div></TD>

                          </TR>

                          <TR>

                            <TD height="19" colspan="4" rowspan="2" ALIGN=RIGHT VALIGN=MIDDLE><div align="right" class="large"><font color="#0000CC">PASSWORD:</font></div></TD>

                            <TD colspan="2" rowspan="2" ALIGN=LEFT VALIGN=MIDDLE><div align="left"><font face="Verdana, Arial, Helvetica, sans-serif" size="2" color="#000000">

                                  <input name="txtPWD" type="password" id="txtPWD" size="29" >

                            </font></div></TD>

                            

                          </TR>

                          <TR>

                            

                          </TR>

                          <TR>

                            <TD height="19" colspan="4" rowspan="2" ALIGN=RIGHT VALIGN=MIDDLE nowrap><div align="right" class="large"><font color="#0000CC">RE-ENTER PASSWORD: </font></div></TD>

                            <TD colspan="2" rowspan="2" ALIGN=LEFT VALIGN=MIDDLE><div align="left"><font face="Verdana, Arial, Helvetica, sans-serif" size="2" color="#000000">

                                  <input name="txtRePWD" type="password" id="txtRePWD" size="29" >

                            </font></div></TD>

                           

                          </TR>

                          <TR>

                           

                          </TR>

                          <TR>

                            <TD colspan="4" rowspan="2"><div align="right"></div>                              <div align="right"></div>                              <div align="right"><font color="#0000CC">EMAIL:</font></div></TD>

                            <TD colspan="2" rowspan="2" ALIGN=LEFT VALIGN=MIDDLE><div align="left"><font face="Verdana, Arial, Helvetica, sans-serif" size="2" color="#0000CC">

                                  <input type="text" size="29" name="txtEmail" value="<?php echo((isset($_POST["txtEmail"]))?$_POST["txtEmail"]:"") ?>">

                            </font></div></TD>

                           

                          </TR>

                          <TR>

                           

                          </TR>

                          <TR>

                            <TD height="19"><div align="right"></div></TD>

                            <TD width="113" align="right" valign="bottom"><div align="right"><span class="style2"></span></div></TD>

                            <TD VALIGN=MIDDLE ALIGN=LEFT BGCOLOR="#FFFFCC"><div align="right"><span class="style2"><span class="style3"><span class="style2"><span class="style2"></span></span></span></span></div></TD>

                            <TD VALIGN=TOP ALIGN=LEFT><div align="right"><span class="style2"><span class="style3"><span class="style2"><span class="style2"></span></span></span></span></div></TD>

                            <TD valign="top" nowrap bgcolor="#FFFFCC">                              <div align="left" class="style2">

                                  <div align="center">

                                    <input type="submit" value="Submit" name="Submit">

                                    <span class="style45 style16"> ...............</span>

                                    <input type="reset" value=" Reset" name="Reset">

                                  </div>

                            </div></TD>

                            

                            <TD valign="top" nowrap bgcolor="#FFFFCC"><div align="right">Are You Registered? <a href="index.php">Sign in</a></div></TD>

                          </TR>

          </table>

          <input type="hidden" name="MM_insert" value="true">

          </FORM>				

			<?php

			session_cache_limiter('nocache');

			$_SESSION = array();

			session_unset(); 

			session_destroy(); 

			?>		  </td>

			  </table>

			

			</td>

		</tr>

	  </table>

	

			<!-- Shadow -->

			<table border=0 cellspacing=0 cellpadding=0 width=640>

			<tr>

				<td><img src="themes/images/loginBottomShadowLeft.gif"></td>

				<td width=100% background="themes/images/loginBottomShadowBg.gif"><img src="themes/images/loginBottomShadowBg.gif"></td>

				<td><img src="themes/images/loginBottomShadowRight.gif"></td>

			</tr>

	  </table>

	</td>

</tr>

</table>

</body>

</html>