Jump to content

Good design?


stuffradio

Recommended Posts

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
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.