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