I require my CMS template to include a file in it's template that displays the logged in / not logged in status of my users based on another cookie on the website.
I beleive the code that does this on my other pages is
Code: Select all
<?php if(@$_SESSION['clientID']!='' && @$customeraccounturl!=''){ ?>
Welcome back <?php print $_SESSION['clientUser']?>. <a href="<?php print $customeraccounturl?>">Client area</a> / <a href="cart.php">My Basket</a><br />
<?php }else{ ?><?php } ?>
<?php if(@$enableclientlogin!=TRUE && @$forceclientlogin!=TRUE){ ?>
client login not enabled
<?php }elseif(@$_SESSION['clientID'] != ''){ ?>
Welcome back <?php print $_SESSION['clientUser']?> (<a href="clientlogin.php">My Account</a> / <a href="login.php?mode=logout">Logout</a> )<?php }else{ ?>
<a href="login.php">Login</a> / <a href="register.php">Register an Account</a><br />
<?php } ?>
Code: Select all
<?php
session_cache_limiter('none');
session_start();
ob_start(); ?><!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">
<?php include "vsadmin/db_conn_open.php" ?>
<?php include "vsadmin/includes.php" ?>
<?php include "vsadmin/inc/languagefile.php" ?>
<?php include "vsadmin/inc/incfunctions.php" ?>
<?php include "vsadmin/inc/metainfo.php" ?>
Many thanks
Martin Neil