diff --git a/html/inc/team.inc b/html/inc/team.inc index 60f1507a86..9ffa2df56d 100644 --- a/html/inc/team.inc +++ b/html/inc/team.inc @@ -88,6 +88,10 @@ function display_team_page($team, $user) { if (strlen($team->description)) { row2(tra('Description'), sanitize_html($team->description)); } + row2("Created", date_str($team->create_time)); + if (defined("SHOW_NONVALIDATED_TEAMS")) { + row2("Founder email validated", $user->email_validated?"Yes":"No (team will not be exported)"); + } if (strlen($team->url)) {; if (strstr($team->url, "http://")) { $x = $team->url; diff --git a/html/ops/team_export.php b/html/ops/team_export.php index 2510b8df07..8b79af26a4 100755 --- a/html/ops/team_export.php +++ b/html/ops/team_export.php @@ -45,10 +45,21 @@ function escape2($strin) { } function escape($strin) { - return htmlspecialchars($strin); + $dom = new DOMDocument('1.0'); + $element = $dom->createElement('Element'); + $element->appendChild( + $dom->createTextNode($strin) + ); + + $dom->appendChild($element); + $x = $dom->saveXml(); + $x = substr($x, 31); + $x = substr($x, 0, -11); + return $x; } function handle_team($team, $f) { + echo "Team: $team->name\n"; $user = BoincUser::lookup_id($team->userid); if (!$user) { echo "no user for team $team->id\n"; diff --git a/html/user/team_search.php b/html/user/team_search.php index 91aa5b0d2a..e46bae61b9 100644 --- a/html/user/team_search.php +++ b/html/user/team_search.php @@ -66,6 +66,11 @@ function show_list($list) { echo "