mirror of https://github.com/BOINC/boinc.git
web: tweaks. disable "friends and family email" (abused by spammers)
This commit is contained in:
parent
b33c463cf3
commit
3df12e48a1
|
@ -122,10 +122,8 @@ function sample_navbar($prefix, $user, $fixed) {
|
|||
if (defined('NO_COMPUTING')) {
|
||||
// this is for projects that don't do computing, e.g. BOSSA-based
|
||||
//
|
||||
navbar_menu(tra("Participants"), array(
|
||||
navbar_menu(tra("Participate"), array(
|
||||
array(tra("Do work"), $prefix."bossa_apps.php"),
|
||||
array(tra("Your account"), $prefix."home.php", tra("view stats, modify preferences")),
|
||||
array(tra("Teams"), $prefix."team.php", tra("create or join a team"))
|
||||
));
|
||||
} else {
|
||||
navbar_menu(tra("Project"), array(
|
||||
|
|
|
@ -38,7 +38,7 @@ function news_item($date, $title, $post) {
|
|||
";
|
||||
if ($forum_link && !DISABLE_FORUMS) {
|
||||
echo "
|
||||
· <a href=\"".url_base()."forum_thread.php?id=$post->thread\"> ".tra("Comment")."</a>
|
||||
· <a href=\"".url_base()."forum_thread.php?id=$post->thread\"> ".tra("Discuss")."</a>
|
||||
";
|
||||
}
|
||||
echo "</span>
|
||||
|
|
|
@ -18,6 +18,8 @@
|
|||
|
||||
require_once("../inc/email.inc");
|
||||
|
||||
error_page("This feature is deprecated");
|
||||
|
||||
$text = get_str('text');
|
||||
$subject = get_str('subject');
|
||||
|
||||
|
|
|
@ -22,6 +22,12 @@
|
|||
|
||||
require_once("../inc/util.inc");
|
||||
|
||||
// Spammers were abusing this feature,
|
||||
// and AFAIK it was never used much.
|
||||
// Screw it.
|
||||
|
||||
error_page("This feature is deprecated");
|
||||
|
||||
$master_url = parse_config(get_config(), "<master_url>");
|
||||
|
||||
$user = get_logged_in_user();
|
||||
|
|
|
@ -112,26 +112,26 @@ function left(){
|
|||
echo "</ul>\n";
|
||||
}
|
||||
);
|
||||
}
|
||||
|
||||
function news() {
|
||||
include("motd.php");
|
||||
show_news(0, 5);
|
||||
}
|
||||
|
||||
function right() {
|
||||
global $stopped;
|
||||
if (!$stopped) {
|
||||
$profile = get_current_uotd();
|
||||
if ($profile) {
|
||||
echo "
|
||||
<div class=\"media uotd\">
|
||||
";
|
||||
show_uotd($profile);
|
||||
echo "</div>\n";
|
||||
panel('User of the Day',
|
||||
function() use ($profile) {
|
||||
show_uotd($profile);
|
||||
}
|
||||
);
|
||||
}
|
||||
}
|
||||
panel('News', 'news');
|
||||
}
|
||||
|
||||
function right() {
|
||||
panel('News',
|
||||
function() {
|
||||
include("motd.php");
|
||||
show_news(0, 5);
|
||||
}
|
||||
);
|
||||
}
|
||||
|
||||
page_head(null, null, null, "", file_get_contents("schedulers.txt"));
|
||||
|
|
Loading…
Reference in New Issue