worknova.manus/requires/session_api.php
LAPTOP-V9RRD1TL\Michelle's Computer f8f8fcaf96 first commit
2025-07-21 21:38:17 +08:00

13 lines
438 B
PHP

<?php
$array = resetRequest( $_REQUEST ) ;
$explode = explode( 'api/', $_SERVER['PHP_SELF'] ) ;
$access = false ;
if ( $array['time'] > strtotime('-1 minutes') ){
if ( hash('sha256', $array['platform'].$array['lang'].$array['branch_id'].$array['staff_id'].$array['token'].$array['time'].APIKEY) == $array['sign'] ){
$access = true ;
}
}
if ( !$access ){ header("HTTP/1.0 404 Not Found") ; exit ; }
?>