1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-26 07:44:49 +02:00

Delete Account Option

Delete Account Option added in admin  area. Also updated the default_install.xml to add missing core options.
This commit is contained in:
LaocheXe
2020-01-10 08:28:17 -06:00
parent 08b9041039
commit e01f1a4345
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>