Okay, I'm looking through some of the invision board code and I'm simply trying to figure out how everything ties together.
Here's a small snippet from index.php:
function info() {
global $sess, $std, $DB, $root_path, $INFO;
$this->vars = &$INFO;
$this->vars['TEAM_ICON_URL'] = $INFO['html_url'] . '/team_icons';
$this->vars['AVATARS_URL'] = $INFO['html_url'] . '/avatars';
$this->vars['EMOTICONS_URL'] = $INFO['html_url'] . '/emoticons';
$this->vars['mime_img'] = $INFO['html_url'] . '/mime_types';
}
Here's what I think I know about it. It's declaring the five variables as global's that will be used later on.
Then it's taking the information from $INFO to configure the conf_global.php file correctly (ie the correct paths are being set.)
It's the $this->vars = &INFO that's stumping me. I'm not sure what the & operator's function is when it's prepended infront of a variable. Can someone enlighten me?
Thanks.