Added a script that reads from /home/gtlsgamr/.site_spotlight

This will make it easier to add stuff on the site spotlight. Rather than making changes to the html code everytime, we can just edit the file /home/gtlsgamr/.site_spotlight.
Feel free to change this to a location of your choice ben. If not, I am happy to take requests from the users and take on the task of adding those things to that file.
This commit is contained in:
gtlsgamr 2022-07-29 10:37:20 +00:00
parent 23805c9224
commit 84f93c38f8
1 changed files with 11 additions and 6 deletions

View File

@ -125,15 +125,20 @@ $parser = wiki::factory(true);
<div class="row">
<div class="col-md-12">
<h2 id="newstuff">~user spotlight~</h2>
<div class="list-group">
<div class="list-group-item">
<ul>
<li>
<a href="https://gtlsgamr.tilde.team">~gtlsgamr</a> has made a <a href="https://gtlsgamr.tilde.team/nethack_scores.php">page</a> to show tilde.team's top nethack scorers!
</li>
<li>
For the text-only enthusiasts, <a href="https://soxfox.tilde.team">~soxfox</a> has also made a <a href="gemini://tilde.team/~soxfox/nethack">gemini page</a> to show nethack scorers.
</li>
<?php
$file = fopen("/home/gtlsgamr/.site_spotlight", 'r');
while( !feof( $file ) )
{
$line = fgets($file);
if($line!='')
echo '<li>'.$line.'</li>' ;
}
fclose($file);
?>
</ul>
</div>
</div>