cache-busting for homepage images

This commit is contained in:
mappu 2017-04-23 17:58:11 +12:00
parent f05f429728
commit b10e5696e2

View File

@ -109,6 +109,10 @@ function buildcommon() {
array_map('imagedestroy', $handles); // free array_map('imagedestroy', $handles); // free
} }
// Cache-busting stylesheet
$style = '.homeimage-sprite { background-image: url("logos.jpg?'.md5_file(BASEDIR.'wwwroot/logos.jpg').'"); }';
// Build index page // Build index page
ob_start(); ob_start();
@ -120,6 +124,10 @@ function buildcommon() {
<!-- }} --> <!-- }} -->
<?php } ?> <?php } ?>
<style type="text/css">
<?php echo $style; ?>
</style>
<table id="projtable-main" class="projtable"> <table id="projtable-main" class="projtable">
<?php foreach ($plist as $i => $pr) { ?> <?php foreach ($plist as $i => $pr) { ?>
<tr class="<?=$pr->getClassAttr()?>" <tr class="<?=$pr->getClassAttr()?>"