forked from vern/website
add gemini/gopher links to users.php
This commit is contained in:
parent
47a00ecba7
commit
9f69fa98e6
11
users.php
11
users.php
|
@ -46,6 +46,17 @@
|
|||
is_readable($ph_index . 'lua')) // There must be a better way to do this
|
||||
$list .= "<a href='//$_SERVER[HTTP_HOST]/~$subdir/'>$subdir</a>";
|
||||
else $list .= $subdir;
|
||||
$ph_index = '/sshfs/home/' . $subdir . '/public_gemini/index.';
|
||||
if (is_readable($ph_index . 'gmi') ||
|
||||
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='//gp.vern.cc/gemini/vern.cc/~$subdir/'>(gemini)</a>";
|
||||
$ph_index = '/sshfs/home/' . $subdir . '/public_gemini/gopher';
|
||||
if (is_readable($ph_index . 'map')) // There must be a better way to do this
|
||||
$list .= "<a href='//gp.vern.cc/gopher/vern.cc/1/~$subdir/'>(gopher)</a>";
|
||||
$list .= "</li>\n";
|
||||
$total++;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue