source: extensions/BatchDownloader/remove_image.php @ 16609

Revision 16609, 425 bytes checked in by mistic100, 8 years ago (diff)

-add complete breadcrumb
-AJAX for remove photos (more faster)
-use try/catch for error handling

Line 
1<?php
2define('PHPWG_ROOT_PATH', '../../');
3include(PHPWG_ROOT_PATH.'include/common.inc.php');
4
5check_status(ACCESS_CLASSIC);
6
7if (isset($_POST['set_id']) and isset($_POST['toggle_id']))
8{
9  try
10  {
11    $BatchDownloader = new BatchDownloader($_POST['set_id']);
12    $BatchDownloader->removeImages(array($_POST['toggle_id']));
13    echo "false";
14  }
15  catch (Exception $e)
16  {
17    echo 'error';
18  }
19}
20else
21{
22  echo 'error';
23}
24
25?>
Note: See TracBrowser for help on using the repository browser.