forked from vern/website
Also check for CGI to link user site
Signed-off-by: Aleksandar "The Cobra" Widulski <cobra@vern.cc>
This commit is contained in:
parent
52eb79f515
commit
d74f173137
|
@ -23,7 +23,14 @@
|
|||
$online .= '>•</span></b> ';
|
||||
$list .= ' <li>' . $online;
|
||||
|
||||
if (is_readable('/sshfs/home/' . $subdir . '/public_html/index.html'))
|
||||
$ph_index = '/sshfs/home/' . $subdir . '/public_html/index.';
|
||||
if (is_readable($ph_index . 'html') ||
|
||||
is_readable($ph_index . 'php') ||
|
||||
is_readable($ph_index . 'cgi') ||
|
||||
is_readable($ph_index . 'py') ||
|
||||
is_readable($ph_index . 'sh') ||
|
||||
is_readable($ph_index . 'pl') ||
|
||||
is_readable($ph_index . 'lua')) // There must be a better way to do this
|
||||
$list .= "<a href='//$subdir.vern.cc'>$subdir</a>";
|
||||
else $list .= $subdir;
|
||||
$list .= "</li>\n";
|
||||
|
|
Loading…
Reference in New Issue