diff --git a/build.php b/build.php index 425052e..a6827f8 100644 --- a/build.php +++ b/build.php @@ -2,4 +2,4 @@ require_once __DIR__ . '/vendor/autoload.php'; -\Aternos\Mclogs\Frontend\Assets\AssetLoader::getInstance()->writeCache(); \ No newline at end of file +\IndifferentKetchup\Iblogs\Frontend\Assets\AssetLoader::getInstance()->writeCache(); \ No newline at end of file diff --git a/composer.json b/composer.json index f01c4a4..df33ba8 100644 --- a/composer.json +++ b/composer.json @@ -1,5 +1,5 @@ { - "name": "aternos/mclogs", + "name": "indifferentketchup/iblogs", "description": "Paste, share and analyse Minecraft logs", "authors": [ { @@ -22,7 +22,7 @@ }, "autoload": { "psr-4": { - "Aternos\\Mclogs\\": "src/" + "IndifferentKetchup\\Iblogs\\": "src/" } } } diff --git a/src/Api/Action/AnalyseLogAction.php b/src/Api/Action/AnalyseLogAction.php index f5a22bc..a43ecce 100644 --- a/src/Api/Action/AnalyseLogAction.php +++ b/src/Api/Action/AnalyseLogAction.php @@ -1,12 +1,12 @@ 25000, ConfigKey::MONGODB_URL => 'mongodb://mongo:27017', - ConfigKey::MONGODB_DATABASE => 'mclogs', + ConfigKey::MONGODB_DATABASE => 'iblogs', ConfigKey::ID_LENGTH => 7, @@ -66,7 +66,7 @@ enum ConfigKey */ public function getEnvironmentVariable(): string { - return "MCLOGS_" . $this->name; + return "IBLOGS_" . $this->name; } /** diff --git a/src/Data/Deobfuscator.php b/src/Data/Deobfuscator.php index 3952a82..2339357 100644 --- a/src/Data/Deobfuscator.php +++ b/src/Data/Deobfuscator.php @@ -1,6 +1,6 @@ get(ConfigKey::ID_LENGTH); $newId = ""; diff --git a/src/Log.php b/src/Log.php index c5881b8..3b18c68 100644 --- a/src/Log.php +++ b/src/Log.php @@ -1,21 +1,21 @@ get(ConfigKey::STORAGE_TTL); + $ttl = \IndifferentKetchup\Iblogs\Config\Config::getInstance()->get(ConfigKey::STORAGE_TTL); $expires = time() + $ttl; return new UTCDateTime($expires * 1000); } diff --git a/src/Printer/FormatModification.php b/src/Printer/FormatModification.php index a4f425c..20e418d 100644 --- a/src/Printer/FormatModification.php +++ b/src/Printer/FormatModification.php @@ -1,6 +1,6 @@ @@ -586,7 +586,7 @@ $config = Config::getInstance();
-=htmlspecialchars(json_encode(\Aternos\Mclogs\Filter\Filter::getAll(), JSON_PRETTY_PRINT)); ?>+=htmlspecialchars(json_encode(\IndifferentKetchup\Iblogs\Filter\Filter::getAll(), JSON_PRETTY_PRINT)); ?>