forked from hans/Nominatim
The PHP scripts need to know the position of the nominatim tool in order to call it. This is handed in as environment variable, so it can be set by the Python script.
14 lines
470 B
Cheetah
Executable File
14 lines
470 B
Cheetah
Executable File
#!@PHP_BIN@ -Cq
|
|
<?php
|
|
require('@CMAKE_SOURCE_DIR@/lib/dotenv_loader.php');
|
|
|
|
@define('CONST_Default_ModulePath', '@CMAKE_BINARY_DIR@/module');
|
|
@define('CONST_Default_Osm2pgsql', '@CMAKE_BINARY_DIR@/osm2pgsql/osm2pgsql');
|
|
@define('CONST_BinDir', '@CMAKE_SOURCE_DIR@/utils');
|
|
@define('CONST_DataDir', '@CMAKE_SOURCE_DIR@');
|
|
|
|
loadDotEnv();
|
|
$_SERVER['NOMINATIM_NOMINATIM_TOOL'] = '@CMAKE_BINARY_DIR@/nominatim';
|
|
|
|
require_once('@CMAKE_SOURCE_DIR@/lib/admin/@script_source@');
|