X-Git-Url: http://git.pjr.cc/?p=glcas.git;a=blobdiff_plain;f=libglcas%2Fconfig.php;h=2009823460466a5afff92850dbf35c29daf5e664;hp=506a0b31feb69d45aae986ddd716eee771526b36;hb=671e643949bab1c87d175bfc98ff086deb9c44ff;hpb=5e260ebc1ad6b785b3ef47599c7a9202ccb12b8b diff --git a/libglcas/config.php b/libglcas/config.php index 506a0b3..2009823 100644 --- a/libglcas/config.php +++ b/libglcas/config.php @@ -74,4 +74,19 @@ class GLCASConfig { } +function glcas_getWebConfigPath() +{ + global $WEB_ROOT_FS, $URL_HANDLERS, $BASE_URL; + + // if you wish to add more places to find webconfig, add them here. + $configpath = false; + if(file_exists($WEB_ROOT_FS."/../var/glcas/webconfig")) return realpath($WEB_ROOT_FS."/../var/glcas/webconfig"); + if(file_exists("/var/lib/glcas/webconfig")) return realpath("/var/lib/glcas/webconfig"); + if(file_exists("/var/run/glcas/webconfig")) return realpath("/var/run/glcas/webconfig"); + + return $configpath; + //return false; +} + + ?> \ No newline at end of file