mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-05 05:55:15 +02:00
Merge branch 'develop-olympus' into develop
* develop-olympus: [ticket/9653] Valid XHTML with code BBCode in subsilver2 viewtopic signatures [ticket/9656] Remove @ from phpinfo() to get correct error_reporting value. [ticket/9665] Allow preview of signature when it is the string "0". [ticket/9112] Make sure current user can see most active forum/topic. [ticket/9655] Pass E_USER_WARNING, so it doesn't look like a successful action. [ticket/9643] Only split $port from $sqlserver, if it's not an IPv6 address. Conflicts: phpBB/styles/subsilver2/template/ucp_profile_signature.html phpBB/styles/subsilver2/template/viewtopic_body.html
This commit is contained in:
commit
7d6545bd09
@ -89,14 +89,14 @@ class acp_captcha
|
||||
}
|
||||
else
|
||||
{
|
||||
trigger_error($user->lang['CAPTCHA_UNAVAILABLE'] . adm_back_link($this->u_action));
|
||||
trigger_error($user->lang['CAPTCHA_UNAVAILABLE'] . adm_back_link($this->u_action), E_USER_WARNING);
|
||||
}
|
||||
}
|
||||
trigger_error($user->lang['CONFIG_UPDATED'] . adm_back_link($this->u_action));
|
||||
}
|
||||
else if ($submit)
|
||||
{
|
||||
trigger_error($user->lang['FORM_INVALID'] . adm_back_link());
|
||||
trigger_error($user->lang['FORM_INVALID'] . adm_back_link(), E_USER_WARNING);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
@ -35,9 +35,9 @@ class acp_php_info
|
||||
|
||||
$this->tpl_name = 'acp_php_info';
|
||||
$this->page_title = 'ACP_PHP_INFO';
|
||||
|
||||
|
||||
ob_start();
|
||||
@phpinfo(INFO_GENERAL | INFO_CONFIGURATION | INFO_MODULES | INFO_VARIABLES);
|
||||
phpinfo(INFO_GENERAL | INFO_CONFIGURATION | INFO_MODULES | INFO_VARIABLES);
|
||||
$phpinfo = ob_get_clean();
|
||||
|
||||
$phpinfo = trim($phpinfo);
|
||||
|
@ -46,7 +46,10 @@ class dbal_postgres extends dbal
|
||||
|
||||
if ($sqlserver)
|
||||
{
|
||||
if (strpos($sqlserver, ':') !== false)
|
||||
// $sqlserver can carry a port separated by : for compatibility reasons
|
||||
// If $sqlserver has more than one : it's probably an IPv6 address.
|
||||
// In this case we only allow passing a port via the $port variable.
|
||||
if (substr_count($sqlserver, ':') === 1)
|
||||
{
|
||||
list($sqlserver, $port) = explode(':', $sqlserver);
|
||||
}
|
||||
|
@ -969,11 +969,16 @@ function display_user_activity(&$userdata)
|
||||
$forum_ary = array_unique($forum_ary);
|
||||
$forum_sql = (sizeof($forum_ary)) ? 'AND ' . $db->sql_in_set('forum_id', $forum_ary, true) : '';
|
||||
|
||||
$fid_m_approve = $auth->acl_getf('m_approve', true);
|
||||
$sql_m_approve = (!empty($fid_m_approve)) ? 'OR ' . $db->sql_in_set('forum_id', array_keys($fid_m_approve)) : '';
|
||||
|
||||
// Obtain active forum
|
||||
$sql = 'SELECT forum_id, COUNT(post_id) AS num_posts
|
||||
FROM ' . POSTS_TABLE . '
|
||||
WHERE poster_id = ' . $userdata['user_id'] . "
|
||||
AND post_postcount = 1
|
||||
AND (post_approved = 1
|
||||
$sql_m_approve)
|
||||
$forum_sql
|
||||
GROUP BY forum_id
|
||||
ORDER BY num_posts DESC";
|
||||
@ -996,6 +1001,8 @@ function display_user_activity(&$userdata)
|
||||
FROM ' . POSTS_TABLE . '
|
||||
WHERE poster_id = ' . $userdata['user_id'] . "
|
||||
AND post_postcount = 1
|
||||
AND (post_approved = 1
|
||||
$sql_m_approve)
|
||||
$forum_sql
|
||||
GROUP BY topic_id
|
||||
ORDER BY num_posts DESC";
|
||||
|
@ -4,7 +4,7 @@
|
||||
|
||||
<h2>{L_TITLE}</h2>
|
||||
|
||||
<!-- IF SIGNATURE_PREVIEW -->
|
||||
<!-- IF SIGNATURE_PREVIEW != '' -->
|
||||
<div class="panel">
|
||||
<div class="inner"><span class="corners-top"><span></span></span>
|
||||
<h3>{L_SIGNATURE_PREVIEW}</h3>
|
||||
|
Loading…
x
Reference in New Issue
Block a user