Tried what you suggested and it did not work out. Still the same.
What i have now done is removed all code so that all i have is :-
alertz_VIP.php
define('IN_ICYPHOENIX', true);
if (!defined('IP_ROOT_PATH')) define('IP_ROOT_PATH', './');
if (!defined('PHP_EXT')) define('PHP_EXT', substr(strrchr(__FILE__, '.'), 1));
// Include files
include(IP_ROOT_PATH . 'common.' . PHP_EXT);
//Start session management
$user->session_begin();
$auth->acl($user->data);
$user->setup();
//End session management
if (!$user->data['session_logged_in'])
{
redirect(append_sid(CMS_PAGE_LOGIN . '?redirect=alertz_VIP.' . PHP_EXT, true));
exit;
}
else
// Yes they are
{
$template->assign_vars(array(
'USERNAME' => htmlspecialchars($user->data[username]),
)
);
//full_page_generation();
full_page_generation('alertz_VIP.php', , '', '');
}
and the template alertz_VIP.tpl
<style type="text/css">
<!--
.style7 {
color: #006600;
font-weight: bold;
font-size: 18px;
}
.style14 {color: #003300; font-weight: bold; }
.style16 {
color: #000066;
font-style: italic;
}
.style25 {
color: #FF0000;
font-weight: bold;
font-size: 12px;
}
.style28 {
font-size: 12px;
color: #330000;
}
.style29 {
font-size: 12px
}
.style31 {color: #003300; font-weight: bold; font-size: 16px; }
.style33 {
color: #000099;
font-weight: bold;
font-style: italic;
font-size: 18px;
}
.style34 {
color: #FF0000;
font-weight: bold;
font-size: 24px;
}
.style35 {font-size: 12px; color: #003300; }
.style36 {
color: #FF0000;
font-weight: bold;
font-size: 14px;
font-style: italic;
}
.style38 {color: #003300; font-weight: bold; font-size: 16px; font-style: italic; }
.style39 {font-size: x-small}
.style40 {color: #FF0000; font-weight: bold; font-size: xx-small; font-style: italic; }
-->
</style>
<!-- INCLUDE overall_header.tpl -->
<h1 align="center" class="style34"><blink>Scotbirds Alertz - Rare and Scarce</blink></h1>
<p align="center" class="style34 style39"> </p>
<p align="center" class="style40"> </p>
<h3 align="center" class="style14">If you have seen something unusual / rare then please call it in on -- <span class="style33">Hotline: 0333 5772473</span></h3>
<p align="center" class="style14">
<table width="90%" border="0" align="center" cellpadding="5">
<tr>
<td width="1%"><td width="5%"><td width="2%"><td width="2%"><td width="2%"><form action="alertz_VIP.php" method="GET">
<td width="2%"><td width="2%"><td width="5%"><span class="style38">Date</span><td width="3%"></td>
<td width="12%"><span class="style14">
<select name=DATE_FILTER size="1" id=DATE_FILTER onchange="this.form.submit()">
<option value="">Select </option>
<option value={DATE_FILTER}></option>
</select>
</span></td>
<td width="1%"> </td>
<td width="7%"><span class="style16"><span class="style14"><span class="style31">Region</span></span></span></td>
<td width="22%"><span class="style16"><span class="style14">
<select name=REGION_FILTER size="1" id=REGION_FILTER onchange="this.form.submit()">
<option value="">Select </option>
<option value={REGION_FILTER}></option>
</select>
</span></span></td>
<td width="1%"> </td>
<td width="8%"><span class="style16"><span class="style14"><span class="style31">Species</span></span></span></td>
<td width="10%"><span class="style16"><span class="style14">
<select name=SPECIES_FILTER size="1" id=SPECIES_FILTER onchange="this.form.submit()">
<option value="">Select </option>
<option value={SPECIES_FILTER}></option>
</select>
</span></span></td>
<td width="10%"><!-- Begin FreeButtons.org -->
<style>#web-buttons-id2nj62 a{display:block;color:transparent;} #web-buttons-id2nj62 a:hover{background-position:left bottom;}a#web-buttons-id2nj62a {display:none}</style>
<table id="web-buttons-id2nj62" width=0 cellpadding=0 cellspacing=0 border=0><tr>
<td style="padding-right:0px" title ="Reset Search">
<a href="http://www.scotbird.co.uk/Forum/alertz_VIP.php" title="Reset Search" style="background-image:url(images/bt2nj62.png);width:151px;height:34px;display:block;"><br/></a></td>
</tr></table><a id="web-buttons-id2nj62a"></a>
<!-- End FreeButtons.org --></td>
</table>
<p> </p>
<table width="870" border="1" align="center" cellpadding="0" cellspacing="0" bordercolor="#99CC99">
<tr>
<th width="178" class="style31" scope="col">Region</th>
<th width="184" class="style31" scope="col">Species</th>
<th width="96" class="style31" scope="col">Date</th>
<th width="96" class="style31" scope="col">Time</th>
<th width = "304" class="style31" scope="col">Comments</th>
</tr>
<!-- BEGIN alerts -->
<tr>
<th class="style7 style29" scope="col">{alerts.REGION}</th>
<th class="style25" scope="col">{alerts.SPECIES}</th>
<th class="style35" scope="col">{alerts.DATE} </th>
<th scope="col"><span class="style35">{alerts.TIME} </span></th>
<th scope="col"><span class="style28">{alerts.COMMENTS} </span></th>
</tr>
<!-- END alerts -->
</table>
<p align="center" class="style14"> </p>
<!-- INCLUDE overall_footer.tpl -->
using any user to login gets the same results
A -- i am logged into website already and click on the link to this page, i get faced with the log in screen, once i log in a second time i can access this page
B -- I am NOT logged in and browse to this page direct, i get asked to login then it goes to the page
User - test
password - test
website - HERE
Link called alertz only appears once a user is logged in and can be found up near the header logo.
Any suggestions