From 64e4bf7a3c3185f7eab442eef1c0a5410939a726 Mon Sep 17 00:00:00 2001 From: ghost Date: Sat, 1 Jul 2023 17:30:45 +0300 Subject: [PATCH] make paths absolute --- crawler.php | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/crawler.php b/crawler.php index 3780577..557790b 100644 --- a/crawler.php +++ b/crawler.php @@ -4,14 +4,14 @@ $semaphore = sem_get(1); if (false !== sem_acquire($semaphore, 1)) { - require_once('config.php'); - require_once('library/sqlite.php'); - require_once('library/kevacoin.php'); - require_once('library/hash.php'); - require_once('library/base58.php'); - require_once('library/base58check.php'); - require_once('library/crypto.php'); - require_once('library/helper.php'); + require_once(__DIR__ . '/config.php'); + require_once(__DIR__ . '/library/sqlite.php'); + require_once(__DIR__ . '/library/kevacoin.php'); + require_once(__DIR__ . '/library/hash.php'); + require_once(__DIR__ . '/library/base58.php'); + require_once(__DIR__ . '/library/base58check.php'); + require_once(__DIR__ . '/library/crypto.php'); + require_once(__DIR__ . '/library/helper.php'); $db = new SQLite(DB_NAME, DB_USERNAME, DB_PASSWORD); $kevaCoin = new KevaCoin(KEVA_PROTOCOL, KEVA_HOST, KEVA_PORT, KEVA_USERNAME, KEVA_PASSWORD);