Location: PHPKode > scripts > WebsiteMemberManager > members-section/admin/php/toggle-auto-activate.php
<?php
$dbc = dbc::instance();
if (isset($save))
{
 $update_query = "UPDATE wmm_admin SET auto_activate='$autoactivate'";
 $result = $dbc->prepare($update_query);
 $result = $dbc->execute($result);
 if ($autoactivate) $activate="<b>Auto Activate</b>";
 else $activate="<b>Manual Activation</b>";
 $feedback->setShow("Activation method changed to:<br><br>\"".$activate."\"");
}
$result = $dbc->prepare("SELECT * FROM wmm_admin");
$rows = $dbc->executeGetRows($result);
$row=$rows[0];
include("toggle-auto-activate.html");
?>
<script LANGUAGE="JavaScript"><!--
document.AF.autoactivate.value=<?php echo $row['auto_activate']; ?>;
// --></script>
Return current item: WebsiteMemberManager