summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorINOPIAE <inopiae@cacert.org>2013-05-01 12:34:07 +0200
committerINOPIAE <inopiae@cacert.org>2013-05-01 12:34:07 +0200
commitd58d6927c0aa3d92134c88a067b25ab99f39cb69 (patch)
tree306f4f8eb9248ef484e326e88b86b491fc0d53fa
parentef6fa684e0c1ac2155036cc2981c65482de92bfc (diff)
downloadcacert-devel-d58d6927c0aa3d92134c88a067b25ab99f39cb69.tar.gz
cacert-devel-d58d6927c0aa3d92134c88a067b25ab99f39cb69.tar.xz
cacert-devel-d58d6927c0aa3d92134c88a067b25ab99f39cb69.zip
bug 1094: Added new message regarding disputes on organisation domains
-rw-r--r--www/disputes.php13
1 files changed, 11 insertions, 2 deletions
diff --git a/www/disputes.php b/www/disputes.php
index 5b78c1e..b323457 100644
--- a/www/disputes.php
+++ b/www/disputes.php
@@ -264,7 +264,7 @@
echo _("You aren't allowed to dispute your own email addresses. Can't continue.");
showfooter();
exit;
- }
+ }
$res = mysql_query("select * from `users` where `id`='$oldmemid'");
$user = mysql_fetch_assoc($res);
@@ -323,6 +323,15 @@
$res = mysql_query($query);
if(mysql_num_rows($res) <= 0)
{
+ $query = "select 1 from `orgdomains` where `domain`='$domain'";
+ $res = mysql_query($query);
+ if(mysql_num_rows($res) > 0)
+ {
+ showheader(_("Domain Dispute"));
+ printf(_("The domain '%s' is included in an organisation account. Please send a mail to support@cacert.org to dispute this domain."), sanitizeHTML($domain));
+ showfooter();
+ exit;
+ }
showheader(_("Domain Dispute"));
printf(_("The domain '%s' doesn't exist in the system. Can't continue."), sanitizeHTML($email));
showfooter();
@@ -336,7 +345,7 @@
echo _("You aren't allowed to dispute your own domains. Can't continue.");
showfooter();
exit;
- }
+ }
$domainid = $row['id'];
$_SESSION['_config']['domainid'] = $domainid;