Location: PHPKode > scripts > WebsiteMemberManager > members-section/admin/php/change-expire-date.php
<?php
$dbc = dbc::instance();
if (isset($save_expire_date))
{
 update_expire_date($id,$day,$month,$year);
 $_POST['the_page'] = "change-expire-date.php";
 $feedback->setShow("New expire date set","Member details changed",0);
 $the_action="modify";
 include_once("view.php");
}
else
{
 $result = $dbc->prepare("SELECT * from wmm_members where id='$id'");
 $rows = $dbc->executeGetRows($result);
 $row=$rows[0];
 include_once("change-expire-date.html");
}
$day = strftime("%d",$row['expire_date']);
$month = strftime("%m",$row['expire_date']);
$year = strftime("%Y",$row['expire_date']);
echo "<script language=\"JavaScript\"><!--\n
       document.f1.day.value=\"$day\";\n
       document.f1.month.value=\"$month\";\n
       document.f1.year.value=\"$year\";\n
       // --></script>\n";
?>
Return current item: WebsiteMemberManager