<?php
use function Chevereto\Legacy\G\get_client_ip;
use function Chevereto\Legacy\G\get_global;
use function Chevereto\Legacy\G\require_theme_file;
use function Chevereto\Legacy\G\safe_html;
use function Chevereto\Legacy\getSetting;

// @phpstan-ignore-next-line
if (!defined('ACCESS') || !ACCESS) {
    die('This file cannot be directly accessed.');
} ?>
<?php echo require_theme_file('mails/header'); ?>

<?php
_se(
    'We received a request to change the email of your <a href="%u">%n</a> account at %w.',
    [
        '%u' => get_global('theme_mail')['user']['public_url'],
        '%n' => get_global('theme_mail')['user']['name'],
        '%w' => getSetting('website_name', true)
    ]
);
?>
<br><br>
<?php _se('To complete the process you must <a href="%s">activate your email</a>.', get_global('theme_mail')['link']); ?>
<br><br>
<?php _se('Alternatively you can copy and paste the URL into your browser: <a href="%s">%s</a>', ['%s' => get_global('theme_mail')['link']]); ?>
<br><br>
<?php _se("If you didn't intend this just ignore this message."); ?>
<br>
<?php _se('This request was made from IP: %s', get_client_ip()); ?>

<?php echo require_theme_file('mails/footer'); ?>
