updated to reflect the live site
This commit is contained in:
@ -65,7 +65,7 @@ function ludo_blacklist_ip_form () {
|
||||
<input type="hidden" name="nonce" value="$nonce" />
|
||||
|
||||
<p>Blacklist following IPs (one range or IP per line, no wildcards allowed) :</p>
|
||||
<p><textarea cols="50" rows="10" name="blacklist_form">$liste_ip_display</textarea></p>
|
||||
<p><textarea class="blacklist-ips" cols="50" rows="10" name="blacklist_form">$liste_ip_display</textarea></p>
|
||||
|
||||
<p><input type="submit" value="Save" /></p>
|
||||
<p>I suggest to add here IPs that you saw adding bulk URL. It is your own responsibility to check the use of the IPs you block. WARNING : erroneous entries may create unexpected behaviours, please double-check before validation.</p>
|
||||
|
@ -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;
|
||||
|
@ -69,7 +69,7 @@ input[type="submit"]:disabled {
|
||||
|
||||
input.text,
|
||||
input[type="text"] {
|
||||
border: 1px solid rgba(255, 255, 255, 0.25) !important;
|
||||
border: 1px solid #ffffff40 !important;
|
||||
transition: 0.4s all
|
||||
}
|
||||
|
||||
@ -585,7 +585,27 @@ div.share {
|
||||
padding: 0px 20px 10px;
|
||||
margin-top: 10px
|
||||
}
|
||||
|
||||
textarea.blacklist-domains{
|
||||
background-color:#313131;
|
||||
color: #fff;
|
||||
border: none;
|
||||
height: 400px;
|
||||
max-width: 100%;
|
||||
}
|
||||
textarea.blacklist-ips{
|
||||
background-color:#313131;
|
||||
color: #fff;
|
||||
border: none;
|
||||
width: 320px;
|
||||
max-width: 100%;
|
||||
height: 125px;
|
||||
}
|
||||
textarea.blacklist-domains::-webkit-scrollbar{
|
||||
display: none;
|
||||
}
|
||||
textarea.blacklist-ips::-webkit-scrollbar{
|
||||
display: none;
|
||||
}
|
||||
div.share textarea {
|
||||
background: #313131;
|
||||
color: #dcdcdc;
|
||||
@ -618,7 +638,7 @@ code {
|
||||
.plugins main span,
|
||||
.plugin_page_sleeky_settings main span,
|
||||
code span {
|
||||
background: rgba(255, 255, 255, 0.2)
|
||||
background: #ffffff33
|
||||
}
|
||||
|
||||
.sub_wrap code,
|
||||
@ -629,7 +649,7 @@ code span {
|
||||
.plugin_page_sleeky_settings main tt,
|
||||
code code,
|
||||
code tt {
|
||||
background: rgba(0, 123, 255, 0.7)
|
||||
background: #7289DA
|
||||
}
|
||||
|
||||
.sub_wrap a.bookmarklet,
|
||||
|
@ -7,7 +7,7 @@ $theme: "dark";
|
||||
$lightest: #464646;
|
||||
$light: #313131;
|
||||
$default: #232323;
|
||||
$darker: #1d1d1d;
|
||||
$darker: #121212;
|
||||
$darkest: #161616;
|
||||
|
||||
// Accents
|
||||
|
Reference in New Issue
Block a user