2024-02-20 19:35:43 +11:00
|
|
|
<div id=footer class=footer>
|
2024-02-26 20:42:02 +11:00
|
|
|
<div class="update"><p>Site last updated
|
|
|
|
<?php
|
|
|
|
exec("cd /var/www/daviac && /usr/bin/git show -s --format=%ci 2>&1", $output, $errno);
|
|
|
|
echo $output[0];
|
|
|
|
?>
|
|
|
|
</p></div>
|
2024-02-25 16:40:12 +11:00
|
|
|
<div class="counter"><p>Visits:
|
2024-02-25 16:19:40 +11:00
|
|
|
<?php
|
|
|
|
session_start();
|
|
|
|
if(!isset($_SESSION['counter'])) {
|
2024-02-25 16:40:12 +11:00
|
|
|
$c_handle = fopen("../data/counter.txt", "r");
|
2024-02-25 16:19:40 +11:00
|
|
|
if(!$c_handle){
|
2024-02-25 16:40:12 +11:00
|
|
|
echo "error";
|
|
|
|
} else {
|
|
|
|
$counter = ( int ) fread($c_handle,32);
|
|
|
|
fclose($c_handle);
|
|
|
|
$counter++ ;
|
|
|
|
echo $counter;
|
|
|
|
$c_handle = fopen("../data/counter.txt", "w");
|
|
|
|
fwrite($c_handle, $counter);
|
|
|
|
fclose($c_handle);
|
|
|
|
$_SESSION['counter'] = $counter;
|
2024-02-25 16:19:40 +11:00
|
|
|
}
|
2024-02-25 16:40:12 +11:00
|
|
|
} else {
|
|
|
|
$counter = $_SESSION['counter'];
|
|
|
|
echo $counter;
|
2024-02-25 16:19:40 +11:00
|
|
|
}
|
2024-02-25 16:40:12 +11:00
|
|
|
|
2024-02-25 16:19:40 +11:00
|
|
|
?>
|
2024-02-25 16:40:12 +11:00
|
|
|
</p></div>
|
2024-02-25 16:19:40 +11:00
|
|
|
</div>
|
2024-02-13 11:30:03 +11:00
|
|
|
</div>
|
2024-02-20 19:35:43 +11:00
|
|
|
|