Habari Site class Contains functions for getting details about the site directories and URLs.
Located in /system/classes/site.php (line 8)
get_dir returns a complete filesystem path to the requested item
'config_file' returns the complete path to the config.php file, including the filename 'config' returns the path of the directory containing config.php 'user' returns the path of the user directory 'theme' returns the path of the site's active theme
get_path returns a relative URL path, without leading protocol or host 'base' returns the URL sub-directory in which Habari is installed, if any.
'user' returns one of the following: user user/sites/x.y.z 'theme' returns one of the following: /user/themes/theme_name /user/sites/x.y.z/themes/theme_dir
get_url returns a fully-qualified URL
'host' returns http://www.habariproject.org 'habari' returns http://www.habariproject.org/habari, if you have Habari installed into a /habari/ sub-directory 'user' returns one of the following: http://www.habariproject.org/user http://www.habariproject.org/user/sites/x.y.z 'theme' returns one of the following: http://www.habariproject.org/user/themes/theme_name http://www.habariproject.org/user/sites/x.y.z/themes/theme_name 'admin' returns http://www.habariproject.org/admin 'admin_theme' returns http://www.habariproject.org/system/admin 'system' returns http://www.habariproject.org/system 'scripts' returns http://www.habariproject.org/scripts 'hostname' returns www.habariproject.org
is() returns a boolean value for whether the current site is the primary site, or a multi-site, as determined by the location of the config.php that is in use for this request.
valid values are "main" and "primary" (synonymous) and "multi"
our_dir echos our a filesystem directory
out_path echos a URL path
out_url echos out a URL
script_name is a helper function to determine the name of the script
not all PHP installations return the same values for $_SERVER['SCRIPT_URL'] and $_SERVER['SCRIPT_NAME']
Documentation generated on Thu, 30 Oct 2008 20:31:26 +0100 by phpDocumentor 1.3.2