<?php include_once "common/base.php"; $pageTitle = "Verify Your Account"; include_once "common/header.php"; if (isset($_GET['v']) && isset($_GET['e'])) { include_once "inc/class.users.inc.php"; $users = new ColoredListsUsers($db); $ret = $users->verifyAccount(); } elseif (isset($_POST['v'])) { include_once "inc/class.users.inc.php"; $users = new ColoredListsUsers($db); $ret = $users->updatePassword(); } else { header("Location: signup.php"); exit; } if (isset($ret[0])) { echo isset($ret[1]) ? $ret[1] : NULL; if ($ret[0] < 3) { ?> <h2>Choose a Password</h2> <form method="post" action="accountverify.php"> <div> <label for="p">Choose a Password:</label> <input type="password" name="p" id="p" /><br /> <label for="r">Re-Type Password:</label> <input type="password" name="r" id="r" /><br /> <input type="hidden" name="v" value="<?php
<?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">
<?php session_start(); require_once "../inc/constants.inc.php"; require_once "../inc/class.users.inc.php"; $userObj = new ColoredListsUsers(); if (!empty($_POST['action']) && isset($_SESSION['LoggedIn']) && $_SESSION['LoggedIn'] == 1) { switch ($_POST['action']) { case 'changeemail': $status = $userObj->updateEmail() ? "changed" : "failed"; header("Location: /Outreach/account.php?email={$status}"); break; case 'changepassword': $status = $userObj->updatePassword() ? "changed" : "nomatch"; header("Location: /Outreach/account.php?password={$status}"); break; case 'deleteaccount': $userObj->deleteAccount(); break; default: header("Location: /"); break; } } elseif ($_POST['action'] == "resetpassword") { if ($resp = $userObj->resetPassword() === TRUE) { header("Location: /Outreach/resetpending.php"); } else { echo $resp; } exit; } else {