Posted on Friday 18th April 2008 at 04:39 PM
So im having troubles getting this to work with the user system properly. I did make the user system way back, Before it was on TT. But I havent done any coding since. Heres my PHP Nav script.
Now heres my problem. I have the login box included in my right nav. and when i log in, or logout or do anything, I loads twice. Once in the right nav. and then in the main content box.
Any Help?
Code
<?php
$page = Array();
$page['home'] = "main";
$page['error'] = "404";
$page['format'] = ".php";
$page['trig'] = "go";
if (empty($_GET[($page['trig'])])) $pg = $page['home'].$page['format'];
elseif (!ctype_alpha($_GET[($page['trig'])])||!file_exists($_GET[($page['trig'])].$page['format'])) $pg = $page['error'].$page['format'];
else $pg = $_GET[($page['trig'])].$page['format'];
include($pg);
?>
$page = Array();
$page['home'] = "main";
$page['error'] = "404";
$page['format'] = ".php";
$page['trig'] = "go";
if (empty($_GET[($page['trig'])])) $pg = $page['home'].$page['format'];
elseif (!ctype_alpha($_GET[($page['trig'])])||!file_exists($_GET[($page['trig'])].$page['format'])) $pg = $page['error'].$page['format'];
else $pg = $_GET[($page['trig'])].$page['format'];
include($pg);
?>
Now heres my problem. I have the login box included in my right nav. and when i log in, or logout or do anything, I loads twice. Once in the right nav. and then in the main content box.
Any Help?
I am better than you. Thats textbook.