Author: poeml Date: Wed Sep 1 13:28:51 2010 New Revision: 8088 URL: http://svn.mirrorbrain.org/viewvc/mirrorbrain?rev=8088&view=rev Log: mod_mirrorbrain: - change wording for empty mirror lists, and give direct download URL Modified: trunk/mod_mirrorbrain/mod_mirrorbrain.c Modified: trunk/mod_mirrorbrain/mod_mirrorbrain.c URL: http://svn.mirrorbrain.org/viewvc/mirrorbrain/trunk/mod_mirrorbrain/mod_mirrorbrain.c?rev=8088&r1=8087&r2=8088&view=diff ============================================================================== --- trunk/mod_mirrorbrain/mod_mirrorbrain.c (original) +++ trunk/mod_mirrorbrain/mod_mirrorbrain.c Wed Sep 1 13:28:51 2010 _at_@ -2535,14 +2535,15 @@ ap_rputs(" </blockquote>", r); - ap_rprintf(r, " <p>List of best mirrors for IP address %s, located in country %s, %s (AS%s).</p>\n", + ap_rprintf(r, " <p>List of best mirrors for IP address %s, located in country %s, %s (AS%s):</p>\n", clientip, country_code, prefix, as); if ((mirror_cnt <= 0) || (!mirrors_same_prefix->nelts && !mirrors_same_as->nelts && !mirrors_same_country->nelts && !mirrors_same_region->nelts && !mirrors_elsewhere->nelts)) { - ap_rprintf(r, "<p>I am very sorry, but no mirror was found. <br/>\n"); - ap_rprintf(r, "Feel free to download from one of the above URLs.</p>\n"); + ap_rprintf(r, " <p>I am very sorry, but no mirror was found. Feel free to download directly:<br/>\n"); + ap_rprintf(r, " <a href=\"http://%s%s\">http://%s%s</a> </p>\n", + r->hostname, r->uri, r->hostname, r->uri); ap_rputs("</body></html>\n", r); return OK; } _______________________________________________ mirrorbrain-commits mailing list Archive: http://mirrorbrain.org/archive/mirrorbrain-commits/ Note: To remove yourself from this list, send a mail with the content unsubscribe to the address mirrorbrain-commits-request_at_mirrorbrain.orgReceived on Wed Sep 01 2010 - 11:28:53 GMT
This archive was generated by hypermail 2.3.0 : Mon Feb 20 2012 - 23:47:04 GMT