ric323, main.php is the main page in my site which only includes 3 inlcudes. look.
Code: Select all
<html>
<head>
<title>Siccness Records 2009</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<meta name="keywords" content="Siccness Records, Siccness, Sicc, Sicc Rec, Sniper, Double G, Fatal, Lil Chill, AC Skrill, sickness, siccmade">
<meta name="description" content="Siccness Records Underground Musicc. Download free music and buy your favorite Sicc Rec albums.
">
</head>
<body bgcolor="#333333" background="images/body.gif" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
<!-- ImageReady Slices (index.psd) -->
<p> </p>
<div align="center"></div>
<table width="851" border="0" align="center" cellpadding="0" cellspacing="0" id="Table_01">
<tr>
<td colspan="2"> <img src="images/top.jpg" alt="" width="671" height="97" border="0" usemap="#Map2"></td>
<td width="179" rowspan="3" align="center" valign="top" background="images/right1.jpg"><br>
<?php include('divLogin.php'); ?>
</td>
<td width="1"> <img src="images/spacer.gif" width="1" height="97" alt=""></td>
</tr>
<tr>
<td colspan="2"><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="671" height="33">
<param name="movie" value="flash/top.swf">
<param name="quality" value="high">
<embed src="flash/top.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="671" height="33"></embed></object>
</td>
<td> <img src="images/spacer.gif" width="1" height="33" alt=""></td>
</tr>
<tr>
<td width="377" rowspan="2" align="center" valign="top" background="images/middle1.jpg">
<?php include('divMiddle1.php');?>
</td>
<td width="294" rowspan="2"> <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="294" height="179">
<param name="movie" value="flash/Middle2.swf">
<param name="quality" value="high">
<embed src="flash/Middle2.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="294" height="179"></embed></object></td>
<td> <img src="images/spacer.gif" width="1" height="140" alt=""></td>
</tr>
<tr>
<td rowspan="2" align="center" valign="top" background="images/right2.jpg">
<?php include('divRight2.php');?>
</td>
<td> <img src="images/spacer.gif" width="1" height="39" alt=""></td>
</tr>
<tr>
<td colspan="2" rowspan="2"> <img src="images/middle3.jpg" alt="" width="671" height="271" border="0" usemap="#Map"></td>
<td> <img src="images/spacer.gif" width="1" height="48" alt=""></td>
</tr>
<tr>
<td align="center" valign="top" background="images/right3.jpg"><br>
<img src="divRandom.php" />
</td>
<td> <img src="images/spacer.gif" width="1" height="223" alt=""></td>
</tr>
</table>
<!-- End ImageReady Slices -->
<map name="Map">
<area shape="rect" coords="309,158,659,257" href="merchandise.php">
<area shape="rect" coords="53,57,245,247" href="downloads.php">
<area shape="rect" coords="192,115,213,161" href="downloads.php">
</map>
</body>
</html>
<STYLE type="text/css">
<!--
BODY
{
scrollbar-face-color: #000000;
scrollbar-highlight-color: #FFFFFF;
scrollbar-3dlight-color: #999999;
scrollbar-darkshadow-color: #CCCCCC;
scrollbar-shadow-color: #666666;
scrollbar-arrow-color: #FFFFFF;
scrollbar-track-color: #333333;
}
-->
</STYLE>
and divLogin.php is
Code: Select all
<?php echo "<?xml version=\"1.0\" encoding=\"iso-8859-1\"?".">"; ?><!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" >
<head runat="server">
<meta http-equiv="Content-Type"
content="text/html; charset=iso-8859-1" />
<meta name="Robots" content="NOINDEX" />
<meta http-equiv="PRAGMA" content="NO-CACHE" />
<link rel="StyleSheet" type="text/css" href="StyleSheet.css">
<title>Siccness Records</title>
</head>
<body bgcolor="#333333" link="#CCCCCC"><html>
<head>
<title>Siccness Records</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<?php
function display_login_box()
{
echo "<div class='LoggedOut'>";
echo '<center>
Please Log In<br /><form method="POST" action="forum/ucp.php?mode=login">
<p>Username: <br /><input type="text" name="username" size="15"><br/>
Password: <br /><input type="password" name="password" size="15"></font><br/>
<font color="#FFFFFF" size="1">Remember Me?</font><input type="checkbox" name="autologin name="remember" value="1" checked=yes"><br /><br />
<input type="submit" value="Login" name="login">
<input type="hidden" name="redirect" value="../main.php"><br /><br /><a href="register.php">Register Here</a><br><br>Forgot Password?
</p></form>';
}
define('IN_PHPBB', true);
$phpbb_root_path = 'forum/';
$phpEx = substr(strrchr(__FILE__, '.'), 1);
include($phpbb_root_path . 'common.' . $phpEx);
include($phpbb_root_path . '/includes/functions_display.' . $phpEx);
// Start session management
$user->session_begin();
$auth->acl($user->data);
$user->setup();
$my_avatar = get_user_avatar($user->data['user_avatar'], $user->data['user_avatar_type'], $user->data['user_avatar_width'], $user->data['user_avatar_height']);
$user->get_profile_fields($user->data['user_id']);
if($user->data['is_registered'])
{
//User is already logged in
echo "<div class='Welcome'> ";
echo "Welcome Back!<br /><font color=#00C6FF size=2><b>";
echo "<table width='167' border='0' bgcolor='#000000'>
<tr>
<td><div align='center'><font color='#00FF00' size='2'>" . $user->data['username'];
echo "</font></div></td>
</tr>
</table>";
echo "<div class='Loggedin'>";
//Users Avatar
{
if($my_avatar==true)
{
echo($my_avatar);
}
}
// Changed includes/function_display.php CHANGED: directory, check url
//return '<img src="exforum/images/avatars/no_avatar.gif" alt="' . ((!empty($user->lang[$alt])) ? $user->lang[$alt] : $alt) . '" />';
//Also in includes/functions.php CHANGED: 3 to 0
//$redirect = meta_refresh(0, $redirect);
echo '</b></font><br /><a href="profile.php"><font color="#FFFFFF" size="1">Edit Profile</font></a>';
//Users New Messages
$l_message_new = ($user->data['user_new_privmsg'] == 1) ? $user->lang['NEW_PM'] : $user->lang['NEW_PMS'];
$l_privmsgs_text = sprintf($l_message_new, $user->data['user_new_privmsg']);
echo '<br /><br /><font color=#FFFFFF size=2><a href="' . append_sid("messages.php") . '">' . $l_privmsgs_text . '</a><br />';
//Log Out
echo '</b></font><br /><br /><br /><a href="' . append_sid("{$phpbb_root_path}ucp.$phpEx", 'mode=logout', true, $user->session_id ) . '"><a href="logout.php?redirect=main.php"><center><font color="#FFFFFF" size="1">log out</font></a><br />';
//Time and Date of User
//echo '<br /><font size=1 color=#FFFFFF>' . $user->format_date(time());
}
else
{
$username = request_var('username', '', true);
$password = request_var('password', '', true);
$autologin = (!empty($_POST['autologin'])) ? true : false;
$result = $auth->login($username, $password, $autologin);
if ($result['status'] == LOGIN_SUCCESS)
{
//User was successfully logged in
//Redirect to the page they were viewing
$redirect = request_var('redirect', "index.php");
// append/replace SID
$redirect = reapply_sid($redirect);
meta_refresh(0, $redirect);
}
else
{
display_login_box();
}
}
?>
</div>
</div>
I don't think the other 2 php pages have anything to do with it. They are just info pages with text.
Pony99CA, yes Im sure i didn't edit any files. I wanted to get it working right first before I made any changes to the site.