Modérateur: Equipe

<?php
define('IN_PHPBB', true);
$phpbb_root_path = './forum/';
$phpEx = substr(strrchr(__FILE__, '.'), 1);
include($phpbb_root_path . 'common.' . $phpEx);
$user->session_begin();
$auth->acl($user->data);
$user->setup('');
if (isset($_GET['logout']))
{
$user->session_kill();
$user->session_begin();
}
if (isset($_POST['login']))
{
$username = request_var('username', '', true);
$password = request_var('password', '', true);
$autologin = (!empty($_POST['autologin'])) ? true : false;
$viewonline = (!empty($_POST['viewonline'])) ? 0 : 1;
$admin = 0;
$result = $auth->login($username, $password, $autologin, $viewonline, $admin);
if ($result['status'] != LOGIN_SUCCESS)
{
$err = $user->lang[$result['error_msg']];
if ($result['error_msg'] == 'LOGIN_ERROR_USERNAME' || $result['error_msg'] == 'LOGIN_ERROR_PASSWORD')
{
$err = (!$config['board_contact']) ? sprintf($user->lang[$result['error_msg']], '', '') : sprintf($user->lang[$result['error_msg']], '<a href="mailto:' . htmlspecialchars($config['board_contact']) . '">', '</a>');
}
}
else
{
$auth->acl($user->data);
}
}
$template->set_filenames(array('body' => 'mon_login_body.html'));
$template->assign_vars(array(
'TITLE' => ($user->data['user_id'] != ANONYMOUS) ? $user->lang['WELCOME'] : $user->lang['LOGIN'],
'S_REGISTERED' => ($user->data['user_id'] != ANONYMOUS) ? true : false,
'S_ERROR' => $err,
'USERNAME' => $user->data['username'],
'U_LOGOUT' => append_sid('mon_login.php?logout=true'),
'U_SEND_PASSWORD' => append_sid("{$phpbb_root_path}ucp.$phpEx?mode=sendpassword")
));
$template->display('body');
?><!-- INCLUDE overall_header.html -->
<!-- IF S_REGISTERED -->
{L_WELCOME} {USERNAME}<br />
<a href="{U_LOGOUT}">{L_LOGOUT}</a>
<!-- ELSE -->
<!-- IF S_ERROR -->
<font color="red"><b>{S_ERROR}</b></font>
<!-- ENDIF -->
<form method="post">
<table>
<tr>
<td align="right">{L_USERNAME}:</td>
<td><input type="text" tabindex="1" name="username" size="25" /></td>
</tr>
<tr>
<td align="right">{L_PASSWORD}:</td>
<td><input type="password" tabindex="2" name="password" size="25" />
<br /><a href="{U_SEND_PASSWORD}">{L_FORGOT_PASS}</a>
</td>
</tr>
<tr>
</tr>
<tr>
<td> </td>
<td><input type="checkbox" name="autologin" tabindex="3" />{L_LOG_ME_IN}</td>
</tr>
<tr>
<td> </td>
<td><input type="checkbox" name="viewonline" tabindex="4" />{L_HIDE_ME}</td>
</tr>
<tr>
<td colspan="2" align="center"><input type="submit" name="login" tabindex="5" value="{L_LOGIN}" /></td>
</tr>
</table>
</form>
<!-- ENDIF -->
<!-- INCLUDE overall_footer.html -->

if ($user->data['user_id'] != ANONYMOUS)

Fatal error: Call to a member function on a non-objet in /mnt/142/sdb/4/3/mon_site/forum/includes/auth/auth_db.php on line 52WHERE username_clean = '" . $db->sql_escape(utf8_clean_string($username)) . "'";







[phpBB Debug] PHP Notice: in file /includes/session.php on line 1006: Cannot modify header information - headers already sent by (output started at /mnt/98/free.fr/0/1/HelpMe/test.php:1)
[phpBB Debug] PHP Notice: in file /includes/session.php on line 1006: Cannot modify header information - headers already sent by (output started at /mnt/98/free.fr/0/1/HelpMe/test.php:1)
[phpBB Debug] PHP Notice: in file /includes/session.php on line 1006: Cannot modify header information - headers already sent by (output started at /mnt/98/free.fr/0/1/HelpMe/test.php:1)
Bienvenue HelpMe
Déconnexion
<?php
define('IN_PHPBB', true);
$phpbb_root_path = './forum/';
$phpEx = substr(strrchr(__FILE__, '.'), 1);
include($phpbb_root_path . 'common.' . $phpEx);
$user->session_begin();
$auth->acl($user->data);
$user->setup('');
if (isset($_GET['logout']))
{
$user->session_kill();
$user->session_begin();
}
if (isset($_POST['login']))
{
$username = request_var('username', '', true);
$password = request_var('password', '', true);
$autologin = (!empty($_POST['autologin'])) ? true : false;
$viewonline = (!empty($_POST['viewonline'])) ? 0 : 1;
$admin = 0;
$result = $auth->login($username, $password, $autologin, $viewonline, $admin);
if ($result['status'] != LOGIN_SUCCESS)
{
$err = $user->lang[$result['error_msg']];
if ($result['error_msg'] == 'LOGIN_ERROR_USERNAME' || $result['error_msg'] == 'LOGIN_ERROR_PASSWORD')
{
$err = (!$config['board_contact']) ? sprintf($user->lang[$result['error_msg']], '', '') : sprintf($user->lang[$result['error_msg']], '<a href="mailto:' . htmlspecialchars($config['board_contact']) . '">', '</a>');
}
}
else
{
$auth->acl($user->data);
}
}
if ($user->data['user_id'] != ANONYMOUS)
{
echo 'Bienvenue ' . $user->data['username'] . '<br />';
echo '<a href="' . append_sid('forum/ucp.php?logout=true') . '">Déconnexion</a>';
}
else
{
if($err)
{
echo "<font color=red><b>$err</b></font>";
}
?>
<form method="post">
<table>
<tr>
<td align="right">Pseudo:</td>
<td><input type="text" tabindex="1" name="username" size="25" /></td>
</tr>
<tr>
<td align="right">Mot de passe:</td>
<td><input type="password" tabindex="2" name="password" size="25" />
<br /><a href="<?php echo append_sid("{$phpbb_root_path}ucp.$phpEx?mode=sendpassword"); ?>">J’ai oublié mon mot de passe</a>
</td>
</tr>
<tr>
</tr>
<tr>
<td> </td>
<td><input type="checkbox" name="autologin" tabindex="3" /> Me connecter automatiquement à chaque visite</td>
</tr>
<tr>
<td> </td>
<td><input type="checkbox" name="viewonline" tabindex="4" /> Cacher mon statut en ligne pour cette session</td>
</tr>
<tr>
<td colspan="2" align="center"><input type="submit" name="login" tabindex="5" value="Connexion" /></td>
</tr>
</table>
</form>
<?php
}
?>

Retourner vers Coding, Webmastering et Sécurité informatique
Utilisateurs parcourant ce forum: MSN [Bot] et 2 invités