- <?php
- /**
- * COPYRIGHT © 2024 JOHN PEARCEY
- * All rights reserved
- */
-
- //error_log("POST: " . print_r($_POST, true) );
-
- include_once __DIR__ . "/inc/paths.php";
-
- function debug_print( $msg ){
- error_log( $msg );
- }
-
- include __DIR__."/lib/sysVcom.php";
- rpc_setGlobals( 'procName', 'svc/BU-commander' );
- rpc_setGlobals( 'max_chan', 8182 );
-
- include_once __DIR__ . "/inc/secure.php";
- include_once __DIR__ . "/shd/common.php";
-
- if( !isset($_POST['action']) ){
- error_log("Post Error: Missing value for 'action'");
- exit;
- }
-
- 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__ );
-
- ?>