Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
O
OpnSense
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Kulya
OpnSense
Commits
7f64849a
Commit
7f64849a
authored
Dec 29, 2014
by
Jos Schellevis
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
voucher test change image to glyhicons
parent
04c4fec2
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
12 deletions
+3
-12
status_captiveportal_test.php
src/www/status_captiveportal_test.php
+3
-12
No files found.
src/www/status_captiveportal_test.php
View file @
7f64849a
<?php
/*
Copyright (C) 2014 Deciso B.V.
Copyright (C) 2007 Marcel Wiget <mwiget@mac.com>.
All rights reserved.
...
...
@@ -24,16 +25,6 @@
ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
POSSIBILITY OF SUCH DAMAGE.
*/
/*
pfSense_MODULE: captiveportal
*/
##|+PRIV
##|*IDENT=page-status-captiveportal-test
##|*NAME=Status: Captive portal test Vouchers page
##|*DESCR=Allow access to the 'Status: Captive portal Test Vouchers' page.
##|*MATCH=status_captiveportal_test.php*
##|-PRIV
require
(
"guiconfig.inc"
);
require
(
"functions.inc"
);
...
...
@@ -114,10 +105,10 @@ if ($_POST) {
echo
"<table border=
\"
0
\"
cellspacing=
\"
0
\"
cellpadding=
\"
4
\"
width=
\"
100%
\"
summary=
\"
results
\"
>
\n
"
;
foreach
(
$test_results
as
$result
)
{
if
(
strpos
(
$result
,
" good "
)
||
strpos
(
$result
,
" granted "
))
{
echo
"<tr><td bgcolor=
\"
#D9DEE8
\"
><
img src=
\"
/themes/
{
$g
[
'theme'
]
}
/images/icons/icon_pass.gif
\"
alt=
\"
pass
\"
/
></td>"
;
echo
"<tr><td bgcolor=
\"
#D9DEE8
\"
><
span class=
\"
glyphicon glyphicon-play text-success
\"
alt=
\"
pass
\"
></span
></td>"
;
echo
"<td bgcolor=
\"
#D9DEE8
\"
>
$result
</td></tr>"
;
}
else
{
echo
"<tr><td bgcolor=
\"
#FFD9D1
\"
><
img src=
\"
/themes/
{
$g
[
'theme'
]
}
/images/icons/icon_block.gif
\"
alt=
\"
block
\"
/
></td>"
;
echo
"<tr><td bgcolor=
\"
#FFD9D1
\"
><
span class=
\"
glyphicon glyphicon-remove text-danger
\"
alt=
\"
block
\"
></span
></td>"
;
echo
"<td bgcolor=
\"
#FFD9D1
\"
>
$result
</td></tr>"
;
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment