Check-in [869e27e739]
Not logged in

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
SHA1 Hash:869e27e739921adafd7aa104c2df8cec2fc2833b
Date: 2012-08-09 19:16:13
User: drh
Comment:Fix the "Delete Ad-Unit" button so that it really does delete the ad-unit.
Tags And Properties
Changes

Changes to src/setup.c

1411 login_check_credentials(); 1411 login_check_credentials(); 1412 if( !g.perm.Setup ){ 1412 if( !g.perm.Setup ){ 1413 login_needed(); 1413 login_needed(); 1414 } 1414 } 1415 db_begin_transaction(); 1415 db_begin_transaction(); 1416 if( P("clear")!=0 ){ 1416 if( P("clear")!=0 ){ 1417 db_multi_exec("DELETE FROM config WHERE name GLOB 'adunit*'"); 1417 db_multi_exec("DELETE FROM config WHERE name GLOB 'adunit*'"); > 1418 cgi_replace_parameter("adunit",""); 1418 }else{ 1419 }else{ 1419 textarea_attribute(0, 0, 0, "adunit", "adunit", ""); 1420 textarea_attribute(0, 0, 0, "adunit", "adunit", ""); 1420 } 1421 } 1421 style_header("Edit Ad Unit"); 1422 style_header("Edit Ad Unit"); 1422 @ <form action="%s(g.zTop)/setup_adunit" method="post"><div> 1423 @ <form action="%s(g.zTop)/setup_adunit" method="post"><div> 1423 login_insert_csrf_secret(); 1424 login_insert_csrf_secret(); 1424 @ <p>Edit HTML text for an ad unit that will be inserted after the 1425 @ <p>Edit HTML text for an ad unit that will be inserted after the