function base_path
Search API
6.x misc.inc | base_path() |
4.x misc.inc | base_path() |
5.x misc.inc | base_path() |
Shortcut for getting the base_path variable from the global system settings.
14 calls to base_path()
- fp_get_module_path in includes/
misc.inc - Return the filepath to the module
- fp_mobile_template.php in themes/
classic/ fp_mobile_template.php - fp_mobile_template.php in themes/
basic/ fp_mobile_template.php - fp_mobile_template.php in themes/
fp5_clean/ fp_mobile_template.php - fp_print_template.php in themes/
classic/ fp_print_template.php
File
- includes/
misc.inc, line 1299 - This file contains misc functions for FlightPath
Code
function base_path() {
$p = $GLOBALS ["fp_system_settings"]["base_path"];
// the base_path setting isn't set, so just use '.', meaning, start
// at the currect directory by default.
if ($p == "") {
$p = ".";
}
// if our base_path is simply "/" (meaning, we are hosted on a bare domain), then we should
// actually return nothing, so as not to cause errors with other systems.
if ($p == "/") {
$p = "";
}
return $p;
}