1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-25 23:36:29 +02:00

Merge pull request #4065 from LaocheXe/master

Delete Account Option
This commit is contained in:
Cameron
2020-02-21 11:32:31 -08:00
committed by GitHub
4 changed files with 23 additions and 5 deletions

View File

@@ -600,13 +600,21 @@ class usersettings_shortcodes extends e_shortcode
{
return null;
}
$pref = e107::getPref();
if($pref['del_accu'] == 1)
{
$confirm = defset("LAN_USET_51", "Are you sure? This procedure cannot be reversed! Once completed all personal data that you have entered on this site will be permanently lost and you will no longer be able to login.");
$label = defset('LAN_USET_50', "Delete All Account Information");
$confirm = defset("LAN_USET_51", "Are you sure? This procedure cannot be reversed! Once completed all personal data that you have entered on this site will be permanently lost and you will no longer be able to login.");
$label = defset('LAN_USET_50', "Delete All Account Information");
$parm['confirm'] = $confirm;
$parm['confirm'] = $confirm;
return e107::getForm()->button('delete_account',1, 'delete', $label, $parm);
return e107::getForm()->button('delete_account',1, 'delete', $label, $parm);
}
else
{
return null;
}
}

View File

@@ -423,6 +423,14 @@ City, State, Country
'pinterest' => '',
'vimeo' => '',
)]]></core>
<core name="avatar_upload">0</core>
<core name="photo_upload">0</core>
<core name="profile_rate">0</core>
<core name="profile_comments">0</core>
<core name="force_userupdate">0</core>
<core name="del_unv">0</core>
<core name="del_accu">1</core>
<core name="signature_access">253</core>
<emote name="alien!png">!alien</emote>
<emote name="amazed!png">!amazed</emote>
<emote name="angry!png">!grr !angry</emote>