Changeset 8c356c1 for src/webservice/config
- Timestamp:
- Aug 26, 2015, 8:14:40 PM (11 years ago)
- Branches:
- master
- Children:
- b38cc03
- Parents:
- 8f38d1e
- File:
-
- 1 edited
-
src/webservice/config/config.php.in (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
src/webservice/config/config.php.in
r8f38d1e r8c356c1 24 24 "mode" => "@WEBSERVICE_MODE@", 25 25 "webserviceBaseUrl" => "http://localhost@WEBSERVICE_BASE_URL@/", 26 "spatialiteExtension" => "mod_spatialite.so", 26 27 ]; 27 28 28 ///////////////////////////29 //30 // DO NOT MODIFY THIS FILE BELOW THIS LINE31 //32 ///////////////////////////33 34 $config["dataDirectory"] = "data";35 36 37 function getConfig($key){38 global $config;39 40 if(!arraY_key_exists($key, $config)){41 error_log("Expected config value ". $key ." does not exists");42 return FALSE;43 }44 return $config[$key];45 }46 47 if(getConfig("mode") == "development"){48 error_reporting(E_ALL);49 }50 51 set_include_path(get_include_path() . PATH_SEPARATOR . "../vendor/");52 require("../vendor/autoload.php");53 54 29 ?>
Note:
See TracChangeset
for help on using the changeset viewer.
![(please configure the [header_logo] section in trac.ini)](/siweather/chrome/site/your_project_logo.png)