Forums / Basic Configuration / Website Maintenance Message and HTML

Website Maintenance Message and HTML

Views: 6,406

Results 1 to 3 of 3
20 Apr 2023, 12:35 AM
#1
kanine avatar

kanine

New Zenner

Join Date:
Mar 2008
Location:
Victoria AU
Posts:
48
Plugin Contributions:
0

Website Maintenance Message and HTML

Is there a way to stop HTML that is put into the "Date and hours for notice before maintenance" message from being converted to escaped characters? For instance if I try to put a link in the message for more information this all gets stripped out and replaced with the special char handing like < etc.

I tried adding PERIOD_BEFORE_DOWN_FOR_MAINTENANCE to $configs_with_special_characters in admin/includes/init_includes/init_sanitize.php however the href=" was still being altered by the sanitize class.

20 Apr 2023, 1:25 AM
#2
kanine avatar

kanine

New Zenner

Join Date:
Mar 2008
Location:
Victoria AU
Posts:
48
Plugin Contributions:
0

Re: Website Maintenance Message and HTML

I sorted this out by also adding the code as below, but if there's a better way please let me know.

    if (!$checks->EOF) {
        if (!empty($checks->fields['val_function']) || $cID === 462) {
            $group = array('configuration_value' => array('sanitizerType' => 'NULL_ACTION', 'method' => 'post'));
20 Aug 2023, 3:01 PM
#3
dualboot avatar

dualboot

New Zenner

Join Date:
Jul 2023
Location:
india
Posts:
1
Plugin Contributions:
0

Re: Website Maintenance Message and HTML

Try this..

<!DOCTYPE html>
<html>
<head>
    <title>Website Maintenance</title>
</head>
<body>
    <div class="maintenance-message">
        <h1>Website Maintenance</h1>
        <p>Our website is currently undergoing maintenance. Please check back later.</p>
        <p>For more information, <a href="https://example.com/maintenance-details">click here</a>.</p>
    </div>
</body>
</html>