mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-25 11:01:48 +02:00
Merge branch 'develop-ascraeus' into develop
* develop-ascraeus: [ticket/12722] Add Generic.Formatting.SpaceAfterCast in the legacy ruleset
This commit is contained in:
@@ -47,13 +47,13 @@ class acp_jabber
|
||||
$this->tpl_name = 'acp_jabber';
|
||||
$this->page_title = 'ACP_JABBER_SETTINGS';
|
||||
|
||||
$jab_enable = request_var('jab_enable', (bool) $config['jab_enable']);
|
||||
$jab_host = request_var('jab_host', (string) $config['jab_host']);
|
||||
$jab_port = request_var('jab_port', (int) $config['jab_port']);
|
||||
$jab_username = request_var('jab_username', (string) $config['jab_username']);
|
||||
$jab_password = request_var('jab_password', (string) $config['jab_password']);
|
||||
$jab_package_size = request_var('jab_package_size', (int) $config['jab_package_size']);
|
||||
$jab_use_ssl = request_var('jab_use_ssl', (bool) $config['jab_use_ssl']);
|
||||
$jab_enable = request_var('jab_enable', (bool) $config['jab_enable']);
|
||||
$jab_host = request_var('jab_host', (string) $config['jab_host']);
|
||||
$jab_port = request_var('jab_port', (int) $config['jab_port']);
|
||||
$jab_username = request_var('jab_username', (string) $config['jab_username']);
|
||||
$jab_password = request_var('jab_password', (string) $config['jab_password']);
|
||||
$jab_package_size = request_var('jab_package_size', (int) $config['jab_package_size']);
|
||||
$jab_use_ssl = request_var('jab_use_ssl', (bool) $config['jab_use_ssl']);
|
||||
|
||||
$form_name = 'acp_jabber';
|
||||
add_form_key($form_name);
|
||||
|
@@ -835,7 +835,7 @@ class auth_admin extends \phpbb\auth\auth
|
||||
}
|
||||
|
||||
// Remove current auth options...
|
||||
$auth_option_ids = array((int)$any_option_id);
|
||||
$auth_option_ids = array((int) $any_option_id);
|
||||
foreach ($auth as $auth_option => $auth_setting)
|
||||
{
|
||||
$auth_option_ids[] = (int) $this->acl_options['id'][$auth_option];
|
||||
|
@@ -1007,8 +1007,8 @@ function get_remote_avatar_dim($src, $axis)
|
||||
{
|
||||
$bigger = ($remote_avatar_cache[$src][0] > $remote_avatar_cache[$src][1]) ? 0 : 1;
|
||||
$ratio = $default[$bigger] / $remote_avatar_cache[$src][$bigger];
|
||||
$remote_avatar_cache[$src][0] = (int)($remote_avatar_cache[$src][0] * $ratio);
|
||||
$remote_avatar_cache[$src][1] = (int)($remote_avatar_cache[$src][1] * $ratio);
|
||||
$remote_avatar_cache[$src][0] = (int) ($remote_avatar_cache[$src][0] * $ratio);
|
||||
$remote_avatar_cache[$src][1] = (int) ($remote_avatar_cache[$src][1] * $ratio);
|
||||
}
|
||||
}
|
||||
|
||||
|
@@ -755,7 +755,7 @@ function user_ban($mode, $ban, $ban_len, $ban_len_other, $ban_exclude, $ban_reas
|
||||
else
|
||||
{
|
||||
$ban_other = explode('-', $ban_len_other);
|
||||
if (sizeof($ban_other) == 3 && ((int)$ban_other[0] < 9999) &&
|
||||
if (sizeof($ban_other) == 3 && ((int) $ban_other[0] < 9999) &&
|
||||
(strlen($ban_other[0]) == 4) && (strlen($ban_other[1]) == 2) && (strlen($ban_other[2]) == 2))
|
||||
{
|
||||
$ban_end = max($current_time, $user->create_datetime()
|
||||
@@ -2086,7 +2086,7 @@ function avatar_delete($mode, $row, $clean_db = false)
|
||||
// Check if the users avatar is actually *not* a group avatar
|
||||
if ($mode == 'user')
|
||||
{
|
||||
if (strpos($row['user_avatar'], 'g') === 0 || (((int)$row['user_avatar'] !== 0) && ((int)$row['user_avatar'] !== (int)$row['user_id'])))
|
||||
if (strpos($row['user_avatar'], 'g') === 0 || (((int) $row['user_avatar'] !== 0) && ((int) $row['user_avatar'] !== (int) $row['user_id'])))
|
||||
{
|
||||
return false;
|
||||
}
|
||||
@@ -2419,7 +2419,7 @@ function group_correct_avatar($group_id, $old_entry)
|
||||
{
|
||||
global $config, $db, $phpbb_root_path;
|
||||
|
||||
$group_id = (int)$group_id;
|
||||
$group_id = (int) $group_id;
|
||||
$ext = substr(strrchr($old_entry, '.'), 1);
|
||||
$old_filename = get_avatar_filename($old_entry);
|
||||
$new_filename = $config['avatar_salt'] . "_g$group_id.$ext";
|
||||
@@ -2844,7 +2844,7 @@ function remove_default_avatar($group_id, $user_ids)
|
||||
|
||||
$sql = 'SELECT *
|
||||
FROM ' . GROUPS_TABLE . '
|
||||
WHERE group_id = ' . (int)$group_id;
|
||||
WHERE group_id = ' . (int) $group_id;
|
||||
$result = $db->sql_query($sql);
|
||||
if (!$row = $db->sql_fetchrow($result))
|
||||
{
|
||||
@@ -2885,7 +2885,7 @@ function remove_default_rank($group_id, $user_ids)
|
||||
|
||||
$sql = 'SELECT *
|
||||
FROM ' . GROUPS_TABLE . '
|
||||
WHERE group_id = ' . (int)$group_id;
|
||||
WHERE group_id = ' . (int) $group_id;
|
||||
$result = $db->sql_query($sql);
|
||||
if (!$row = $db->sql_fetchrow($result))
|
||||
{
|
||||
@@ -2896,9 +2896,9 @@ function remove_default_rank($group_id, $user_ids)
|
||||
|
||||
$sql = 'UPDATE ' . USERS_TABLE . '
|
||||
SET user_rank = 0
|
||||
WHERE group_id = ' . (int)$group_id . '
|
||||
WHERE group_id = ' . (int) $group_id . '
|
||||
AND user_rank <> 0
|
||||
AND user_rank = ' . (int)$row['group_rank'] . '
|
||||
AND user_rank = ' . (int) $row['group_rank'] . '
|
||||
AND ' . $db->sql_in_set('user_id', $user_ids);
|
||||
$db->sql_query($sql);
|
||||
}
|
||||
|
@@ -567,7 +567,7 @@ function mcp_move_topic($topic_ids)
|
||||
'topic_last_poster_id' => (int) $row['topic_last_poster_id'],
|
||||
'topic_last_poster_colour'=>(string) $row['topic_last_poster_colour'],
|
||||
'topic_last_poster_name'=> (string) $row['topic_last_poster_name'],
|
||||
'topic_last_post_subject'=> (string) $row['topic_last_post_subject'],
|
||||
'topic_last_post_subject'=> (string) $row['topic_last_post_subject'],
|
||||
'topic_last_post_time' => (int) $row['topic_last_post_time'],
|
||||
'topic_last_view_time' => (int) $row['topic_last_view_time'],
|
||||
'topic_moved_id' => (int) $row['topic_id'],
|
||||
|
@@ -534,7 +534,7 @@ else
|
||||
return '';
|
||||
}
|
||||
|
||||
$lx = (int)((-$length) / 65535);
|
||||
$lx = (int) ((-$length) / 65535);
|
||||
$ly = (-$length) % 65535;
|
||||
|
||||
// negative length requires ... capture everything
|
||||
|
Reference in New Issue
Block a user