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/paths.php";
  10. include_once __DIR__ . "/inc/secure.php";
  11. include_once __DIR__ . "/inc/common.php";
  12.  
  13. if( !isset($_POST['action']) ){
  14. error_log("Post Error: Missing value for 'action'");
  15. exit;
  16. }
  17.  
  18. include_once __DIR__ . "/inc/pagemap.php";
  19. if( invokeCommand( $_POST['action'], $_POST ) ) exit;
  20. error_log( "Error: Illegal value for action: ". $_POST['action'] );
  21. sendHtmlError( "Illegal call to " . __FILE__ );
  22. ?>