Ticket #813: BOINC_project_page_validation_fixes.patch
File BOINC_project_page_validation_fixes.patch, 13.2 KB (added by , 16 years ago) |
---|
-
inc/prefs.inc
640 640 $pre_add = "<a href=add_venue.php?venue="; 641 641 $pre_edit = "<a href=prefs_edit.php?venue="; 642 642 $pre_remove = "<a href=prefs_remove.php?venue="; 643 $post_add = "& subset=$subset&cols=1$tokens>Add</a>";644 $post_edit = "& subset=$subset&cols=1$tokens>Edit</a>";645 $post_remove = "& subset=$subset&cols=1$tokens>Remove</a>";646 $gen = "<a href=prefs_edit.php?subset=$subset& cols=1$tokens>Edit</a>";643 $post_add = "&subset=$subset&cols=1$tokens>Add</a>"; 644 $post_edit = "&subset=$subset&cols=1$tokens>Edit</a>"; 645 $post_remove = "&subset=$subset&cols=1$tokens>Remove</a>"; 646 $gen = "<a href=prefs_edit.php?subset=$subset&cols=1$tokens>Edit</a>"; 647 647 648 648 $hom = isset($prefs->home) ? $pre_edit."home".$post_edit : $pre_add."home".$post_add; 649 649 $schl = isset($prefs->school) ? $pre_edit."school".$post_edit : $pre_add."school".$post_add; … … 842 842 if ($project_has_beta) prefs_show_beta($x); 843 843 prefs_show_project($x); 844 844 } 845 row2("<br>", "<a href=prefs_edit.php?venue=$venue& subset=$subset$tokens>Edit preferences</a> | <a href=prefs_remove.php?venue=$venue&subset=$subset$tokens>Remove</a>");845 row2("<br>", "<a href=prefs_edit.php?venue=$venue&subset=$subset$tokens>Edit preferences</a> | <a href=prefs_remove.php?venue=$venue&subset=$subset$tokens>Remove</a>"); 846 846 end_table(); 847 847 echo "</td></tr>\n"; 848 848 } else { 849 849 //$x = subset_name($subset); 850 row1("<a href=add_venue.php?venue=$venue& subset=$subset$tokens>Add separate preferences for $venue</a>", 2, "heading");850 row1("<a href=add_venue.php?venue=$venue&subset=$subset$tokens>Add separate preferences for $venue</a>", 2, "heading"); 851 851 } 852 852 } 853 853 -
inc/result.inc
286 286 echo "<br><center>"; 287 287 if ($offset >= $results_per_page) { 288 288 $offset_p = $offset-$results_per_page; 289 echo "<a href=results.php?$clause& offset=$offset_p>Previous $results_per_page</a>";289 echo "<a href=results.php?$clause&offset=$offset_p>Previous $results_per_page</a>"; 290 290 } 291 291 if (($offset >= $results_per_page) && ($number_of_results > $results_per_page)) { 292 292 echo " | "; 293 293 } 294 294 if ($number_of_results > $results_per_page) { 295 295 $offset_n = $offset+$results_per_page; 296 echo "<a href=results.php?$clause& offset=$offset_n>Next $results_per_page</a></center><br>";296 echo "<a href=results.php?$clause&offset=$offset_n>Next $results_per_page</a></center><br>"; 297 297 } else { 298 298 echo "</center><br><br>"; 299 299 } -
inc/stats_sites.inc
20 20 // 21 21 $cpid_stats_sites = array( 22 22 array("Free-DC", 23 "http://stats.free-dc.org/stats.php?page=userbycpid& cpid=%s"23 "http://stats.free-dc.org/stats.php?page=userbycpid&cpid=%s" 24 24 ), 25 25 array("BOINC all Project Stats", 26 26 "http://www.allprojectstats.com/showuser.php?id=%s" -
inc/team.inc
73 73 page_head("$team->name"); 74 74 75 75 echo sanitize_html($team->name_html); 76 echo "<p>";77 76 start_table(); 78 77 row1(tra('Team info')); 79 78 if (strlen($team->description)) { -
ops/update_profile_pages.php
184 184 Only user profiles with pictures are listed here."; 185 185 186 186 187 echo "<table class=bordered border=1 cellpadding=5 \n";187 echo "<table class=bordered border=1 cellpadding=5>\n"; 188 188 189 189 for ($row = 0; $row < $height; $row++) { 190 190 echo "<tr>"; -
project.sample/project.inc
35 35 echo " 36 36 <p> 37 37 <span class=\"page_title\">$title</span> 38 <p>39 38 "; 40 39 } 41 40 -
user/create_account_form.php
43 43 } 44 44 45 45 echo " 46 <p>47 46 <form action=\"create_account_action.php\" method=\"post\"> 48 47 <input type=hidden name=next_url value=\"$next_url\"> 49 48 "; -
user/edit_forum_preferences_form.php
40 40 </script> 41 41 "; 42 42 43 echo "<form method=\"post\" action=\"edit_forum_preferences_action.php\" enctype=\"multipart/form-data\">"; 43 44 start_table(); 44 echo "<form method=\"post\" action=\"edit_forum_preferences_action.php\" enctype=\"multipart/form-data\">";45 45 46 46 // ------------ Notification ----------- 47 47 … … 198 198 199 199 row1("Update"); 200 200 row2("Click here to update message board preferences", "<input type=submit value=\"Update\">"); 201 echo "</form>\n";202 201 row1("Reset"); 203 202 row2("Or click here to reset preferences to the defaults", 204 203 "<form method=\"post\" action=\"edit_forum_preferences_action.php\"><input type=\"submit\" value=\"Reset\"><input type=\"hidden\" name=\"action\" value=\"reset_confirm\"></form>" 205 204 ); 206 205 end_table(); 206 echo "</form>\n"; 207 207 page_tail(); 208 208 209 209 $cvs_version_tracker[]="\$Id$"; //Generated automatically - do not edit -
user/edit_passwd_form.php
29 29 <form method=post action=edit_passwd_action.php> 30 30 "; 31 31 32 start_table();33 34 32 if ($user) { 35 33 echo " 36 34 <input type=hidden name=auth value=$user->authenticator> 37 35 "; 36 start_table(); 38 37 } else { 38 start_table(); 39 39 row1("You can identify yourself using either 40 40 <ul> 41 41 <li> your email address and old password -
user/hosts_user.php
122 122 // At this point, we know that $userid, $show_all and $sort all have 123 123 // valid values. 124 124 // 125 $cache_args="userid=$userid& show_all=$show_all&sort=$sort&rev=$rev";125 $cache_args="userid=$userid&show_all=$show_all&sort=$sort&rev=$rev"; 126 126 start_cache(USER_PAGE_TTL, $cache_args); 127 127 if ($user->show_hosts) { 128 128 page_head("Computers belonging to $user->name"); -
user/pm.php
23 23 require_once("../inc/akismet.inc"); 24 24 25 25 function show_block_link($userid) { 26 echo " <a href=\"pm.php?action=block& id=$userid\">";26 echo " <a href=\"pm.php?action=block&id=$userid\">"; 27 27 show_image(REPORT_POST_IMAGE, "Block messages from this user", "Block user", REPORT_POST_IMAGE_HEIGHT); 28 28 echo "</a>"; 29 29 } … … 42 42 43 43 function make_script() { 44 44 echo " 45 <script >45 <script type=\"text/javascript\"> 46 46 function set_all(val) { 47 47 f = document.msg_list; 48 48 n = f.elements.length; … … 99 99 echo "<td valign=top>".output_transform($msg->content, $options)."<p>"; 100 100 $tokens = url_tokens($logged_in_user->authenticator); 101 101 echo "<ul class=\"actionlist\">"; 102 show_actionlist_button("pm.php?action=delete& id=$msg->id&$tokens", tra("Delete"), "Delete this message");103 show_actionlist_button("pm.php?action=new& replyto=$msg->id", tra("Reply"), "Reply to this message");102 show_actionlist_button("pm.php?action=delete&id=$msg->id&$tokens", tra("Delete"), "Delete this message"); 103 show_actionlist_button("pm.php?action=new&replyto=$msg->id", tra("Reply"), "Reply to this message"); 104 104 echo "</ul></td></tr>\n"; 105 105 } 106 106 echo " -
user/prefs_remove.php
50 50 Are you sure you want to delete your separate ", subset_name($subset), 51 51 " preferences for $venue? 52 52 <br><br> 53 <a href=prefs_remove.php?subset=$subset& venue=$venue&confirmed=yes$c$tokens>Yes</a>53 <a href=prefs_remove.php?subset=$subset&venue=$venue&confirmed=yes$c$tokens>Yes</a> 54 54 | <a href=prefs.php?subset=$subset$c>Cancel</a> 55 55 "; 56 56 page_tail(); -
user/profile_menu.php
58 58 <ul> 59 59 <li>".tra("View the %1User Picture Gallery%2.", "<a href=\"" . URL_BASE . "user_profile/user_gallery_1.html\">", "</a>")."</li> 60 60 <li>".tra("Browse profiles %1by country%2.", "<a href=\"" . URL_BASE . "user_profile/profile_country.html\">", "</a>")."</li> 61 <li>".tra("Browse profiles %1at random%2, %3at random with pictures%2, or %4at random without pictures%2.", "<a href=\"?cmd=rand& pic=-1\">", "</a>",62 "<a href=\"?cmd=rand& pic=1\">", "<a href=\"?cmd=rand&pic=0\">")."</li>61 <li>".tra("Browse profiles %1at random%2, %3at random with pictures%2, or %4at random without pictures%2.", "<a href=\"?cmd=rand&pic=-1\">", "</a>", 62 "<a href=\"?cmd=rand&pic=1\">", "<a href=\"?cmd=rand&pic=0\">")."</li> 63 63 "; 64 64 if (file_exists(PROFILE_PATH . "profile_alpha.html")) { 65 65 echo "<li>".tra("Alphabetical profile listings:")."<br>"; -
user/top_hosts.php
88 88 echo "</table>\n<p>"; 89 89 if ($offset > 0) { 90 90 $new_offset = $offset - $hosts_per_page; 91 echo "<a href=top_hosts.php?sort_by=$sort_by& offset=$new_offset>Previous ".$hosts_per_page."</a> | ";91 echo "<a href=top_hosts.php?sort_by=$sort_by&offset=$new_offset>Previous ".$hosts_per_page."</a> | "; 92 92 93 93 } 94 94 if ($n==$hosts_per_page){ //If we aren't on the last page 95 95 $new_offset = $offset + $hosts_per_page; 96 echo "<a href=top_hosts.php?sort_by=$sort_by& offset=$new_offset>Next ".$hosts_per_page."</a>";96 echo "<a href=top_hosts.php?sort_by=$sort_by&offset=$new_offset>Next ".$hosts_per_page."</a>"; 97 97 } 98 98 99 99 page_tail(); -
user/top_teams.php
117 117 echo "</table>\n<p>"; 118 118 if ($offset > 0) { 119 119 $new_offset = $offset - $teams_per_page; 120 echo "<a href=top_teams.php?sort_by=$sort_by& offset=$new_offset".$type_url.">Previous ".$teams_per_page."</a> | ";120 echo "<a href=top_teams.php?sort_by=$sort_by&offset=$new_offset".$type_url.">Previous ".$teams_per_page."</a> | "; 121 121 122 122 } 123 123 if ($n==$teams_per_page){ //If we aren't on the last page 124 124 $new_offset = $offset + $teams_per_page; 125 echo "<a href=top_teams.php?sort_by=$sort_by& offset=$new_offset".$type_url.">Next ".$teams_per_page."</a>";125 echo "<a href=top_teams.php?sort_by=$sort_by&offset=$new_offset".$type_url.">Next ".$teams_per_page."</a>"; 126 126 } 127 127 } 128 128 page_tail(); -
user/top_users.php
123 123 echo "</table>\n<p>"; 124 124 if ($offset > 0) { 125 125 $new_offset = $offset - $users_per_page; 126 echo "<a href=top_users.php?sort_by=$sort_by& offset=$new_offset>Previous ".$users_per_page."</a> | ";126 echo "<a href=top_users.php?sort_by=$sort_by&offset=$new_offset>Previous ".$users_per_page."</a> | "; 127 127 128 128 } 129 129 if ($n==$users_per_page){ //If we aren't on the last page 130 130 $new_offset = $offset + $users_per_page; 131 echo "<a href=top_users.php?sort_by=$sort_by& offset=$new_offset>Next ".$users_per_page."</a>";131 echo "<a href=top_users.php?sort_by=$sort_by&offset=$new_offset>Next ".$users_per_page."</a>"; 132 132 } 133 133 134 134 page_tail(); -
user/user_search.php
131 131 row2("", "<input type=submit name=action value=Search>"); 132 132 end_table(); 133 133 echo " 134 <script>document.f.search_string.focus()</script> 134 </form> 135 <script type=\"text/javascript\">document.f.search_string.focus()</script> 135 136 "; 136 137 137 138 page_tail();