<?php include_once "common/base.php"; if (isset($_GET['v']) && isset($_GET['e'])) { include_once "inc/class.users.inc.php"; $users = new FocusUsers($db); $ret = $users->verifyAccount(); } elseif (isset($_POST['v'])) { include_once "inc/class.users.inc.php"; $users = new ColoredListsUsers($db); $status = $users->updatePassword() ? "changed" : "failed"; header("Location: /account.php?password={$status}"); exit; } else { header("Location: /login.php"); exit; } $pageTitle = "Reset Your Password"; include_once "common/header.php"; if (isset($ret[0])) { echo isset($ret[1]) ? $ret[1] : NULL; if ($ret[0] < 3) { ?> <div class="inner cover"> <br/><br/> <form class="form-horizontal" role="form" method="post" action="accountverify.php"> <div class="form-group"> <label for="p" class="control-label col-xs-2">Choose a New Password:</label> <div class="col-xs-10">