mirror of
https://github.com/OPSnet/Gazelle.git
synced 2026-10-05 13:13:03 -04:00
16 lines
356 B
PHP
16 lines
356 B
PHP
<?php
|
|
|
|
if (!FEATURE_EMAIL_REENABLE || !isset($_GET['token'])) {
|
|
header("Location: index.php");
|
|
exit;
|
|
}
|
|
|
|
$enabler = (new Gazelle\Manager\AutoEnable)->findByToken($_GET['token']);
|
|
if (is_null($enabler)) {
|
|
error('invalid enable token');
|
|
}
|
|
|
|
echo $Twig->render('enable/processed.twig', [
|
|
'success' => $enabler->processToken($_GET['token']),
|
|
]);
|