#!/usr/bin/php 1 ){ /* (1) Decrement the depth */ $depth--; /* (2) Try to override the secret file */ @file_put_contents(SECRET_FILE, "$key:$depth") && die(0) || die(127); /* [4] If cannot decrement, generate new password =========================================================*/ }else{ // Generate new secret $secret = generate_secret().':1000'; // Try to override the secret file file_put_contents(SECRET_FILE, $secret) && die(0) || die(127); } ?>