mirror of https://git.envs.net/envs/site.git
update website
This commit is contained in:
parent
f97c902b23
commit
be70ff4897
|
@ -93,9 +93,19 @@ h1, h2, h3, h4, h5, h6 {
|
|||
display: block;
|
||||
line-height: 0;
|
||||
margin: 0;
|
||||
padding: 0.8em 0 0.4em 0;
|
||||
padding: 0.8em 0 0.4em 0;
|
||||
}
|
||||
|
||||
hr.half {
|
||||
width:50%;
|
||||
text-align:left;
|
||||
margin-left:0;
|
||||
}
|
||||
|
||||
li {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
ol, ul {
|
||||
margin: 0;
|
||||
|
@ -103,14 +113,9 @@ ol, ul {
|
|||
}
|
||||
|
||||
.ol.userlist, ul.userlist {
|
||||
list-style-type: none;
|
||||
margin: 0;
|
||||
padding: 0 0 0 1.2em;
|
||||
}
|
||||
|
||||
li {
|
||||
list-style-type: none;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
padding: 0 0 0 1.2em;
|
||||
}
|
||||
|
||||
|
||||
|
@ -226,55 +231,55 @@ button:hover {
|
|||
* LIGHT MODE
|
||||
*/
|
||||
body.light-mode {
|
||||
background: #f5f5f5;
|
||||
color: #333;
|
||||
background: #f5f5f5;
|
||||
color: #333;
|
||||
}
|
||||
body.light-mode footer {
|
||||
border-top: solid 2px #e5e5e5;
|
||||
background: #f5f5f5;
|
||||
border-top: solid 2px #e5e5e5;
|
||||
background: #f5f5f5;
|
||||
}
|
||||
body.light-mode blockquote {
|
||||
border-left: solid 4px #e5e5e5;
|
||||
border-left: solid 4px #e5e5e5;
|
||||
}
|
||||
body.light-mode code {
|
||||
color: #333;
|
||||
background: #e5e5e5;
|
||||
color: #333;
|
||||
background: #e5e5e5;
|
||||
}
|
||||
body.light-mode .table_pkg tbody tr:nth-child(even) {
|
||||
background: #e5e5e5;
|
||||
}
|
||||
body.light-mode input[type=button], body.light-mode input[type=submit], body.light-mode input[type=text] {
|
||||
background-color: #e5e5e5;
|
||||
color: #333;
|
||||
border: solid 1px #333;
|
||||
background-color: #e5e5e5;
|
||||
color: #333;
|
||||
border: solid 1px #333;
|
||||
}
|
||||
body.light-mode input[type=button]:hover, body.light-mode input[type=submit]:hover {
|
||||
background-color: #211921;
|
||||
color: #FFF5EE;
|
||||
background-color: #211921;
|
||||
color: #FFF5EE;
|
||||
}
|
||||
body.light-mode input[type=file] {
|
||||
color: #333;
|
||||
background-color: #f5f5f5;
|
||||
color: #333;
|
||||
background-color: #f5f5f5;
|
||||
}
|
||||
body.light-mode textarea {
|
||||
background: #e5e5e5;
|
||||
color: #333;
|
||||
border: solid 1px #333;
|
||||
background: #e5e5e5;
|
||||
color: #333;
|
||||
border: solid 1px #333;
|
||||
}
|
||||
body.light-mode button {
|
||||
background-color: #e5e5e5;
|
||||
color: #333;
|
||||
background-color: #e5e5e5;
|
||||
color: #333;
|
||||
}
|
||||
body.light-mode button:hover {
|
||||
background-color: #211921;
|
||||
color: #FFF5EE;
|
||||
background-color: #211921;
|
||||
color: #FFF5EE;
|
||||
}
|
||||
body.light-mode .alert {
|
||||
color: #333;
|
||||
background: #e5e5e5;
|
||||
color: #333;
|
||||
background: #e5e5e5;
|
||||
}
|
||||
body.light-mode .block, body.light-mode .block_head {
|
||||
border-left: solid 4px #e5e5e5;
|
||||
border-left: solid 4px #e5e5e5;
|
||||
}
|
||||
|
||||
|
||||
|
@ -282,53 +287,53 @@ body.light-mode .block, body.light-mode .block_head {
|
|||
* DARK MODE
|
||||
*/
|
||||
body.dark-mode {
|
||||
color: #FFF5EE;
|
||||
background: #040304;
|
||||
color: #FFF5EE;
|
||||
background: #040304;
|
||||
}
|
||||
body.dark-mode footer {
|
||||
border-top: solid 2px #211921;
|
||||
background: #040304;
|
||||
border-top: solid 2px #211921;
|
||||
background: #040304;
|
||||
}
|
||||
body.dark-mode blockquote {
|
||||
border-left: solid 4px #211921;
|
||||
border-left: solid 4px #211921;
|
||||
}
|
||||
body.dark-mode code {
|
||||
color: #ddd;
|
||||
background: #211921;
|
||||
color: #ddd;
|
||||
background: #211921;
|
||||
}
|
||||
body.dark-mode .table_pkg tbody tr:nth-child(even) {
|
||||
background: #211921;
|
||||
background: #211921;
|
||||
}
|
||||
body.dark-mode input[type=button], body.dark-mode input[type=submit], body.dark-mode input[type=text] {
|
||||
background-color: #211921;
|
||||
color: #ddd;
|
||||
border: solid 1px #ddd;
|
||||
background-color: #211921;
|
||||
color: #ddd;
|
||||
border: solid 1px #ddd;
|
||||
}
|
||||
body.dark-mode input[type=button]:hover, body.dark-mode input[type=submit]:hover {
|
||||
background-color: #e5e5e5;
|
||||
color: #333;
|
||||
background-color: #e5e5e5;
|
||||
color: #333;
|
||||
}
|
||||
body.dark-mode input[type=file] {
|
||||
color: #ddd;
|
||||
background-color: #040304;
|
||||
color: #ddd;
|
||||
background-color: #040304;
|
||||
}
|
||||
body.dark-mode textarea {
|
||||
color: #ddd;
|
||||
background: #211921;
|
||||
border: solid 1px #ddd;
|
||||
color: #ddd;
|
||||
background: #211921;
|
||||
border: solid 1px #ddd;
|
||||
}
|
||||
body.dark-mode button {
|
||||
background-color: #211921;
|
||||
color: #ddd;
|
||||
background-color: #211921;
|
||||
color: #ddd;
|
||||
}
|
||||
body.dark-mode button:hover {
|
||||
background-color: #e5e5e5;
|
||||
color: #333;
|
||||
background-color: #e5e5e5;
|
||||
color: #333;
|
||||
}
|
||||
body.dark-mode .alert {
|
||||
color: #ddd;
|
||||
background: #211921;
|
||||
color: #ddd;
|
||||
background: #211921;
|
||||
}
|
||||
body.dark-mode .block, body.dark-mode .block_head {
|
||||
border-left: solid 4px #211921;
|
||||
border-left: solid 4px #211921;
|
||||
}
|
||||
|
|
|
@ -2,12 +2,15 @@
|
|||
<html lang="en">
|
||||
<head>
|
||||
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
|
||||
<meta charset="utf-8">
|
||||
<title><?=$title ?? "envs.net | environments"?></title>
|
||||
<meta name="description" content="<?=$desc ?? "envs.net | environments for linux lovers - since 9/2019"?>" />
|
||||
<meta name="url" content="https://envs.net/"/>
|
||||
<meta name="author" content="Sven Kinne" />
|
||||
<meta name="robots" content="index, follow">
|
||||
<meta name="revisit-after" content="7 days">
|
||||
<meta name="keywords" content="Sven Kinne,env,envs,enviroments,tilde,tildeverse,tldr,userspace,space,real-time,tiny,minimalist,shared,non-commercial,linux,lxc,debian,shell,bash,programmer,hackers,console,hosting,selfhosting,openknowledge,decentralize,communication,fediverse,federated,social,webpage,blog,gopher,forum,bbj,search,searx,news,feed,rss,atom,collaborative,pad,cryptpad,code,codepad,paste,pastebin,pb,termbin,tb,file,curl,0x0,shorten,shorter,shortener,share,upload,pleroma,matrix,ip,ifconfig,ipconfig,showip,whois" />
|
||||
<meta name="keywords" content="envs,enviroments,env,tilde,tildeverse,tldr,userspace,space,real-time,tiny,minimalist,shared,non-commercial,linux,lxc,debian,shell,bash,programmer,hackers,console,hosting,selfhosting,openknowledge,decentralize,communication,fediverse,federated,social,webpage,blog,gemini,gopher,forum,bbj,search,searx,news,feed,rss,atom,collaborative,codimd,pad,cryptpad,code,codepad,paste,pastebin,pb,file,curl,nullpointer,0x0,shorten,shorter,shortener,share,upload,pleroma,matrix,element,dimension,jitsi,ip,ifconfig,ipconfig,showip,whois" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||
<link rel="stylesheet" href="/css/css_style.css" />
|
||||
<link rel="stylesheet" href="/css/fork-awesome.min.css" />
|
||||
<?=$additional_head ?? ""?>
|
||||
|
|
25
index.php
25
index.php
|
@ -16,13 +16,13 @@
|
|||
$total_users = $user_info->data->info->user_count;
|
||||
|
||||
// server system info
|
||||
$load = '';
|
||||
foreach (sys_getloadavg() as $value) { $load .= number_format($value, 2) . " "; } ;
|
||||
$load = trim($load);
|
||||
$ds = number_format(disk_total_space("/") / 1073741824, 2);
|
||||
$ds_free = number_format(disk_free_space("/") / 1073741824, 2);
|
||||
$ds_used = "$ds" - "$ds_free";
|
||||
$conntracks = shell_exec("tail -1 /var/log/envs_conntrack.log | awk '{printf $2}'");
|
||||
$local_os = shell_exec("lsb_release -ds");
|
||||
$local_load = '';
|
||||
foreach (sys_getloadavg() as $value) { $local_load .= number_format($value, 2) . " "; } ;
|
||||
$local_load = trim($local_load);
|
||||
$local_ds = number_format(disk_total_space("/") / 1073741824, 2);
|
||||
$local_ds_free = number_format(disk_free_space("/") / 1073741824, 2);
|
||||
$local_ds_used = "$local_ds" - "$local_ds_free";
|
||||
|
||||
include 'header.php';
|
||||
?>
|
||||
|
@ -49,7 +49,7 @@ include 'header.php';
|
|||
<table>
|
||||
<tr> <th class="tw130"></th> <th class="tw110"></th> <th></th> </tr>
|
||||
<?php
|
||||
$exclude = ['bbj','drone','element-web','gophernicus','halcyon','ipinfo','jetforce','thelounge','znc'];
|
||||
$exclude = ['bbj','drone','element-web','gophernicus','ipinfo','jetforce','thelounge','znc'];
|
||||
$clean = array('http://', 'https://', '/');
|
||||
|
||||
foreach ($sys_info->data->services as $service => $value) {
|
||||
|
@ -87,12 +87,11 @@ follow us in the <a href="/chat">chat</a> if you like.
|
|||
<pre><strong><i class="fa fa-gear fa-fw" aria-hidden="true"></i> SYSTEM INFO</strong></pre>
|
||||
<table>
|
||||
<tr><th class="tw110"></th> <th></th></tr>
|
||||
<tr><td >time:</td> <td><?=$datetime?></td></tr>
|
||||
<tr><td>time:</td> <td><?=$datetime?></td></tr>
|
||||
<tr><td> </td> <td></td></tr>
|
||||
<tr><td>os:</td> <td>Debian GNU/Linux 10 (buster)</td></tr>
|
||||
<tr><td>load:</td> <td><?=$load?></td></tr>
|
||||
<tr><td>disk space:</td> <td>used: <?=$ds_used?>GB | free: <?=$ds_free?>GB</td></tr>
|
||||
<tr><td>conntracks:</td> <td><?=$conntracks?></td></tr>
|
||||
<tr><td>os:</td> <td><?=$local_os?></td></tr>
|
||||
<tr><td>load:</td> <td><?=$local_load?></td></tr>
|
||||
<tr><td>disk space:</td> <td>used: <?=$local_ds_used?>GB | free: <?=$local_ds_free?>GB</td></tr>
|
||||
</table>
|
||||
<p></p>
|
||||
<pre>
|
||||
|
|
Loading…
Reference in New Issue