diff --git a/app/Http/Controllers/Admin/Extensions/Blueprint/BlueprintExtensionController.php b/app/Http/Controllers/Admin/Extensions/Blueprint/BlueprintExtensionController.php index e0d8d3f..7f1d679 100644 --- a/app/Http/Controllers/Admin/Extensions/Blueprint/BlueprintExtensionController.php +++ b/app/Http/Controllers/Admin/Extensions/Blueprint/BlueprintExtensionController.php @@ -48,9 +48,6 @@ class BlueprintExtensionController extends Controller 'bp' => $this->bp, 'telemetry' => $this->telemetry, 'root' => "/admin/extensions/blueprint", - 'a' => $this->bp->a(), - 'b' => $this->bp->b(), - 'c' => $this->bp->c(), ] ); } diff --git a/app/Services/Helpers/BlueprintPlaceholderService.php b/app/Services/Helpers/BlueprintPlaceholderService.php index f1b08b6..0f364b5 100644 --- a/app/Services/Helpers/BlueprintPlaceholderService.php +++ b/app/Services/Helpers/BlueprintPlaceholderService.php @@ -11,13 +11,10 @@ class BlueprintPlaceholderService ) { } - // $bp->licenseKey() // $bp->version() public function version(): string { $v = "([(pterodactylmarket_version)])"; return $v; } - - public function licenseKey(): string{return "([(pterodactylmarket_transactionid)])";} } diff --git a/app/Services/Helpers/BlueprintVariableService.php b/app/Services/Helpers/BlueprintVariableService.php index 313c05c..e2ecbb9 100644 --- a/app/Services/Helpers/BlueprintVariableService.php +++ b/app/Services/Helpers/BlueprintVariableService.php @@ -14,6 +14,11 @@ class BlueprintVariableService }; + // $bp->server() + // $bp->version() + // $bp->dbGet('db:record') + // $bp->dbSet('db:record', 'value') + // $bp->exec('arguments') public function serve(): void { return; }; @@ -22,20 +27,27 @@ class BlueprintVariableService return $this->blueprintplaceholderservice->version(); }; - // $bp->rlKey() - // $bp->kyGet() - // $bp->a() - // $bp->b() - // $bp->c() - // $bp->licenseIsBlacklisted() - // $bp->licenseKey() - // $bp->licenseKeyCensored() - // $bp->version() - // $bp->dbGet('db:record') - // $bp->kyGet() - // $bp->dbSet('db:record', 'value') - // $bp->sync() - // $bp->exec('arguments') + public function dbGet($key): string { + $a = $this->settings->get("blueprint::".$key); + if (!$a) { + return ""; + } else { + return $a; + }; + } + + public function dbSet($key, $value): void + { + $this->settings->set('blueprint::' . $key, $value); + return; + } + + public function exec($arg): string|null + { + return shell_exec("blueprint -php ".$arg); + } + + /* public function rlKey(): void { if ($this->dbGet('api:endpoint') == "") { @@ -194,5 +206,5 @@ class BlueprintVariableService return shell_exec("blueprint -php ".$arg); } - public function licenseKey(): string{return $this->blueprintplaceholderservice->licenseKey();} + public function licenseKey(): string{return $this->blueprintplaceholderservice->licenseKey();}*/ } \ No newline at end of file diff --git a/resources/views/admin/extensions/blueprint/index.blade.php b/resources/views/admin/extensions/blueprint/index.blade.php index 2809eb6..799a118 100644 --- a/resources/views/admin/extensions/blueprint/index.blade.php +++ b/resources/views/admin/extensions/blueprint/index.blade.php @@ -56,22 +56,6 @@ {{ $bp->dbSet('developer:cmd', '') }} @endif - -
-
-

License

-
-
- @if ($b) - -

Your license key is valid. Learn more

- @else - -

Your license key could not be validated. Learn more

- @endif -
-
-
@@ -108,37 +92,11 @@
- - @endsection \ No newline at end of file