Merging upstream to repo
commit
64a7cb9d62
@ -1,24 +0,0 @@
|
|||||||
#!/bin/sh -e
|
|
||||||
#
|
|
||||||
# rc.local
|
|
||||||
#
|
|
||||||
# This script is executed at the end of each multiuser runlevel.
|
|
||||||
# Make sure that the script will "exit 0" on success or any other
|
|
||||||
# value on error.
|
|
||||||
#
|
|
||||||
# In order to enable or disable this script just change the execution
|
|
||||||
# bits.
|
|
||||||
#
|
|
||||||
# By default this script does nothing.
|
|
||||||
|
|
||||||
# Print the IP address
|
|
||||||
_IP=$(hostname -I) || true
|
|
||||||
if [ "$_IP" ]; then
|
|
||||||
printf "My IP address is %s\n" "$_IP"
|
|
||||||
fi
|
|
||||||
|
|
||||||
# Set up IP forwarding and NAT routing
|
|
||||||
echo 1 > /proc/sys/net/ipv4/ip_forward
|
|
||||||
iptables -t nat -A POSTROUTING -j MASQUERADE
|
|
||||||
|
|
||||||
exit 0
|
|
@ -0,0 +1,78 @@
|
|||||||
|
html * {
|
||||||
|
font-family: Verdana, Geneva, sans-serif;
|
||||||
|
font-size: 10pt;
|
||||||
|
color: #828282;
|
||||||
|
}
|
||||||
|
|
||||||
|
.nav>li>a {
|
||||||
|
font-size: 12pt;
|
||||||
|
}
|
||||||
|
|
||||||
|
a:focus, a:hover {
|
||||||
|
color: #666;
|
||||||
|
}
|
||||||
|
|
||||||
|
h4 {
|
||||||
|
font-size: 18px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.panel {
|
||||||
|
border-radius: 1px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.panel-primary {
|
||||||
|
border-color: #ff6600;
|
||||||
|
}
|
||||||
|
|
||||||
|
.panel-primary>.panel-heading {
|
||||||
|
border-color: #ff6600;
|
||||||
|
background-color: #ff6600;
|
||||||
|
color: #000;
|
||||||
|
font-size: 14pt;
|
||||||
|
font-weight: bold;
|
||||||
|
}
|
||||||
|
|
||||||
|
.panel-heading {
|
||||||
|
border-top-left-radius: 1px;
|
||||||
|
border-top-right-radius: 1px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.panel-primary>.panel-heading .fa {
|
||||||
|
color: #fff;
|
||||||
|
}
|
||||||
|
|
||||||
|
.page-header {
|
||||||
|
font-size: 26pt;
|
||||||
|
margin: 10px 0 20px;
|
||||||
|
}
|
||||||
|
|
||||||
|
#wrapper,#page-wrapper,.panel-body,.nav>li>a,.navbar-default {
|
||||||
|
background-color: #f6f6ef;
|
||||||
|
}
|
||||||
|
|
||||||
|
.panel-footer {
|
||||||
|
background-color: #eee;
|
||||||
|
}
|
||||||
|
|
||||||
|
.btn-primary.btn-outline {
|
||||||
|
color: #c61931;
|
||||||
|
border-color: #c61931;
|
||||||
|
}
|
||||||
|
|
||||||
|
.btn-primary:hover {
|
||||||
|
background-color: #c61931;
|
||||||
|
border-color: #c61931;
|
||||||
|
}
|
||||||
|
|
||||||
|
.progress {
|
||||||
|
background-color: #eee;
|
||||||
|
}
|
||||||
|
|
||||||
|
.progress-bar {
|
||||||
|
color: #eee;
|
||||||
|
}
|
||||||
|
|
||||||
|
.info-item {
|
||||||
|
width: 140px;
|
||||||
|
float: left;
|
||||||
|
}
|
@ -0,0 +1,199 @@
|
|||||||
|
html * {
|
||||||
|
font-family: Courier New, Andale Mono, monospace;
|
||||||
|
font-size: 10pt;
|
||||||
|
color: #33ff00;
|
||||||
|
}
|
||||||
|
|
||||||
|
#page-wrapper {
|
||||||
|
padding: 0 20px;
|
||||||
|
border-left: 1px solid #33ff00;
|
||||||
|
}
|
||||||
|
|
||||||
|
.nav>li>a {
|
||||||
|
font-size: 10pt;
|
||||||
|
}
|
||||||
|
|
||||||
|
.nav>li>a:focus, .nav>li>a:hover {
|
||||||
|
background-color: #000;
|
||||||
|
}
|
||||||
|
|
||||||
|
.nav-tabs>li.active>a, .nav-tabs>li.active>a:focus, .nav-tabs>li.active>a:hover {
|
||||||
|
color: #33ff00;
|
||||||
|
cursor: default;
|
||||||
|
background-color: #000;
|
||||||
|
border: 1px solid #33ff00;
|
||||||
|
border-bottom-color: #33ff00;
|
||||||
|
}
|
||||||
|
|
||||||
|
.nav-tabs>li>a,.nav-tabs>li>a:hover {
|
||||||
|
border: 1px solid #33ff00;
|
||||||
|
}
|
||||||
|
|
||||||
|
.nav-tabs {
|
||||||
|
border-bottom: 1px solid #33ff00;
|
||||||
|
}
|
||||||
|
|
||||||
|
.navbar-default {
|
||||||
|
border-color: #33ff00;
|
||||||
|
}
|
||||||
|
|
||||||
|
.navbar-default .navbar-brand, .navbar-default .navbar-brand:hover {
|
||||||
|
color: #33ff00;
|
||||||
|
}
|
||||||
|
|
||||||
|
.navbar-default .navbar-toggle {
|
||||||
|
border-color: #33ff00;
|
||||||
|
}
|
||||||
|
|
||||||
|
.navbar-default .navbar-toggle .icon-bar {
|
||||||
|
background-color: #33ff00;
|
||||||
|
}
|
||||||
|
|
||||||
|
.navbar-default .navbar-toggle:focus, .navbar-default .navbar-toggle:hover {
|
||||||
|
background-color: #000;
|
||||||
|
}
|
||||||
|
|
||||||
|
.logo {
|
||||||
|
visibility: collapse;
|
||||||
|
width: 0px;
|
||||||
|
}
|
||||||
|
|
||||||
|
a:focus, a:hover {
|
||||||
|
color: #33ff00;
|
||||||
|
}
|
||||||
|
|
||||||
|
.panel-primary {
|
||||||
|
border-color: #33ff00;
|
||||||
|
}
|
||||||
|
|
||||||
|
.panel-primary>.panel-heading {
|
||||||
|
border-color: #33ff00;
|
||||||
|
background-color: #33ff00;
|
||||||
|
color: #000;
|
||||||
|
font-size: 12pt;
|
||||||
|
}
|
||||||
|
|
||||||
|
.panel-primary>.panel-heading .fa {
|
||||||
|
color: #000;
|
||||||
|
}
|
||||||
|
|
||||||
|
.panel {
|
||||||
|
margin-bottom: 20px;
|
||||||
|
border: 1px solid #33ff00;
|
||||||
|
border-radius: 0px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.page-header {
|
||||||
|
font-size: 24pt;
|
||||||
|
margin: 10px 0 20px;
|
||||||
|
border-bottom: 1px solid #33ff00;
|
||||||
|
}
|
||||||
|
|
||||||
|
#wrapper,#page-wrapper,.panel-body,.nav>li>a,.navbar-default {
|
||||||
|
background-color: #000;
|
||||||
|
}
|
||||||
|
|
||||||
|
.panel-footer {
|
||||||
|
background-color: #000;
|
||||||
|
border-top: 1px solid #33ff00;
|
||||||
|
}
|
||||||
|
|
||||||
|
.panel-primary>.panel-heading::before, .navbar-default::before {
|
||||||
|
content: " ";
|
||||||
|
display: block;
|
||||||
|
position: absolute;
|
||||||
|
top: 0;
|
||||||
|
left: 0;
|
||||||
|
bottom: 0;
|
||||||
|
right: 0;
|
||||||
|
background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.25) 50%), linear-gradient(90deg, rgba(255, 0, 0, 0.06), rgba(0, 255, 0, 0.02), rgba(0, 0, 255, 0.06));
|
||||||
|
z-index: 2;
|
||||||
|
background-size: 100% 2px, 3px 100%;
|
||||||
|
pointer-events: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
.sidebar ul li a.active,.sidebar ul li a.hover {
|
||||||
|
background-color: #000;
|
||||||
|
}
|
||||||
|
|
||||||
|
.sidebar ul li {
|
||||||
|
border-bottom: 1px solid #33ff00;
|
||||||
|
}
|
||||||
|
|
||||||
|
.btn-primary.btn-outline,.btn-warning {
|
||||||
|
color: #33ff00;
|
||||||
|
border-color: #33ff00;
|
||||||
|
}
|
||||||
|
|
||||||
|
.btn-primary:hover,.btn-primary:focus,.btn-warning:hover,.btn-warning:focus,.btn-primary:active {
|
||||||
|
color: #33ff00;
|
||||||
|
background-color: #000;
|
||||||
|
border-color: #33ff00;
|
||||||
|
}
|
||||||
|
|
||||||
|
.btn-primary.btn-outline:hover,.btn-success, .btn-success.btn-outline:hover, .btn-info.btn-outline:hover, .btn-warning.btn-outline:hover, .btn-danger.btn-outline:hover {
|
||||||
|
color: #33ff00;
|
||||||
|
}
|
||||||
|
|
||||||
|
.table>tbody>tr>td, .table>tbody>tr>th, .table>tfoot>tr>td, .table>tfoot>tr>th, .table>thead>tr>td, .table>thead>tr>th {
|
||||||
|
background-color: #000;
|
||||||
|
border-top: 1px solid #000;
|
||||||
|
}
|
||||||
|
|
||||||
|
.table>thead>tr>th {
|
||||||
|
vertical-align: bottom;
|
||||||
|
border-bottom: 1px solid #33ff00;
|
||||||
|
}
|
||||||
|
|
||||||
|
.btn-info, .btn-info:hover, .btn-info[disabled], .btn-danger.disabled, .btn-danger.disabled.active, .btn-danger.disabled.focus, .btn-danger.disabled:active, .btn-danger.disabled:focus, .btn-danger.disabled:hover, .btn-danger[disabled], .btn-danger[disabled].active, .btn-danger[disabled].focus, .btn-danger[disabled]:active, .btn-danger[disabled]:focus, .btn-danger[disabled]:hover, fieldset[disabled] .btn-danger, fieldset[disabled] .btn-danger.active, fieldset[disabled] .btn-danger.focus, fieldset[disabled] .btn-danger:active, fieldset[disabled] .btn-danger:focus, fieldset[disabled] .btn-danger:hover, .btn-info:hover {
|
||||||
|
background-color: #000;
|
||||||
|
border-color: #33ff00;
|
||||||
|
color: #33ff00;
|
||||||
|
}
|
||||||
|
|
||||||
|
.btn {
|
||||||
|
background-color: #000;
|
||||||
|
border-radius: 0px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.alert {
|
||||||
|
border-radius: 0px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.alert-success,.alert-warning,.alert-ifo,.alert-dismissable {
|
||||||
|
color: #33ff00;
|
||||||
|
background-color: #000;
|
||||||
|
border-color: #33ff00;
|
||||||
|
border: 1px dashed;
|
||||||
|
}
|
||||||
|
|
||||||
|
.close {
|
||||||
|
font-size: 18px;
|
||||||
|
font-weight: normal;
|
||||||
|
text-shadow: 0 0px 0 #000;
|
||||||
|
opacity: 1;
|
||||||
|
}
|
||||||
|
|
||||||
|
.form-control, .form-control:focus {
|
||||||
|
color: #33ff00;
|
||||||
|
background-color: #000;
|
||||||
|
border: 1px solid #33ff00;
|
||||||
|
border-radius: 0px;
|
||||||
|
transition: unset;
|
||||||
|
}
|
||||||
|
|
||||||
|
.progress {
|
||||||
|
background-color: #000;
|
||||||
|
border-radius: 0px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.progress-bar {
|
||||||
|
color: #000;
|
||||||
|
}
|
||||||
|
|
||||||
|
.info-item {
|
||||||
|
width: 140px;
|
||||||
|
float: left;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
@ -0,0 +1,63 @@
|
|||||||
|
<?php
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
function DisplayThemeConfig(){
|
||||||
|
|
||||||
|
$cselected = '';
|
||||||
|
$hselected = '';
|
||||||
|
$tselected = '';
|
||||||
|
|
||||||
|
switch( $_COOKIE['theme'] ) {
|
||||||
|
case "custom.css":
|
||||||
|
$cselected = "selected";
|
||||||
|
break;
|
||||||
|
case "hackernews.css":
|
||||||
|
$hselected = "selected";
|
||||||
|
break;
|
||||||
|
case "terminal.css":
|
||||||
|
$tselected = "selected";
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
|
||||||
|
?>
|
||||||
|
<div class="row">
|
||||||
|
<div class="col-lg-12">
|
||||||
|
<div class="panel panel-primary">
|
||||||
|
<div class="panel-heading"><i class="fa fa-wrench fa-fw"></i> Change Theme</div>
|
||||||
|
<div class="panel-body">
|
||||||
|
<div class="row">
|
||||||
|
<div class="col-md-6">
|
||||||
|
<div class="panel panel-default">
|
||||||
|
<div class="panel-body">
|
||||||
|
<h4>Theme settings</h4>
|
||||||
|
|
||||||
|
<div class="row">
|
||||||
|
<div class="form-group col-md-6">
|
||||||
|
<label for="code">Select a theme</label>
|
||||||
|
<select class="form-control" id="theme-select">Select a Theme
|
||||||
|
<option value="default" class="theme-link" <?php echo $cselected; ?>>RaspAP (default)</option>
|
||||||
|
<option value="hackernews" class="theme-link"<?php echo $hselected; ?>>HackerNews</option>
|
||||||
|
<option value="terminal" class="theme-link" <?php echo $tselected; ?>>Terminal</option>
|
||||||
|
</select>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</div><!-- /.panel-body -->
|
||||||
|
</div><!-- /.panel-default -->
|
||||||
|
</div><!-- /.col-md-6 -->
|
||||||
|
</div><!-- /.row -->
|
||||||
|
|
||||||
|
<form action="?page=system_info" method="POST">
|
||||||
|
<input type="button" class="btn btn-outline btn-primary" value="Refresh" onclick="document.location.reload(true)" />
|
||||||
|
</form>
|
||||||
|
|
||||||
|
</div><!-- /.panel-body -->
|
||||||
|
</div><!-- /.panel-primary -->
|
||||||
|
</div><!-- /.col-lg-12 -->
|
||||||
|
</div><!-- /.row -->
|
||||||
|
<?php
|
||||||
|
}
|
||||||
|
?>
|
||||||
|
|
Loading…
Reference in New Issue