Please try again.
'; include '../templates/template-page.php'; exit(); } // validate userid if (!$user = User::getById($_GET['uid'])) { $GLOBALS['TEMPLATE']['content'] = 'No such account.' . '
Please try again.
'; } // make sure the account is not active else { if ($user->isActive) { $GLOBALS['TEMPLATE']['content'] = 'That account ' . 'has already been verified.
'; } // activate the account else { if ($user->clearPending($_GET['token'])) { $GLOBALS['TEMPLATE']['content'] = 'Thank you ' . 'for verifying your account.
You may ' . 'now login.
'; } else { $GLOBALS['TEMPLATE']['content'] = 'You provided ' . 'invalid data.
Please try again.
'; } } } // display the page include '../templates/template-page.php'; ?>