+// Is the check point there?
+if (is_readable(CHECK_POINT)) {
+ // Then load it
+ $checkPoint = file_get_contents(CHECK_POINT);
+
+ // Explode it
+ $data = explode(':', $checkPoint);
+
+ // Assert on count
+ assert(count($data) == 3);
+
+ // 1st element is nonce, 2nd hash, 3rd found hashes
+ $nonce = base64_decode($data[0]);
+ $modulaHash = $data[1];
+ $foundHashes = unserialize(base64_decode($data[2]));
+} else {
+ // Create nonce (small)
+ $nonce = 1 / mt_rand();
+}
+
+// Output again
+print ('modulaHash=' . $modulaHash . PHP_EOL);
+print ('nonce=' . $nonce . PHP_EOL);
+print ('found=' . count($foundHashes) . PHP_EOL);