Modérateur: Equipe
Warning: Cannot modify header information - headers already sent by (output started at /homepages/8/d220799616/htdocs/index.php:1) in /homepages/8/d220799616/htdocs/forum/includes/sessions.php on line 259
Warning: Cannot modify header information - headers already sent by (output started at /homepages/8/d220799616/htdocs/index.php:1) in /homepages/8/d220799616/htdocs/forum/includes/sessions.php on line 260<?php
define('IN_PHPBB', true);
$phpbb_root_path = './forum/';
include($phpbb_root_path . 'extension.inc');
include($phpbb_root_path . 'common.' .$phpEx);
//
// Start session management
//
$userdata = session_pagestart($user_ip, PAGE_SITE);
init_userprefs($userdata);
//
// End session management
//
?><?php
if ( $userdata['session_logged_in'] != '1')
{
print('<form method="post" action="' . $phpbb_root_path. 'login.php" >
Nom d'utilisateur :<br /> <input type="text" name="username" />
Mot de passe :<br /> <input type="password" name="password" />
Se rappeler de moi <input type="checkbox" name="autologin" /><br /><br />
<input type="hidden" name="redirect" value="..' . $HTTP_SERVER_VARS['REQUEST_URI'] . '" />
<input type="hidden" name="ext" value="1" />
<input type="submit" name="login" value="Connexion" />
<p>Vous n'êtes pas encore enregistrés ?<br />
Enregistrez-vous <a href="forum/profile.php?mode=register">ici</a>.</p>
</form>');
}
?><?php
switch ( $userdata['user_avatar_type'] )
{
case USER_AVATAR_UPLOAD:
if ( $board_config['allow_avatar_upload'] )
echo('<img src="' . $phpbb_root_path . $board_config['avatar_path'] . '/' . $userdata['user_avatar'] . '" />');
break;
case USER_AVATAR_REMOTE:
if ( $board_config['allow_avatar_remote'] )
echo('<img src="' . $userdata['user_avatar'] . '" />');
break;
case USER_AVATAR_GALLERY:
if ( $board_config['allow_avatar_local'] )
echo('<img src="' . $phpbb_root_path . $board_config['avatar_gallery_path'] . '/' . $userdata['user_avatar']. '" />');
break;
default:
// Code pour ceux qui n'ont pas d'avatar.
}
?><marquee id="recent_topics" behavior="scroll" direction="up" height="200" scrolldelay="100" scrollamount="2"
onMouseOver = "document.all.recent_topics.stop()" onMouseOut="document.all.recent_topics.start()">
<?php
$nombre = 10;
$auth = auth(AUTH_READ,AUTH_LIST_ALL,$userdata);
$requete = '(';
for($i=1;$i<=count($auth);$i++)
{
if ($auth[$i]['auth_read'])
$requete .= $i . ',';
}
$requete = substr($requete,0,strlen($requete)-1);
$requete .= ')';
$theme = ($userdata['user_style'] != '') ? $userdata['user_style'] : $board_config['default_style'];
$theme = 'SELECT template_name FROM ' . THEMES_TABLE . ' WHERE themes_id = \'' . $theme . '\' LIMIT 1';
$theme = $db->sql_query($theme);
$theme = $db->sql_fetchrow($theme);
$theme = $theme['template_name'];
$sql = 'SELECT ' . TOPICS_TABLE . '.topic_title ,' . TOPICS_TABLE . '.forum_id,' . POSTS_TABLE . '.post_id,' . POSTS_TABLE . '.poster_id,' . POSTS_TABLE . '.post_username,' . POSTS_TABLE . '.post_time,' . USERS_TABLE . '.username
FROM ' . TOPICS_TABLE . '
LEFT JOIN ' . POSTS_TABLE . '
ON ' . POSTS_TABLE . '.post_id = ' . TOPICS_TABLE . '.topic_last_post_id
LEFT JOIN ' . USERS_TABLE . '
ON ' . USERS_TABLE . '.user_id = ' . POSTS_TABLE . '.poster_id
WHERE ' . TOPICS_TABLE . '.topic_status <> 2 AND ' . TOPICS_TABLE . '.forum_id IN ' . $requete . '
ORDER BY ' . TOPICS_TABLE . '.topic_last_post_id DESC LIMIT ' . $nombre;
$result = $db->sql_query($sql);
while( $row = $db->sql_fetchrow($result) )
{
$row['username'] = ( $row['poster_id'] == -1 ) ? ( ($row['post_username'] != '') ? $row['post_username'] : 'Invité' ): $row['username'];
echo('By ' . $row['username'] . ' le ' . create_date($board_config['default_dateformat'], $row['post_time'], $board_config['board_timezone']) . '<br /><a href="' . $phpbb_root_path . 'viewtopic.php?' . POST_POST_URL . '=' . $row['post_id'] . '#' . $row['post_id'] . '" title="' . $row['topic_title'] . '">' . $row['topic_title'] . ' <img src="' . $phpbb_root_path . 'templates/' . $theme . '/images/icon_latest_reply.gif" style="border: 0px;" /></a><br /> <br />');
}
?>
</marquee>
<?php
$sql = "SELECT u.username, u.user_id, u.user_allow_viewonline, u.user_level, s.session_logged_in, s.session_ip
FROM ".USERS_TABLE." u, ".SESSIONS_TABLE." s
WHERE u.user_id = s.session_user_id
AND s.session_time >= ".( time() - 300 ) . "
ORDER BY s.session_ip ASC, s.session_logged_in DESC";
if( !($result = $db->sql_query($sql)) )
{
message_die(GENERAL_ERROR, 'Could not obtain user/online information', '', __LINE__, __FILE__, $sql);
}
$ip_prec = 0;
$membres = 0;
$visiteurs = 0;
$invisibles = 0;
$online_userlist = '';
while ( $row = $db->sql_fetchrow($result) )
{
if ( $row['session_ip'] != $ip_prec )
{
$membres += intval($row['session_logged_in']);
if ( $row['session_logged_in'] != '1')
$visiteurs++;
else
{
$style_color = '';
if ( $row['user_level'] == ADMIN )
{
$row['username'] = '<b>' . $row['username'] . '</b>';
$style_color = 'style="color:#' . $theme['fontcolor3'] . '"';
}
else if ( $row['user_level'] == MOD )
{
$row['username'] = '<b>' . $row['username'] . '</b>';
$style_color = 'style="color:#' . $theme['fontcolor2'] . '"';
}
if ( $row['user_allow_viewonline'] )
{
$user_online_link = '<a href="' . append_sid("{$phpbb_root_path}profile.$phpEx?mode=viewprofile&" . POST_USERS_URL . "=" . $row['user_id']) . '"' . $style_color .'>' . $row['username'] . '</a>';
}
else
$invisibles++;
if ( $row['user_allow_viewonline'] )
{
$online_userlist .= ( $online_userlist != '' ) ? ', ' . $user_online_link : $user_online_link;
}
}
$ip_prec = $row['session_ip'];
}
}
$texte = ( $visiteurs+$membres == '0' ) ? $lang['Online_users_zero_total'] . '<br />' : ( ( $visiteurs+$membres == '1' ) ? sprintf($lang['Online_user_total'] . '<br />',$visiteurs+$membres) : sprintf($lang['Online_users_total'] . '<br />',$visiteurs+$membres) );
$texte .= ( $membres == '0' ) ? $lang['Reg_users_zero_total'] : ( ( $membres == '1' ) ? sprintf($lang['Reg_user_total'],$membres) : sprintf($lang['Reg_users_total'],$membres) );
$texte .= ( $invisibles == '0' ) ? $lang['Hidden_users_zero_total'] : ( ( $invisibles == '1' ) ? sprintf($lang['Hidden_user_total'],$invisibles) : sprintf($lang['Hidden_users_total'],$invisibles) );
$texte .= ( $visiteurs == '0' ) ? $lang['Guest_users_zero_total'] : ( ( $visiteurs == '1' ) ? sprintf($lang['Guest_user_total'],$visiteurs) : sprintf($lang['Guest_users_total'],$visiteurs) );
echo($texte.'<br />');
echo($online_userlist.'<br />');
?>

<?php
define('IN_PHPBB', true);
$phpbb_root_path = './forum/';
include($phpbb_root_path . 'extension.inc');
include($phpbb_root_path . 'common.' .$phpEx);
//
// Start session management
//
$userdata = session_pagestart($user_ip, PAGE_SITE);
init_userprefs($userdata);
//
// End session management
//







case PAGE_SITE:
$location = $lang['On_the_site'];
$location_url = $adresse_site;
break;case 'site':
$location = $lang['On_the_site'];
$location_url = $adresse_site;
break;define('PAGE_SITE', -12);




#
#-----[ OUVRIR ]----------------------------------------------
#
common.php
#
#-----[ TROUVER ]----------------------------------------------
#
//
// Define some basic configuration arrays this also prevents
// malicious rewriting of language and otherarray values via
// URI params
//

Cloude a écrit:Bonjour ^^#
#-----[ OUVRIR ]----------------------------------------------
#
common.php
#
#-----[ TROUVER ]----------------------------------------------
#
//
// Define some basic configuration arrays this also prevents
// malicious rewriting of language and otherarray values via
// URI params
//
Mon problème, c'est que même en faisant ctrl f, je ne trouve pas ce qu'il faut trouver. Vous pouvez m'aider s'il vous plait? ^^"

Ah, d'accord !ibanson a écrit:Cloude a écrit:Bonjour ^^#
#-----[ OUVRIR ]----------------------------------------------
#
common.php
#
#-----[ TROUVER ]----------------------------------------------
#
//
// Define some basic configuration arrays this also prevents
// malicious rewriting of language and otherarray values via
// URI params
//
Mon problème, c'est que même en faisant ctrl f, je ne trouve pas ce qu'il faut trouver. Vous pouvez m'aider s'il vous plait? ^^"
Si ton forum en est phpBB3, ca ne fonctionne pas.

Cloude a écrit:Ah, d'accord !Merci ^^ Et il n'y a pas un moyen avec phpbb 3?

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