Last change
on this file since 19249 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
|
Rev | Line | |
---|
[16609] | 1 | <?php |
---|
| 2 | define('PHPWG_ROOT_PATH', '../../'); |
---|
| 3 | include(PHPWG_ROOT_PATH.'include/common.inc.php'); |
---|
| 4 | |
---|
| 5 | check_status(ACCESS_CLASSIC); |
---|
| 6 | |
---|
| 7 | if (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 | } |
---|
| 20 | else |
---|
| 21 | { |
---|
| 22 | echo 'error'; |
---|
| 23 | } |
---|
| 24 | |
---|
| 25 | ?> |
---|
Note: See
TracBrowser
for help on using the repository browser.