tma/include/logo.inc.php

20 lines
555 B
PHP
Raw Normal View History

2020-11-29 11:25:34 +01:00
<?php
2024-02-12 20:46:07 +01:00
2020-11-29 11:25:34 +01:00
require_once "include/standard.inc.php";
require_once "include/timer.inc.php";
require_once "include/random.inc.php";
// modèle = YYYY mm dd hh MM ss
// masque = 0000 00 00 00 10 00
// valeur = 24h.
2024-02-12 20:46:07 +01:00
$Logo = timer("logo", 240000);
2020-11-29 11:25:34 +01:00
2024-02-12 20:46:07 +01:00
if ($Logo == false) {
while (($RandomLogo = RandomFile("images/logos/")) == $Logo);
settimer("logo", "$RandomLogo");
$Logo = $RandomLogo;
2020-11-29 11:25:34 +01:00
}
echo "<a href='leclub.html' title='TMA'><img src='images/logos/$Logo' alt='TMA' width='147' height='82' class='border2' /></a>";
unset($Logo);
unset($RandomLogo);