Resetting the timer in checkQKMPorg to: ". $currentClick ); // Reset the CMI inactivity timer also. if( !@reset_inactive_timer($_SESSION['user']) ) { session_destroy(); } } $_SESSION['lastclick'] = $currentClick; } $akmStatus = @akm_key_import_progress($user, 0); error_log("CheckProgress - akm_key_import_progress returned: ". print_r($akmStatus,true) ); /*############################################################################ # Note: The progress returned from thsi call is wrong the for a few seconds # after starting, so DON'T use the progress until the status is finished. # If we show the progress completed in the future this wil need to be fixed # in the CMI code, or the progress indicater will show erronius results at # first. ############################################################################*/ if( $akmStatus->status == $akmResult->StatusFinished ) { error_log("Exiting the progress window in checkQKMProg.htm. InProgress = ". $statusObj->InProgress ." and Status = ". $statusObj->Status ); $status = new ReturnStatus(); error_log("\n\n\n>>>>>>>>>>>>>>>>>>>>>>>>> We have finished the progress check <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<\n\n\n"); error_log("akm_key_import_progress returned: ". print_r($akmStatus,true) ); if( $akmStatus->result != $akmResult->SUCCEEDED ) { error_log("Setting errorcode ->". $akmStatus->result ); $status->setErrorCode( $akmStatus->result ); } $tmp = 0; if(isset($_SESSION['ContinueOnError']) && $_SESSION['ContinueOnError'] == 1 ) $tmp = 1; error_log("Doing the print status->out()"); print $status->out(); } ?>