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
4270902b
Commit
4270902b
authored
Apr 29, 2016
by
Ad Schellevis
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(dashboard) remove some more...
parent
cb336a65
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
31 deletions
+10
-31
index.php
src/www/index.php
+10
-31
No files found.
src/www/index.php
View file @
4270902b
<?php
/*
Copyright (C) 2014 Deciso B.V.
Copyright (C) 2014
-2016
Deciso B.V.
Copyright (C) 2004-2012 Scott Ullrich
Copyright (C) 2003-2004 Manuel Kasper <mk@neon1.net>.
All rights reserved.
...
...
@@ -56,7 +56,7 @@ if ($_SERVER['REQUEST_METHOD'] === 'GET') {
// set default dashboard view
$pconfig
[
'sequence'
]
=
'system_information-container:col1:show,interface_list-container:col1:show,traffic_graphs-container:col1:show'
;
}
##
build list of widgets
//
build list of widgets
$widgetCollection
=
array
();
$widgetSeqParts
=
explode
(
","
,
$pconfig
[
'sequence'
]);
foreach
(
glob
(
'/usr/local/www/widgets/widgets/*.widget.php'
)
as
$php_file
)
{
...
...
@@ -144,7 +144,6 @@ include("fbegin.inc");?>
<
script
src
=
'/javascript/index/ajax.js'
></
script
>
<
script
type
=
"text/javascript"
>
//<![CDATA[
function
addWidget
(
selectedDiv
)
{
$
(
'#'
+
selectedDiv
)
.
show
();
$
(
'#'
+
selectedDiv
+
'-config'
)
.
val
(
'show'
);
...
...
@@ -195,8 +194,6 @@ function updatePref() {
$
(
"#iform"
)
.
submit
();
return
false
;
}
//]]>
</
script
>
<
section
class
="
page
-
content
-
main
">
...
...
@@ -245,33 +242,15 @@ function updatePref() {
<ul
class=
"list-inline __nomb"
>
<li><h3>
<?php
if
(
isset
(
$$widgettitle
))
{
//only show link if defined
if
(
!
empty
(
$$widgettitlelink
))
{
?>
<u><span
onclick=
"location.href='/
<?=
$$widgettitlelink
?>
'"
style=
"cursor:pointer"
>
<?php
}
//echo widget title
echo
$$widgettitle
;
if
(
isset
(
$$widgettitlelink
))
{
?>
</span></u>
<?php
}
}
else
{
if
(
isset
(
$$widgettitlelink
))
{
?>
<u><span
onclick=
"location.href='/
<?=
$$widgettitlelink
?>
'"
style=
"cursor:pointer"
>
<?php
}
echo
$widgetItem
[
'display_name'
];
if
(
isset
(
$$widgettitlelink
))
{
?>
if
(
isset
(
$$widgettitlelink
))
:?>
<
u
><
span
onclick
=
"location.href='/<?= $$widgettitlelink ?>'"
style
=
"cursor:pointer"
>
<?
php
endif
;
echo
!
empty
(
$$widgettitle
)
?
$$widgettitle
:
$widgetItem
[
'display_name'
];
if
(
isset
(
$$widgettitlelink
))
:?>
</
span
></
u
>
<?php
}
}
?>
<?
php
endif
;
?>
</h3></li>
<li
class=
"pull-right"
>
<div
class=
"btn-group"
>
...
...
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