admin/admin_ug_auth.php
Trouver - Ligne 809
- Code: Tout sélectionner
@reset($auth_user);
Remplacer avec
- Code: Tout sélectionner
// @reset($auth_user);
admin/pagestart.php
Trouver - Ligne 43
- Code: Tout sélectionner
redirect(append_sid("login.$phpEx?redirect=admin/", true));
Remplacer avec
- Code: Tout sélectionner
redirect(append_sid("login.$phpEx?redirect=admin/index.$phpEx", true));
Trouver - Ligne 64
- Code: Tout sélectionner
redirect(append_sid("login.$phpEx?redirect=admin/&admin=1", true));
Remplacer avec
- Code: Tout sélectionner
redirect(append_sid("login.$phpEx?redirect=admin/index.$phpEx&admin=1", true));
includes/bbcode.php
Trouver - Ligne 211
- Code: Tout sélectionner
$patterns[] = "#\[url=([\w]+?://[^ \"\n\r\t<]*?)\]([^?].*?)\[/url\]#i";
$replacements[] = $bbcode_tpl['url3'];
// [url=www.phpbb.com]phpBB[/url] code.. (no xxxx:// prefix).
$patterns[] = "#\[url=((www|ftp)\.[^ \"\n\r\t<]*?)\]([^?].*?)\[/url\]#i";
Remplacer avec
- Code: Tout sélectionner
$patterns[] = "#\[url=([\w]+?://[^ \"\n\r\t<]*?)\]([^?\n\r\t].*?)\[/url\]#is";
$replacements[] = $bbcode_tpl['url3'];
// [url=www.phpbb.com]phpBB[/url] code.. (no xxxx:// prefix).
$patterns[] = "#\[url=((www|ftp)\.[^ \"\n\r\t<]*?)\]([^?\n\r\t].*?)\[/url\]#is";
includes/usercp_avatar.php
Trouver - Ligne 202
- Code: Tout sélectionner
if ( $width <= $board_config['avatar_max_width'] && $height <= $board_config['avatar_max_height'] )
Remplacer avec
- Code: Tout sélectionner
if ( $width > 0 && $height > 0 && $width <= $board_config['avatar_max_width'] && $height <= $board_config['avatar_max_height'] )
includes/usercp_register.php
Trouver - Ligne 455
- Code: Tout sélectionner
$avatar_sql = user_avatar_delete($userdata['user_avatar_type'], $userdata['user_avatar']);
}
Ajouter après
- Code: Tout sélectionner
else
modcp.php
Trouver - Ligne 466
- Code: Tout sélectionner
$new_forum_id = intval($HTTP_POST_VARS['new_forum']);
$old_forum_id = $forum_id;
Ajouter après
- Code: Tout sélectionner
$sql = 'SELECT forum_id FROM ' . FORUMS_TABLE . '
WHERE forum_id = ' . $new_forum_id;
if ( !($result = $db->sql_query($sql)) )
{
message_die(GENERAL_ERROR, 'Could not select from forums table', '', __LINE__, __FILE__, $sql);
}
if (!$db->sql_fetchrow($result))
{
message_die(GENERAL_MESSAGE, 'New forum does not exist');
}
$db->sql_freeresult($result);
Trouver - Ligne 773
- Code: Tout sélectionner
$new_forum_id = intval($HTTP_POST_VARS['new_forum_id']);
$topic_time = time();
Ajouter après
- Code: Tout sélectionner
$sql = 'SELECT forum_id FROM ' . FORUMS_TABLE . '
WHERE forum_id = ' . $new_forum_id;
if ( !($result = $db->sql_query($sql)) )
{
message_die(GENERAL_ERROR, 'Could not select from forums table', '', __LINE__, __FILE__, $sql);
}
if (!$db->sql_fetchrow($result))
{
message_die(GENERAL_MESSAGE, 'New forum does not exist');
}
$db->sql_freeresult($result);
viewtopic.php
Trouver - Ligne 1110
- Code: Tout sélectionner
$message = str_replace('\"', '"', substr(@preg_replace('#(\>(((?>([^><]+|(?R)))*)\<))#se', "@preg_replace('#\b(" . str_replace('\\', '\\\\', $highlight_match) . ")\b#i', '<span style=\"color:#" . $theme['fontcolor3'] . "\"><b>\\\\1</b></span>', '\\0')", '>' . $message . '<'), 1, -1));
Remplacer avec
- Code: Tout sélectionner
$message = str_replace('\"', '"', substr(@preg_replace('#(\>(((?>([^><]+|(?R)))*)\<))#se', "@preg_replace('#\b(" . str_replace('\\', '\\\\', addslashes($highlight_match)) . ")\b#i', '<span style=\"color:#" . $theme['fontcolor3'] . "\"><b>\\\\1</b></span>', '\\0')", '>' . $message . '<'), 1, -1));