PDA

View Full Version : Hconstant db_server already defined when it's not?



ashleycox
05 Jun 2011, 06:48 AM
Am building a new website using the login system with admin features from jpmaster77. am having some issues; the main homepage of the site works absolutely fine, no problems. However, i'm having problems with my admin center. At the top of all my admin pages (in the /admin directory) i have this:

<?php
include("../includes/session.php");
if(!$session->isAdmin()){
header("Location: ../index.php");
}
else{ // continue with admin } ?>

It's telling me that all the constants are already defined, when they're not.

I'm stuck; have no idea what to do.
If anybody could help, it woudl be much appreciated.
I can't post the error page, or contents of the files here, due to the character limit; you can download the zipfile with the entire sites files:
http://dl.dropbox.com/u/9129325/theparafamily.zip
thanks and Sorry for such a long post!