<?php
if (isset($the_action)) if ($the_action=="activate")
{
$WMMAdmin= new WMMAdmin();
$their_password=$WMMAdmin->activateMember($id);
include_once("member-class.php");
$member= new WMMmembers();
$row = $member->get($id);
$email = $row['email'];
$their_username = $row['their_username'];
$result = $dbc->prepare("select * from wmm_admin");
$rows = $dbc->executeGetRows($result);
$admin_email = $rows[0]['contact_email'];
include("email_activated_login_details.php");
$feedback->setShow("New member activated and email sent to: $email", "ACTIVATE Member");
unset($the_action);//so we do not go through here again
unset($the_page);//so we do not go through here again
}
$show_not_activated=1;
include("view.php");
?>