Compare commits

..

2 commits

Author SHA1 Message Date
30bbe21d0c fix unit 2024-07-22 20:55:08 +02:00
74392feae5 Add generation time to footer 2024-07-22 20:38:41 +02:00
2 changed files with 13 additions and 7 deletions

View file

@ -95,13 +95,6 @@ $quote_author_arr = [
Creative Commons Attribution Share Alike license</a> Creative Commons Attribution Share Alike license</a>
, unless stated otherwise. , unless stated otherwise.
</p> </p>
<p style="position: relative; right: 0;">
This page was generated at
<?php
echo date('Y-m-d\TH:i:s T').
" by php/".phpversion()." ".$_SERVER["SERVER_SOFTWARE"];
?>
</p>
<div style="margin-bottom:1em;"> <div style="margin-bottom:1em;">
<span> <span>
<a href="https://my.fsf.org/join?referrer=6692411"> <a href="https://my.fsf.org/join?referrer=6692411">
@ -141,6 +134,16 @@ $quote_author_arr = [
</a> </a>
</span> </span>
</div> </div>
<p style="position: relative; right: 0;">
This page was generated at
<?php
echo date('Y-m-d\TH:i:s T').
" by php/".phpversion()." ".
$_SERVER["SERVER_SOFTWARE"]."<br>".
"Generation took ".round((microtime(true) -
$generation_start_time)*1000, 4)." milliseconds.";
?>
</p>
</div> </div>
</main> </main>
</body> </body>

View file

@ -11,6 +11,9 @@ if(isset($_COOKIE["PHPSESSID"]))
session_start(); session_start();
} }
// Use this for page generation timing
$generation_start_time = microtime(true);
// PDO Mysql connection object // PDO Mysql connection object
$conn = null; $conn = null;
attempt_sql_connect(); attempt_sql_connect();