action.php 404 B

12345678910111213141516171819202122
  1. {"label":"Action","syntax":"php"}
  2. <?php
  3. $_ = array_merge($_POST,$_GET);
  4. if(isset($_['custom_action'])){
  5. $response = array();
  6. switch($_['custom_action']):
  7. case '{{plugin}}_{{entity}}_save':
  8. break;
  9. case '{{plugin}}_{{entity}}_search':
  10. break;
  11. endswitch;
  12. if(isset($response) && is_array($response)){
  13. header('Content-type: application/json');
  14. echo json_encode($response);
  15. }
  16. exit();
  17. }
  18. ?>