s2
This commit is contained in:
20
.hta_404.php
20
.hta_404.php
@@ -1,6 +1,6 @@
|
||||
<?php
|
||||
require('.hta_config/env.php');
|
||||
require('./.hta_header.php');
|
||||
require('.hta_header.php');
|
||||
|
||||
$headerContent = file_get_contents('./.hta_header.php');
|
||||
|
||||
@@ -39,12 +39,18 @@
|
||||
|
||||
if (isset($content[0]['content']) && $content[0]['content']) {
|
||||
$pageContent = '
|
||||
<div class="container mx-auto" style="display: flex; flex-direction: column; justify-content: center; align-items: center;">
|
||||
<div class="" style="padding-top:20px; padding-bottom:15px; font-size:25px;">
|
||||
<p style="text-align: center;">' . htmlspecialchars($content[0]['title']) . '</p>
|
||||
</div>
|
||||
<div class="">' . $content[0]['content'] . '</div>
|
||||
</div>';
|
||||
<div class="container mx-auto" style="display: flex; flex-direction: column; justify-content: center; align-items: center;">
|
||||
<div class="" style="padding-top:20px; padding-bottom:15px; font-size:25px;">
|
||||
';
|
||||
|
||||
if ($content[0]['type'] !== 'faculty') {
|
||||
$pageContent .= '<p style="text-align: center;">' . htmlspecialchars($content[0]['title']) . '</p>';
|
||||
}
|
||||
|
||||
$pageContent .= '
|
||||
</div>
|
||||
<div class="">' . $content[0]['content'] . '</div>
|
||||
</div>';
|
||||
|
||||
// Call the function to save the HTML file
|
||||
// saveHtmlFile($fileName, $headerContent, $pageContent);
|
||||
|
||||
Reference in New Issue
Block a user