n/oldblog
Archived
1
0
Fork 0
This repository has been archived on 2024-02-13. You can view files and clone it, but cannot push or open issues or pull requests.
oldblog/header.php

42 lines
1.2 KiB
PHP
Raw Permalink Normal View History

2023-04-30 21:28:42 +02:00
<div class='headerpage'>
<?php
$sqlstartgen = microtime(true);
/*$link = mysql_connect("localhost", "root", "gbzm@bdd2")
or die("Could not connect");
$hits = mysql_query("SELECT COUNT(*) FROM visit.visiteurs",$link)
or die("Invalid query");*/
// google indexing :)
echo "<span class='google'><a href='http://www.aballo.fr'>Aballo Informatique</a> | <a href='http://www.legaillart.fr'>Famille Le Gaillart</a> | </span>";
if ($lang == "fr")
{
echo strftime("%A %e %B | %R"); //." | ";
// echo '<span name="tick2"></span><script type="text/javascript">show2();</script>';
//echo '<span id=tick2>
//</span>';
}
else if ($lang == "es")
echo strftime("%A, %e de %B | %R"); //." | ";
else
echo date("l \\t\h\e jS \\of F | h:i A"); //." | ";
//echo strftime("%A, %B %e | %I:%M %p"); //." | ";
/*if ($hits)
echo mysql_result($hits,0)." <a href='/visit/'>";
if ($lang == "fr")
echo "Pingouins";
else if ($lang == "es")
echo "Ping<EFBFBD>inos";
else
echo "Penguins";
*/
echo "<hr />";
//mysql_close($link);
$sqlendgen = microtime(true);
$sqltimegen += ($sqlendgen - $sqlstartgen);
//echo rand(10,10000000);
//echo "<a href='visit/' title=\"Vous y croyez, vous ?\"> Hits</a><hr>";
echo "\n";
?>
</div>