Quote:
Originally Posted by OceanLove
Hmm.. I didn't know that SMF has multiforums too.. =x
|
But as you can see it doesn't work without problems and it's an outdated version...
Just forgot to post the code of index.php :
PHP Code:
<?php
if(!file_exists('../config.php'))
{
echo "SMFXXL config file is missing, please correct this problem.";
die();
}
include("../config.php");
<html>
<head>
<title></title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<SCRIPT LANGUAGE="JavaScript">
<!--
function ValidateForm()
{
var text = document.login.txtuid.value;
text = text.replace(/\s/g, "");
if(document.login.txtuid.value=="" || text.length==0)
{
alert("Please Enter login Id");
document.login.txtuid.focus();
return (false);
}
text=document.login.txtpwd.value;
text = text.replace(/\s/g, "");
if(document.login.txtpwd.value=="" || text.length==0)
{
alert("Please Enter Password....");
document.login.txtpwd.focus();
document.login.txtpwd.value="";
return (false);
}
text=document.login.txtsecure.value;
text = text.replace(/\s/g, "");
if(document.login.txtsecure.value=="" || text.length==0)
{
alert("Please Enter Security Code....");
document.login.txtsecure.focus();
document.login.txtsecure.value="";
return (false);
}
}
//-->
</SCRIPT>
<link href="style.css" rel="stylesheet" type="text/css">
</head>
<body>
<table width="100%" style="background-color: #FFFFFF">
<tr><td>
<a href="http://www.simplemachines.org/" target="_blank"><img src="images/smflogo.gif" style="float: right;" alt="Simple Machines" border="0" /></a>
<a href="http://www.smfxxl.com/" target="_blank"><img src="images/smfsmall.gif" border="0" style="float: left;" alt="SMF XXL Multiforum System" /></a>
</td></tr></table>
<div align="center" style="background-color: #FFFFFF">
<table width="100%" border="0" align="left" cellpadding="0" cellspacing="0">
<tr>
<td colspan="3"><div align="center">
<table width="100%" border="0" align="left" cellpadding="0" cellspacing="0">
<tr>
<td align="left" valign="top" height="100"></td>
</tr>
</table>
</div></td>
</tr>
<tr>
<td width="10%" align="left" valign="top"><table width="100%" border="0" align="left" cellpadding="0" cellspacing="0">
<tr>
<td> </td>
</tr ><r>
<td> </td>
</tr ><tr>
<td> </td>
</tr>
</table></td>
<td width="70%" align="left" valign="top"><table width="100%" border="0" align="left" cellpadding="0" cellspacing="0">
<tr>
<td><div align="center">
<table align="center" width="20%" border="1" cellpadding="0" cellspacing="0">
<tr><td>
<table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td colspan="3" class="content" align="center"><?php include('includes/msg.php');?></td>
</tr>
<tr>
<td colspan="3" height="10"></td>
</tr>
<form name="login" action="<?php echo $adminurl.'includes/login.php';?>" method="post" OnSubmit="return ValidateForm()">
<td colspan="3" align="center"></td>
<tr>
<td><div align="right" class="txtcont"> </div></td>
<td></td>
<td align="center">Login Id <input type="text" name="txtuid" size="20" value=""></td>
</tr>
<tr>
<td><div align="right" class="txtcont"> </div></td>
<td></td>
<td align="center">Password <input type="password" name="txtpwd" size="20" value=""></td>
</tr>
<tr>
<td><div align="right" class="txtcont"> </div></td>
<td></td>
<td align="center">Security <input type="password" name="txtsecure" size="20" value=""></td>
</tr>
<tr align="left" valign="top">
<td height="15" colspan="3"> </td>
</tr>
<tr>
<td> </td>
<td> </td>
<td align="center"><input type="submit" value="Login" name="Submit"></td>
</tr>
</form>
</table>
</td></tr>
</table>
</div></td>
</tr>
</table></td>
<td width="10%" valign="top"><table width="100%" border="0" align="left" cellpadding="0" cellspacing="0">
<tr>
<td> </td>
</tr>
</table></td>
</tr>
<tr align="left" valign="top">
<td colspan="3"><table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td></td>
</tr>
</table></td>
</tr>SMF XXL Multiforum v<?php echo $smfxxlversion; ?>
</table>
</div>
</body>
</html>