summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormam <m.maengel@project-biz.de>2014-02-21 22:17:08 +0100
committermam <m.maengel@project-biz.de>2014-02-21 22:17:08 +0100
commit0e67101f0a27a85747058be10e1dd5642066e64e (patch)
tree7166f35a3ce46eaae0bf747cc6d1e965fb66f2f9
parentff98728fc0dc34489b506f204014edb60dc45db3 (diff)
downloadcacert-devel-0e67101f0a27a85747058be10e1dd5642066e64e.tar.gz
cacert-devel-0e67101f0a27a85747058be10e1dd5642066e64e.tar.xz
cacert-devel-0e67101f0a27a85747058be10e1dd5642066e64e.zip
bug 1138: added return link to missing or wrong delete account request
-rw-r--r--includes/account.php5
1 files changed, 5 insertions, 0 deletions
diff --git a/includes/account.php b/includes/account.php
index 05c7687..d49e62f 100644
--- a/includes/account.php
+++ b/includes/account.php
@@ -3078,18 +3078,21 @@ function buildSubjectFromSession() {
if (trim($_REQUEST['arbitrationno'])==""){
showheader(_("My CAcert.org Account!"));
echo _("You did not enter an arbitration number entry.");
+ printf('<br/><a href="account.php?id=43&amp;userid=' . $_REQUEST['userid'] . '">' . _('Back to previous page.') .'</a>');
showfooter();
exit;
}
if ( 1 !== preg_match('/^[a-z]\d{8}\.\d+\.\d+$/i',trim($_REQUEST['arbitrationno'])) ) {
showheader(_("My CAcert.org Account!"));
printf(_("'%s' is not a valid arbitration number entry."), sanitizeHTML(trim($_REQUEST['arbitrationno'])));
+ printf('<br/><a href="account.php?id=43&amp;userid=' . $_REQUEST['userid'] . '">' . _('Back to previous page.') .'</a>');
showfooter();
exit;
}
if (check_email_exists(trim($_REQUEST['arbitrationno']).'@cacert.org')) {
showheader(_("My CAcert.org Account!"));
printf(_("The email address '%s' is already in a different account. Can't continue."), sanitizeHTML($_REQUEST['arbitrationno'].'@cacert.org'));
+ printf('<br/><a href="account.php?id=43&amp;userid=' . $_REQUEST['userid'] . '">' . _('Back to previous page.') .'</a>');
showfooter();
exit;
}
@@ -3098,12 +3101,14 @@ function buildSubjectFromSession() {
check_gpg_cert_running($_REQUEST['userid'],1)) {
showheader(_("My CAcert.org Account!"));
printf(_("The CCA retention time for at least one certificate is not over. Can't continue."));
+ printf('<br/><a href="account.php?id=43&amp;userid=' . $_REQUEST['userid'] . '">' . _('Back to previous page.') .'</a>');
showfooter();
exit;
}
if (check_is_orgadmin($_REQUEST['userid'],1)) {
showheader(_("My CAcert.org Account!"));
printf(_("The user is listed as Organisation Administrator. Can't continue."));
+ printf('<br/><a href="account.php?id=43&amp;userid=' . $_REQUEST['userid'] . '">' . _('Back to previous page.') .'</a>');
showfooter();
exit;
}