stuffradio Posted January 1, 2009 Share Posted January 1, 2009 I'm writing a framework for a panel that will make it easy for those who like to run Browser based games. I want to get some opinions on the first bit of code I've written. <?php /** * This is the file that loads everything up. * * @author Carl Wuensche * @Version 0.0.1 * @package CIWG * @Date December 31, 2008 */ /** * Define the path to your installation. * If you have it in the root directory, leave it at default */ define("ROOT_FOLDER", $_SERVER['DOCUMENT_ROOT'] . "./ciwg/"); /** * Folder for all config files * Config files store settings for different areas of the site. */ define("CONFIG_FOLDER", ROOT_FOLDER . "config/"); require(CONFIG_FOLDER . "config.php"); /** * Folder for modules. * */ define("MODULE_FOLDER", ROOT_FOLDER . "modules/"); require(MODULE_FOLDER . "module.php"); /** * Include the URI file so we can control url settings all the time. */ include_once("uri.php"); Thoughts? Link to comment https://forums.phpfreaks.com/topic/139060-good-design/ Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.