Last update was not meant for this repo
This commit is contained in:
2023-01-14 11:35:38 -08:00
parent 4ecd08f87f
commit 3cf824cc5c
10 changed files with 63 additions and 101 deletions

View File

@ -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 class="blacklist-ips" cols="50" rows="10" name="blacklist_form">$liste_ip_display</textarea></p>
<p><textarea 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>

View File

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

View File

@ -69,7 +69,7 @@ input[type="submit"]:disabled {
input.text,
input[type="text"] {
border: 1px solid #ffffff40 !important;
border: 1px solid rgba(255, 255, 255, 0.25) !important;
transition: 0.4s all
}
@ -585,27 +585,7 @@ 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;
@ -638,7 +618,7 @@ code {
.plugins main span,
.plugin_page_sleeky_settings main span,
code span {
background: #ffffff33
background: rgba(255, 255, 255, 0.2)
}
.sub_wrap code,
@ -649,7 +629,7 @@ code span {
.plugin_page_sleeky_settings main tt,
code code,
code tt {
background: #7289DA
background: rgba(0, 123, 255, 0.7)
}
.sub_wrap a.bookmarklet,

View File

@ -7,7 +7,7 @@ $theme: "dark";
$lightest: #464646;
$light: #313131;
$default: #232323;
$darker: #121212;
$darker: #1d1d1d;
$darkest: #161616;
// Accents