Keep removing licensing systems

This commit is contained in:
purple 2023-04-17 13:48:45 +02:00
parent ebfa1e8253
commit 6817e43905
4 changed files with 29 additions and 65 deletions

View file

@ -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(),
]
);
}

View file

@ -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)])";}
}

View file

@ -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();}*/
}

View file

@ -56,22 +56,6 @@
{{ $bp->dbSet('developer:cmd', '') }}
@endif
<!-- License -->
<div class="box">
<div class="box-header with-border">
<h3 class="box-title"><i class='bx bxs-pen' style='margin-right:5px;'></i>License</h3>
</div>
<div class="box-body">
@if ($b)
<input type="text" id="license" value="{{ $bp->licenseKeyCensored() }}" class="form-control" style="letter-spacing: 3px;" readonly/>
<p class="text-muted small">Your license key is valid. <a data-toggle="modal" data-target="#licenseMoreInfo">Learn more</a></p>
@else
<input type="text" id="license" value="{{ $bp->licenseKeyCensored() }}" class="form-control" style="letter-spacing: 3px;" readonly/>
<p class="text-muted small">Your license key could not be validated. <a data-toggle="modal" data-target="#licenseMoreInfo">Learn more</a></p>
@endif
</div>
</div>
</div>
<div class="col-xs-9">
<form action="" method="POST">
@ -108,37 +92,11 @@
</div>
</div>
<div class="box-footer">
@if ($a)
{{ csrf_field() }}
<button type="submit" name="_method" value="PATCH" class="btn btn-gray-alt btn-sm pull-right">Save</button>
@else
<p class="text-muted small">You are required to have a valid license key attached in order to save any settings.</p>
@endif
{{ csrf_field() }}
<button type="submit" name="_method" value="PATCH" class="btn btn-gray-alt btn-sm pull-right">Save</button>
</div>
</div>
</form>
</div>
</div>
<div class="modal fade" id="licenseMoreInfo" tabindex="-1" role="dialog">
<div class="modal-dialog" role="document">
<div class="modal-content">
<div class="modal-header">
<i class='bx bxs-pen' style='margin-right:6px;float:left;font-size:23px;'></i><h4 class="modal-title" style="font-size:19px;">License</h4>
</div>
<div class="modal-body">
<p>
Every purchase comes with a unique license key pre-installed into your Blueprint files, which allows our license system to function without requiring any user input.
Most of the time, this system does not affect the user experience. However, in rare cases, our validation server may be offline and unable to validate licenses.
If this occurs, it should automatically resolve itself within 24 hours.
<br><br>
Some data, such as IP addresses and licenses, may be shared with the Blueprint team to enable our license system to function properly. This also allows us to revoke licenses remotely in case of abuse or piracy.
</p>
</div>
<div class="modal-footer">
<button class="btn btn-gray-alt btn-sm pull-right" data-dismiss="modal" aria-label="Close">Close</button>
</div>
</div>
</div>
</div>
@endsection