feature 2904: add a link "empty caddie" in the Batch Manager.
git-svn-id: http://piwigo.org/svn/trunk@29076 68402e56-0260-453c-a942-63ccdbb3a9ee
This commit is contained in:
parent
b97fcf2a22
commit
cacdce6474
5 changed files with 30 additions and 1 deletions
|
|
@ -43,6 +43,27 @@ check_status(ACCESS_ADMINISTRATOR);
|
|||
|
||||
check_input_parameter('selection', $_POST, true, PATTERN_ID);
|
||||
|
||||
// +-----------------------------------------------------------------------+
|
||||
// | specific actions |
|
||||
// +-----------------------------------------------------------------------+
|
||||
|
||||
if (isset($_GET['action']))
|
||||
{
|
||||
if ('empty_caddie' == $_GET['action'])
|
||||
{
|
||||
$query = '
|
||||
DELETE FROM '.CADDIE_TABLE.'
|
||||
WHERE user_id = '.$user['id'].'
|
||||
;';
|
||||
pwg_query($query);
|
||||
|
||||
$_SESSION['page_infos'] = array(
|
||||
l10n('Information data registered in database')
|
||||
);
|
||||
|
||||
redirect(get_root_url().'admin.php?page='.$_GET['page']);
|
||||
}
|
||||
}
|
||||
|
||||
// +-----------------------------------------------------------------------+
|
||||
// | initialize current set |
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue