% use POSIX qw(strftime);

<div>
    % if (! $c->session->{PwdSet} ) {
        <div>
            <h5 class="text-danger">
                Warning: you have not yet changed the default system password.
            </h5>
        </div>
    % }

    % if ( $c->is_unsafe ) {
        <div>
            <h5 class="text-danger">
                Warning: a reconfigure and reboot is required before proceeding!<br>
                Failure to do so now may leave your system in an unknown state!
            </h5>
        </div>
    % }

    % if ( $c->session->{Access} eq 'public' && ((config->{debug} ne '0') || (config->{mode} ne 'production')) ) {
        <div>
            <h5 class="text-danger">
                Warning: Development or debug mode enabled AND public access is offered !
            </h5>
        </div>
    % }

    <% my $curdate = strftime '%Y%m%d', localtime; %>

    % if ( "$curdate"  >= "20290531" ) {
        <div>
            <h5>
              URGENT NOTICE: As per May 31st 2029, SME Server 11 is obsolete, and potentially INSECURE.<br>
              NO support will be offered for any issue found with this installed version.<br>
              Please migrate IMMEDIATELY to Koozali SME Server 12 or higher version.<br>
              Failure to upgrade may lead to the compromise of this server.<br>
              Please, consult <a href="https://wiki.koozali.org/SME_Server:Download" target="_blank">https://wiki.koozali.org/SME_Server:Download</a> to get the latest version
            </h5>
        </div>
    % }
</div>