Jump to content

help with sessions


sw7747

Recommended Posts

Hi, wonder if any of you can help. Ages ago I added a login system to our website, the problem is it uses cookies instead of sessions. which lately has been causing many problems as people dont have cookies enabled (like at college ican't log in because of this).

 

Can anyone help me change it to sesions. here is the code i use at the moment - i think this is it all

DBConnect.php

<?php
$dbh = mysql_connect('localhost', 'secconddurr', '********')
        or die('Could not connect: ' . mysql_error());
  mysql_select_db('secconddurrdb') or die('Could not select database');
  
  function checkAccess($level)
  
{
if(!isset($_COOKIE['2durr_userid']) or !isset($_COOKIE['2durr_password']))
{
return false;
}
$id = mysql_real_escape_string($_COOKIE['2durr_userid']);
$query = "SELECT * FROM `2dss_users` WHERE `user_id`='{$id}'";
$result = mysql_query($query) or die('Query failed: ' . mysql_error());
if(mysql_num_rows($result) == 0)
{
return false;
}
$row = mysql_fetch_assoc($result);
if($_COOKIE['2durr_password'] != $row['user_password'])  
{  
  return false;  
  } 
  foreach ($level as $key => $value) 
  { 
    if($value == $row['user_level']) 
    {  
      return true;  
    } 
  }  
  return false;  
}  
?>


DoLogin.php

<?php
if(!isset($_POST['username']))
{
header('Location: index.php?id=login&message=nouser');
die();
}
include "DBConnect.php";
$username = mysql_real_escape_string($_POST['username']);
$query = "SELECT * FROM `2dss_users` WHERE `user_name`='{$username}'";
$result = mysql_query($query) or die('Query failed: ' . mysql_error());
if(mysql_num_rows($result) == 0)
{
header('Location: index.php?id=login&message=nouser');
die ();
}

$row = mysql_fetch_assoc($result);
if(md5($_POST['password']) != $row['user_password'])
{
header('Location: index.php?id=login&message=badpass');
die ();
}
setcookie('2durr_userid', $row['user_id']);
setcookie('2durr_username', $row['user_name']);
setcookie('2durr_password', $row['user_password']);
header('Location: index.php?id=member');
?>

DoLogout.php
<?php
setcookie('2durr_userid', false);
setcookie('2durr_password', false);
header('Location: index.php');
?>

Member.php
<?php
include "DBConnect.php";
include "access.php";
?>

Access.php
<?php 
if(!checkAccess(array(1,2,3,4,5,6,7))) 
{
include 'loginform.php';
}
else
{
echo  '<b>Members Area</b><br>
                  Welcome to the members area. <p align="center">| <a href="doLogout.php">Logout</a> | <a href="index.php?id=changepwd">Change Password</a>';
}

if(!checkAccess(array(1,2,3,4,5,6))) 
{

}
else
{
echo ' | <a href="index.php?id=gdocs">Leaders Documents</a> | <a href="index.php?id=itsupport">IT Support</a> | <a href="http://mail.2nddurrington.org.uk/" target="_blank">Email</a> | <br>';
}

if(!checkAccess(array(5,6)))
{

}
else
{
echo ' | <a href="index.php?id=adduser">Add User</a> | <a href="index.php?id=viewusers">View Users</a> | <br>';
}

if(!checkAccess(array(1,5,6)))
{

}
else
{
echo ' | <a href="index.php?id=bdocs">Beaver Files</a>';
}

if(!checkAccess(array(2,5,6)))
{

}
else
{
echo ' | <a href="index.php?id=cdocs">Cub Files</a>';
}

if(!checkAccess(array(3,5,6)))
{

}
else
{
echo ' | <a href="index.php?id=sdocs">Scout Files</a>';
}

if(!checkAccess(array(4,5,6)))
{

}
else
{
echo ' | <a href="index.php?id=edocs">Explorer Files</a>';
}
echo ' | ';
if(!checkAccess(array(6,6)))
{

}
else
{
echo '<br> | <a href="index.php?id=resuploads">Resource Uploads</a> | <br> | <a href="http://www.google.com/a/2nddurrington.org.uk" target="_blank">Manage Google Services</a> | ';
}

if(!checkAccess(array(5,6,7)))
{

}
else
{
echo '<br> | <a href="index.php?id=wdocs">Welcome Pack Uploads</a> | ';
}
?> 

 

I know i need to add session_start(); somewhere

 

And then instead of setting the $_COOKIE values set $_SESSION values. but i dont know where or how.

 

 

I have tried doing this and here is my new DOLogin.php code

{php]DoLogin.php

 

<?php

session_start();

if(!isset($_POST['username']))

{

header('Location: index.php?id=login&message=nouser');

die();

}

include "DBConnect.php";

$username = mysql_real_escape_string($_POST['username']);

$query = "SELECT * FROM `2dss_users` WHERE `user_name`='{$username}'";

$result = mysql_query($query) or die('Query failed: ' . mysql_error());

if(mysql_num_rows($result) == 0)

{

header('Location: index.php?id=login&message=nouser');

die ();

}

 

$row = mysql_fetch_assoc($result);

if(md5($_POST['password']) != $row['user_password'])

{

header('Location: index.php?id=login&message=badpass');

die ();

}

$_SESSION['2durr_userid'] = $row['user_id']);

$_SESSION['2durr_username'] = $row['user_name']);

$_SESSION['2durr_password'] = $row['user_password']);

header('Location: index.php?id=member');

?> [/code]

 

but all i get when i click ok is the login form with an | added below it. any idea what to do?

Link to comment
Share on other sites

You don't need us doing all the work for you, I will give you the basics.

 

To register a session

$_SESSION['var'] = "var";

 

To check if a session exists

if (isset($_SESSION['var'])){
   //It's set
}

 

You need to call

session_start();

at the beginning of every file.

 

Thats basically call the information you need...now just go replace all the cookies to sessions.

Link to comment
Share on other sites

i now get exactly the same but with the following at the top of the page

 

Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at /home/worthing-0/public_html/2nddurrington/december07test/index.php:12) in /home/worthing-0/public_html/2nddurrington/december07test/member.php on line 2

Link to comment
Share on other sites

from what i can makke out it has sessoin_start(); at the top.

 

DOLogin.php

<?php
session_start();
if(!isset($_POST['username']))
{
header('Location: index.php?id=login&message=nouser');
die();
}

include "DBConnect.php";

$username = mysql_real_escape_string($_POST['username']);
$query = "SELECT * FROM `2dss_users` WHERE `user_name`='{$username}'";
$result = mysql_query($query) or die('Query failed: ' . mysql_error());

if(mysql_num_rows($result) == 0)
{
header('Location: index.php?id=login&message=nouser');
die ();
}


$row = mysql_fetch_assoc($result);

if(md5($_POST['password']) != $row['user_password'])
{
header('Location: index.php?id=login&message=badpass');
die ();
}

$_SESSION['2durr_userid'] = $row['user_id'];
$_SESSION['2durr_username'] = $row['user_name'];
$_SESSION['2durr_password'] = $row['user_password'];
header('Location: index.php?id=member');
?>

Member.php
<?php
session_start();
include "DBConnect.php";
include "access.php";

?>

Access.php
<?php 
session_start();
if(!checkAccess(array(1,2,3,4,5,6,7))) 
{
include 'loginform.php';
}
else
{
echo  '<b>Members Area</b><br>
                  Welcome to the members area. <p align="center">| <a href="doLogout.php">Logout</a> | <a href="index.php?id=changepwd">Change Password</a>';
}

if(!checkAccess(array(1,2,3,4,5,6))) 
{

}
else
{
echo ' | <a href="index.php?id=gdocs">Leaders Documents</a> | <a href="index.php?id=itsupport">IT Support</a> | <a href="http://mail.2nddurrington.org.uk/" target="_blank">Email</a> | <br>';
}

if(!checkAccess(array(5,6)))
{

}
else
{
echo ' | <a href="index.php?id=adduser">Add User</a> | <a href="index.php?id=viewusers">View Users</a> | <br>';
}

if(!checkAccess(array(1,5,6)))
{

}
else
{
echo ' | <a href="index.php?id=bdocs">Beaver Files</a>';
}

if(!checkAccess(array(2,5,6)))
{

}
else
{
echo ' | <a href="index.php?id=cdocs">Cub Files</a>';
}

if(!checkAccess(array(3,5,6)))
{

}
else
{
echo ' | <a href="index.php?id=sdocs">Scout Files</a>';
}

if(!checkAccess(array(4,5,6)))
{

}
else
{
echo ' | <a href="index.php?id=edocs">Explorer Files</a>';
}
echo ' | ';
if(!checkAccess(array(6,6)))
{

}
else
{
echo '<br> | <a href="index.php?id=resuploads">Resource Uploads</a> | <br> | <a href="http://www.google.com/a/2nddurrington.org.uk" target="_blank">Manage Google Services</a> | ';
}

if(!checkAccess(array(5,6,7)))
{

}
else
{
echo '<br> | <a href="index.php?id=wdocs">Welcome Pack Uploads</a> | ';
}
?>

I've no idea why it thinks something is above session_start();

Link to comment
Share on other sites

Look at the error, it's not even referencing dologin.php

 

Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at /home/worthing-0/public_html/2nddurrington/december07test/index.php:12) in /home/worthing-0/public_html/2nddurrington/december07test/member.php on line 2

 

Check index.php on line 12 and member.php.

Link to comment
Share on other sites

line 12 of index.php reads

<META content="2nd Durrington Sea Scout Group, Information about beavers, cubs and scouts in the district of Worthing. Find out about news and events such as camps and activities." name=description>

 

and here is member.php

<?php
session_start();
include "DBConnect.php";
include "access.php";

?>

Link to comment
Share on other sites

<?php session_start();?>
<HTML>

<HEAD>



<TITLE>2nd Durrington Sea Scout Group (RN Unit No.61)</TITLE>

<META content="Scouts, Scouting, Worthing, West Sussex, Beavers, Cubs, Scouts, Explorers, Network, Durrington, Children, Boys, Girls, Enjoyment, Activity, Kids, Child, Youth, Group, Organisation, Fun, Camp, Camping, Fire, Lighting, Contact, Information, Links, Involved, Involvement, 2007" name=keywords>

<META content="2nd Durrington Sea Scout Group, Information about beavers, cubs and scouts in the district of Worthing. Find out about news and events such as camps and activities." name=description>

<LINK href="style.css" type=text/css rel=stylesheet>
</HEAD>


<BODY leftmargin="0" topmargin="0">

<TABLE borderColor="#000066" height="95%" cellSpacing="0" cellPadding="0" width="87%" align="center" border="1">
  <TBODY>
   <TR>
    <TD height="100%">
     <TABLE cellSpacing="0" cellPadding="0" width="100%" bgColor="#000066">
        <TBODY>
          <TD width="25%" height="100%" align=left valign="middle">
	   <img src="images/logo.gif" alt="2D logo" width="140" height="100">
	  </TD>
          <TD width="25%" align=center valign="middle">
	  <img src="images/2DURR.gif" alt="2D logo text" width="300" height="100">
	  </TD>
          <TD width="50%" align=right valign="middle">
	  <img src="images/fade.jpg" alt="Scouts Logo" width=345 height="110" border=0>
	  </TD>
        </TR>
  
 </TABLE>
      <!--Top Menu-->
      <!--end top menu-->
      <!--Below top menu-->
<TABLE height="100%" cellSpacing=0 cellPadding=0 width="100%" border=0>
         <TR vAlign=top><!--old value = 110-->
          <TD width=11% height="758" align=left vAlign=top bgcolor="#000066"><table width="99%" border="0" align="left" cellpadding="0" cellspacing="0" bordercolor="#FFFFFF" class="TopMenu">
            <tr>
              <td bgcolor="#000066" class="LeftRight"><div align="center"><a href="?id=home">Home</a></div></td>
            </tr>
            <tr>
              <td bgcolor="#000066">
		  <div align="center" class="LeftRight"><a href="?id=about">About Us</a> </div>			  </td>
            </tr>
            <tr>
              <td bgcolor="#000066" class="LeftRight">
		  <div align="center"><a href="?id=boats">Boats</a></div>			  </td>
            </tr>
            <tr>
              <td bgcolor="#000066" class="LeftRight"><div align="center"><a href="?id=tescosport">Tesco Sports </a></div></td>
            </tr>
            <tr>
              <td bgcolor="#000066" class="LeftRight"><div align="center"><a href="?id=activekids">Active Kids</a> </div></td>
            </tr>
            <tr>
              <td bgcolor="#000066" class="LeftRight">
		  <div align="center"><a href="?id=fund">Fundraising</a></div>			  </td>
            </tr>
            <tr>
             <td bgcolor="#000066" class="LeftRight">
		  <div align="center"><a href="?id=join">Join</a></div>			  </td>
            </tr>
            <tr>
              <td bgcolor="#000066" class="LeftRight">
		  <div align="center"><a href="?id=photo">Photo Gallery</a></div>			  </td></tr>
		  <tr><td bgcolor="#000066" class="LeftRight">
		  <div align="center"><a href="?id=panto">Pantomimes</a></div>			  </td>
            </tr>
            <tr>
              <td bgcolor="#000066" class="LeftRight">
		  <div align="center"><a href="?id=quiz">Quiz Nights</a> </div>			  </td>
            </tr>
            <tr>
              <td bgcolor="#000066" class="LeftRight">
		  <div align="center"><a href="?id=race">Race Nights</a> </div>			  </td>
            </tr>
            <tr>
              <td bgcolor="#000066" class="LeftRight">
		  <div align="center"><a href="http://www.shop.2nddurrington.org.uk/" target="_blank">Online Shopping</a> </div>			  </td>
            </tr>
            <tr>
             <td bgcolor="#000066" class="LeftRight">
		  <div align="center"><a href="?id=res">Resources</a></div>			  </td>
            </tr>
            <tr>
              <td bgcolor="#000066" class="LeftRight">
		  <div align="center"><a href="?id=rn">RN Recognition</a></div>			  </td>
            </tr>
		<tr>
              <td bgcolor="#000066" class="LeftRight">
		  <div align="center"><a href="?id=gc">Group Camp</a></div>			  </td>
            </tr>
		<tr>
              <td bgcolor="#000066" class="LeftRight">
		  <div align="center"><a href="?id=open">Group Open Day</a></div>			  </td>
            </tr>
            <tr>
              <td border="#ffffff" bgcolor="#000066" class="LeftRight">
		  <div align="center"><a href="?id=beavers">Beavers</a></div>			  </td>
            </tr>
            <tr>
              <td border="#ffffff" bgcolor="#000066" class="LeftRight">
		  <div align="center"><a href="?id=cubs">Cubs</a></div>			  </td>
            </tr>
            <tr>
              <td border="#ffffff" bgcolor="#000066" class="LeftRight">
		  <div align="center"><a href="?id=scouts">Scouts</a></div>			  </td>
            </tr>
            <tr>
              <td border="#ffffff" bgcolor="#000066" class="LeftRight">
		  <div align="center"><a href="?id=explorers">Explorers</a></div>			  </td>
            </tr>
            <tr>
              <td border="#ffffff" bgcolor="#000066" class="LeftRight"><div align="center"><a href="?id=info">Info</a></div></td>
            </tr>
            <tr>
              <td border="#ffffff" bgcolor="#000066" class="LeftRight"><div align="center"><a href="?id=links">Links</a></div></td>
            </tr>
            <tr>
              <td border="#ffffff" bgcolor="#000066" class="LeftRight">
		  <div align="center"><a href="?id=login">Login</a></div></td>
            </tr>
            <tr>
             <td border="#ffffff" bgcolor="#000066" class="LeftRightB">
		   <div align="center"><a href="?id=sitemap">Site Map</a> </div></td>
            </tr>
            <tr>
              <td width="104" bgcolor="#000066" class="LeftRight"></td>
            </tr>
          </table>
            
		</TD>
          <TD width="89%" height="100%" vAlign="top">
            <TABLE width="100%" cellPadding="3" cellSpacing="0">
              <TBODY>
              <TR vAlign=top>
                <TD width="80%" height="100%" style: border-top #ffffff 2px>

			<!--FrontPage Feature-->
                  <TABLE class="PageHeader" cellSpacing="0" cellPadding="0" width="100%" border="0">
                    <TBODY>
                    <TR>
                      <TD>2nd Durrington Sea Scout Group</TD>
                    </TR>
				</TBODY>
				</TABLE>
			  <?php
			  switch ($HTTP_GET_VARS[id]) {
//Default - case
default:
include "home.php";
break; 
//Active Kids - case
case 'activekids':
include 'activekids.php';
break;
//Resources - case
case 'res':
include 'res.php';
break;
//tescosport - case
case 'tescosport':
include 'tescosport.php';
break;
//Resources downloads - case
case 'resdl':
include 'resdownload.php';
break;
//Resources uploads - case
case 'resuploads':
include 'resupload.php';
break;
//About - case
case 'about':
include 'about.php';
break;
//change password - case
case 'changepwd';
include 'pwchange.php';
break;
//change password check- case
case 'changepwdck';
include 'pwchangeck.php';
break;
//admin user password reset- case
case 'adminuserpwrst';
include 'adminuserpwrst.php';
break;
//admin user password reset check- case
case 'adminuserpwrstck';
include 'adminuserpwrstck.php';
break;
//Leader file upload- case
case 'gupload';
include 'gupload.php';
break;
//Leader file delete- case
case 'gdelete';
include 'gdelete.php';
break;
//Leader file deleted- case
case 'gdeleted';
include 'gdeleted.php';
break;
//Leader file download- case
case 'gdownload';
include 'gdownload.php';
break;
//LeaderFile menu- case
case 'gdocs';
include 'gdocs.php';
break;
//Welcome Packs file upload- case
case 'wupload';
include 'wupload.php';
break;
//Welcome Packs file delete- case
case 'wdelete';
include 'wdelete.php';
break;
//Welcome Packs file deleted- case
case 'wdeleted';
include 'wdeleted.php';
break;
//Welcome Packs file download- case
case 'wdownloads';
include 'wdownload.php';
break;
//Welcome Packs File menu- case
case 'wdocs';
include 'wdocs.php';
break;
//About - case
case 'member':
include 'member.php';
break;
//Add user - case
case 'adduser':
include 'adduser.php';
break;
//doAdd user - case
case 'doAdduser':
include 'doAdduser.php';
break;
//View users - case
case 'viewusers':
include 'viewusers.php';
break;
//Open Day - case
case 'open':
include 'openday.php';
break;
//Photo Gallery - case
case 'photo':
include 'photo.php';
break;
//Scouts in Pantoland - case
case '2000':
include 'pantoland.php';
break;
//Scouts Pantotime - case
case '2001':
include 'pantotime.php';
break;
//Jackanory's Story - case
case '2002':
include 'jackanory.php';
break;
//The Night Before Christmas - case
case '2003':
include 'christmas.php';
break;
//Beyond The Beanstalk - case
case '2004':
include 'beanstalk.php';
break;
//The Snow Queen - case
case '2005':
include 'snowqueen.php';
break;
//Ali Baba - case
case '2006':
include 'alibaba.php';
break;
//Boats - case
case 'boats':
include 'boats.php';
break;
//Boats 2- case
case 'boats2':
include 'boats2.php';
break;
//Contact - case
case 'contact':
include 'form.php';
break;
//Easy Fundraising - case
case 'efr':
include 'efr.php';
break;
//Fundraising - case
case 'fund':
include 'fund.php';
break;
//Fundraising comitee- case
case 'fundcom':
include 'fundraisingcommittee.php';
break;
//Jumble - case
case 'jumble':
include 'jumble.php';
break;
//panto - case
case 'panto':
include 'panto.php';
break;
//quiz - case
case 'quiz':
include 'quiz.php';
break;
//race - case
case 'race':
include 'race.php';
break;
//ink - case
case 'ink':
include 'ink.php';
break;
//gift aid - case
case 'giftaid':
include 'giftaid.php';
break;
//join - case
case 'join':
include 'join.php';
break;
//rn - case
case 'rn':
include 'rnrecognition.php';
break;
//rn2 - case
case 'rn2':
include 'rnrecognition2.php';
break;
//rn3 - case
case 'rn3':
include 'rnrecognition3.php';
break;
//rn4 - case
case 'rn4':
include 'rnrecognition4.php';
break;
//beavers - case
case 'beavers':
include 'beavers.php';
break;
//beavers files - case
case 'bdocs':
include 'bdocs.php';
break;
//beavers uploads- case
case 'bupload':
include 'bupload.php';
break;
//beavers delete- case
case 'bdelete':
include 'bdelete.php';
break;
//beavers deleted- case
case 'bdeleted':
include 'bdeleted.php';
break;
//beavers letters - case
case 'bletters':
include 'bletter.php';
break;
//beavers downloads- case
case 'bdownloads':
include 'bdownload.php';
break;
//beavers programe- case
case 'bprograme':
include 'bprograme.php';
break;
//What are Beaver Scouts - case
case 'whatisbeavers':
include 'whatisbeavers.php';
break;
//Beaver Award Scheme - case
case 'awardsbeavers':
include 'awardsbeavers.php';
break;
//Beaver Activities - case
case 'activitiesbeavers':
include 'activitiesbeavers.php';
break;
//Beaver Sleepovers - case
case 'sleepoverbeavers':
include 'sleepoverbeavers.php';
break;
//Beaver Prommise & Moto - case
case 'prombeavers':
include 'prombeavers.php';
break;
//Beaver FAQs - case
case 'faqbeavers':
include 'faqbeavers.php';
break;
//cubs - case
case 'cubs':
include 'cubs.php';
break;
//cubs downloads - case
case 'downloadscubs':
include 'cubsdownloads.php';
break;
//cubs downloads new - case
case 'cdownload':
include 'cdownload.php';
break;
//Cubs file delete- case
case 'cdelete';
include 'cdelete.php';
break;
//Cubs file deleted- case
case 'cdeleted';
include 'cdeleted.php';
break;
//Cubs files- case
case 'cdocs';
include 'cdocs.php';
break;
//cubs - case
case 'programecubs':
include 'cubsprograme.php';
break;
//cubs letters- case
case 'letterscubs':
include 'cubsletters.php';
break;
//cubs letters new - case
case 'cletter':
include 'cletter.php';
break;
//cubs programe- case
case 'programecubs':
include 'cubsprograme.php';
break;
//cubs programe new - case
case 'cprograme':
include 'cprograme.php';
break;
//cubs badges- case
case 'badgescubs':
include 'cubsbadges.php';
break;
//cubs camps- case
case 'campscubs':
include 'cubscamps.php';
break;
//cubs games - case
case 'games':
include 'games.php';
break;
//cubs uploads - case
case 'cupload':
include 'cupload.php';
break;
//scouts - case
case 'scouts':
include 'scouts.php';
break;
//scouts files - case
case 'sdocs':
include 'sdocs.php';
break;//scouts uploads- case
case 'supload':
include 'supload.php';
break;//scouts delete- case
case 'sdelete':
include 'sdelete.php';
break;//scouts deleted- case
case 'sdeleted':
include 'sdeleted.php';
break;//scouts letters - case
case 'sletters':
include 'sletter.php';
break;//scouts downloads- case
case 'sdownloads':
include 'sdownload.php';
break;//scouts programe- case
case 'sprograme':
include 'sprograme.php';
break;
//explorers - case
case 'explorers':
include 'explorers.php';
break;
//explorers downloads - case
case 'downloadsblake':
include 'explorersdownloads.php';
break;
//explorers downloads - case
case 'edownloads':
include 'edownload.php';
break;
//explorers delete files - case
case 'edelete':
include 'edelete.php';
break;
//explorers deleted file - case
case 'edeleted':
include 'edeleted.php';
break;
//explorers files - case
case 'edocs':
include 'edocs.php';
break;
//explorers uploads new- case
case 'eupload':
include 'eupload.php';
break;
//explorers letters - case
case 'lettersblake':
include 'explorersletters.php';
break;
//explorers letters - case
case 'eletters':
include 'eletter.php';
break;
//explorers programe - case
case 'programeblake':
include 'explorersprograme.php';
break;
//explorers programe - case
case 'eprograme':
include 'eprograme.php';
break;
//explorers badges - case
case 'badgesblake':
include 'explorersbadges.php';
break;
//young leaders - case
case 'youngleaders':
include 'yl.php';
break;
//dofe - case
case 'dofe':
include 'dofe.php';
break;
//info - case
case 'info':
include 'info.php';
break;
//links - case
case 'links':
include 'links.php';
break;
//login - case
case 'login':
include 'loginform.php';
break;
//logout - case
case 'logout':
include 'logout.php';
break;
//sections - case
case 'sections':
include 'sections.php';
break;
//news archive - case
case 'newsa':
include 'news.php';
break;
//sitemap - case
case 'sitemap':
include 'sitemapl.php';
break;
//groupcamp - case
case 'gc':
include 'groupcamp.php';
break;
//IT Support - case
case 'itsupport':
include 'itsupport.php';
break;
//Video - case
case 'viview':
include 'viview.php';
break;
}
?>
                <TD width="30%" border="2" bordercolor="#000066" bgcolor='#ffffff'>

			<!--News Event Notices-->
                  <table border="1" bordercolor="#000066"><tr><td><span class="style7"><strong>Coming Soon</strong></span> <br>
                        <span class="Title">
                        <?php include'forumfeeds/forum_coming_soon_feed.php'?>
                        </span>
                        <P>                  
                  <P class="style7"><strong>News 
                  </strong>
                  <TABLE class="Notice" cellSpacing="0" cellPadding="0" width="200" align="center">
                    <TBODY>
                      
                      <TR>
                        <TD bgcolor="#000066" class="Title">
					<?php include'forumfeeds/forum_news_feed.php'?>
					</TD>
                      </TR>
                    </TBODY>
				</TABLE> </td></tr></table>                   
				</TD>
      </TR>
  </TBODY>
  </TABLE> 	  </TD>
  </TR>
  </TABLE>
  </TD>
    </TR>
  <TR bgColor="#000066">
    <TD height="16" bgcolor="#000066" class="Contrast">
 © 2004-2007 2nd Durrington Sea Scout Group (RN Unit No.61) Registered Charity No. 305912 
</TD>
</TR>
</TBODY>
</TABLE>


<script src="http://www.google-analytics.com/urchin.js" type="text/javascript">
</script>
<script type="text/javascript">
_uacct = "UA-2723721-1";
urchinTracker();
</script></BODY>
</HTML>

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.