Minor improvements (#280)

This commit is contained in:
Roman Kelesidis 2023-09-30 19:14:15 +07:00 committed by GitHub
parent 31c93ec0a0
commit e55f8f5ece
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 7 additions and 7 deletions

View File

@ -545,12 +545,12 @@ $bb_cfg['attach'] = array(
'max_size' => 5*1024*1024, // размер аватары в байтах
);
$bb_cfg['tor_forums_allowed_ext'] = array('torrent', 'zip', 'rar'); // для разделов с раздачами
$bb_cfg['gen_forums_allowed_ext'] = array('zip', 'rar'); // для обычных разделов
$bb_cfg['tor_forums_allowed_ext'] = array('torrent', 'zip', 'rar'); // TODO: для разделов с раздачами
$bb_cfg['gen_forums_allowed_ext'] = array('zip', 'rar'); // TODO: для обычных разделов
// Avatars
$bb_cfg['avatars'] = array(
'allowed_ext' => array('gif','jpg','jpeg','png'), // разрешенные форматы файлов
'allowed_ext' => array('gif','jpg','jpeg','png','webp','bmp'), // разрешенные форматы файлов
'bot_avatar' => 'gallery/bot.gif', // аватара бота
'max_size' => 100*1024, // размер аватары в байтах
'max_height' => 100, // высота аватара в px
@ -562,7 +562,7 @@ $bb_cfg['avatars'] = array(
// Group avatars
$bb_cfg['group_avatars'] = array(
'allowed_ext' => array('gif','jpg','jpeg','png'), // разрешенные форматы файлов
'allowed_ext' => array('gif','jpg','jpeg','png','webp','bmp'), // разрешенные форматы файлов
'max_size' => 300*1024, // размер аватары в байтах
'max_height' => 300, // высота аватара в px
'max_width' => 300, // ширина аватара в px

View File

@ -627,7 +627,7 @@ switch ($mode)
$poster_id = $postrow[$i]['poster_id'];
$poster = $postrow[$i]['username'];
$post_date = bb_date($postrow[$i]['post_time']);
$post_date = bb_date($postrow[$i]['post_time'], $bb_cfg['post_date_format']);
$message = $postrow[$i]['post_text'];

View File

@ -374,8 +374,8 @@ var TPL = {
reg: {
num : /^\d+$/,
URL : /^https?:\/\/[\w\#$%&~/.\-;:=?@\[\]+]+$/i,
img : /^https?:\/\/[^\s\?&;:=\#\"<>]+\.(jpg|jpeg|gif|png)$/i,
img_tag : /(https?:\/\/[^\s\?&;:=\#\"<>]+\.(jpg|jpeg|gif|png)(?!\[|\]|\.))/ig
img : /^https?:\/\/[^\s\?&;:=\#\"<>]+\.(jpg|jpeg|gif|png|webp|bmp)$/i,
img_tag : /(https?:\/\/[^\s\?&;:=\#\"<>]+\.(jpg|jpeg|gif|png|webp|bmp)(?!\[|\]|\.))/ig
},
// построение сообщения на основе данных из формы