wuxin
02-02-2001, 04:18 AM
how can i put the login form at a html file?
i use vBulletin Version 1.1.5.
and i found this hack, try but failed....
--------------------------------------------------------------------
login.php code
<?php
if ($action=="login") {
$noheader=1;
}
else {
exit;
}
require("global.php");
if ($action=="login") {
verifyusername($username,$password);
if ($url!="" and $url!="index.php") {
$username=urlencode($username);
if (strpos($url,"?")>0) {
$login="&username=$username&password=".substr(md5($password),0,strlen($password));
} else {
$login="?username=$username&password=".substr(md5($password),0,strlen($password));
}
header("Location: http://win2k/bbs/".$login);
} else {
eval("echo standardredirect(\$bbtitle,\"".gettemplate("redirect_login")."\",\"index.php\");");
}
exit;
?>
----------------------------------------------------------------------
login.html code
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
<HEAD>
<TITLE> bbs login </TITLE>
<META NAME="Generator" CONTENT="EditPlus">
<META NAME="Author" CONTENT="">
<META NAME="Keywords" CONTENT="">
<META NAME="Description" CONTENT="">
</HEAD>
<BODY BGCOLOR="#FFFFFF">
<form action="bbs/login.php" method=post>
<br>
user
<INPUT TYPE="TEXT" NAME="username" SIZE=7 MAXLENGTH=25><input type="submit" value="login" name="submit">
password
<INPUT TYPE="PASSWORD" NAME="password" SIZE=7 MAXLENGTH=13><input type="reset" value="reset" name="submit2">
<input type="hidden" name="action" value="login">
<input type="hidden" name="redirect" value="http://www.youname.com/bbs/index.php">
</form>
</BODY>
</HTML>
-------------------------------------------------------------------
Who can teach me?Thank U So So much...
and my mail:microsoft@yeah.net.
i use vBulletin Version 1.1.5.
and i found this hack, try but failed....
--------------------------------------------------------------------
login.php code
<?php
if ($action=="login") {
$noheader=1;
}
else {
exit;
}
require("global.php");
if ($action=="login") {
verifyusername($username,$password);
if ($url!="" and $url!="index.php") {
$username=urlencode($username);
if (strpos($url,"?")>0) {
$login="&username=$username&password=".substr(md5($password),0,strlen($password));
} else {
$login="?username=$username&password=".substr(md5($password),0,strlen($password));
}
header("Location: http://win2k/bbs/".$login);
} else {
eval("echo standardredirect(\$bbtitle,\"".gettemplate("redirect_login")."\",\"index.php\");");
}
exit;
?>
----------------------------------------------------------------------
login.html code
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
<HEAD>
<TITLE> bbs login </TITLE>
<META NAME="Generator" CONTENT="EditPlus">
<META NAME="Author" CONTENT="">
<META NAME="Keywords" CONTENT="">
<META NAME="Description" CONTENT="">
</HEAD>
<BODY BGCOLOR="#FFFFFF">
<form action="bbs/login.php" method=post>
<br>
user
<INPUT TYPE="TEXT" NAME="username" SIZE=7 MAXLENGTH=25><input type="submit" value="login" name="submit">
password
<INPUT TYPE="PASSWORD" NAME="password" SIZE=7 MAXLENGTH=13><input type="reset" value="reset" name="submit2">
<input type="hidden" name="action" value="login">
<input type="hidden" name="redirect" value="http://www.youname.com/bbs/index.php">
</form>
</BODY>
</HTML>
-------------------------------------------------------------------
Who can teach me?Thank U So So much...
and my mail:microsoft@yeah.net.