use Friendica\App;
use Friendica\Core\Config;
use Friendica\Core\L10n;
+use Friendica\Core\Renderer;
use Friendica\Core\System;
use Friendica\Database\DBA;
use Friendica\Model\User;
+use Friendica\Util\Strings;
require_once 'include/enotify.php';
function removeme_content(App $a)
{
if (!local_user()) {
- goaway(System::baseUrl());
+ $a->internalRedirect();
}
- $hash = random_string();
+ $hash = Strings::getRandomHex();
require_once("mod/settings.php");
settings_init($a);
$_SESSION['remove_account_verify'] = $hash;
- $tpl = get_markup_template('removeme.tpl');
- $o = replace_macros($tpl, [
- '$basedir' => System::baseUrl(),
+ $tpl = Renderer::getMarkupTemplate('removeme.tpl');
+ $o = Renderer::replaceMacros($tpl, [
+ '$basedir' => $a->getBaseURL(),
'$hash' => $hash,
'$title' => L10n::t('Remove My Account'),
'$desc' => L10n::t('This will completely remove your account. Once this has been done it is not recoverable.'),