bp->dbGet('developer:cmd') != "") { $this->bp->dbSet('developer:log', shell_exec("cd /var/www/pterodactyl;".$this->bp->dbGet('developer:cmd'))); }; return $this->view->make( 'admin.extensions.blueprint.index', [ 'version' => $this->version, 'bp' => $this->bp, '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); } shell_exec("cd /var/www/pterodactyl;echo \"Your changes have been saved.\" > .blueprint/.storage/notification.txt;"); return redirect()->route('admin.extensions.blueprint.index'); } }