Skip to content

Commit c7b9b1d

Browse files
committed
change: add favicon
1 parent 569d0ab commit c7b9b1d

File tree

3 files changed

+55
-9
lines changed

3 files changed

+55
-9
lines changed

extras/etc/csf/ui/images/configserver.css

Lines changed: 50 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,54 @@ a.app-name:not(:hover)
9999
color: #FFF;
100100
}
101101

102+
/*
103+
Quick > Allow
104+
*/
105+
106+
.input-allow
107+
{
108+
transition: 0.5s;
109+
background-color: #26643db5 !important;
110+
}
111+
112+
.input-allow:hover
113+
{
114+
background: linear-gradient(#50b978d5 0 0) bottom / 0% 2px no-repeat #393939;
115+
background-size: 100% 2px;
116+
transition: all 0.3s;
117+
}
118+
119+
.input-allow:focus
120+
{
121+
background: linear-gradient(#f8f8f8d5 0 0) bottom / 0% 2px no-repeat #393939;
122+
background-size: 100% 2px;
123+
transition: all 0.3s;
124+
}
125+
126+
/*
127+
Quick > Deny
128+
*/
129+
130+
.input-deny
131+
{
132+
transition: 0.5s;
133+
background-color: #99244bb5 !important;
134+
}
135+
136+
.input-deny:hover
137+
{
138+
background: linear-gradient(#f92574 0 0) bottom / 0% 2px no-repeat #393939;
139+
background-size: 100% 2px;
140+
transition: all 0.3s;
141+
}
142+
143+
.input-deny:focus
144+
{
145+
background: linear-gradient(#FFFFFF 0 0) bottom / 0% 2px no-repeat #393939;
146+
background-size: 100% 2px;
147+
transition: all 0.3s;
148+
}
149+
102150
.login-body
103151
{
104152
font-family:Arial, Helvetica, sans-serif;
@@ -146,7 +194,7 @@ a.app-name:not(:hover)
146194

147195
.btn-deny
148196
{
149-
background-color: #a81840 !important;
197+
background-color: #d2195ef0 !important;
150198
border: 1px solid #FFFFFF0A !important;
151199
}
152200

@@ -252,10 +300,6 @@ button:not(button#fontminus-btn):not(button#CSFpauseID):not(button#fontplus-btn)
252300

253301
form input[type=text], form input[type=password]
254302
{
255-
padding-left:10px;
256-
padding-right: 10px;
257-
padding-top: 4px;
258-
padding-bottom: 4px;
259303
background-color: #393939;
260304
border: 1px solid #e3e3e31a;
261305
color: #FFF;
@@ -396,7 +440,7 @@ form input:hover
396440

397441
.glyphicon
398442
{
399-
color: #ffffff !important;
443+
color: #d2195ef0 !important;
400444
padding-left: 2px;
401445
padding-right: 2px;
402446
top: 4px;

extras/usr/local/csf/lib/ConfigServer/DisplayUI.pm

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2438,8 +2438,8 @@ EOF
24382438
print "<div id='csf' class='tab-pane active'>\n";
24392439
print "<table class='table table-bordered table-striped'>\n";
24402440
print "<thead><tr><th colspan='2'>csf - Quick Actions</th></tr></thead>";
2441-
print "<tr><td><button onClick='\$(\"#qallow\").submit();' class='btn btn-default btn-allow'>Quick Allow</button></td><td style='width:100%'><form action='$script' method='post' id='qallow'><input type='submit' class='hide'><input type='hidden' name='action' value='qallow'>Allow IP address <a href='javascript:fillfield(\"allowip\",\"$ENV{REMOTE_ADDR}\")'><span class='glyphicon glyphicon-cog icon-configserver' style='font-size:1.3em;' data-tooltip='tooltip' title='$ENV{REMOTE_ADDR}'></span></a> <input type='text' name='ip' id='allowip' value='' size='18'> through the firewall and add to the allow file (csf.allow).<br>Comment for Allow: <input type='text' name='comment' value='' size='30'></form></td></tr>\n";
2442-
print "<tr><td><button onClick='\$(\"#qdeny\").submit();' class='btn btn-default btn-deny'>Quick Deny</button></td><td style='width:100%'><form action='$script' method='post' id='qdeny'><input type='submit' class='hide'><input type='hidden' name='action' value='qdeny'>Block IP address <input type='text' name='ip' value='' size='18'> in the firewall and add to the deny file (csf.deny).<br>Comment for Block: <input type='text' name='comment' value='' size='30'></form></td></tr>\n";
2441+
print "<tr><td><button onClick='\$(\"#qallow\").submit();' class='btn btn-default btn-allow'>Quick Allow</button></td><td style='width:100%'><form action='$script' method='post' id='qallow'><input type='submit' class='hide'><input type='hidden' name='action' value='qallow'>Allow IP address <a href='javascript:fillfield(\"allowip\",\"$ENV{REMOTE_ADDR}\")'><span class='glyphicon glyphicon-cog icon-configserver' style='font-size:1.3em;' data-tooltip='tooltip' title='$ENV{REMOTE_ADDR}'></span></a> <input class='input-allow' type='text' name='ip' id='allowip' value='' size='18'> through the firewall and add to the allow file (csf.allow).<br>Comment for Allow: <input type='text' name='comment' value='' size='30'></form></td></tr>\n";
2442+
print "<tr><td><button onClick='\$(\"#qdeny\").submit();' class='btn btn-default btn-deny'>Quick Deny</button></td><td style='width:100%'><form action='$script' method='post' id='qdeny'><input type='submit' class='hide'><input type='hidden' name='action' value='qdeny'>Block IP address <input class='input-deny' type='text' name='ip' value='' size='18'> in the firewall and add to the deny file (csf.deny).<br>Comment for Block: <input type='text' name='comment' value='' size='30'></form></td></tr>\n";
24432443
print "<tr><td><button onClick='\$(\"#qignore\").submit();' class='btn btn-default'>Quick Ignore</button></td><td style='width:100%'><form action='$script' method='post' id='qignore'><input type='submit' class='hide'><input type='hidden' name='action' value='qignore'>Ignore IP address <a href='javascript:fillfield(\"ignoreip\",\"$ENV{REMOTE_ADDR}\")'><span class='glyphicon glyphicon-cog icon-configserver' style='font-size:1.3em;' data-tooltip='tooltip' title='$ENV{REMOTE_ADDR}'></span></a> <input type='text' name='ip' id='ignoreip' value='' size='18'> in lfd, add to the ignore file (csf.ignore) and restart lfd</form></td></tr>\n";
24442444
print "<tr><td><button onClick='\$(\"#kill\").submit();' class='btn btn-default'>Quick Unblock</button></td><td style='width:100%'><form action='$script' method='post' id='kill'><input type='submit' class='hide'><input type='hidden' name='action' value='kill'>Remove IP address <input type='text' name='ip' value='' size='18'> from the firewall (temp and perm blocks)</form></td></tr>\n";
24452445
print "</table>\n";

extras/usr/sbin/lfd

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9907,6 +9907,7 @@ sub ui {
99079907
<link rel="preconnect" href="https://fonts.googleapis.com">
99089908
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
99099909
<link href="https://fonts.googleapis.com/css2?family=Abel&display=swap" rel="stylesheet">
9910+
<link rel="icon" type="image/x-icon" href="https://github.com/user-attachments/assets/ba005563-da8b-456c-8c4d-19f4ee31eb71">
99109911
<style>
99119912
99129913
\@-webkit-keyframes fade-in
@@ -10195,6 +10196,7 @@ EOF
1019510196
<link rel="preconnect" href="https://fonts.googleapis.com">
1019610197
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
1019710198
<link href="https://fonts.googleapis.com/css2?family=Abel&display=swap" rel="stylesheet">
10199+
<link rel="icon" type="image/x-icon" href="https://github.com/user-attachments/assets/ba005563-da8b-456c-8c4d-19f4ee31eb71">
1019810200
<title>ConfigServer Security &amp; Firewall</title>
1019910201
<meta charset='utf-8'>
1020010202
<meta name='viewport' content='width=device-width, initial-scale=1'>
@@ -10262,7 +10264,7 @@ EOF
1026210264
print <<EOF;
1026310265
<div class='panel panel-default panel-body'>
1026410266
<a href='/$session/'><img class='logo' align='absmiddle' src='https://github.com/user-attachments/assets/ba005563-da8b-456c-8c4d-19f4ee31eb71' alt='ConfigServer Firewall' style='float:left'></a>
10265-
<h3>ConfigServer Firewall v$myv</h3>
10267+
<h3><a class='app-name' href='/$session/'>ConfigServer Firewall v$myv</a></h3>
1026610268
</div>
1026710269
EOF
1026810270
}

0 commit comments

Comments
 (0)