mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-10 18:54:08 +02:00
#10005, #10003, #10001, #9999, #9945, #9965, #9909, #9906, #9877, #9861, #9831, #9830, #9815, #9665, #9624
prosilver adjustments for important announcements in ucp - #9995 MCP fixes for user notes/warnings - #9981 Preserving imageset values on save/edit find a member link for Mass PM's - #9925 syndicate window.onload events where necessary - #9878 Duplicate topics in forums with announcements - #9840 Email template for forced re-activation - #9808 Topic pagination adjustment - #9763 Changed compose message layout in UCP - #9706, #9702 Fixed inline attachment font size (hopefully) git-svn-id: file:///svn/phpbb/trunk@7384 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
@@ -1421,7 +1421,9 @@ parse_css_file = {PARSE_CSS_FILE}
|
||||
global $db, $user, $phpbb_root_path, $cache, $template;
|
||||
|
||||
$this->page_title = 'EDIT_IMAGESET';
|
||||
|
||||
$update = (isset($_POST['update'])) ? true : false;
|
||||
|
||||
$imgname = request_var('imgname', '');
|
||||
$imgpath = request_var('imgpath', '');
|
||||
$imgsize = request_var('imgsize', false);
|
||||
@@ -1446,7 +1448,7 @@ parse_css_file = {PARSE_CSS_FILE}
|
||||
if (strpos($imgname, '-') !== false)
|
||||
{
|
||||
list($imgname, $imgnamelang) = explode('-', $imgname);
|
||||
$sql_extra = " AND image_lang IN('" . $db->sql_escape($imgnamelang) . "', '')";
|
||||
$sql_extra = " AND image_lang IN ('" . $db->sql_escape($imgnamelang) . "', '')";
|
||||
}
|
||||
|
||||
$sql = 'SELECT image_filename, image_width, image_height, image_lang, image_id
|
||||
@@ -1455,12 +1457,13 @@ parse_css_file = {PARSE_CSS_FILE}
|
||||
AND image_name = '" . $db->sql_escape($imgname) . "'$sql_extra";
|
||||
$result = $db->sql_query($sql);
|
||||
$imageset_data_row = $db->sql_fetchrow($result);
|
||||
$db->sql_freeresult($result);
|
||||
|
||||
$image_filename = $imageset_data_row['image_filename'];
|
||||
$image_width = $imageset_data_row['image_width'];
|
||||
$image_height = $imageset_data_row['image_height'];
|
||||
$image_lang = $imageset_data_row['image_lang'];
|
||||
$image_id = $imageset_data_row['image_id'];
|
||||
$db->sql_freeresult($result);
|
||||
|
||||
if (!$imageset_row)
|
||||
{
|
||||
@@ -1484,17 +1487,16 @@ parse_css_file = {PARSE_CSS_FILE}
|
||||
if ($valid_name)
|
||||
{
|
||||
// If imgwidth and imgheight are non-zero grab the actual size
|
||||
// from the image itself ... we ignore width settings for the poll center
|
||||
// image
|
||||
// from the image itself ... we ignore width settings for the poll center image
|
||||
$imgwidth = $imgheight = 0;
|
||||
$imglang = '';
|
||||
|
||||
if ($imageset_path && !file_exists("{$phpbb_root_path}styles/$imageset_path/imageset/$imgpath"))
|
||||
if ($imgpath && !file_exists("{$phpbb_root_path}styles/$imageset_path/imageset/$imgpath"))
|
||||
{
|
||||
trigger_error($user->lang['NO_IMAGE_ERROR'] . adm_back_link($this->u_action), E_USER_WARNING);
|
||||
}
|
||||
|
||||
if ($imgsize && $imageset_path)
|
||||
if ($imgsize && $imgpath)
|
||||
{
|
||||
list($imgwidth, $imgheight) = getimagesize("{$phpbb_root_path}styles/$imageset_path/imageset/$imgpath");
|
||||
$imgwidth = ($imgname != 'poll_center') ? (int) $imgwidth : 0;
|
||||
@@ -1538,6 +1540,11 @@ parse_css_file = {PARSE_CSS_FILE}
|
||||
add_log('admin', 'LOG_IMAGESET_EDIT', $imageset_name);
|
||||
|
||||
$template->assign_var('SUCCESS', true);
|
||||
|
||||
$image_filename = $imgfilename;
|
||||
$image_width = $imgwidth;
|
||||
$image_height = $imgheight;
|
||||
$image_lang = $imglang;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1647,7 +1654,6 @@ parse_css_file = {PARSE_CSS_FILE}
|
||||
}
|
||||
|
||||
$imgsize_bool = (!empty($imgname) && $image_width && $image_height) ? true : false;
|
||||
|
||||
$image_request = '../styles/' . $imageset_path . '/imageset/' . ($image_lang ? $imgnamelang . '/' : '') . $image_filename;
|
||||
|
||||
$template->assign_vars(array(
|
||||
|
@@ -282,6 +282,7 @@ class acp_users
|
||||
$key_len = 54 - (strlen($server_url));
|
||||
$key_len = ($key_len > 6) ? $key_len : 6;
|
||||
$user_actkey = substr($user_actkey, 0, $key_len);
|
||||
$email_template = ($user_row['user_type'] == USER_NORMAL) ? 'user_reactivate_account' : 'user_resend_inactive';
|
||||
|
||||
if ($user_row['user_type'] == USER_NORMAL)
|
||||
{
|
||||
@@ -295,7 +296,7 @@ class acp_users
|
||||
|
||||
$messenger = new messenger(false);
|
||||
|
||||
$messenger->template('user_resend_inactive', $user_row['user_lang']);
|
||||
$messenger->template($email_template, $user_row['user_lang']);
|
||||
|
||||
$messenger->to($user_row['user_email'], $user_row['username']);
|
||||
|
||||
@@ -1168,7 +1169,7 @@ class acp_users
|
||||
if ($submit)
|
||||
{
|
||||
$error = validate_data($data, array(
|
||||
'dateformat' => array('string', false, 3, 30),
|
||||
'dateformat' => array('string', false, 1, 30),
|
||||
'lang' => array('match', false, '#^[a-z_\-]{2,}$#i'),
|
||||
'tz' => array('num', false, -14, 14),
|
||||
|
||||
|
Reference in New Issue
Block a user