make sure index.php exists before sha1'ing it
This commit is contained in:
parent
cc3521e19a
commit
5041ab536a
|
@ -94,8 +94,9 @@ $parser = new Mni\FrontYAML\Parser();
|
||||||
<ul>
|
<ul>
|
||||||
<?php
|
<?php
|
||||||
foreach (glob("/home/*") as $user):
|
foreach (glob("/home/*") as $user):
|
||||||
if (!is_dir("$user/public_html")
|
if (!is_dir("$user/public_html")
|
||||||
|| sha1_file("/etc/skel/public_html/index.php") == sha1_file("$user/public_html/index.php"))
|
|| (file_exists("$user/public_html/index.php")
|
||||||
|
&& sha1_file("/etc/skel/public_html/index.php") == sha1_file("$user/public_html/index.php")))
|
||||||
continue;
|
continue;
|
||||||
$user = basename($user); ?>
|
$user = basename($user); ?>
|
||||||
<li style="list-style: none; margin-left: -40px;">
|
<li style="list-style: none; margin-left: -40px;">
|
||||||
|
|
Loading…
Reference in New Issue