function content($where, $type, $amount, $style, $filename)
{
    if ($where == 0) {
        $title = "HOME";
    } elseif ($where == 1) {
        $title = "THE FEED";
    } elseif ($where == 2) {
        $title = "THE LEAGUE";
    } else {
        echo "Error: invalid {$where} parameter passed.\n";
    }
    echo "   <div class = \"content\">\n";
    echo "      <div class = \"spacer\"></div>\n";
    echo "      <h1><a class = \"lightbg\" href = \"http://www.turkiball.com/feed/index.php\">" . $title . "</a></h1>\n";
    echo "      <br>\n";
    echo "      <div class = \"contentline\"></div>\n";
    echoContent($filename);
    entries($type, $amount, $style);
    if (strpos($filename, 'people') && !strpos($filename, '?')) {
        people();
    } elseif (strpos($filename, 'pictures')) {
        pictures();
    }
    echo "      <br><br><br><br><br><br><br><br><br>\n";
    echo "   </div>\n";
}
function content($where, $type, $amount, $style, $filename)
{
    if (strpos($filename, 'index')) {
        $title = "HOME";
        $link = "index";
    }
    if (strpos($filename, 'sport')) {
        $title = "THE SPORT";
        $link = "sport";
    }
    if (strpos($filename, 'rules')) {
        $title = "THE RULES";
        $link = "rules";
    }
    if (strpos($filename, 'more')) {
        $title = "MORE TURKIBALL";
        $link = "more";
    }
    echo "   <div class = \"content\">\n";
    echo "      <div class = \"spacer\"></div>\n";
    echo "      <h1><a class = \"lightbg\" href = \"http://www.turkiball.com/" . $link . ".php\">" . $title . "</a></h1>\n";
    echo "      <br>\n";
    echo "      <div class = \"contentline\"></div>\n";
    echoContent($filename);
    entries($type, $amount, $style);
    if (strpos($filename, 'people') && !strpos($filename, '?')) {
        people();
    } elseif (strpos($filename, 'pictures')) {
        pictures();
    }
    echo "      <br><br><br><br><br><br><br><br><br>\n";
    echo "   </div>\n";
}