From ca65803d4c4f5ff6ef4f7f8f1a4f602f78c9ba77 Mon Sep 17 00:00:00 2001 From: Imran Hussain <imranh@sucs.org> Date: Fri, 30 Jan 2015 20:59:55 +0000 Subject: [PATCH] robots.txt in users home dirs don't matter/are ignored --- components/members.php | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/components/members.php b/components/members.php index 646d34a..165a419 100644 --- a/components/members.php +++ b/components/members.php @@ -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"); -- GitLab