I have one main file here which is (I'm fairly sure) where the problem is.
index.php is as follows:
PHP Code:
<?php
// Access to this page only define("NZ_GOLF", 1);
// Includes require_once(dirname(__FILE__) . "/tpl/inc/config.php");
// The array of main actions $actionArray = array( 'manageclubs' => array('manageClubs.php', 'manageClubs'), 'articles' => array('articles.php', 'articles'), 'settings' => array('settings.php', 'settings'), 'managetournaments' => array('manageTournaments.php', 'manageTournaments') );
// Get the function and file to include - if it's not there, do the board index. if(!isset($_REQUEST['act']) || !isset($actionArray[$_REQUEST['act']])) { require_once(dirname(__FILE__) . '/tpl/home.php'); return home(); }
// Otherwise, it was set - so let's go to that action. include(dirname(__FILE__) . '/tpl/' . $actionArray[$_REQUEST['act']][0]); return $actionArray[$_REQUEST['act']][1];
?>
For some reason, when going to "index.php?act=manageclubs", the function (manageClubs) will not return unless a return statement is added to the manageClubs.php file itself.
As you might notice, some of the code is taken from SMF. SMF works! And I can't figure out why this doesn't...
Thanks so much for any help given. This is bugging me like hell. 
Last edited by KieranC; 07-24-2009 at 07:16 AM..
|