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:
parent
23805c9224
commit
84f93c38f8
17
index.php
17
index.php
|
@ -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>
|
||||
|
|
Loading…
Reference in New Issue