Ignore:
Timestamp:
Jul 25, 2014, 3:28:16 PM (10 years ago)
Author:
plg
Message:

feature 2904: add a link "empty caddie" in the Batch Manager.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/admin/batch_manager.php

    r29065 r29076  
    4444check_input_parameter('selection', $_POST, true, PATTERN_ID);
    4545
     46// +-----------------------------------------------------------------------+
     47// | specific actions                                                      |
     48// +-----------------------------------------------------------------------+
     49
     50if (isset($_GET['action']))
     51{
     52  if ('empty_caddie' == $_GET['action'])
     53  {
     54    $query = '
     55DELETE FROM '.CADDIE_TABLE.'
     56  WHERE user_id = '.$user['id'].'
     57;';
     58    pwg_query($query);
     59
     60    $_SESSION['page_infos'] = array(
     61      l10n('Information data registered in database')
     62      );
     63   
     64    redirect(get_root_url().'admin.php?page='.$_GET['page']);
     65  }
     66}
    4667
    4768// +-----------------------------------------------------------------------+
Note: See TracChangeset for help on using the changeset viewer.