mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-13 04:04:12 +02:00
prepare new release - see changelog for changes
git-svn-id: file:///svn/phpbb/branches/phpBB-2_0_0@4926 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
@@ -281,7 +281,7 @@ function bbencode_first_pass($text, $uid)
|
||||
$text = preg_replace("#\[i\](.*?)\[/i\]#si", "[i:$uid]\\1[/i:$uid]", $text);
|
||||
|
||||
// [img]image_url_here[/img] code..
|
||||
$text = preg_replace("#\[img\]((ht|f)tp://)([^ \?&=\"\n\r\t<]*?(\.(jpg|jpeg|gif|png)))\[/img\]#sie", "'[img:$uid]\\1' . str_replace(' ', '%20', '\\3') . '[/img:$uid]'", $text);
|
||||
$text = preg_replace("#\[img\]((http|ftp|https|ftps)://)([^ \?&=\#\"\n\r\t<]*?(\.(jpg|jpeg|gif|png)))\[/img\]#sie", "'[img:$uid]\\1' . str_replace(' ', '%20', '\\3') . '[/img:$uid]'", $text);
|
||||
|
||||
// Remove our padding from the string..
|
||||
return substr($text, 1);;
|
||||
|
@@ -769,7 +769,7 @@ function generate_smilies($mode, $page_id)
|
||||
|
||||
$gen_simple_header = TRUE;
|
||||
|
||||
$page_title = $lang['Review_topic'] . " - $topic_title";
|
||||
$page_title = $lang['Emoticons'] . " - $topic_title";
|
||||
include($phpbb_root_path . 'includes/page_header.'.$phpEx);
|
||||
|
||||
$template->set_filenames(array(
|
||||
|
@@ -91,6 +91,7 @@ $logged_visible_online = 0;
|
||||
$logged_hidden_online = 0;
|
||||
$guests_online = 0;
|
||||
$online_userlist = '';
|
||||
$l_online_users = '';
|
||||
|
||||
if (defined('SHOW_ONLINE'))
|
||||
{
|
||||
@@ -111,7 +112,7 @@ if (defined('SHOW_ONLINE'))
|
||||
$userlist_visible = array();
|
||||
|
||||
$prev_user_id = 0;
|
||||
$prev_user_ip = '';
|
||||
$prev_user_ip = $prev_session_ip = '';
|
||||
|
||||
while( $row = $db->sql_fetchrow($result) )
|
||||
{
|
||||
|
@@ -47,6 +47,12 @@ function session_begin($user_id, $user_ip, $page_id, $auto_create = 0, $enable_a
|
||||
$sessionmethod = SESSION_METHOD_GET;
|
||||
}
|
||||
|
||||
//
|
||||
if (!preg_match('/^[A-Za-z0-9]*$/', $session_id))
|
||||
{
|
||||
$session_id = '';
|
||||
}
|
||||
|
||||
$last_visit = 0;
|
||||
$current_time = time();
|
||||
$expiry_time = $current_time - $board_config['session_length'];
|
||||
@@ -217,6 +223,12 @@ function session_pagestart($user_ip, $thispage_id)
|
||||
$sessionmethod = SESSION_METHOD_GET;
|
||||
}
|
||||
|
||||
//
|
||||
if (!preg_match('/^[A-Za-z0-9]*$/', $session_id))
|
||||
{
|
||||
$session_id = '';
|
||||
}
|
||||
|
||||
//
|
||||
// Does a session exist?
|
||||
//
|
||||
@@ -345,6 +357,11 @@ function session_end($session_id, $user_id)
|
||||
$sessionmethod = SESSION_METHOD_GET;
|
||||
}
|
||||
|
||||
if (!preg_match('/^[A-Za-z0-9]*$/', $session_id))
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
//
|
||||
// Delete existing session
|
||||
//
|
||||
|
@@ -83,7 +83,7 @@ function user_avatar_url($mode, &$error, &$error_msg, $avatar_filename)
|
||||
$avatar_filename = 'http://' . $avatar_filename;
|
||||
}
|
||||
|
||||
if ( !preg_match('#^((http)|(ftp):\/\/[\w\-]+?\.([\w\-]+\.)+[\w]+(:[0-9]+)*\/.*?\.(gif|jpg|jpeg|png)$)#is', $avatar_filename) )
|
||||
if ( !preg_match("#^((ht|f)tp://)([^ \?&=\#\"\n\r\t<]*?(\.(jpg|jpeg|gif|png))$)#is", $avatar_filename) )
|
||||
{
|
||||
$error = true;
|
||||
$error_msg = ( !empty($error_msg) ) ? $error_msg . '<br />' . $lang['Wrong_remote_avatar_format'] : $lang['Wrong_remote_avatar_format'];
|
||||
@@ -342,4 +342,4 @@ function display_avatar_gallery($mode, &$category, &$user_id, &$email, &$current
|
||||
return;
|
||||
}
|
||||
|
||||
?>
|
||||
?>
|
@@ -41,6 +41,7 @@ if ( !($result = $db->sql_query($sql)) )
|
||||
message_die(GENERAL_ERROR, 'Could not obtain ranks information', '', __LINE__, __FILE__, $sql);
|
||||
}
|
||||
|
||||
$ranksrow = array();
|
||||
while ( $row = $db->sql_fetchrow($result) )
|
||||
{
|
||||
$ranksrow[] = $row;
|
||||
|
Reference in New Issue
Block a user