[SUCS Devel] site r641 - branches/sucs-site/components
imranh at sucs.org
imranh at sucs.org
Fri Jan 30 20:59:57 GMT 2015
Author: imranh
Date: 2015-01-30 20:59:55 +0000 (Fri, 30 Jan 2015)
New Revision: 641
Modified:
branches/sucs-site/components/members.php
Log:
robots.txt in users home dirs don't matter/are ignored
Modified: branches/sucs-site/components/members.php
===================================================================
--- branches/sucs-site/components/members.php 2015-01-30 17:08:05 UTC (rev 640)
+++ branches/sucs-site/components/members.php 2015-01-30 20:59:55 UTC (rev 641)
@@ -54,8 +54,7 @@
$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 @@
$stats['recent'][$i]['real'] = FALSE;
}
}
-
+
$smarty->assign("stats", $stats);
$secondary = $smarty->get_template_vars("secondary");
$secondary .= $smarty->fetch("banana-leaders.tpl");
@@ -151,15 +150,14 @@
$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");
$result = $smarty->fetch('members.tpl');
More information about the Devel
mailing list