0

I have integrated Joomla with a vBulletin and a CPG using jFusion .

I have set the login link of vB and CPG as http://fakesite.com/site/index.php?option=com_user&view=login&return=Zm9ydW0ucGhw , so that when a user logs into Joomla from that link , he will get redirected back to vB or CPG after a successful login .

This is happening correctly , but when I login with a wrong username and password , it just redirects back to vB or CPG without any warning, or prompting to try again .

I am using latest Joomla 1.5.x version .

How can I fix this ?

4

1 回答 1

0
$un = $_POST['username'];
$pass = md5($_POST['password']);

$sql = mysql_query("SELECT * FROM melga_eveikals_lietotaji WHERE username='$un'AND password='$pass'");
if (mysql_num_rows($sql) == 0){
header('Location: ' . $_SERVER['HTTP_REFERER']);
}
于 2012-04-24T13:29:24.983 回答