Skip to content
Snippets Groups Projects
Commit ca65803d authored by Imran Hussain's avatar Imran Hussain
Browse files

robots.txt in users home dirs don't matter/are ignored

parent 7f093a0f
No related branches found
No related tags found
No related merge requests found
......@@ -54,8 +54,7 @@ if ($session->loggedin) {
$usernames[0]['plan'] = file_get_contents($usernames[0]['homedir'] . '/.plan');
}
// Website
if ( file_exists( $usernames[0]['homedir'] . '/public_html') &&
!file_exists( $usernames[0]['homedir'] . '/public_html/robots.txt')) {
if ( file_exists( $usernames[0]['homedir'] . '/public_html')) {
$usernames[0]['website'] = true;
}
// Blog
......@@ -139,7 +138,7 @@ if ($session->loggedin) {
$stats['recent'][$i]['real'] = FALSE;
}
}
$smarty->assign("stats", $stats);
$secondary = $smarty->get_template_vars("secondary");
$secondary .= $smarty->fetch("banana-leaders.tpl");
......@@ -151,14 +150,13 @@ if ($session->loggedin) {
$usernames = $members->getMemberList();
foreach ($usernames as $user) {
if ( file_exists( $user['homedir'] . '/public_html') &&
!file_exists( $user['homedir'] . '/public_html/robots.txt')) {
if ( file_exists( $user['homedir'] . '/public_html')) {
$public_usernames[] = $user;
}
}
$smarty->assign("public_members", $public_usernames);
}
$smarty->assign('url', $component['path']);
$smarty->assign('extra_styles', "/css/members.css");
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment