// Removes the slash if there is one if (substr($filename, strlen($filename) - 1, 1) == '/') { $filename = substr($filename, 0, strlen($filename) - 1); } head(1); // Means we're in the feed ?> </head> <body> <?php title(); newsbar(1); // Means we're in the feed navbarleft(); content(1, 0, 1, 0, $filename); // in feed, for the fn entries, filename for echoContent if (!$_GET["num"]) { // Makes $num be the newest news item of any type $num = end(getposts(0)); } else { $num = $_GET["num"]; } bottom($num); ?> </body>
<?php include $_SERVER['DOCUMENT_ROOT'] . '/beta/scripts/functions_page.php'; $filename = "http://" . $_SERVER["HTTP_HOST"] . $_SERVER["PHP_SELF"]; // Removes the slash if there is one if (substr($filename, strlen($filename) - 1, 1) == '/') { $filename = substr($filename, 0, strlen($filename) - 1); } head(0); // Means we're in home ?> </head> <body> <?php title(); newsbar(0); // Means we're in home navbarleft(); content(0, 0, 0, 0, $filename); // in home, filename for echoContent, rest for the fn entries bottom(); ?> </body> </html>