FPe, tu pourrais patienter un peu
{SITENAME}... C'est une varaiable de tpl... Déclarée ensuite dans un tableau...
Si tu utilises les sessions : $board_config['sitename'] & $board_config['site_desc']
Je dis ça de mémoire
Modérateur: Equipe

<?php include("monmenu.txt") ?><?php
define('IN_PHPBB', true);
$phpbb_root_path = './forum/';
include($phpbb_root_path . 'extension.inc');
include($phpbb_root_path . 'common.'.$phpEx);
$redirect_login = "login.$phpEx";
$redirect_logout = "login.$phpEx";
//
// Start session management
//
$userdata = session_pagestart($user_ip, PAGE_SITE);
init_userprefs($userdata);
//
// End session management
//
$logout = htmlspecialchars($HTTP_GET_VARS['logout']);
if ( $logout )
{
session_end($userdata['session_id'], $userdata['user_id']);
redirect(append_sid($redirect_logout));
}
$logue = '<table border="0" cellpadding="0" cellspacing="0" align="center">
<tr>
<td align="center"><a href="?logout=true">' . $lang['Logout'] . ' [ ' . $userdata['username'] . ' ]</a></td>
</tr>
<tr>
<td align="center"><a href="' . $phpbb_root_path . '">Forum</a></td>
</tr>
</table>';
$non_logue = '<form action="' . $phpbb_root_path . 'login.php" method="post">
<table border="0" cellpadding="4" cellspacing="1" align="center">
<tr>
<td>' .$lang['Username'] . ' </td>
<td><input type="text" name="username"></td>
</tr>
<tr>
<td>' . $lang['Password'] . ' </td>
<td><input type="password" name="password"></td>
</tr>
<tr>
<td colspan="2" align="center"><input type="hidden" name="redirect" value="' . $adresse_site . append_sid($redirect_login) . '"><input type="submit" value="' . $lang['Login'] . '" name="login"></td>
</tr>
</table>
</form>';
if ( $userdata['session_logged_in'] )
{
echo $logue;
}
else
{
echo $non_logue;
}
?>$phpbb_root_path = './forum/'; 

<?php echo $userdata['username']; ?>

Warning: Cannot modify header information - headers already sent by (output started at /home/xline/public_html/site_profil.php:5) in /home/xline/public_html/includes/sessions.php on line 308
Warning: Cannot modify header information - headers already sent by (output started at /home/xline/public_html/site_profil.php:5) in /home/xline/public_html/includes/sessions.php on line 309*Rajout personnel : ce code doit être introduit en début de chaque page afin d'éviter les erreurs du type Headers already sent by ../..
// Page numbers for session handlinggernouille a écrit:Oyo problême
Bon je l'avait vu avant mais voila je croyait avoir trouvé et ben non:D
J'ai cela en haut de la page
- Code: Tout sélectionner
Warning: Cannot modify header information - headers already sent by (output started at /home/xline/public_html/site_profil.php:5) in /home/xline/public_html/includes/sessions.php on line 308
Warning: Cannot modify header information - headers already sent by (output started at /home/xline/public_html/site_profil.php:5) in /home/xline/public_html/includes/sessions.php on line 309
Et si je me refere a ce post*Rajout personnel : ce code doit être introduit en début de chaque page afin d'éviter les erreurs du type Headers already sent by ../..
Mais voila quel code il faut rajoutez je voit pas trop j'ai rajoutez sa sur la page qui bug et marche pas (normal c'est un commentaire)
- Code: Tout sélectionner
// Page numbers for session handling
FantoleTu parle pas de session la un conseil ouvre un nouveau post?!



Retourner vers Coding, Webmastering et Sécurité informatique
Utilisateurs parcourant ce forum: Aucun utilisateur enregistré et 3 invités