Location: PHPKode > scripts > WebsiteMemberManager > members-section/admin/php/manual_add.php
<?php
if (!isset($email)) include("manual_add.html");
else
{
 // check account type - auto or manual activation?
 $dbc = dbc::instance();
 $result = $dbc->prepare("select * from wmm_admin");
 $rows = $dbc->executeGetRows($result);
 $auto_activate = 0;
 $contact_email = $rows[0]['contact_email'];
 $result = $dbc->prepare("select id from wmm_members where their_username='$email' OR email='$email'");
 $rows = $dbc->executeGetRows($result);
 if (count($rows)>0)
 {
  include("activate.php");
  $feedback = new feedbackBox();
  $feedback->setShow("Email address: $email already in database, activate or delete the account.","Add error");
  exit;
 }
 include_once("member-class.php");
 $member= new WMMmembers();
 $member->create($auto_activate,$_POST);
 
 $join_date = time();
 update_expire_date($join_date,$day,$month,$year);
 $feedback->setShow("New member added, you now need to activate the new account.", "Member add");
 include("activate.php");
}
?>
Return current item: WebsiteMemberManager