diff --git a/checkin_notes b/checkin_notes index 69acf6d941..4d72775ed3 100644 --- a/checkin_notes +++ b/checkin_notes @@ -11611,3 +11611,15 @@ David 23 Nov 2007 forum_reply.php pm.php sample_index.php + +David 23 Nov 2007 + - team import: fix string-escaping bugs + - user web: don't show links to sched logs if they don't exist + - user web: add new team types + + html/ + inc/ + host.inc + team_types.inc + ops/ + team_import.php diff --git a/html/inc/host.inc b/html/inc/host.inc index c05af3b37f..7a7d38e0b9 100644 --- a/html/inc/host.inc +++ b/html/inc/host.inc @@ -18,7 +18,11 @@ function sched_log_name($x) { } function sched_log_link($x) { - return "" . time_str($x) . ""; + if (file_exists("../sched_logs")) { + return "" . time_str($x) . ""; + } else { + return time_str($x); + } } function location_form($host) { diff --git a/html/inc/team_types.inc b/html/inc/team_types.inc index 5113734696..3a93bd0960 100644 --- a/html/inc/team_types.inc +++ b/html/inc/team_types.inc @@ -8,12 +8,17 @@ $team_types = array( "Secondary school", "Junior college", "University or department", - "Government agency" + "Government agency", + "Non-profit organization", + "National", + "Local/regional", + "Computer type", + "Social/political/religious" ); function team_type_name($num) { global $team_types; - if ($num>0 && $num<8) { + if ($num>0 && $numuser_email\n"; - $user = make_user($t->user_email, $t->user_name, random_string()); + $user = make_user(mysql_real_escape_string($t->user_email), mysql_real_escape_string($t->user_name), random_string()); if (!$user) { echo " Can't make user $t->user_email\n"; echo mysql_error(); @@ -176,8 +176,8 @@ function handle_team($f) { } echo "Processing $t->name $t->user_email\n"; - $user = lookup_user_email_addr($t->user_email); - $team = lookup_team_name($t->name); + $user = lookup_user_email_addr(mysql_real_escape_string($t->user_email)); + $team = lookup_team_name(mysql_real_escape_string($t->name)); if ($team) { if (!$user) { echo " team exists but user $t->user_email doesn't\n";