I see. When the forum's password is used, the trustee might not forget it so easy. But what if you have more than one trustee? And I think, deadman.txt should be save enough due to .htaccess and the possibility to rename the file. Yes, your hoster has also access to your webspace. But he doesn't need the data in deadman.txt as he already has them.
As far as I can tell, your code looks pretty.
Unfortunately I can't tell much about the PMing part because I'm not so familar with it yet. I will learn from you. The idea of sending dead_man_alert_pm, dead_man_reset_pm and dead_man_trigger_reset_pm is surely a nice one.
A few notes:
trigger_error('Invalid $dead_man_file', E_USER_ERROR);
Does that solve the mentioned problem? Interesting.
Code: Select all
set_config('dead_man_trigger', time() + $dead_man_days * 86400);
Ha ha, that's the best solution! When you install the MOD, it's clear that you are still alive - even when you don't visit the board.
A question: Is it not necessary to set is_dynamic to true for example in set_config('dead_man_trigger', time() + $dead_man_days * 86400, true
) or have you only forgotten it?