So, I have been looking at this for about 30 mins now and can't seem to get it to work, any ideas?
-- login.php --
PHP Code:
<?PHP
define("__PORTAL", true); //Defining the key.
include "includes/header.php";
?>
<!-- Login Script Here -->
<?PHP
define("__PORTAL", true); //Defining the key.
require "includes/footer.php";
?>
-- includes/header.php --
PHP Code:
<?PHP
defined("__PORTAL") or die();
define("__PORTAL", true);
include "../config.php";
?>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title><?=$SITE['__NAME'];?> - Customer Portal</title>
<!--<link rel="shortcut icon" href="favicon.ico">-->
<!-- CSS -->
<link rel="stylesheet" type="text/css" href="../lib/ext/resources/css/ext-all.css">
<link rel="stylesheet" type="text/css" href="../theme/<?=$CONF['theme'];?>/style.css">
<!-- GC -->
<!-- LIBS -->
<script type="text/javascript" src="../lib/ext/adapter/ext/ext-base.<acronym title="JavaScript">js</acronym>"></script>
<script type="text/javascript" src="../lib/ext/adapter/ext/ext-all.<acronym title="JavaScript">js</acronym>"></script>
<!-- ENDLIBS -->
<script type="text/javascript" src="../lib/ext/ext-all-debug.<acronym title="JavaScript">js</acronym>"></script>
<!-- CUSTOM -->
</head>
<body scroll="no" bgcolor="#B7BBBE">
-- includes/footer.php --
PHP Code:
<?PHP
defined("__PORTAL") or die();
define("__PORTAL", true);
include "../config.php";
?>
</body>
</html>
Now when I take away the defined() on the header and footer I can get to the specific pages just fine, but when I go to login.php it all just "dies."