<?php
chdir('Foro'); // path to MyBB
define("IN_MYBB", 1);
require './global.php';
?>
<?php
if($mybb->user['uid'])
{
// The user is logged in, say Hi
echo "Hey, $mybbuser[username].<br>
Thanks for logging in.";
}
else
{
// The user is not logged in, Display the form
echo "<form action='Foro/member.php' method='post'>
Username: <input type='text' name='username' size='25' maxlength='30' /><br />
Password: <input type='password' name='password' size='25' />
<input type='hidden' name='action' value='do_login'>
<input type='hidden' name='url' value='http://mybb-es.com/index.php' />
<input type='submit' class='submit' name='submit' value='Login' /></form><br>";
}
?>