helper/index.php 1 location
|
@@ 49-53 (lines=5) @@
|
46 |
|
* Constructor, initialises the spatial index. |
47 |
|
*/ |
48 |
|
public function __construct() { |
49 |
|
if (!$geophp = &plugin_load('helper', 'geophp')) { |
50 |
|
$message = 'helper_plugin_spatialhelper_index::spatialhelper_index: geophp plugin is not available.'; |
51 |
|
msg($message, - 1); |
52 |
|
return ""; |
53 |
|
} |
54 |
|
|
55 |
|
global $conf; |
56 |
|
$this->idx_dir = $conf ['indexdir']; |
helper/search.php 1 location
|
@@ 64-68 (lines=5) @@
|
61 |
|
// parent::__construct (); |
62 |
|
global $conf; |
63 |
|
|
64 |
|
if (!$geophp = &plugin_load('helper', 'geophp')) { |
65 |
|
$message = 'helper_plugin_spatialhelper_search::spatialhelper_search: geophp plugin is not available.'; |
66 |
|
msg($message, - 1); |
67 |
|
return ""; |
68 |
|
} |
69 |
|
|
70 |
|
$idx_dir = $conf ['indexdir']; |
71 |
|
if (!@file_exists($idx_dir . '/spatial.idx')) { |