Code:
<html>
<head>
<title>MorphTeque :: Index</title>
<link href="http://www.morphteque.alex10819.net/forum/templates/subSilver/subSilver.css" type="text/css" rel="stylesheet">
<link type="image/vnd.microsoft.icon" href="http://www.morphteque.alex10819.net/images/favicon.png" rel="icon">
</head>
<body>
<h1 align="center"><a href="/">
<img width="275" height="75" alt="" src="http://www.morphteque.alex10819.net/images/logo.png"></a></h1><a href="/"> </a>
<p align="center"><a href="/"><strong></strong></a><strong><a href="/">Home</a> <a href="/files/">Files</a> <a href="/forum">Forums</a> </strong> </p>
<h2>Welcome to MorphTeque</h2>
<p>This website is all about TI-83+ BASIC programming and a few other topics.
<br />Feel free to browse around! </p>
<p>Click the link abouve to view the forums.</p>
<?php if(!isset($_COOKIE['phpbb2mysql_sid'])) {
echo '<table><tr>
<th align="center"><strong>Log In</strong></th><th valign="center" align="center"><strong>News</strong></th></tr><tr><td>
<form style="display: inline;" name="login" method="post" action="/forum/login.php">
<p><strong>Username:</strong>
<input type="text" value="" onfocus="this.value=\'\'" name="username" size="10">
<br></p> <strong>Password:</strong>
<input type="password" value="" onfocus="this.value=\'\'" name="password" size="10">
<br> <strong>Autologin:</strong>
<input type="checkbox" name="autologin">
<input type="hidden" value="" name="redirect">
<br>
<input type="submit" class="forminput" value="Login" name="login"></form>
</td><td>';
}
?> <!-- Start Alex's news script --><?php
include('./forum/config.php');
mysql_connect('localhost', $dbuser, $dbpasswd);
mysql_select_db($dbname);
$result = mysql_query("SELECT * FROM phpbb_topics WHERE forum_id='1' ORDER BY topic_id DESC LIMIT 5")
or die(mysql_error());
while($row = mysql_fetch_assoc($result)) {
$post = mysql_fetch_assoc(mysql_query("SELECT * FROM phpbb_posts_text WHERE post_id='{$row['topic_first_post_id']}' LIMIT 1"));
$post2 = mysql_fetch_assoc(mysql_query("SELECT * FROM phpbb_posts WHERE post_id='{$row['topic_first_post_id']}' LIMIT 1"));
echo '<table border="1px" width="100%"><tr><td><strong>Title</strong></td><td width="100%"><strong>Description</strong></td><td><strong>Date</strong></td></tr><tr><td>'.$post['post_subject'].'</td><td>'.$post['post_text'].'</td><td>'.date('F d, Y (h:i)',$post2['post_time']).'</td></tr></table>';
}
?> <!-- END Alex's news script --></td>
</body>
</html>
This is the home page code to my website (link at the bottom) and I just wanted to know where I would put in the information displaying a link where the log in section would be when the person is not logged in. I believe (according to an IM to Kerm) that I have to stick "append_sid" somewhere. If you need more information just tell me.
EDIT:(Sorry about the semi-long code.)And I changed the name so if I have more questions I can just post here.