|
@@ 539-545 (lines=7) @@
|
| 536 |
|
return new BaseObject(-1, 'msg_invalid_request'); |
| 537 |
|
} |
| 538 |
|
|
| 539 |
|
if(!in_array(Context::getRequestMethod(), array('XMLRPC','JSON'))) |
| 540 |
|
{ |
| 541 |
|
$returnUrl = Context::get('success_return_url'); |
| 542 |
|
if(!$returnUrl) $returnUrl = getNotEncodedUrl('', 'act', 'dispAdminConfigGeneral'); |
| 543 |
|
header('location:' . $returnUrl); |
| 544 |
|
return; |
| 545 |
|
} |
| 546 |
|
} |
| 547 |
|
|
| 548 |
|
function procAdminUpdateEmbedWhitelist() |
|
@@ 583-589 (lines=7) @@
|
| 580 |
|
$oEmbedFilter = EmbedFilter::getInstance(); |
| 581 |
|
$oEmbedFilter->_makeWhiteDomainList($whitelist); |
| 582 |
|
|
| 583 |
|
if(!in_array(Context::getRequestMethod(), array('XMLRPC','JSON'))) |
| 584 |
|
{ |
| 585 |
|
$returnUrl = Context::get('success_return_url'); |
| 586 |
|
if(!$returnUrl) $returnUrl = getNotEncodedUrl('', 'act', 'dispAdminConfigGeneral'); |
| 587 |
|
header('location:' . $returnUrl); |
| 588 |
|
return; |
| 589 |
|
} |
| 590 |
|
} |
| 591 |
|
|
| 592 |
|
} |