Example #1
0
		}
		$banEmail = Input::Get("f_ban_email", 'checkbox');
		if ($banEmail) {
			$banItem = new Phorum_ban_item();
			$banItem->create(PHORUM_BAD_EMAILS, false, $comment->getEmail());
			$banned = true;
		} else {
			Phorum_ban_item::DeleteMatching(PHORUM_BAD_EMAILS, false, $comment->getEmail());
		}
		$banName = Input::Get("f_ban_name", 'checkbox');
		if ($banName) {
			$banItem = new Phorum_ban_item();
			$banItem->create(PHORUM_BAD_NAMES, false, $comment->getAuthor());
			$banned = true;
		} else {
			Phorum_ban_item::DeleteMatching(PHORUM_BAD_NAMES, false, $comment->getAuthor());
		}
	}
}

?>
<html>
<head>
  <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
  <meta http-equiv="Expires" content="now" />
  <link rel="stylesheet" type="text/css" href="<?php echo $Campsite['ADMIN_STYLE_URL']; ?>/admin_stylesheet.css" />
  <title><?php putGS("Ban user from comments"); ?></title>
</head>
<body>
<?php
if (isset($connectedToOnlineServer)