There is an index.html already
This commit is contained in:
parent
860d816031
commit
b8545fb767
|
@ -4,14 +4,13 @@ print "<!-- Begin autogen userdir list -->";
|
|||
print "<ul style='list-style: none; margin-left: -40px;'>";
|
||||
foreach (glob("/home/*") as $userpath):
|
||||
if (is_dir("$userpath/public_html"))
|
||||
if (count(scandir("$userpath/public_html")) != 2)
|
||||
{
|
||||
$user = basename($userpath);
|
||||
if(sha1_file($html_skel) == sha1_file("$userpath/public_html/index.html"))
|
||||
print"<li>~$user</li>\n";
|
||||
else
|
||||
print"<li><a href='$site_root/~$user/'>~$user</a></li>\n";
|
||||
}
|
||||
{
|
||||
$user = basename($userpath);
|
||||
if(sha1_file($html_skel) == sha1_file("$userpath/public_html/index.html"))
|
||||
print"<li>~$user</li>\n";
|
||||
else
|
||||
print"<li><a href='$site_root/~$user/'>~$user</a></li>\n";
|
||||
}
|
||||
endforeach;
|
||||
print "</ul></div>
|
||||
<!-- End Autgen userdir list -->";
|
||||
|
|
Loading…
Reference in New Issue