|
@@ 402-412 (lines=11) @@
|
| 399 |
|
$publisher = PublisherPublisher::getInstance(); |
| 400 |
|
global $imagearray, $start, $limit, $aSortBy, $aOrderBy, $aLimitBy, $aSearchBy; |
| 401 |
|
|
| 402 |
|
if (Request::getString('deleteMimes', '', 'POST')) { |
| 403 |
|
$aMimes = Request::getArray('mimes', array(), 'POST'); |
| 404 |
|
|
| 405 |
|
$crit = new Criteria('mime_id', '(' . implode($aMimes, ',') . ')', 'IN'); |
| 406 |
|
|
| 407 |
|
if ($publisher->getHandler('mimetype')->deleteAll($crit)) { |
| 408 |
|
header('Location: ' . PUBLISHER_ADMIN_URL . "/mimetypes.php?limit=$limit&start=$start"); |
| 409 |
|
} else { |
| 410 |
|
redirect_header(PUBLISHER_ADMIN_URL . "/mimetypes.php?limit=$limit&start=$start", 3, _AM_PUBLISHER_MESSAGE_DELETE_MIME_ERROR); |
| 411 |
|
} |
| 412 |
|
} |
| 413 |
|
if (Request::getString('add_mime', '', 'POST')) { |
| 414 |
|
// header("Location: " . PUBLISHER_ADMIN_URL . "/mimetypes.php?op=add&start=$start&limit=$limit"); |
| 415 |
|
redirect_header(PUBLISHER_ADMIN_URL . "/mimetypes.php?op=add&start=$start&limit=$limit", 3, _AM_PUBLISHER_MIME_CREATEF); |
|
@@ 596-606 (lines=11) @@
|
| 593 |
|
$publisher = PublisherPublisher::getInstance(); |
| 594 |
|
global $limit, $start, $imagearray, $aSearchBy, $aOrderBy, $aLimitBy, $aSortBy; |
| 595 |
|
|
| 596 |
|
if (Request::getString('deleteMimes', '', 'POST')) { |
| 597 |
|
$aMimes = Request::getArray('mimes', array(), 'POST'); |
| 598 |
|
|
| 599 |
|
$crit = new Criteria('mime_id', '(' . implode($aMimes, ',') . ')', 'IN'); |
| 600 |
|
|
| 601 |
|
if ($publisher->getHandler('mimetype')->deleteAll($crit)) { |
| 602 |
|
header('Location: ' . PUBLISHER_ADMIN_URL . "/mimetypes.php?limit=$limit&start=$start"); |
| 603 |
|
} else { |
| 604 |
|
redirect_header(PUBLISHER_ADMIN_URL . "/mimetypes.php?limit=$limit&start=$start", 3, _AM_PUBLISHER_MESSAGE_DELETE_MIME_ERROR); |
| 605 |
|
} |
| 606 |
|
} |
| 607 |
|
if (Request::getString('add_mime', '', 'POST')) { |
| 608 |
|
// header("Location: " . PUBLISHER_ADMIN_URL . "/mimetypes.php?op=add&start=$start&limit=$limit"); |
| 609 |
|
redirect_header(PUBLISHER_ADMIN_URL . "/mimetypes.php?op=add&start=$start&limit=$limit", 3, _AM_PUBLISHER_MIME_CREATEF); |