dr-w-site/index.php

142 lines
5.5 KiB
PHP
Raw Normal View History

2019-01-25 17:55:04 +00:00
<?php
include 'header.php';
2018-11-11 07:38:57 +00:00
require __DIR__.'/vendor/autoload.php';
2019-07-03 05:15:10 +00:00
$parser = Tildeverse\Wiki\Parser::factory();
2018-11-11 07:38:57 +00:00
?>
2018-03-15 06:19:00 +00:00
2017-12-28 23:44:45 +00:00
<div class="jumbotron">
2018-03-15 06:19:00 +00:00
<h1>~team</h1>
2017-12-28 23:44:45 +00:00
<pre>
2017-09-13 15:22:06 +00:00
__ _ __ __ __
/ /_(_) /___/ /__ / /____ ____ _____ ___
/ __/ / / __ / _ \ / __/ _ \/ __ `/ __ `__ \
/ /_/ / / /_/ / __// /_/ __/ /_/ / / / / / /
\__/_/_/\__,_/\___(_)__/\___/\__,_/_/ /_/ /_/
</pre>
2017-12-28 23:44:45 +00:00
<br>
2017-12-28 23:44:45 +00:00
<p>a digital community for socializing, learning, and making cool stuff</p>
</div>
<p>
tilde.team is a shared system that provides an inclusive,
non-commercial space for teaching, learning, practicing and
enjoying the social medium of unix.
</p>
<p>
i created this tilde after hearing about paul ford's
<a href="http://tilde.club/">tilde.club</a>. when i was unable
to join due to the waitlist, i decided to create my own tilde.
</p>
2017-12-29 22:26:24 +00:00
<p>thanks for stopping by!</p>
<p>
tilde.team is a founding member of <a href="https://tildeverse.org">tildeverse.org</a>,
which is a collaborative effort among several <a href="https://tildeverse.org/members/">
other tilde servers</a>.
</p>
<p>
hosting and domains are paid out-of-pocket. tilde.team will always
be free to use. however, if you are able and willing to pitch in,
you can <a href="https://bhh.sh/donate/">donate here</a>.
</p>
2017-12-29 22:26:24 +00:00
<p><a href="/~ben/">~ben</a></p>
2017-09-13 15:22:06 +00:00
2017-12-20 22:09:36 +00:00
<br>
2017-12-28 23:44:45 +00:00
2017-12-28 18:13:16 +00:00
<a href="/signup/" class="btn btn-primary btn-lg">
2017-12-20 22:09:36 +00:00
<i class="fa fa-user-plus"></i> signup</a>
2017-09-13 15:22:06 +00:00
2017-12-20 22:09:36 +00:00
<br>
<br>
<hr>
2017-09-13 15:22:06 +00:00
<h3>tilde.team services</h3>
2017-09-13 15:22:06 +00:00
2018-06-08 21:34:05 +00:00
<?php include 'services.php'; ?>
2017-09-13 15:22:06 +00:00
2017-12-20 22:09:36 +00:00
<br>
<hr>
2017-12-28 22:29:14 +00:00
<div class="row">
<div class="col-md-7">
<h1>~news~</h1>
<?php foreach (array_slice(array_reverse(glob("news/pages/*.md")), 0, 4) as $page):
2018-11-11 07:38:57 +00:00
$parsed = $parser->parse(file_get_contents($page));
$yaml = $parsed->getYAML();
if (!$yaml["published"]) continue; ?>
2018-01-29 20:39:53 +00:00
<div class="list-group">
<div class="list-group-item">
2018-11-11 07:38:57 +00:00
<h3 class="list-group-item-heading"><?=$yaml["title"]?></h3>
<em>
<a href="/news/<?=basename($page, ".md")?>">
<?=$yaml["date"]?></a> - <a href="/~<?=$yaml["author"]?>/"><?=$yaml["author"]?></a>
</em>
2018-11-11 07:38:57 +00:00
<hr>
2020-01-02 00:10:16 +00:00
<div class="list-group-item-text"><?=$parsed->getContent()?></div>
2018-01-29 20:39:53 +00:00
</div>
</div>
2018-01-29 20:39:53 +00:00
<?php endforeach; ?>
2018-11-11 07:38:57 +00:00
<div class="list-group">
<div class="list-group-item">
<p class="list-group-item-text"><a href="/news/">news archive here...</a></p>
</div>
</div>
2018-03-14 21:03:23 +00:00
<h1>~current projects~</h1>
2018-09-07 16:58:58 +00:00
<h4>on our <a href="https://tildegit.org/team">gitea</a></h4>
2018-03-14 21:03:23 +00:00
<hr>
2018-11-11 07:38:57 +00:00
<div class="list-group">
<?php foreach (json_decode(file_get_contents("https://tildegit.org/api/v1/orgs/team/repos")) ?? [] as $repo): ?>
2018-03-14 21:03:23 +00:00
<div class="list-group-item">
2018-11-11 07:38:57 +00:00
<h3 style="display:inline;" class="list-group-item-heading">
<a href="<?=$repo->html_url?>"><?=$repo->name?></a>
</h3>
2018-06-04 22:28:09 +00:00
<?php if ($repo->website != ""): ?>
2018-11-11 07:38:57 +00:00
&mdash;
<p style="display:inline;"><em><a href="<?=$repo->website?>"><?=$repo->website?></a></em></p>
2018-03-14 21:03:23 +00:00
<?php endif; ?>
2018-11-11 07:38:57 +00:00
<br>
<p class="list-group-item-text"><?=$repo->description?></p>
2018-03-14 21:03:23 +00:00
</div>
2018-11-11 07:38:57 +00:00
<?php endforeach; ?>
</div>
2019-01-25 17:55:04 +00:00
2017-12-28 22:29:14 +00:00
</div>
2018-01-29 20:39:53 +00:00
2017-12-28 22:29:14 +00:00
<div class="col-md-5">
<h1>~users~</h1>
2019-01-25 17:55:04 +00:00
<p><em><a href="/tilde.24h.html"><i class="fa fa-clock-o"></i> recent updates</a></em></p>
2018-12-10 07:37:04 +00:00
<p>if you're not listed here, make some changes to your page</p>
2019-01-25 17:55:04 +00:00
<p><a href="/users/">all users</a></p>
2017-12-28 22:29:14 +00:00
<br><br>
2018-10-20 07:16:50 +00:00
<div class="list-group">
<ul>
2018-06-21 16:18:39 +00:00
<?php
foreach (glob("/home/*") as $user):
if (!is_dir("$user/public_html")
|| (file_exists("$user/public_html/index.php")
2018-12-10 07:37:04 +00:00
&& in_array(sha1_file("$user/public_html/index.php"),
// these are the sha1s of two previous default pages
["ca32714c33abb57430583ad07efec6097ae1a044", "f190ba3a1ed796a20bea83304e45e799420c0716"])))
2018-11-30 15:37:41 +00:00
continue;
2018-06-23 04:46:21 +00:00
$user = basename($user); ?>
2018-10-20 07:16:50 +00:00
<li style="list-style: none; margin-left: -40px;">
2018-09-20 16:16:23 +00:00
<a href="/~<?=$user?>/" class="list-group-item">
2020-01-02 00:10:16 +00:00
<h6 class="list-group-item-heading">~<?=$user?></h6>
</a>
2018-10-20 07:16:50 +00:00
</li>
<?php endforeach; ?>
2018-10-20 07:16:50 +00:00
</ul>
</div>
2017-09-13 15:22:06 +00:00
</div>
2017-12-28 22:29:14 +00:00
</div>
2017-09-13 15:22:06 +00:00
2018-03-28 20:36:28 +00:00
<?php include 'footer.php'; ?>