"; } return; } else { $operationInProgress = true; $status = new ReturnStatus(); // See if a snapshot is already in progress (PCR 28885) if( file_exists( "/tmp/snapshot_in_progress" ) ) { error_back(0x51004); // Snapshot in progress.... return; } // pcr18062: InAscii checkbox has been removed. Force Ascii snapshot. $bInBin = false; if ($operation == "email") { $emailAddress = $_POST['emailAddress']; capture_state($user, $fileName, $bInBin, $emailAddress); if (file_exists($fileName)) unlink($fileName); } else if ($operation == "browser") { error_log("capture_state($user, $fileName, ".($bInBin?'true':'false').");"); capture_state($user, $fileName, $bInBin); if (file_exists($fileName) && !filesize($fileName)) { $status->setErrorCode( 0x51002 ); if (file_exists($fileName)) unlink($fileName); } } print $status->out(); return; } } // Generate a temporary filename on the initial get $fileName = get_snapshot_filename($user); //"/tmp/snapshot-" . date("m_d_y-His"); error_log("-- Using ". $fileName ." for the snapshot file."); // Test for email configuration $emailConfig = get_email_configuration($user); ?> Tools - Capture System Snapshot