LawsHosting
Verified User
Ok, I would like to share my code with you to make it more friendly (if you use this feature).
The env variable is exactly what you put first (before the =) in /usr/local/directadmin/data/templates/suspension_reason.txt, if it's meant to use the &text, it's not for me (imho, it should) - maybe it uses the language files referenced by the id?
So what I did was:
in index.php (if you have .html, not sure if it'll work?) in /home/<reseller user or admin>/domains/suspended/ I put:
at the top then:
where ever you want to put it, if you do not specify a reason when you suspend, it'll just display
The env variable is exactly what you put first (before the =) in /usr/local/directadmin/data/templates/suspension_reason.txt, if it's meant to use the &text, it's not for me (imho, it should) - maybe it uses the language files referenced by the id?
So what I did was:
in index.php (if you have .html, not sure if it'll work?) in /home/<reseller user or admin>/domains/suspended/ I put:
PHP:
<?php
$reason=getenv("reason");
$reason=str_replace("_"," ",$reason);
$reason=ucwords($reason);
?>
PHP:
This account has been suspended <?php if ($reason!=""){ echo "for <b>$reason</b>"; } ?>
So, that is all that's needed to remove the underscore in env and capitalise each word.This account has been suspended
Last edited: