codewalker message board script fault
Posted: Tue Jun 24, 2003 8:49 am
Hello, I ave taken a script from codewalkers.
It is to build a flatfile message board service.
This is the script for the front page, however I do not seem to be able to display the form which should come up.
Why is this?
I cannot see any glaring errors....
I'm not lazy, I'll carry on looking like, but I'm stuffed if I know.
( All the pages are like this, only half the info that should be displayed, is! )
It is to build a flatfile message board service.
This is the script for the front page, however I do not seem to be able to display the form which should come up.
Why is this?
I cannot see any glaring errors....
I'm not lazy, I'll carry on looking like, but I'm stuffed if I know.
( All the pages are like this, only half the info that should be displayed, is! )
Code: Select all
<?
require "data/config.php";
?>
<title><? echo $title ?></title>
<div align="center"><? echo $stitle . $version ?></div>
<table border="0" cellspacing="1" cellpadding="0" align="center" bgcolor="#000000">
<tr>
<td bgcolor="#FFFFFF">
<table border="0" cellspacing="1" cellpadding="0" align="center">
<tr>
<td bgcolor="#C7C4D5">
<?
$lines = file('data/' . $users);
foreach($lines as $line)
{
$admin = explode("|", $line);
if ($admin[0] == $_REQUEST["user"] AND $admin[0] == $_REQUEST["password"]) {
break;
} else {
$admin = "";
}
}
if ($admin == "") {
?>
<div align="center"><b><font size="<?PHP echo $size ?>" face="<?PHP echo $font ?>">[Login]</font></b></div>
</td>
</tr>
<tr>
<td bgcolor="#F2F2F2">
<font size="<?PHP echo $size ?>" face="<?PHP echo $font ?>"><div align="center">
<form method="post">
<input type="text" name="user" value="Username">
<input type="password" name="password" value="Password">
<input type="submit" value="Login">
</div>
</font>
<?
} else {
?>
<div align="center"><b><font size="<?PHP echo $size ?>" face="<?PHP echo $font ?>">[Member Database]</font></b></div>
</td>
</tr>
<tr>
<td width="450" bgcolor="#F2F2F2">
<font size="<?PHP echo $size ?>" face="<?PHP echo $font ?>">
Welcome <? echo $admin[2] ?>, to <? echo $title ?> Member setup.<br>
<a href="admin.php?id=profile">Edit Profile</a> (Edit Your Setup/Viewing
Information)<br>
<a href="admin.php?id=delete">Delete A Post</a> (Delete One Or More Posts)</font></td>
</tr>
<tr>
<td bgcolor="#C7C4D5">
<div align="center"><font size="<?PHP echo $size ?>" face="<?PHP echo $font ?>">[Others]</font></div>
</td>
</tr>
<tr>
<td bgcolor="#F2F2F2"><font size="<?PHP echo $size ?>" face="<?PHP echo $font ?>">
<a href="admin.php?username=<? echo $user ?>&password=<? echo $password ?>&id=vmembers">View Members</a> (List Of All Members)<br>
<a href="index.php">Home</a> (Back To Message Board)
</font>
<?
}
?>
</td>
</tr>
</table>
</td>
</tr>
</table>
<div align="center"><font size="<?PHP echo $size ?>" face="<?PHP echo $font ?>"><? echo $disclaimer ?></font></div>