$intYear,"month"=>$intMonth);
}
return $arrDates;
}
function getAd() {
define('MAX_PATH', '/var/www/vhosts/stereogum.com/httpdocs/adserver');
if (@include_once(MAX_PATH . '/www/delivery/alocal.php')) {
if (!isset($phpAds_context)) {
$phpAds_context = array();
}
$strArchiveSponsorship = view_local('', 14, 0, 0, '', '', '0', $phpAds_context);
if ($strArchiveSponsorship != "") {
return "
\n";
if ($strPreviousArtist != $strMP3Artist) {
$strOutput .= "\t
\n";
} else {
$strOutput .= "\t
\n";
}
$strOutput .= "\t
\n";
$strSource = "\t
\n";
if ($strPreviousTitle == $strEntryTitle) {
$strOutput = str_replace($strSource, "", $strOutput);
}
$strOutput .= $strSource;
$strOutput .= "
\n";
$strPreviousArtist = $strMP3Artist;
$strPreviousTitle = $strEntryTitle;
}
return $strOutput;
}
function defaultMP3List($intStart,$intOffset,$strSort="") {
global $DBhost, $DBuser, $DBpass, $DBName, $ShowNext, $ShowPrevious, $arrQueryString, $strHeader;
mysql_connect($DBhost,$DBuser,$DBpass) or die("Unable to connect to database");
@mysql_select_db("$DBName") or die("Unable to select database $DBName");
$intPage = ((int)($intStart/$intOffset))+1;
if ($intPage > 1) {
$strPageString = " - Page " . $intPage;
}
if ($strSort == "a") {
$strSort = "mp3_artist, mp3_title";
$strSortLink = "Sort by artist // " . $strHeader . "
";
$strOutput .= "
". $strSortLink . "
";
$strOutput .= "
". getMonthSelector() . "
" . getAd();
$strOutput .= "
Totally legal, totally free mp3s- if you're looking for our archive of posts containing mp3s, click here. Although Stereogum has been around for years, we only started archiving our mp3s in December of 2006. Still, that means page after page of mp3 downloads, with links back to our mp3 posts where you can read more.
";
$strOutput .= '" . $strHeader . "
";
$strOutput .= "
". $strSortLink . getMonthSelector($arrDateToSearch[0],$arrDateToSearch[1]) ."
";
$strOutput .= "
" . getAd();
$strOutput .= "
Totally legal, totally free mp3s from ". $strMonth ."- if you're looking for our archive of posts containing mp3s, click here. Although Stereogum has been around for years, we only started archiving our mp3s in December of 2006. Still, that means page after page of mp3 downloads, with links back to our mp3 posts where you can read more.
";
$strOutput .= '