- <?php
- /**
- * COPYRIGHT © 2024 JOHN PEARCEY
- * All rights reserved
- */
-
- //error_log("POST: " . print_r($_POST, true) );
-
- include_once __DIR__ . "/inc/secure.php";
- include_once __DIR__ . "/inc/common.php";
-
- if( !isset($_POST['action']) ){
- error_log("Post Error: Missing value for 'action'");
- exit;
- }
-
- //error_log("post_handler.php: " . $_POST['action'] );
-
- include_once __DIR__ . "/inc/pagemap.php";
- if( invokeCommand( $_POST['action'], $_POST ) ) exit;
-
- error_log( "Error: Illegal value for action: ". $_POST['action'] );
- sendHtmlError( "Illegal call to " . __FILE__ );
-
- ?>