hi all,
if you're going to look at init, I might as well explain what this stuff
does, which is best done by explaining this public method (Startup):
btw, how interested is everyone in public cvs access at this point?
I can do it so I synch to sourceforge on a daily/hourly/whatever basis - but
I'm only going to do that if people want to commit :)
class init...
function Startup() {
$this->_set_bc_path();
* this figures out BC_PATH based on Init.php's location
$this->_start_timer();
* this includes core/lib/Timer.php and starts the timer
$this->_load_debug();
* this includes core/lib/Debug, and makes a new instance of Debug
* note that debug is, uh, so not done :)
* the idea w/this, btw is to allow you do insert
* $Debug->Capture("label","value")
* in your code, and have debug print a nice message for you later
* you can use this to track the execution of code,
* or remind yourself to get more sprite when you go the the market!
*eventually, debug output will be serious (i'll post this in the
next message)
$this->_start_ob();
* this starts output buffering
$this->_set_user_constants();
* this require_once's user/conf/conf.php
$this->_load_lang();
* this checks the user constants to see if BC_LANG has been set.
* if not, it loads up the Lang class, which figures out
* what to set it to, and based on that charset, date, and currency
$this->_set_system_constants();
* this sets the system paths
* the reason this is all the way down here, is because we use real
* paths in the filesystem to deal with multiple languages.
* you'll see a commented out BC_USER with a BC_LANG tagged on the
* end.
$this->_set_ini();
* this sets all of our ini settings
$this->_load_error();
* this loads up PEAR_Error, which we will use for error handling.
* ... assuming it doesn't piss us off. :)
$this->_load_auth();
* this checks the $bc_page array to see if it should load auth,
* and does it. it calls auth->Authenticate and ->Collect_Garbage
* the auth class in the r2 shell isn't functional, it's copy+paste
* from the old auth.
$this->_load_perm();
* same thing, but for perm.
// $this->_load_dispatch();
* I have decided that dispatch is a stupid name. no more dispatch
$this->_load_page();
* this is exactly the same as dispatch, but it's called Page.
* because it builds pages.
$this->_load_sess();
* after all the classes are in, we load up the session class and
* start a session.
* this will include a session.save_handler (you can see the ugly-
* thinking out loud code in there) :P
have phun!
-------------------------
--
alex black, ceo
en...@tu...
the turing studio, inc.
http://www.turingstudio.com
vox+510.666.0074
fax+510.666.0093
|