Пример #1
0
                            </div>
                            <br /><br />
                            
                        </form>
                        </div>
                                    
                    </div>';
} else {
    //check if the key is set
    if ($key) {
        //load the Tokens module
        $CORE->load_CoreModule('tokens');
        //construct
        $token = new Tokens();
        //Set the application string so the token is only valid for this app
        $token->setApplication('PRECOVER');
        //set and validate the token
        $TokenValidation = $token->set_decodedToken($key);
        //make sure the token checks out
        if ($TokenValidation === true) {
            //the token is valid, save the token for the execute
            $_SESSION['P_Recovery_Token'] = $key;
            echo '
							<div class="page-desc-holder">
								This is the final step of the password recovery process,
								all you have to do is to enter your new password.
							</div>
								
							<div class="container_3 account-wide" align="center">
								
								<p style="padding: 20px;">