FEATURED TOPICS
104)
{
$topic2 = $topic2 - 80;
}
$topic3 = $weekofyear + 14;
if ($topic3 > 104)
{
$topic3 = $topic3 - 90;
}
list($name1, $file1) = explode("|", $arytopics[$topic1]);
list($name2, $file2) = explode("|", $arytopics[$topic2]);
list($name3, $file3) = explode("|", $arytopics[$topic3]);
/*
$dayofmonthws = (int) date("j");
// $dayofmonthws = intval(date("j"));
/*
$monthws = (int) date("n");
$nbrtopics = count($arytopics);
$evenoddyear = ((int) date("y")) % 2;
// If year is even, it returns 0, if year is odd, it returns 1
$topic1 = ($monthws * 3) - 3 + $monthws;
if ($dayofmonthws > 7 and $dayofmonthws < 15) {
$topic1 = $topic1 + 1;
} elseif ($dayofmonthws > 14 and $dayofmonthws < 22) {
$topic1 = $topic1 + 2;
} elseif ($dayofmonthws > 21) {
$topic1 = $topic1 + 3;
}
if ($evenoddyear != 0) {
$topic1 = $topic1 + 48;
}
if ($topic1 > 72) {
$topic1 = $topic1 - 71;
}
$topic2 = $topic1 + 24;
if ($topic2 > 72) {
$topic2 = $topic2 - 72;
}
$topic3 = $topic1 + 48;
if ($topic3 > 72) {
$topic3 = $topic3 - 72;
}
$topic1--;
$topic2--;
$topic3--;
list($name1, $file1) = explode("|", $arytopics[$topic1]);
list($name2, $file2) = explode("|", $arytopics[$topic2]);
list($name3, $file3) = explode("|", $arytopics[$topic3]);
*/
?>
FEATURED TOPICS
INFORMATION
$nbrrecipes)
{
$recipe1 = $recipe1 - 10;
}
$recipe2 = $recipe1 + 7;
if ($recipe2 > $nbrrecipes)
{
$recipe2 = $recipe2 - 10;
}
list($name1, $image1, $width1, $height1, $file1, $addinfo1) = explode("|", $aryrecipes[$recipe1]);
list($name2, $image2, $width2, $height2, $file2, $addinfo2) = explode("|", $aryrecipes[$recipe2]);
/*
$dayofmonthws = (int) date("j");
// $dayofmonthws = intval(date("j"));
$monthws = (int) date("n");
$nbrrecipes = count($aryrecipes);
$recipe1 = ($monthws * 3) - 3 + $monthws;
if ($dayofmonthws > 7 and $dayofmonthws < 15) {
$recipe1 = $recipe1 + 1;
} elseif ($dayofmonthws > 14 and $dayofmonthws < 22) {
$recipe1 = $recipe1 + 2;
} elseif ($dayofmonthws > 21) {
$recipe1 = $recipe1 + 3;
}
$recipe2 = $recipe1 + 5;
if ($recipe2 > $nbrrecipes) {
$recipe2 = $recipe2 - $nbrrecipes;
}
$recipe1--;
$recipe2--;
list($name1, $image1, $width1, $height1, $file1, $addinfo1) = explode("|", $aryrecipes[$recipe1]);
list($name2, $image2, $width2, $height2, $file2, $addinfo2) = explode("|", $aryrecipes[$recipe2]);
// Month Start Recipe (one recipe each week, 48 recipes)
// 1 1
// 2 5
// 3 9
// 4 13
// 5 17
// 6 21
// 7 25
// 8 29
// 9 33
// 10 37
// 11 41
// 12 45
*/
?>
FEATURED RECIPES
-
";
echo $addinfo1;
}
?>
-
";
echo $addinfo2;
}
?>