<?php
if ($wo['loggedin'] == true) {
  header("Location: " . $wo['config']['site_url']);
  exit();
}
if (empty($_GET['code'])) {
	header("Location: " . $wo['config']['site_url']);
    exit();
}
$file = 'reset-password';
$validate = Wo_isValidPasswordResetToken($_GET['code']);
if ($validate === false) {
	$validate = Wo_isValidPasswordResetToken2($_GET['code']);
	if ($validate === false) {
		$file = 'invalid-markup';
	}
}
$wo['description'] = $wo['config']['siteDesc'];
$wo['keywords']    = $wo['config']['siteKeywords'];
$wo['page']        = 'welcome';
$wo['title']       = $wo['config']['siteTitle'];
$wo['content']     = Wo_LoadPage('welcome/' . $file);

