Newer
Older
backup-commander / html / post_handler.php
  1. <?php
  2. /**
  3. * COPYRIGHT © 2024 JOHN PEARCEY
  4. * All rights reserved
  5. */
  6.  
  7. //error_log("POST: " . print_r($_POST, true) );
  8.  
  9. include_once __DIR__ . "/inc/secure.php";
  10. include_once __DIR__ . "/inc/common.php";
  11.  
  12. if( !isset($_POST['action']) ){
  13. error_log("Post Error: Missing value for 'action'");
  14. exit;
  15. }
  16.  
  17. //error_log("post_handler.php: " . $_POST['action'] );
  18.  
  19. include_once __DIR__ . "/inc/pagemap.php";
  20. if( invokeCommand( $_POST['action'], $_POST ) ) exit;
  21. error_log( "Error: Illegal value for action: ". $_POST['action'] );
  22. sendHtmlError( "Illegal call to " . __FILE__ );
  23. ?>