Версия: 3.0.11
Русский: Есть
Открыть: includes/constants.php
Найти:
- Код: Выделить всё
// Additional constants
- Код: Выделить всё
define('WPM_CONFIG_ID', 1);
- Код: Выделить всё
?>
- Код: Выделить всё
define('WPM_TABLE', $table_prefix . 'wpm');
Открыть: includes/functions.php
Найти:
- Код: Выделить всё
// Special case... the user is effectively banned, but we allow founders to login
if (defined('IN_CHECK_BAN') && $result['user_row']['user_type'] != USER_FOUNDER)
{
return;
}
- Код: Выделить всё
if($row['wpm_enable'] && $user->data['user_lastvisit'] == 0)
{
include($phpbb_root_path . 'includes/functions_wpm.' . $phpEx);
$wpm = new welcome_pm();
$wpm->get_vars();
$wpm->send_wpm();
}
/* End WPM */
- Код: Выделить всё
CREATE TABLE phpbb_wpm (
wpm_config_id int(3) NOT NULL,
wpm_enable tinyint(1) unsigned NOT NULL,
wpm_send_id mediumint(8) NOT NULL,
wpm_preview tinyint(1) unsigned NOT NULL,
wpm_variables varchar(255) NOT NULL,
wpm_subject varchar(100) NOT NULL,
wpm_message mediumtext NOT NULL,
wpm_version varchar(255) NOT NULL,
PRIMARY KEY (wpm_config_id)
) ;
INSERT INTO phpbb_wpm (wpm_config_id, wpm_enable, wpm_send_id, wpm_preview, wpm_variables, wpm_subject, wpm_message, wpm_version) VALUES(1, 1, 2, 0, '', 'Welcome to {SITE_NAME}!', 'Hello, [b]{USERNAME}[/b]!\n\nWelcome to {SITE_NAME} ({SITE_DESC})\n\nYou registered on [b]{USER_REGDATE}[/b]. According to your input, your email is [b]{USER_EMAIL}[/b] and you live in timezone [b]{USER_TZ}[/b]. It is nice to know that you speak {USER_LANG_LOCAL}.\n\nYou can contact us here: {BOARD_CONTACT} or here: {BOARD_EMAIL}, whichever you prefer, at anytime. Thank you for choosing us.\n\n-Thank you for registering at {SITE_NAME}!\n\nThanks, {SENDER}', '2.2.5');
Скрытый текст. Необходимо зарегистрироваться.