Ignore:
Timestamp:
Aug 26, 2015, 8:14:40 PM (11 years ago)
Author:
Joachim Langenbach <joachim.langenbach@…>
Branches:
master
Children:
b38cc03
Parents:
8f38d1e
Message:
  • Finished setup
    • Added tests for setup
    • Added translation to setup
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/webservice/config/config.php.in

    r8f38d1e r8c356c1  
    2424        "mode" => "@WEBSERVICE_MODE@",
    2525        "webserviceBaseUrl" => "http://localhost@WEBSERVICE_BASE_URL@/",
     26        "spatialiteExtension" => "mod_spatialite.so",
    2627];
    2728
    28 ///////////////////////////
    29 //
    30 // DO NOT MODIFY THIS FILE BELOW THIS LINE
    31 //
    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 
    5429?>
Note: See TracChangeset for help on using the changeset viewer.