Oyo a écrit:remplace : PAGE_SITE par PAGE_INDEX
L'erreur ne vient pas de là sinon l'erreur serait différente.
Charls, tu es sûr que /forum/ est le bon répertoire d'accès à ton forum ?
Modérateur: Equipe
Oyo a écrit:remplace : PAGE_SITE par PAGE_INDEX

Warning: Cannot modify header information - headers already sent by (output started at /home/.filer2/madnessguigui/www/includes/home.php:9) in /home/.filer2/madnessguigui/www/forums/includes/sessions.php on line 188
Warning: Cannot modify header information - headers already sent by (output started at /home/.filer2/madnessguigui/www/includes/home.php:9) in /home/.filer2/madnessguigui/www/forums/includes/sessions.php on line 189
Madness_Guigui a écrit:Voilà, j'ai dans l'intention de permettre à mes visiteurs de se connecter via mon site, j'ai donc utiliser l'aide mise à disposition (concernant seulement le login.php donc) mais j'obtiens une erreur :
- Code: Tout sélectionner
Warning: Cannot modify header information - headers already sent by (output started at /home/.filer2/madnessguigui/www/includes/home.php:9) in /home/.filer2/madnessguigui/www/forums/includes/sessions.php on line 188
Warning: Cannot modify header information - headers already sent by (output started at /home/.filer2/madnessguigui/www/includes/home.php:9) in /home/.filer2/madnessguigui/www/forums/includes/sessions.php on line 189
La page en question.
Merci.
#
#-----[ OUVRIR ]----------------------------------------------
#
common.php
#
#-----[ TROUVER ]----------------------------------------------
#
//
// Define some basic configuration arrays this also prevents
// malicious rewriting of language and otherarray values via
// URI params
//
#
#-----[ AVANT, AJOUTER ]----------------------------------------------
# Remplacer la valeur de $adresse_ste par l'adresse de votre site (Sans blagues :p)
// Chemin d'accès au site
$adresse_site = "http://www.phpBB.com";
#
#-----[ OUVRIR ]----------------------------------------------
#
viewonline.php
#
#-----[ TROUVER ]----------------------------------------------
#
case PAGE_FAQ:
$location = $lang['Viewing_FAQ'];
$location_url = "faq.$phpEx";
break;
#
#-----[ APRES, AJOUTER ]----------------------------------------------
#
case PAGE_SITE:
$location = $lang['On_the_site'];
$location_url = $adresse_site;
break;
#
#-----[ OUVRIR ]----------------------------------------------
#
includes/constants.php
#
#-----[ TROUVER ]----------------------------------------------
#
define('PAGE_GROUPCP', -11);
#
#-----[ APRES, AJOUTER ]----------------------------------------------
#
define('PAGE_SITE', -12);
#
#-----[ OUVRIR ]----------------------------------------------
#
language/lang_frencg/lang_main.php
#
#-----[ TROUVER ]----------------------------------------------
#
$lang['Viewing_FAQ'] = 'Regarde la FAQ';
#
#-----[ APRES, AJOUTER ]----------------------------------------------
#
$lang['On_the_site'] = 'Est sur le site';
#
#-----[ SAUVEGARDER/FERMER TOUS LES FICHIERS ]------------------------------------------
#

Warning: Cannot modify header information - headers already sent by (output started at /antoine/index.php:5) in /antoine/forum/includes/sessions.php on line 188
Warning: Cannot modify header information - headers already sent by (output started at /antoine/index.php:5) in /antoine/forum/includes/sessions.php on line 189

wspeed a écrit:Moi j'ai
- Code: Tout sélectionner
Warning: Cannot modify header information - headers already sent by (output started at /antoine/index.php:5) in /antoine/forum/includes/sessions.php on line 188
Warning: Cannot modify header information - headers already sent by (output started at /antoine/index.php:5) in /antoine/forum/includes/sessions.php on line 189



<?php
define('IN_PHPBB', true);
$phpbb_root_path = './phpBB2/';
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
//
?>
########################################################
## Mod Title: Add PM Support To Your Entire Site
## Mod Version: 1.0.0
## Author: AJ Quick, (http://www.ajquick.com/)
##
## Description:
## This mod will add the ability to get private messages
## pop-ups when viewing your main site, if you have the
## hack that allows viewers to be logged in your site,
## other than just your forums.
## It was designed for PHPBB 2.0+
##
## Installation Level: Complex!
## Installation Time: As long as it takes.
##
## Notes..
## You must have some form of the login through base address
## hack installed. See example:
##
########################################################
#
#-----[ You Must Have Something Like This: ]------------------------------------------
#
<?php
define('IN_PHPBB', true);
$site_root_path = '/';//site path
$phpbb_root_path = '/forums/'; //forums path
include($phpbb_root_path . 'extension.inc');
include($phpbb_root_path . 'common.php');
include($phpbb_root_path . 'config.php');
$userdata = session_pagestart($user_ip, PAGE_INDEX);
init_userprefs($userdata);
?>
#
#-----[ //end of example ]------------------------------------------
#
#
#-----[ Add This Above Your Head Tags: ]------------------------------------------
#
<?php
if($userdata['session_logged_in']){//logged in
if ( $userdata['user_new_privmsg'] )//private messages
{
$l_message_new = ( $userdata['user_new_privmsg'] == 1 ) ? $lang['New_pm'] : $lang['New_pms'];
$l_privmsgs_text = sprintf($l_message_new, $userdata['user_new_privmsg']);
if ( $userdata['user_last_privmsg'] > $userdata['user_lastvisit'] )
{
$sql = "UPDATE " . USERS_TABLE . "
SET user_last_privmsg = " . $userdata['user_lastvisit'] . "
WHERE user_id = " . $userdata['user_id'];
if ( !$db->sql_query($sql) )
{
message_die(GENERAL_ERROR, 'Could not update private message new/read time for user', '', __LINE__, __FILE__, $sql);
}
$s_privmsg_new = 1;
$icon_pm = $images['pm_new_msg'];
}
else
{
$s_privmsg_new = 0;
$icon_pm = $images['pm_no_new_msg'];
}
}
else
{
$l_privmsgs_text = $lang['No_new_pm'];
$s_privmsg_new = 0;
$icon_pm = $images['pm_no_new_msg'];
}
if ( $userdata['user_unread_privmsg'] )
{
$l_message_unread = ( $userdata['user_unread_privmsg'] == 1 ) ? $lang['Unread_pm'] : $lang['Unread_pms'];
$l_privmsgs_text_unread = sprintf($l_message_unread, $userdata['user_unread_privmsg']);
}
else
{
$l_privmsgs_text_unread = $lang['No_unread_pm'];
}
?>
#
#-----[ Add This In Your Head Tags: ]------------------------------------------
#
<?php
//Private Message Hack by AJQuick.com
if ( !empty($userdata['user_popup_pm']) ){
?>
<script language="Javascript" type="text/javascript">
<!--
if (<?php echo $s_privmsg_new ?>)
{
window.open('<?php echo "/forums/privmsg.".$phpEx."?mode=newpm" ?>', '_phpbbprivmsg', 'HEIGHT=225,resizable=yes,WIDTH=400');;
}
//-->
</script>
<?php
}
//Change the path to forums to approbriate name
?>
#
#-----[ If you want PM statuses add this somewhere: ]------------------------------------------
#
<a href="/forums/privmsg.php?folder=inbox"><?php echo $l_privmsgs_text ?></a>
//change the path to the file
# That's It!
#
#-----[ SAVE/CLOSE ALL FILES ]------------------------------------------
#
# EoM


Retourner vers Coding, Webmastering et Sécurité informatique
Utilisateurs parcourant ce forum: raraboss35 et 2 invités