. // TODO: - add a logging mechanism to see if people are using this. // - use display functions from util.inc // - give the user a language choice require_once("../inc/util.inc"); $master_url = parse_config(get_config(), ""); $user = get_logged_in_user(); page_head(tra("Tell your friends about %1", PROJECT)); $text = @file_get_contents('../ops/ffmail/text'); if (!$text) { $text = "I'm using my computer to crunch numbers for a science project called ".PROJECT.". The more computers participate, the more science gets done. Would you like to join me? To learn how, visit $master_url "; } $text .= "\n$user->name"; $subject = @file_get_contents('../ops/ffmail/subject'); if (!$subject) { $subject = "Join me at ".PROJECT; } echo tra("Use this form to send email messages to people you think might be interested in %1.", PROJECT); echo "

\n"; start_table(); row2("From:", "$user->name <$user->email_addr>"); for ($i=0; $i<6; $i++) { row2(tra("To:"), ""); } row2(tra("Subject"), ""); row2(tra("Message"), ""); row2("", ""); end_table(); echo "
\n"; page_tail(); ?>