Set tzo cookie only in header.php

This commit is contained in:
Retro_Guy 2021-06-21 09:15:32 +00:00
parent 4d61a4d967
commit afb72007fb
2 changed files with 1 additions and 7 deletions

View File

@ -13,7 +13,7 @@ $CONFIG = include $config_file;
?> ?>
<script type="text/javascript"> <script type="text/javascript">
if (navigator.cookieEnabled) if (navigator.cookieEnabled)
document.cookie = "tzo="+ (- new Date().getTimezoneOffset()); document.cookie = "tzo="+ (- new Date().getTimezoneOffset())+"; path=/";
</script> </script>
<?php <?php

View File

@ -17,12 +17,6 @@ if (isset($frames_on) && $frames_on === true) {
</script> </script>
<?php <?php
} }
?>
<script type="text/javascript">
if (navigator.cookieEnabled)
document.cookie = "tzo="+ (- new Date().getTimezoneOffset())+"; path=/";
</script>
<?php
$title.=' - '.basename(getcwd()); $title.=' - '.basename(getcwd());
include "head.inc"; include "head.inc";
echo '<h1 class="np_thread_headline">'.basename(getcwd()).'</h1>'; echo '<h1 class="np_thread_headline">'.basename(getcwd()).'</h1>';