bp->dbGet('developer:cmd') != "") { $this->bplib->notify("Console command sent."); $this->bp->dbSet('developer:log', shell_exec("cd /var/www/".$this->placeholderservice->folder().";".$this->bp->dbGet('developer:cmd'))); }; if ($this->settings->get('blueprint::panel:id') == "") { $this->settings->set('blueprint::panel:id', uniqid(rand())."@".$this->bp->version()); }; return $this->view->make( 'admin.extensions.blueprint.index', [ 'version' => $this->version, 'bp' => $this->bp, 'bplib' => $this->bplib, 'telemetry' => $this->telemetry, 'root' => "/admin/extensions/blueprint", ] ); } /** * @throws \Pterodactyl\Exceptions\Model\DataValidationException * @throws \Pterodactyl\Exceptions\Repository\RecordNotFoundException */ public function update(BlueprintSettingsFormRequest $request): RedirectResponse { foreach ($request->normalize() as $key => $value) { $this->settings->set('blueprint::' . $key, $value); } $this->bplib->notify("Your changes have been saved."); return redirect()->route('admin.extensions.blueprint.index'); } }