BellaBuffs-PHPMailer/affiliates.php

19 lines
508 B
PHP
Raw Normal View History

2012-05-21 12:42:55 +00:00
<?php
require_once('prefs.php');
include_once('header.php');
?>
<h1>Affiliates</h1>
<p>
<?php
if (filesize(AFFILIATES) > 0) {
$array = file(AFFILIATES);
foreach ($array as $value) {
list($affButton,$affName,$affEmail,$affURL,$affSitename) = preg_split("/,(?! )/",$value);
echo "<a href=\"$affURL\" title=\"affiliate: $affName of $affSitename\"><img src=\"buttons/$affButton\" alt=\"$affSitename button\" /></a>";
}
} else {
echo "There are no affiliates.";
} ?>
</p>
<?php include('footer.php'); ?>