forked from team/site
1
0
Fork 0

skip default pages

This commit is contained in:
Ben Harris 2018-11-30 10:37:41 -05:00 committed by Ben Harris
parent 446fb2e2cc
commit fdf576626f
1 changed files with 3 additions and 1 deletions

View File

@ -94,7 +94,9 @@ $parser = new Mni\FrontYAML\Parser();
<ul>
<?php
foreach (glob("/home/*") as $user):
if (!is_dir("$user/public_html")) continue;
if (!is_dir("$user/public_html")
|| sha1_file("/etc/skel/public_html/index.php") == sha1_file("$user/public_html/index.php"))
continue;
$user = basename($user); ?>
<li style="list-style: none; margin-left: -40px;">
<a href="/~<?=$user?>/" class="list-group-item">