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;'>";
|
print "<ul style='list-style: none; margin-left: -40px;'>";
|
||||||
foreach (glob("/home/*") as $userpath):
|
foreach (glob("/home/*") as $userpath):
|
||||||
if (is_dir("$userpath/public_html"))
|
if (is_dir("$userpath/public_html"))
|
||||||
if (count(scandir("$userpath/public_html")) != 2)
|
{
|
||||||
{
|
$user = basename($userpath);
|
||||||
$user = basename($userpath);
|
if(sha1_file($html_skel) == sha1_file("$userpath/public_html/index.html"))
|
||||||
if(sha1_file($html_skel) == sha1_file("$userpath/public_html/index.html"))
|
print"<li>~$user</li>\n";
|
||||||
print"<li>~$user</li>\n";
|
else
|
||||||
else
|
print"<li><a href='$site_root/~$user/'>~$user</a></li>\n";
|
||||||
print"<li><a href='$site_root/~$user/'>~$user</a></li>\n";
|
}
|
||||||
}
|
|
||||||
endforeach;
|
endforeach;
|
||||||
print "</ul></div>
|
print "</ul></div>
|
||||||
<!-- End Autgen userdir list -->";
|
<!-- End Autgen userdir list -->";
|
||||||
|
|
Loading…
Reference in New Issue