1
0
mirror of https://github.com/e107inc/e107.git synced 2025-07-31 11:50:30 +02:00

Issue #3175 GDPR work.

This commit is contained in:
Cameron
2018-06-05 12:55:20 -07:00
parent 33f8b885fe
commit a1469aad5e
6 changed files with 53 additions and 4 deletions

View File

@@ -554,5 +554,22 @@ class usersettings_shortcodes extends e_shortcode
}
function sc_deleteaccountbutton($parm=array())
{
if((int) $_GET['id'] !== USERID)
{
return null;
}
$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;
return e107::getForm()->button('delete_account',1, 'delete', $label, $parm);
}
}
?>