Ok so I am working on a Splash page for my site but i have 2 issues.
1. The login isn't working
2. The Facebook Connect Images doesn't show (Dose show in HTML version but not PHP)
Here is the code:
<?php
require_once( "inc/header.inc.php" );
require_once( BX_DIRECTORY_PATH_INC . "design.inc.php" );
require_once( BX_DIRECTORY_PATH_INC . "db.inc.php" );
require_once( BX_DIRECTORY_PATH_INC . "profiles.inc.php" );
check_logged();
if(!isMember()) {
echo '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Come Together Support</title>
<link media="screen" rel="stylesheet" type="text/css" href="./splash_files/style.css">
<script language="javascript" type="text/javascript">
function toggle(obj) {
if ( document.getElementById(obj).style.display != "none" ) {
document.getElementById(obj).style.display="none";
}
else {
document.getElementById(obj).style.display="block";
}
}
</script>
<script type="text/javascript" src="./splash_files/jquery.js"></script>
<script language="javascript" type="text/javascript">
function toggle2(obj) {
var el = document.getElementById(obj);
if ( el.style.display != "none" ) {
$("#" + obj).slideUp();
}
else {
$("#" + obj).slideDown();
}
}
</script>
<body id="body" style="">
<div id="mainCenter" >
<div id="mainContainer">
<div id="nav">
<a href="#" class="navLogo"></a>
<div class="loggedIn">
<a class="login" href="join.php">join</a> <a class="login" href="member.php">login</a>
</div>
<div class="mainArea">
<div class="buttons">
</div>
<div class="btm"></div>
</div>
</div>
</div>
<div id="navSearch">
<a href="#" class="searchBtn" title="search" onclick="document.srchfrm.submit()"></a>
</div>
<div id="shadowContainer">
<div id="mainContent" class="homepage">
<script language="javascript" type="text/javascript">
function clearval(obj) {
document.getElementById(obj).value="";
}
</script>
<div id="home">
<div id="main">
<div id="illustration">
<img src="./splash_files/home.png"><br>
<img src="./splash_files/network.jpg" height="300px" width="400px">
</div>
<div id="quotes">
</div>
</div>
<div id="sidebar">
<h1>Instantly make friends and find the help you need</h1>
<div id="loginBox">
<div class="box">
<div class="top">
<div class="floatLeft">
login to your account now
</div>
<form onsubmit="validateLoginForm(this); return false;" method="post" action="member.php" id="login_box_form">
<input type="text" name="ID" value="username" maxlength="20" class="default login" onclick="clearval('id');" style="margin-right: 5px;">
<input type="password" name="Password" value="password" class="default login" onclick="clearval('password');">
<input type="hidden" name="login" value="1">
<a href="member.php" id="loginButton" class="sidebarButton floatLeft" onclick="document.loginForm.submit();"><span>login</span></a>
<div class="legalText">
<a href="forgot.php">Forgot password?</a>
</div>
</div>
<div class="bottom"></div>
</div>
</div>
<div id="joinBox">
<div class="box">
<div class="top">
<center>
<div style="background-image: url("modules/deano/deanos_facebook_connect/templates/base/images/fbconnectbutsm.png"); width: 103px; height: 39px; float: left; margin-right: 2px; cursor: pointer;" onclick="window.open ("modules/?r=deanos_facebook_connect/login_form","_self");"></div>
</center>
</div>
<div class="bottom"></div>
</div>
</div>
</div>
</div>
</div>
</div>
<div id="footer">
<div id="links" class="longer">
<div>
<a href="contact.php">contact us</a> |
<a href="about_us.php">about us</a> |
<a href="privacyphp">privacy policy</a> |
<a href="terms_of_use.php">terms of use</a>
</div>
</div>
<div id="copyright">Copyright © 2013 Come Together Support</a></div>
</div>
</div>
</div>
</body></html>';
}
else {
header("Location: index.php");
}
?>