I finally got this working correctly on my test servers - I like it. What if I did NOT want to actually delete the account from the server after 45 days (or whatever)?
It is fine to still send the "terminate" email and go through the motions, but I want to manually delete trial accounts from the server. Anyone know what part to edit? Should I just comment out the &sql and $rs statements below?
if ($regdate == $terminatedays) {
sendMessage("$terminate",$id);
$sql = "insert into tblcancelrequests (date,relid,reason,type) VALUES (now(),".$id.",'Trial Account','Immediate')";
$rs = mysql_query($sql);
}elseif ($regdate == $suspenddays) {
sendMessage("$suspend",$id);
ServerSuspendAccount($id);
Also, does this mod only affect accounts that are "Active" or "Suspended"? Thanks