2006-07-28 16:09:10 +00:00
|
|
|
<?php
|
2008-08-05 22:43:14 +00:00
|
|
|
// This file is part of BOINC.
|
|
|
|
// http://boinc.berkeley.edu
|
|
|
|
// Copyright (C) 2008 University of California
|
|
|
|
//
|
|
|
|
// BOINC is free software; you can redistribute it and/or modify it
|
|
|
|
// under the terms of the GNU Lesser General Public License
|
|
|
|
// as published by the Free Software Foundation,
|
|
|
|
// either version 3 of the License, or (at your option) any later version.
|
|
|
|
//
|
|
|
|
// BOINC is distributed in the hope that it will be useful,
|
|
|
|
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
|
|
|
|
// See the GNU Lesser General Public License for more details.
|
|
|
|
//
|
|
|
|
// You should have received a copy of the GNU Lesser General Public License
|
|
|
|
// along with BOINC. If not, see <http://www.gnu.org/licenses/>.
|
2006-07-28 16:09:10 +00:00
|
|
|
|
2011-08-25 22:12:48 +00:00
|
|
|
// TODO: - find out if this is used (add some logging mechanism or so)
|
|
|
|
// - if used rewrite code to use display functions from util.inc
|
|
|
|
// - if used find a way to give the user a language choice (projects must translate messages themself)
|
|
|
|
|
2006-07-28 16:09:10 +00:00
|
|
|
require_once("../inc/util.inc");
|
|
|
|
|
2011-02-09 22:11:34 +00:00
|
|
|
check_get_args(array());
|
|
|
|
|
2006-07-28 16:09:10 +00:00
|
|
|
db_init();
|
2006-07-28 19:02:48 +00:00
|
|
|
$user = get_logged_in_user();
|
2006-07-28 16:09:10 +00:00
|
|
|
|
2006-07-28 21:49:35 +00:00
|
|
|
if (!@file_get_contents('../ops/ffmail/subject')) {
|
2011-08-25 22:12:48 +00:00
|
|
|
error_page(tra("This project hasn\'t created an email message - please notify its administrators"));
|
2006-07-28 21:49:35 +00:00
|
|
|
}
|
|
|
|
|
2011-08-25 22:12:48 +00:00
|
|
|
page_head(tra("Tell your friends about %1", PROJECT));
|
2006-07-28 16:09:10 +00:00
|
|
|
|
|
|
|
echo "
|
|
|
|
<table width=600><tr><td>
|
2011-08-25 22:12:48 +00:00
|
|
|
".tra("Help us by telling your friends, family and coworkers about %1", PROJECT)."
|
2006-07-28 16:09:10 +00:00
|
|
|
<p>
|
2011-08-25 22:12:48 +00:00
|
|
|
".tra("Fill in this form with the names and email addresses of people you think might be interested in %1. We'll send them an email in your name, and you can add your own message if you like.", PROJECT)."
|
2006-07-28 16:09:10 +00:00
|
|
|
<form method=get action=ffmail_action.php>
|
|
|
|
<table cellpadding=4>
|
2011-08-25 22:12:48 +00:00
|
|
|
<tr><td class=heading>".tra("Your name:")."</td><td class=heading>".tra("Your email address:")."</td></tr>
|
2006-07-28 19:02:48 +00:00
|
|
|
<tr><td><b>$user->name</b></td><td><b>$user->email_addr</b></td></tr>
|
|
|
|
|
|
|
|
<input type=hidden name=uname value=\"$user->name\">
|
|
|
|
<input type=hidden name=uemail value=\"$user->email_addr\">
|
|
|
|
|
2011-08-25 22:12:48 +00:00
|
|
|
<tr><td class=heading>".tra("Friend's name:")."</td><td class=heading>".tra("Friend's email address:")."</td></tr>
|
2006-07-28 16:09:10 +00:00
|
|
|
";
|
|
|
|
for ($i=0; $i<5; $i++) {
|
|
|
|
echo "
|
|
|
|
<tr><td><input size=30 name=n$i></td><td><input size=30 name=e$i></tr>
|
|
|
|
";
|
|
|
|
}
|
|
|
|
echo "
|
2011-08-25 22:12:48 +00:00
|
|
|
<tr><td class=heading colspan=2>".tra("Additional message (optional)")."</td></tr>
|
2006-07-28 16:09:10 +00:00
|
|
|
<tr><td colspan=2><textarea name=comment rows=8 cols=50></textarea></td></tr>
|
2011-08-25 22:12:48 +00:00
|
|
|
<tr><td align=center><input type=submit name=action value=".tra("Preview")."></td>
|
|
|
|
<td align=center><input type=submit name=action value=".tra("Send")."></td>
|
2006-07-28 16:09:10 +00:00
|
|
|
</tr>
|
|
|
|
</table>
|
|
|
|
</form>
|
|
|
|
</td></tr></table>
|
|
|
|
";
|
|
|
|
page_tail();
|
|
|
|
?>
|