updated to reflect the live site

This commit is contained in:
2023-01-02 11:50:23 -08:00
parent 327a522882
commit f2791432e1
10 changed files with 104 additions and 66 deletions

View File

@ -65,8 +65,12 @@ function apelly_blacklist_domain_root ( $bol, $url ) {
// stop
//yourls_die( 'Blacklisted domain', 'Forbidden', 403 );
"<center>Blacklisted domain.</center>";
die();
return array(
'status' => 'fail',
'code' => 'error:url',
'message' => 'Blacklisted domain',
'errorCode' => '403',
);
}
}
}
@ -99,13 +103,13 @@ function apelly_blacklist_domain_form () {
echo <<<HTML
<h2>BlackList domains</h2>
<form method="post">
<input type="hidden" name="action" value="blacklist_domain" />
<input type="hidden" name="nonce" value="$nonce" />
<p>Blacklist following domains</p>
<p><textarea cols="60" rows="15" name="blacklist_form">$domain_list_display</textarea></p>
<p><textarea class="blacklist-domains" cols="60" rows="15" name="blacklist_form">$domain_list_display</textarea></p>
<p><input type="submit" value="Save" /></p>
</form>
HTML;