PHP Code:
<?php
error_reporting(7);
require('./global.php');
$iconbits = '';
$iconcount = 1;
while ($iconcount < 103){
$iconcount = str_pad($iconcount, 3, '0', STR_PAD_LEFT);
eval('$iconbits .= "' . gettemplate('icons_bit') . '";');
$iconcount++;
}
eval('dooutput("' . gettemplate('icons') . '");');
?>
Then create a template called icons, with $header, $headinclude, $footer and $iconsbits wherever you want them.