mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-10 13:28:55 +00:00
Merge branch 'develop-olympus' into git-tools
This commit is contained in:
commit
a5057c9f25
5 changed files with 25 additions and 6 deletions
|
@ -103,7 +103,10 @@
|
|||
<li>[Fix] Allow multibyte keys in request_var(). (Bug #51555)</li>
|
||||
<li>[Fix] Prevent wrong tar archive type detection. (Bug #12531)</li>
|
||||
<li>[Fix] Correct redirection after login to forum not in web root (Bug #58755)</li>
|
||||
<li>[Fix] Allow setting parent forums regardless of permission settings. (Bug #57415)</li>
|
||||
<li>[Fix] Redirect search engines that access pages with SIDs in the URL. (Bug #58025)</li>
|
||||
<li>[Feature] Support for Microsoft's Native SQL Server Driver for PHP (Bug #57055 - Patch by Chris Pucci at Microsoft)</li>
|
||||
<li>[Feature] The memcache acm plugin now supports multiple memcache servers.</li>
|
||||
</ul>
|
||||
|
||||
<a name="v307"></a><h3>1.i. Changes since 3.0.7</h3>
|
||||
|
|
|
@ -37,6 +37,12 @@ if (!defined('PHPBB_ACM_MEMCACHE_HOST'))
|
|||
define('PHPBB_ACM_MEMCACHE_HOST', 'localhost');
|
||||
}
|
||||
|
||||
if (!defined('PHPBB_ACM_MEMCACHE'))
|
||||
{
|
||||
//can define multiple servers with host1/port1,host2/port2 format
|
||||
define('PHPBB_ACM_MEMCACHE', PHPBB_ACM_MEMCACHE_HOST . '/' . PHPBB_ACM_MEMCACHE_PORT);
|
||||
}
|
||||
|
||||
/**
|
||||
* ACM for Memcached
|
||||
* @package acm
|
||||
|
@ -54,7 +60,11 @@ class acm extends acm_memory
|
|||
parent::acm_memory();
|
||||
|
||||
$this->memcache = new Memcache;
|
||||
$this->memcache->connect(PHPBB_ACM_MEMCACHE_HOST, PHPBB_ACM_MEMCACHE_PORT);
|
||||
foreach(explode(',', PHPBB_ACM_MEMCACHE) as $u)
|
||||
{
|
||||
$parts = explode('/', $u);
|
||||
$this->memcache->addServer(trim($parts[0]), trim($parts[1]));
|
||||
}
|
||||
$this->flags = (PHPBB_ACM_MEMCACHE_COMPRESS) ? MEMCACHE_COMPRESSED : 0;
|
||||
}
|
||||
|
||||
|
@ -125,4 +135,4 @@ class acm extends acm_memory
|
|||
}
|
||||
}
|
||||
|
||||
?>
|
||||
?>
|
||||
|
|
|
@ -407,7 +407,7 @@ class acp_forums
|
|||
$exclude_forums[] = $row['forum_id'];
|
||||
}
|
||||
|
||||
$parents_list = make_forum_select($forum_data['parent_id'], $exclude_forums, false, false, false);
|
||||
$parents_list = make_forum_select($forum_data['parent_id'], $exclude_forums, true, false, false);
|
||||
|
||||
$forum_data['forum_password_confirm'] = $forum_data['forum_password'];
|
||||
}
|
||||
|
@ -416,7 +416,7 @@ class acp_forums
|
|||
$this->page_title = 'CREATE_FORUM';
|
||||
|
||||
$forum_id = $this->parent_id;
|
||||
$parents_list = make_forum_select($this->parent_id, false, false, false, false);
|
||||
$parents_list = make_forum_select($this->parent_id, false, true, false, false);
|
||||
|
||||
// Fill forum data with default values
|
||||
if (!$update)
|
||||
|
|
|
@ -2139,8 +2139,8 @@ function append_sid($url, $params = false, $is_amp = true, $session_id = false)
|
|||
{
|
||||
global $_SID, $_EXTRA_URL, $phpbb_hook;
|
||||
|
||||
// Developers using the hook function need to globalise the $_SID and $_EXTRA_URL on their own and also handle it appropiatly.
|
||||
// They could mimick most of what is within this function
|
||||
// Developers using the hook function need to globalise the $_SID and $_EXTRA_URL on their own and also handle it appropriately.
|
||||
// They could mimic most of what is within this function
|
||||
if (!empty($phpbb_hook) && $phpbb_hook->call_hook(__FUNCTION__, $url, $params, $is_amp, $session_id))
|
||||
{
|
||||
if ($phpbb_hook->hook_return(__FUNCTION__))
|
||||
|
|
|
@ -608,6 +608,12 @@ class session
|
|||
}
|
||||
else
|
||||
{
|
||||
// Bot user, if they have a SID in the Request URI we need to get rid of it
|
||||
// otherwise they'll index this page with the SID, duplicate content oh my!
|
||||
if (isset($_GET['sid']))
|
||||
{
|
||||
redirect(build_url(array('sid')));
|
||||
}
|
||||
$this->data['session_last_visit'] = $this->time_now;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue