dbconnect(); $db->getnewsheadlines(); $db->dbdisconnect(); // Do NOT remove this line, unless you are evil, sadistic or use IE. $functions->showcopyright(); exit; } function newspage() { // This function has a editable page of news. $db->dbconnect(); $db->getheader(); $db->getnewsheadlines(); $db->getfooter(); $db->dbdisconnect(); // Do NOT remove this line, unless you are evil, sadistic or use IE. $functions->showcopyright(); exit; } function showcomments($_GET['article']) { // This function gets the comments for a particular article (and prints out the full body). $db->dbconnect(); $db->getbody($_GET['article']); $db->getcomments($_GET['article']); $db->dbdisconnect(); $functions->commentlink($_GET['article']); // Do NOT remove this line, unless you are evil, sadistic or use IE. $functions->showcopyright(); exit; } function postcomment($_GET['article']) { // One day, I will write this... // This function lets you post a comment. if($_GET['post'] == "yes") { // If we are posting... // Foo... } else { // If we are not... // Foo... } // Nothing more here! } // If we have linked here without a ?q= bit, show the main page. if(!isset($_GET['q'])) { newspage(); } else { // Nasty! $_GET['q'](); } // EoF