2019-10-12 18:17:09 +00:00
< ? php
$additional_head = "
< meta http - equiv = 'refresh' content = '60' />
" ;
2020-01-19 11:21:42 +00:00
// json files
$user_info = json_decode ( file_get_contents ( '/var/www/envs.net/users_info.json' ));
$sys_info = json_decode ( file_get_contents ( '/var/www/envs.net/sysinfo.json' ));
2019-10-12 18:17:09 +00:00
// date
$date = new DateTime ( null , new DateTimeZone ( 'Etc/UTC' ));
$datetime = $date -> format ( 'l, d. F Y - h:i:s A (e)' );
// users
$online_users = str_replace ( PHP_EOL , '' , shell_exec ( " online-users " ));
2020-01-19 11:21:42 +00:00
$total_users = $user_info -> data -> info -> user_count ;
2019-10-12 18:17:09 +00:00
// 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 " ;
2020-01-14 14:00:42 +00:00
$conntracks = shell_exec ( " tail -1 /var/log/envs_conntrack.log | awk ' { printf $ 2}' " );
2019-10-12 18:17:09 +00:00
include 'header.php' ;
?>
< body id = " body " class = " dark-mode " >
<!-- BODYDIV ( closed in footer . php ) -->
2020-01-19 12:05:51 +00:00
< div class = " clear " style = " min-width: 1050px; " >
2019-10-12 18:17:09 +00:00
<!-- MAIN -->
2020-01-20 10:20:19 +00:00
< div id = " main " style = " padding-bottom: 2em; " >
2019-10-12 18:17:09 +00:00
< pre class = " banner " >
2020-01-14 20:44:19 +00:00
< ? php include 'banner_html.txt' ; ?>
2019-11-19 15:43:43 +00:00
< small >< em > environments - since 9 / 2019 </ em ></ small >
2019-10-12 18:17:09 +00:00
</ pre >
<!-- maintenance info -->
<!--< pre class = " alert " >
< i class = " fa fa-exclamation-triangle fa-fw " aria - hidden = " true " ></ i >& nbsp ; maintenance !
2020-01-19 11:21:42 +00:00
2019-10-12 18:17:09 +00:00
</ pre >-->
< table >
2020-01-19 18:09:23 +00:00
< tr > < th class = " tw130 " ></ th > < th class = " tw110 " ></ th > < th class = " tw480 " ></ th > </ tr >
2020-01-19 11:21:42 +00:00
< ? php
$exclude = [ 'bbj' , 'gophernicus' , 'jetforce' , 'riot-web' , 'thelounge' , 'znc' ];
2020-01-19 11:33:31 +00:00
$clean = array ( 'http://' , 'https://' , '/' );
2020-01-19 11:21:42 +00:00
foreach ( $sys_info -> data -> services as $service => $value ) {
$url = $sys_info -> data -> services -> $service -> url ;
$urlname = str_replace ( $clean , '' , $url );
$desc = $sys_info -> data -> services -> $service -> desc ;
2020-01-19 12:05:51 +00:00
if ( $service == 'getwtxt' ) { $desc .= ' - see <a href="https://help.envs.net/blog/#with-twtxt">twtxt</a> help' ; }
2020-01-19 11:21:42 +00:00
if ( ! in_array ( $service , $exclude )) {
2020-01-19 18:09:23 +00:00
echo " <tr> \n <td><a rel= \" $service\ " href = \ " $url\ " target = \ " _blank \" > $urlname </a></td> \n "
. " <td>- $service </td> <td><em> $desc </em></td> \n </tr> \n " ;
2020-01-19 11:21:42 +00:00
}
}
?>
2019-10-12 18:17:09 +00:00
</ table >
<!-- ABOUT -->
< pre >
2020-01-14 12:23:01 +00:00
2019-10-12 18:17:09 +00:00
envs . net is a minimalist , non - commercial
2019-11-04 23:55:55 +00:00
shared linux system and will always be free to use .
2019-10-12 18:17:09 +00:00
we are linux lovers , sysadmins , programmer and users who like build
webpages , write blogs , chat online , play cool console games and so much
more . you wish to join with an small user space ? send a email
to < a href = " mailto:hostmaster@envs.net?subject=signup%20user%20space%20-%20envs.net&body=desired%20username:%20%0A%0A%0Awhat%20interests%20you%20about%20envs.net?%0A%0A%0Assh%20public%20key:%0A%20--paste%20here--%0A " target = " _blank " > hostmaster & #64;envs.net</a> or use the <a href="/signup/">signup</a> form.
2020-01-14 10:38:15 +00:00
follow us in the < a href = " /chat " > chat </ a > and let ' s start talking .
2019-10-12 18:17:09 +00:00
</ pre >
<!-- END ABOUT -->
<!-- SERVER INFO -->
< div class = " block " >
2020-01-20 01:30:48 +00:00
< pre >< strong >< i class = " fa fa-gear fa-fw " aria - hidden = " true " ></ i > SYSTEM INFO </ strong ></ pre >
2019-10-12 18:17:09 +00:00
< table >
2020-01-19 18:09:23 +00:00
< tr >< th class = " tw110 " ></ th > < th ></ th ></ tr >
< tr >< td > time :</ td > < td >< ? = $datetime ?> </td></tr>
< tr >< td >& nbsp ; </ 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>
2019-10-12 18:17:09 +00:00
</ table >
2020-01-19 13:00:42 +00:00
< p ></ p >
2020-01-20 01:30:48 +00:00
< pre >
2019-10-12 18:17:09 +00:00
< em > more infos about the system and the installed packages can
you find on the < a href = " /sysinfo/ " > sysinfo page </ a >.</ em >
</ pre >
2020-01-20 01:30:48 +00:00
< p ></ p >
2019-10-12 18:17:09 +00:00
</ div >
2020-01-19 13:00:42 +00:00
< pre >< small >< em > inspired by < a href = " https://tilde.team/ " target = " _blank " >~ team </ a > and a member of < a href = " https://tildeverse.org/ " target = " _blank " > tildeverse </ a >.</ em ></ small ></ pre >
2019-10-12 18:17:09 +00:00
<!-- END SERVER INFO -->
</ div >
<!-- END MAIN -->
<!-- SIDEBAR -->
< div id = " sidebar " >
<!-- MENU -->
< div class = " block " >
< table >
2020-01-19 18:09:23 +00:00
< tr >< th class = " tw25 " ></ th > < th ></ th ></ tr >
2019-10-12 18:17:09 +00:00
< tr onclick = " window.location='/chat/'; " >
2020-01-19 18:09:23 +00:00
< td >< i class = " fa fa-comments-o fa-fw " aria - hidden = " true " ></ i ></ td >
2020-01-19 12:11:01 +00:00
< td >< strong >< a rel = " chat " target = " _top " href = " /chat/ " > chat </ a ></ strong ></ td >
2019-10-12 18:17:09 +00:00
</ tr >
< tr onclick = " window.location='https://mail.envs.net/'; " >
2020-01-19 12:11:01 +00:00
< td >< i class = " fa fa-envelope-o fa-fw " aria - hidden = " true " ></ i ></ td >
< td >< strong >< a rel = " mail " target = " _top " href = " https://mail.envs.net/ " > webmail </ a ></ strong ></ td >
2019-10-12 18:17:09 +00:00
</ tr >
< tr onclick = " window.location='https://lists.envs.net/'; " >
2020-01-19 12:11:01 +00:00
< td >< i class = " fa fa-bullhorn fa-fw " aria - hidden = " true " ></ i ></ td >
< td >< strong >< a rel = " lists " target = " _top " href = " https://lists.envs.net/ " > mailing lists </ a ></ strong ></ td >
2019-10-12 18:17:09 +00:00
</ tr >
< tr onclick = " window.location='https://bbj.envs.net/'; " >
2020-01-19 12:11:01 +00:00
< td >< i class = " fa fa-forumbee fa-fw " aria - hidden = " true " ></ i ></ td >
< td >< strong >< a rel = " forum " target = " _top " href = " https://bbj.envs.net/ " > forum </ a ></ strong ></ td >
2019-10-12 18:17:09 +00:00
</ tr >
< tr onclick = " window.location='https://gopher.envs.net/'; " >
2020-01-19 12:11:01 +00:00
< td >< i class = " fa fa-floppy-o fa-fw " aria - hidden = " true " ></ i ></ td >
< td >< strong >< a rel = " gopher " target = " _top " href = " https://gopher.envs.net/ " > gopher </ a ></ strong ></ td >
2019-10-12 18:17:09 +00:00
</ tr >
< tr onclick = " window.location='https://tilde.zone/@envs'; " >
2020-01-19 12:11:01 +00:00
< td >< i class = " fa fa-mastodon fa-fw " aria - hidden = " true " ></ i ></ td >
< td >< strong >< a rel = " me " target = " _top " href = " https://tilde.zone/@envs " > mastodon </ a ></ strong ></ td >
2019-10-12 18:17:09 +00:00
</ tr >
</ table >
2020-01-14 14:16:48 +00:00
< br />
2019-10-12 18:17:09 +00:00
< table >
2020-01-19 18:09:23 +00:00
< tr >< th class = " tw25 " ></ th > < th ></ th ></ tr >
2019-10-12 18:17:09 +00:00
< tr onclick = " window.location='/coc/'; " >
2020-01-19 12:11:01 +00:00
< td >< i class = " fa fa-sticky-note-o fa-fw " aria - hidden = " true " ></ i ></ td >
< td >< strong >< a rel = " coc " target = " _top " href = " /coc/ " > code of conduct </ a ></ strong ></ td >
2019-10-12 18:17:09 +00:00
</ tr >
< tr onclick = " window.location='/tos/'; " >
2020-01-19 12:11:01 +00:00
< td >< i class = " fa fa-handshake-o fa-fw " aria - hidden = " true " ></ i ></ td >
< td >< strong >< a rel = " tos " target = " _top " href = " /tos/ " > terms of service </ a ></ strong ></ td >
2019-10-12 18:17:09 +00:00
</ tr >
< tr onclick = " window.location='/privacy-policy/'; " >
2020-01-19 12:11:01 +00:00
< td >< i class = " fa fa-eye fa-fw " aria - hidden = " true " ></ i ></ td >
< td >< strong >< a rel = " pp " target = " _top " href = " /privacy-policy/ " > privacy policy </ a ></ strong ></ td >
2019-10-12 18:17:09 +00:00
</ tr >
2019-10-30 19:28:01 +00:00
< tr onclick = " window.location='https://help.envs.net/'; " >
2020-01-19 12:11:01 +00:00
< td >< i class = " fa fa-book fa-fw " aria - hidden = " true " ></ i ></ td >
< td >< strong >< a rel = " help " target = " _top " href = " https://help.envs.net/ " > help </ a ></ strong ></ td >
2019-10-12 18:17:09 +00:00
</ tr >
2019-11-19 12:24:57 +00:00
< tr onclick = " window.location='https://help.envs.net/faq/'; " >
2020-01-19 12:11:01 +00:00
< td >< i class = " fa fa-question-circle-o fa-fw " aria - hidden = " true " ></ i ></ td >
< td >< strong >< a rel = " faq " target = " _top " href = " https://help.envs.net/faq/ " > faq </ a ></ strong ></ td >
2019-11-19 12:24:57 +00:00
</ tr >
2020-01-14 12:23:01 +00:00
</ table >
2019-10-12 18:17:09 +00:00
</ div >
<!-- END MENU -->
2020-01-19 18:09:23 +00:00
< p ></ p >
2019-10-12 18:17:09 +00:00
<!-- DONATION -->
< div class = " block " >
< pre >
< em > donate via liberapay </ em >
2019-12-06 09:38:55 +00:00
< a href = " https://en.liberapay.com/creme/donate " target = " _blank " style = " border-bottom-color: transparent; " >< img src = " https://img.shields.io/liberapay/receives/creme.svg?logo=liberapay " alt = " Donate using Liberapay " ></ a >
2019-10-12 18:17:09 +00:00
</ pre >
2020-01-20 01:30:48 +00:00
< p ></ p >
2019-10-12 18:17:09 +00:00
</ div >
<!-- END DONATION -->
<!-- USERS -->
< div class = " block " >
2020-01-20 01:30:48 +00:00
< pre >
2020-01-19 18:09:23 +00:00
< strong >< i class = " fa fa-users fa-fw " aria - hidden = " true " ></ i > USERS </ strong >
2019-10-12 18:17:09 +00:00
< small > online : < ? = $online_users ?> | total: <?=$total_users?></small>
2020-01-14 12:23:01 +00:00
</ pre >
2020-01-20 01:30:48 +00:00
< p ></ p >
2019-10-12 18:17:09 +00:00
< table >
2020-01-19 18:09:23 +00:00
< tr >< th class = " tw20 " ></ th > < th ></ th ></ tr >
2019-10-12 18:17:09 +00:00
< tr onclick = " window.location='/users_info.json'; " >
2020-01-19 18:09:23 +00:00
< td >< small >< i class = " fa fa-info-circle fa-fw " aria - hidden = " true " ></ i ></ small ></ td >
2020-01-19 12:11:01 +00:00
< td >< small >< a href = " /users_info.json " > users_info . json </ a ></ small ></ td >
2019-10-12 18:17:09 +00:00
</ tr >
< tr onclick = " window.location='/user_updates/'; " >
2020-01-19 12:11:01 +00:00
< td >< small >< i class = " fa fa-clock-o fa-fw " aria - hidden = " true " ></ i ></ small ></ td >
< td >< small >< a href = " /user_updates/ " > recently updates </ a ></ small ></ td >
2019-10-12 18:17:09 +00:00
</ tr >
</ table >
2020-01-20 01:30:48 +00:00
2020-01-19 13:00:42 +00:00
< p ></ p >
2019-10-12 18:17:09 +00:00
2020-01-20 02:02:14 +00:00
< details >< summary class = " menu " > user list </ summary >< small > & gt ; < a href = " /users/ " > list all users </ a ></ small >
2020-01-20 01:30:48 +00:00
< p ></ p >
2020-01-19 18:09:23 +00:00
< ul class = " userlist " >
2019-10-12 18:17:09 +00:00
< ? php
2020-01-19 11:21:42 +00:00
foreach ( $user_info -> data -> users as $user => $value ) {
if ( $user_info -> data -> users -> $user -> website != '' ) {
2020-01-19 20:10:18 +00:00
echo " \t <li><a rel= \" $user\ " target = \ " _blank \" href= \" /~ $user\ " >& #126;$user</a></li>\n";
2019-10-12 18:17:09 +00:00
}
}
?>
</ ul >
2020-01-19 18:09:23 +00:00
</ details >
2020-01-20 01:30:48 +00:00
< p ></ p >
2019-10-12 18:17:09 +00:00
</ div >
<!-- END USERS -->
</ div >
<!-- END SIDEBAR -->
< ? php include 'footer.php' ; ?>