I found this on my intothenebula site and rememberd getting help from either Falk, Chan or RobiNN to get it to work, now I'll share it with everyone. I have it running on my Ver 8.00.100 site, my 9.03 site haven't checked it on 9.10 as I removed that site and downgraded to 8. And I have tested it running 83 banners and it didn't crash.
Gene
<?php
/*-------------------------------------------------------+
| PHP-Fusion Content Management System
| Copyright (C) PHP-Fusion Inc
| https://www.phpfusion.com/
+--------------------------------------------------------+
| Filename: footer_includes.php
+--------------------------------------------------------+
| This program is released as free software under the
| Affero GPL license. You can redistribute it and/or
| modify it under the terms of this license which you
| can read by viewing the included agpl.txt or >
| at www.gnu.org/licenses/agpl.html. Removal of this
| copyright header is strictly prohibited without
| written permission from the original author(s).
+--------------------------------------------------------*/
//Add your custom include files for the footer here
$ads = [
'<center><a href="your link goes here" target="_blank"><img class="auto-style2" height="height here" src="banner link here" width="width here" /></center></a>',
'<center><a href="your link goes here" target="_blank"><img class="auto-style2" height="height here" src="banner link here" width="width here" /></center></a>',
'<center><a href="your link goes here" target="_blank"><img class="auto-style2" height="height here" src="banner link here" width="width here" /></center></a>',
'<center><a href="your link goes here" target="_blank"><img class="auto-style2" height="height here" src="banner link here" width="width here" /></center></a>',
];
echo $ads[array_rand($ads)];