Right,
after
PHP Code:
if ($bbuserinfo[userid]==0 and $checkpwd) {
it should look like
PHP Code:
// cpheader("<title>Forums admin</title>");
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
<meta content="text/html; charset=windows-1252" http-equiv="Content-Type" />
<meta http-equiv="MSThemeCompatible" content="yes" />
<link rel="stylesheet" href="cp2.css" />
<title>vBulletin Moderators' Control Panel</title> <script language="Javascript">
// attempt to rename the frameset title
if (typeof(parent.document) != 'undefined' && typeof(parent.document) != 'unknown' && typeof(parent.document.title) == 'str$
{
if (document.title != '')
{
parent.document.title = document.title;
}
else
{
parent.document.title = "vBulletin Community Forum Control Panel";
}
}
</script>
</head>
<body onload="document.forms.submitrow.loginusername.focus()">
<p> </p><p> </p>
<br><br><br>
<form method="post" id="submitrow">
<input type="hidden" name="s" value="<?php echo $session[sessionhash]; ?>">
<input type="hidden" name="action" value="login">
<input type="hidden" name="redirect" value="<?php
if ($HTTP_SERVER_VARS['REQUEST_URI']!="") {
$url = $HTTP_SERVER_VARS['REQUEST_URI'];
} else {
if ($PATH_INFO) {
$url = $PATH_INFO;
} else {
$url = $PHP_SELF;
}
if ($QUERY_STRING) {
$url .= "?$QUERY_STRING";
}
}
$url=ereg_replace("sessionhash=[a-z0-9]{32}&","",$url);
$url=ereg_replace("\\?sessionhash=[a-z0-9]{32}","",$url);
$url=ereg_replace("s=[a-z0-9]{32}&","",$url);
$url=ereg_replace("\\?s=[a-z0-9]{32}","",$url);
echo htmlspecialchars($url);
?>">
<table cellpadding="1" cellspacing="0" border="0" width="450" align="center" class="tborder"><tr><td>
<table cellpadding="4" cellspacing="0" border="0" width="100%">
<tr>
<td class="tcat" align="center"><b>Please Log In:</b></td>
</tr>
</table>
<!-- logo and version -->
<table cellpadding="4" cellspacing="0" border="0" width="100%" class="navbody">
<tr valign="bottom">
<td><img src="cp_newlogo.gif" width="160" height="66" alt="cplogo" title="vBulletin ©2000-2002 Jelsoft Enterpr$
<td><b><a href="../index.php">MGOForum</a></b><br />vBulletin Administrators' Control Panel<br /> </td>
</tr>
</table>
<!-- /logo and version -->
<table cellpadding="4" cellspacing="0" border="0" width="100%" class="submitrow">
<tr>
<td width="100" align="right" class="button"><u>U</u>sername</td>
<td><input type="text" name="loginusername" value="" size="40" accesskey="u" /></td>
</tr>
<tr>
<td align="right" class="button"><u>P</u>assword</td>
<td><input type="password" name="loginpassword" size="40" accesskey="p" /></td>
</tr>
<tr>
<td colspan="2" align="center">
<input type="submit" value=" Log In " accesskey="s" />
</td>
</tr>
</table>
</td></tr></table>
</form>
<p align="center"><font size="1">vBulletin v<?php echo $templateversion ?> Administrator Control Panel</font></p>
<?php
cpfooter();
exit;
}
?>
(Note, this was to the actual *end* of the file, in other words, the last } bracket is the end of the
PHP Code:
if ($bbuserinfo[userid]==0 and $checkpwd) {
check)