mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-11 11:13:59 +02:00
- introduce new function build_url to easily build a valid url from the user->page object as well as optionally removing certain keys
- changed attachment config to utilize the config build methods - cleaned up posting.php - the submit/delete_post functions are now usable (functions_posting.php) - adjusted header icons (transparency) - a bunch of fixes for mssql - bug fixes git-svn-id: file:///svn/phpbb/trunk@5902 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
@@ -49,6 +49,7 @@ class ucp_groups
|
||||
|
||||
while ($row = $db->sql_fetchrow($result))
|
||||
{
|
||||
$row['group_name'] = ($row['group_type'] == GROUP_SPECIAL) ? $user->lang['G_' . $row['group_name']] : $row['group_name'];
|
||||
$group_row[$row['group_id']] = $row;
|
||||
}
|
||||
$db->sql_freeresult($result);
|
||||
@@ -58,10 +59,6 @@ class ucp_groups
|
||||
trigger_error('GROUP_NOT_EXIST');
|
||||
}
|
||||
|
||||
$group_row[$group_id]['group_name'] = ($group_row[$group_id]['group_type'] == GROUP_SPECIAL) ? $user->lang['G_' . $group_row[$group_id]['group_name']] : $group_row[$group_id]['group_name'];
|
||||
$group_row[$user->data['group_id']]['group_name'] = ($group_row[$user->data['group_id']]['group_type'] == GROUP_SPECIAL) ? $user->lang['G_' . $group_row[$user->data['group_id']]['group_name']] : $group_row[$user->data['group_id']]['group_name'];
|
||||
|
||||
|
||||
switch ($action)
|
||||
{
|
||||
case 'change_default':
|
||||
|
@@ -512,7 +512,7 @@ function compose_pm($id, $mode, $action)
|
||||
trigger_error($message);
|
||||
}
|
||||
|
||||
$message_subject = stripslashes($subject);
|
||||
$message_subject = $subject;
|
||||
}
|
||||
|
||||
// Preview
|
||||
|
@@ -24,7 +24,7 @@ class ucp_register
|
||||
{
|
||||
trigger_error($user->lang['UCP_REGISTER_DISABLE']);
|
||||
}
|
||||
|
||||
$config['max_reg_attempts'] = 0;
|
||||
include($phpbb_root_path . 'includes/functions_profile_fields.' . $phpEx);
|
||||
|
||||
$confirm_id = request_var('confirm_id', '');
|
||||
@@ -236,6 +236,7 @@ class ucp_register
|
||||
|
||||
$sql_ary = array(
|
||||
'username' => $username,
|
||||
'user_permissions' => '',
|
||||
'user_password' => md5($new_password),
|
||||
'user_email' => $email,
|
||||
'user_email_hash' => (int) crc32(strtolower($email)) . strlen($email),
|
||||
@@ -248,7 +249,15 @@ class ucp_register
|
||||
'user_actkey' => $user_actkey,
|
||||
'user_ip' => $user->ip,
|
||||
'user_regdate' => time(),
|
||||
'user_lastmark' => time(),
|
||||
|
||||
'user_lastmark' => time(),
|
||||
'user_lastvisit' => 0,
|
||||
'user_lastpost_time' => 0,
|
||||
'user_lastpage' => '',
|
||||
'user_posts' => 0,
|
||||
'user_dst' => 0,
|
||||
'user_colour' => '',
|
||||
'user_avatar' => '',
|
||||
);
|
||||
|
||||
$sql = 'INSERT INTO ' . USERS_TABLE . ' ' . $db->sql_build_array('INSERT', $sql_ary);
|
||||
|
Reference in New Issue
Block a user