Re: Пожелания дополнений Event List
Добавлено: 20.09.2016 12:19
Паблик
скачать русский перевод, моды, скины и стили для phpBB, phpBB3
https://www.phpbbguru.net/community/
Код: Выделить всё
function build_header($to, $cc, $bcc)
{
global $config;
Код: Выделить всё
$config
Код: Выделить всё
, $phpbb_dispatcher
Код: Выделить всё
return $headers;
Код: Выделить всё
/**
* Modify e-mail header
*
* @event 'core.core.build_header_after
* @var array $headers Array containing e-mail header
* @since 3.1.11
*/
$vars = array('headers');
extract($phpbb_dispatcher->trigger_event('core.build_header_after', compact($vars)));
Код: Выделить всё
$headers[] = 'Reply-To: ' . $this->replyto;
$headers[] = 'Return-Path: <' . $config['board_email'] . '>';
$headers[] = 'Sender: <' . $config['board_email'] . '>';
$headers[] = 'MIME-Version: 1.0';
$headers[] = 'Message-ID: <' . $this->generate_message_id() . '>';
$headers[] = 'Date: ' . date('r', time());
$headers[] = 'Content-Type: text/plain; charset=UTF-8'; // format=flowed
$headers[] = 'Content-Transfer-Encoding: 8bit'; // 7bit
$headers[] = 'X-Priority: ' . $this->mail_priority;
$headers[] = 'X-MSMail-Priority: ' . (($this->mail_priority == MAIL_LOW_PRIORITY) ? 'Low' : (($this->mail_priority == MAIL_NORMAL_PRIORITY) ? 'Normal' : 'High'));
$headers[] = 'X-Mailer: phpBB3';
$headers[] = 'X-MimeOLE: phpBB3';
$headers[] = 'X-phpBB-Origin: phpbb://' . str_replace(array('http://', 'https://'), array('', ''), generate_board_url());
Код: Выделить всё
$headers[] = 'Content-Type: text/plain; charset=UTF-8'; // format=flowed
Код: Выделить всё
$headers[] = 'Content-Type: text/html; charset=UTF-8'; // format=flowed
$headers
function headers($headers)
просто его добавить, первый не перезапишется последним при отправке сообщения?Код: Выделить всё
MIME-Version: 1.0
Message-ID: <d6ce78dcb7d47ae028f3a1c8a24ca537@localhost>
Date: Wed, 26 Oct 2016 20:40:38 +0300
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
X-Priority: 3
X-MSMail-Priority: Normal
X-Mailer: phpBB3
X-MimeOLE: phpBB3
X-phpBB-Origin: phpbb://localhost/319
X-AntiAbuse: Board servername - localhost
X-AntiAbuse: User_id - 2
X-AntiAbuse: Username - Sheer
X-AntiAbuse: User IP - 127.0.0.1
Content-Type: text/html; charset=UTF-8
Код: Выделить всё
$headers = $event['headers'];
if ($this->request->variable('s_html', 0))
{
$headers = $event['headers'];
$key = array_search('Content-Type: text/plain; charset=UTF-8', $headers);
$headers[$key] = 'Content-Type: text/html; charset=UTF-8';
$event['headers'] = $headers;
}
posting.php
Код: Выделить всё
// Get Poll Data
if ($post_data['poll_start'])
mode
и post_data
includex/functions_posting.php
Код: Выделить всё
$template->assign_block_vars('attach_row', array(
attach_row
и массив, который идёт в шаблонincludes/mesage_parser.php
Код: Выделить всё
$this->attachment_data = array_merge(array(0 => $new_entry), $this->attachment_data);
$this->attachment_data
includes\functions_user.php
core.delete_user_after
не хватает параметра user_rows
viewforum.php
Код: Выделить всё
unset($rowset[$topic_id]);
}
}
styles/prosilver/template/posting_attach_body.html
Код: Выделить всё
<!-- BEGIN attach_row -->
<tr class="attach-row" data-attach-id="{attach_row.ATTACH_ID}">
<td class="attach-name">
<span class="file-name ellipsis-text"><a href="{attach_row.U_VIEW_ATTACHMENT}">{attach_row.FILENAME}</a></span>
<span class="attach-controls">
<!-- IF S_INLINE_ATTACHMENT_OPTIONS --><input type="button" value="{L_PLACE_INLINE}" class="button2 file-inline-bbcode" /> <!-- ENDIF -->
<input type="submit" name="delete_file[{attach_row.ASSOC_INDEX}]" value="{L_DELETE_FILE}" class="button2 file-delete" />
</span>
memberlist.php
Код: Выделить всё
// Generate page
$template->assign_vars(array(
'TOTAL_USERS' => $user->lang('LIST_USERS', (int) $total_users),
params
и sort_url