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
6491786d
Commit
6491786d
authored
Feb 09, 2016
by
Fabian Franz
Committed by
Franco Fichtner
Feb 17, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
coding style index.php
(cherry picked from commit
a0f94da8
) (cherry picked from commit
3e8972d6
)
parent
d73a2f3a
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
21 deletions
+20
-21
index.php
src/www/index.php
+20
-21
No files found.
src/www/index.php
View file @
6491786d
...
@@ -351,7 +351,7 @@ if (isset($config['trigger_initial_wizard'])) :
...
@@ -351,7 +351,7 @@ if (isset($config['trigger_initial_wizard'])) :
?>
?>
<header
class=
"page-content-head"
>
<header
class=
"page-content-head"
>
<div
class=
"container-fluid"
>
<div
class=
"container-fluid"
>
<h1>
<?=
gettext
(
"Starting initial configuration"
);
?>
!
</h1>
<h1>
<?=
gettext
(
"Starting initial configuration!"
)
?>
</h1>
</div>
</div>
</header>
</header>
...
@@ -484,7 +484,7 @@ endif; ?>
...
@@ -484,7 +484,7 @@ endif; ?>
?>
?>
<section
class=
"col-xs-12 col-md-6 widgetdiv"
id=
"
<?
php
echo
$widgetname
;
?>
"
style=
"display:
<?php
echo
$divdisplay
;
?>
;"
>
<section
class=
"col-xs-12 col-md-6 widgetdiv"
id=
"
<?
=
$widgetname
?>
"
style=
"display:
<?=
$divdisplay
?>
;"
>
<div
class=
"content-box"
>
<div
class=
"content-box"
>
<form
action=
"
<?=
$_SERVER
[
'REQUEST_URI'
];
?>
"
method=
"post"
id=
"iform"
>
<form
action=
"
<?=
$_SERVER
[
'REQUEST_URI'
];
?>
"
method=
"post"
id=
"iform"
>
<input
type=
"hidden"
value=
""
name=
"sequence"
id=
"sequence"
/>
<input
type=
"hidden"
value=
""
name=
"sequence"
id=
"sequence"
/>
...
@@ -499,7 +499,7 @@ endif; ?>
...
@@ -499,7 +499,7 @@ endif; ?>
//only show link if defined
//only show link if defined
if
(
$$widgettitlelink
!=
""
)
{
if
(
$$widgettitlelink
!=
""
)
{
?>
?>
<u><span
onclick=
"location.href='/
<?
php
echo
$$widgettitlelink
;
?>
'"
style=
"cursor:pointer"
>
<u><span
onclick=
"location.href='/
<?
=
$$widgettitlelink
?>
'"
style=
"cursor:pointer"
>
<?php
<?php
}
}
//echo widget title
//echo widget title
...
@@ -512,7 +512,7 @@ endif; ?>
...
@@ -512,7 +512,7 @@ endif; ?>
}
else
{
}
else
{
if
(
isset
(
$$widgettitlelink
))
{
if
(
isset
(
$$widgettitlelink
))
{
?>
?>
<u><span
onclick=
"location.href='/
<?
php
echo
$$widgettitlelink
;
?>
'"
style=
"cursor:pointer"
>
<u><span
onclick=
"location.href='/
<?
=
$$widgettitlelink
?>
'"
style=
"cursor:pointer"
>
<?php
<?php
}
}
echo
$nicename
;
echo
$nicename
;
...
@@ -527,29 +527,28 @@ endif; ?>
...
@@ -527,29 +527,28 @@ endif; ?>
<li
class=
"pull-right"
>
<li
class=
"pull-right"
>
<div
class=
"btn-group"
>
<div
class=
"btn-group"
>
<button
type=
"button"
class=
"btn btn-default btn-xs"
title=
"minimize"
id=
"
<?
php
echo
$widgetname
;
?>
-min"
onclick=
'return minimizeWidget("
<?php
echo
$widgetname
;
?>
",true)'
style=
"display:
<?php
echo
$mindiv
;
?>
;"
><span
class=
"glyphicon glyphicon-minus"
></span></button>
<button
type=
"button"
class=
"btn btn-default btn-xs"
title=
"minimize"
id=
"
<?
=
$widgetname
?>
-min"
onclick=
'return minimizeWidget("
<?=
$widgetname
?>
",true)'
style=
"display:
<?=
$mindiv
?>
;"
><span
class=
"glyphicon glyphicon-minus"
></span></button>
<button
type=
"button"
class=
"btn btn-default btn-xs"
title=
"maximize"
id=
"
<?
php
echo
$widgetname
;
?>
-max"
onclick=
'return showWidget("
<?php
echo
$widgetname
;
?>
",true)'
style=
"display:
<?php
echo
$mindiv
==
'none'
?
'inline'
:
'none'
;
?>
;"
><span
class=
"glyphicon glyphicon-plus"
></span></button>
<button
type=
"button"
class=
"btn btn-default btn-xs"
title=
"maximize"
id=
"
<?
=
$widgetname
?>
-max"
onclick=
'return showWidget("
<?=
$widgetname
?>
",true)'
style=
"display:
<?=
$mindiv
==
'none'
?
'inline'
:
'none'
?>
;"
><span
class=
"glyphicon glyphicon-plus"
></span></button>
<button
type=
"button"
class=
"btn btn-default btn-xs"
title=
"remove widget"
onclick=
'return closeWidget("
<?
php
echo
$widgetname
;
?>
",true)'
><span
class=
"glyphicon glyphicon-remove"
></span></button>
<button
type=
"button"
class=
"btn btn-default btn-xs"
title=
"remove widget"
onclick=
'return closeWidget("
<?
=
$widgetname
?>
",true)'
><span
class=
"glyphicon glyphicon-remove"
></span></button>
<button
type=
"button"
class=
"btn btn-default btn-xs"
id=
"
<?
php
echo
$widgetname
;
?>
-configure"
onclick=
'return configureWidget("
<?php
echo
$widgetname
;
?>
")'
style=
"display:none; cursor:pointer"
><span
class=
"glyphicon glyphicon-pencil"
></span></button>
<button
type=
"button"
class=
"btn btn-default btn-xs"
id=
"
<?
=
$widgetname
?>
-configure"
onclick=
'return configureWidget("
<?=
$widgetname
?>
")'
style=
"display:none; cursor:pointer"
><span
class=
"glyphicon glyphicon-pencil"
></span></button>
</div>
</div>
</li>
</li>
</ul>
</ul>
</header>
</header>
</form>
</form>
<div
class=
"content-box-main collapse in"
id=
"
<?php
echo
$widgetname
;
<div
class=
"content-box-main collapse in"
id=
"
<?=
$widgetname
?>
-container"
style=
"display:
<?=
$mindiv
?>
"
>
?>
-container"
style=
"display:
<?=
$mindiv
;
?>
"
>
<input
type=
"hidden"
value=
"
<?=
$inputdisplay
?>
"
id=
"
<?=
$widgetname
?>
-config"
name=
"
<?=
$widgetname
?>
-config"
/>
<input
type=
"hidden"
value=
"
<?php
echo
$inputdisplay
;
?>
"
id=
"
<?php
echo
$widgetname
;
?>
-config"
name=
"
<?php
echo
$widgetname
;
?>
-config"
/>
<?php
if
(
$divdisplay
!=
"block"
)
{
<?php
if
(
$divdisplay
!=
"block"
)
{
?>
?>
<div
id=
"
<?
php
echo
$widgetname
;
?>
-loader"
style=
"display:
<?php
echo
$display
;
?>
;"
align=
"center"
>
<div
id=
"
<?
=
$widgetname
?>
-loader"
style=
"display:
<?=
$display
?>
;"
align=
"center"
>
<br
/>
<br
/>
<span
class=
"glyphicon glyphicon-refresh"
></span>
<?=
gettext
(
"Loading selected widget"
);
?>
<span
class=
"glyphicon glyphicon-refresh"
></span>
<?=
gettext
(
"Loading selected widget"
)
?>
<br
/>
<br
/>
</div>
<?php
$display
=
"none"
;
</div>
<?php
$display
=
"none"
;
}
?>
}
?>
...
@@ -580,15 +579,15 @@ endif; ?>
...
@@ -580,15 +579,15 @@ endif; ?>
$directory
=
"widgets/javascript/"
;
$directory
=
"widgets/javascript/"
;
$dirhandle
=
opendir
(
$directory
);
$dirhandle
=
opendir
(
$directory
);
$filename
=
""
;
$filename
=
""
;
while
(
false
!==
(
$filename
=
readdir
(
$dirhandle
)))
{
while
(
false
!==
(
$filename
=
readdir
(
$dirhandle
)))
{
$jsincludefiles
[]
=
$filename
;
$jsincludefiles
[]
=
$filename
;
}
}
foreach
(
$jsincludefiles
as
$jsincludename
)
{
foreach
(
$jsincludefiles
as
$jsincludename
)
{
if
(
!
preg_match
(
'/\.js$/'
,
$jsincludename
))
{
if
(
!
preg_match
(
'/\.js$/'
,
$jsincludename
))
{
continue
;
continue
;
}
}
echo
"<script src='
{
$directory
}{
$jsincludename
}
' type='text/javascript'></script>
\n
"
;
echo
"<script src='
{
$directory
}{
$jsincludename
}
' type='text/javascript'></script>
\n
"
;
}
}
?>
?>
...
...
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