|
|
|
@ -12,9 +12,6 @@ if (false === sem_acquire($semaphore, true))
@@ -12,9 +12,6 @@ if (false === sem_acquire($semaphore, true))
|
|
|
|
|
); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
// Load dependencies |
|
|
|
|
require_once __DIR__ . '/../vendor/autoload.php'; |
|
|
|
|
|
|
|
|
|
// Init config |
|
|
|
|
if (!file_exists(__DIR__ . '/../config.json')) |
|
|
|
|
{ |
|
|
|
@ -29,14 +26,21 @@ $config = json_decode(
@@ -29,14 +26,21 @@ $config = json_decode(
|
|
|
|
|
) |
|
|
|
|
); |
|
|
|
|
|
|
|
|
|
// Load dependencies |
|
|
|
|
require_once __DIR__ . '/../vendor/autoload.php'; |
|
|
|
|
|
|
|
|
|
// Init index |
|
|
|
|
switch ($config->index->driver) |
|
|
|
|
{ |
|
|
|
|
case 'manticore': |
|
|
|
|
|
|
|
|
|
try |
|
|
|
|
{ |
|
|
|
|
$index = new \Kvazar\Index\Manticore( |
|
|
|
|
(string) $config->manticore->name, |
|
|
|
|
(array) $config->manticore->meta, |
|
|
|
|
(string) $config->manticore->host, |
|
|
|
|
(int) $config->manticore->port |
|
|
|
|
(string) $config->index->manticore->name, |
|
|
|
|
(array) $config->index->manticore->meta, |
|
|
|
|
(string) $config->index->manticore->host, |
|
|
|
|
(int) $config->index->manticore->port |
|
|
|
|
); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
@ -50,6 +54,15 @@ catch (Exception $exception)
@@ -50,6 +54,15 @@ catch (Exception $exception)
|
|
|
|
|
); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
break; |
|
|
|
|
|
|
|
|
|
default: |
|
|
|
|
|
|
|
|
|
exit( |
|
|
|
|
_('Undefined index driver!') |
|
|
|
|
); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
// Init kevacoin |
|
|
|
|
try |
|
|
|
|
{ |
|
|
|
|