source: extensions/BatchDownloader/remove_image.php @ 21462

Last change on this file since 21462 was 16609, checked in by mistic100, 12 years ago

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

File size: 425 bytes
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.