<?php
// Добавляем системный шаблон
run_query("INSERT INTO `" . $config['table_prefix'] . "mail_templates` (`type`, `name`, `sender`, `subject`, `body`) VALUES (3, '" . $lang['New_message'] . "', '" . $config['application'] . "', '" . $lang['New_messages'] . "', '<p>{new_message_text}</p><p><a href=\"{program_link}\">" . $lang['Go'] . "</a></p>')");
// Добавляем задание в крон
run_query("INSERT INTO `" . $config["table_prefix"] . "cron` (`description`, `period`, `command`, `thread_name`) VALUES ('" . $lang['New_messages'] . "', '1-59/5 * * * *', 'messages_notify();', 'message_notify')");
?>