Fossil

Check-in [869e27e7]
Login

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

Overview
Comment:Fix the "Delete Ad-Unit" button so that it really does delete the ad-unit.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1:869e27e739921adafd7aa104c2df8cec2fc2833b
User & Date: drh 2012-08-09 19:16:13
Context
2012-08-10
12:59
Allow the style= attribute in wiki markup. check-in: 717cd278 user: drh tags: trunk
2012-08-09
19:16
Fix the "Delete Ad-Unit" button so that it really does delete the ad-unit. check-in: 869e27e7 user: drh tags: trunk
2012-08-08
13:22
When using /zip or /tarball without a UUID, use "trunk" instead of "tip" as the default. Ticket [300fc543b24250e256] check-in: eb0933ca user: drh tags: trunk
Changes
Hide Diffs Unified Diffs Ignore Whitespace Patch

Changes to src/setup.c.

1411
1412
1413
1414
1415
1416
1417

1418
1419
1420
1421
1422
1423
1424
  login_check_credentials();
  if( !g.perm.Setup ){
    login_needed();
  }
  db_begin_transaction();
  if( P("clear")!=0 ){
    db_multi_exec("DELETE FROM config WHERE name GLOB 'adunit*'");

  }else{
    textarea_attribute(0, 0, 0, "adunit", "adunit", "");
  }
  style_header("Edit Ad Unit");
  @ <form action="%s(g.zTop)/setup_adunit" method="post"><div>
  login_insert_csrf_secret();
  @ <p>Edit HTML text for an ad unit that will be inserted after the







>







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