path)) $CONFIG->path = str_replace("\\","/",dirname(dirname(dirname(__FILE__)))) . "/"; if (empty($CONFIG->viewpath)) $CONFIG->viewpath = $CONFIG->path . "views/"; if (empty($CONFIG->pluginspath)) $CONFIG->pluginspath = $CONFIG->path . "mod/"; if (empty($CONFIG->wwwroot)) { $CONFIG->wwwroot = "http://" . $_SERVER['SERVER_NAME']; if (strripos($_SERVER['DOCUMENT_ROOT'],"/") < (sizeof($_SERVER['DOCUMENT_ROOT']) - 1)) { $CONFIG->wwwroot .= "/"; } $CONFIG->wwwroot .= str_replace($_SERVER['DOCUMENT_ROOT'],"",$CONFIG->path); } if (empty($CONFIG->sitename)) $CONFIG->sitename = "New Elgg site"; } ?>