Ze Byble Of Mitan's
Vous n'êtes pas identifié.
:arrow: source :
http://www.gun-land.net
http://forum.gun-land.net
Source :arrow: PhpBB-fr.com
Fichier :arrow: update_to_latest.zip
Il est conseillé d'effacer le fichier db/oracle.php de votre espace web.[/color][/font]
* admin/admin_styles.php
1.
TROUVER - Ligne 78
include($phpbb_root_path. "templates/" . $install_to . "/theme_info.cfg");
REPLACER PAR
include($phpbb_root_path. "templates/" . basename($install_to) . "/theme_info.cfg");
2.
TROUVER - Ligne 742
$fp = @fopen($phpbb_root_path . 'templates/' . $template_name . '/theme_info.cfg', 'w');
REPLACER PAR
$fp = @fopen($phpbb_root_path . 'templates/' . basename($template_name) . '/theme_info.cfg', 'w');
* admin/page_header_admin.php
1.
TROUVER - Ligne 38
$useragent = (isset($_SERVER["HTTP_USER_AGENT"]) ) ? $_SERVER["HTTP_USER_AGENT"] : $HTTP_USER_AGENT;
REPLACER PAR
$useragent = (isset($HTTP_SERVER_VARS['HTTP_USER_AGENT'])) ? $HTTP_SERVER_VARS['HTTP_USER_AGENT'] : getenv('HTTP_USER_AGENT');* admin/page_footer_admin.php
1.
TROUVER - Ligne 36
'PHPBB_VERSION' => '2' . $board_config['version'],
REPLACER PAR
'PHPBB_VERSION' => ($userdata['user_level'] == ADMIN && $userdata['user_id'] != ANONYMOUS) ? '2' . $board_config['version'] : '',
* db/postgres7.php
1.
TROUVER - Ligne 125
$query = preg_replace("/LIMIT ([0-9]+),([ 0-9]+)/", "LIMIT \2 OFFSET \1", $query); APRES, AJOUTER
$query = preg_replace('#(.*WHERE.*)(username|user_email|ban_email) = '(.*)'#ise', ""\1LOWER(\2) = '" . strtolower('\3') . "'"", $query);* includes/page_header.php
1.
TROUVER - Ligne 38
$useragent = (isset($_SERVER["HTTP_USER_AGENT"]) ) ? $_SERVER["HTTP_USER_AGENT"] : $HTTP_USER_AGENT;
REPLACER PAR
$useragent = (isset($HTTP_SERVER_VARS['HTTP_USER_AGENT'])) ? $HTTP_SERVER_VARS['HTTP_USER_AGENT'] : getenv('HTTP_USER_AGENT'); 2.
TROUVER - Ligne 469
if (!empty($_SERVER['SERVER_SOFTWARE']) && strstr($_SERVER['SERVER_SOFTWARE'], 'Apache/2'))
REPLACER PAR
if (!empty($HTTP_SERVER_VARS['SERVER_SOFTWARE']) && strstr($HTTP_SERVER_VARS['SERVER_SOFTWARE'], 'Apache/2'))
* includes/sessions.php
1.
TROUVER - Ligne 53
$session_id = '';
} APRES, AJOUTER
$page_id = (int) $page_id;
2.
TROUVER - Ligne 92
// No match; don't login, set as anonymous user
$login = 0;
$enable_autologin = 0;
$user_id = $userdata['user_id'] = ANONYMOUS; APRES, AJOUTER
$sql = 'SELECT * FROM ' . USERS_TABLE . ' WHERE user_id = ' . ANONYMOUS;
$result = $db->sql_query($sql);
$userdata = $db->sql_fetchrow($result);
$db->sql_freeresult($result); 3.
TROUVER - Ligne 105
// Autologin is not set. Don't login, set as anonymous user
$login = 0;
$enable_autologin = 0;
$user_id = $userdata['user_id'] = ANONYMOUS; APRES, AJOUTER
$sql = 'SELECT * FROM ' . USERS_TABLE . ' WHERE user_id = ' . ANONYMOUS;
$result = $db->sql_query($sql);
$userdata = $db->sql_fetchrow($result);
$db->sql_freeresult($result); 4.
TROUVER - Ligne 244
//
// Does a session exist?
//AVANT, AJOUTER
$thispage_id = (int) $thispage_id;
* modcp.php
1.
TROUVER - Ligne 130
message_die(GENERAL_MESSAGE, 'Topic_post_not_exist');
}
$topic_row = $db->sql_fetchrow($result); APRES, AJOUTER
if (!$topic_row)
{
message_die(GENERAL_MESSAGE, 'Topic_post_not_exist');
} 2.
TROUVER - Ligne 150
message_die(GENERAL_MESSAGE, 'Forum_not_exist');
}
$topic_row = $db->sql_fetchrow($result); APRES, AJOUTER
if (!$topic_row)
{
message_die(GENERAL_MESSAGE, 'Forum_not_exist');
}* privmsg.php
1.
TROUVER - Ligne 566
if ( !$board_config['allow_html'] )
{
if ( $user_sig != '' && $privmsg['privmsgs_enable_sig'] && $userdata['user_allowhtml'] ) REPLACER PAR
if ( !$board_config['allow_html'] || !$userdata['user_allowhtml'])
{
if ( $user_sig != '') 2.
TROUVER - Ligne 1531
if ( !$html_on )
{
if ( $user_sig != '' || !$userdata['user_allowhtml'] ) REPLACER PAR
if ( !$html_on || !$board_config['allow_html'] || !$userdata['user_allowhtml'] )
{
if ( $user_sig != '' )* search.php
1.
TROUVER - Ligne 200
$search_author = str_replace('*', '%', trim($search_author));AVANT, AJOUTER
if (preg_match('#^[*%]+$#', trim($search_author)) || preg_match('#^[^*]{1,2}$#', str_replace(array('*', '%'), '', trim($search_author))))
{
$search_author = '';
} 2.
TROUVER - Ligne 269
for($i = 0; $i < count($split_search); $i++)
{ APRES, AJOUTER
if (preg_match('#^[*%]+$#', trim($split_search[$i])) || preg_match('#^[^*]{1,2}$#', str_replace(array('*', '%'), '', trim($split_search[$i]))))
{
$split_search[$i] = '';
continue;
} 3.
TROUVER - Ligne 416
// Author name search
//
if ( $search_author != '' )
{ APRES, AJOUTER
if (preg_match('#^[*%]+$#', trim($search_author)) || preg_match('#^[^*]{1,2}$#', str_replace(array('*', '%'), '', trim($search_author))))
{
$search_author = '';
}* viewtopic.php
1.
TROUVER - Ligne 1052
if ( !$board_config['allow_html'] )
{
if ( $user_sig != '' && $userdata['user_allowhtml'] ) REPLACER PAR
if ( !$board_config['allow_html'] || !$userdata['user_allowhtml'])
{
if ( $user_sig != '' ) 2.
TROUVER - Ligne 1122
$user_sig = str_replace('"', '"', substr(preg_replace('#(>(((?>([^><]+|(?R)))*)<))#se', "preg_replace($orig_word, $replacement_word, '\0')", '>' . $user_sig . '<'), 1, -1));
}
$message = str_replace('"', '"', substr(preg_replace('#(>(((?>([^><]+|(?R)))*)<))#se', "preg_replace($orig_word, $replacement_word, '\0')", '>' . $message . '<'), 1, -1)); REPLACER PAR
$user_sig = str_replace('"', '"', substr(@preg_replace('#(>(((?>([^><]+|(?R)))*)<))#se', "@preg_replace($orig_word, $replacement_word, '\0')", '>' . $user_sig . '<'), 1, -1));
}
$message = str_replace('"', '"', substr(@preg_replace('#(>(((?>([^><]+|(?R)))*)<))#se', "@preg_replace($orig_word, $replacement_word, '\0')", '>' . $message . '<'), 1, -1));