namespace Pterodactyl\Http\Controllers\Admin\Arix;
use Illuminate\View\View;
use Illuminate\Support\Facades\Http as AASupport;
use Prologue\Alerts\AlertsMessageBag;
use Illuminate\View\Factory as ViewFactory;
use Pterodactyl\Http\Controllers\Controller;
use Pterodactyl\Http\Requests\Admin\Arix\ArixMailRequest;
use Pterodactyl\Contracts\Repository\SettingsRepositoryInterface;
class ArixMailController extends Controller {
public function __construct(private AlertsMessageBag $alert, private SettingsRepositoryInterface $settings, private ViewFactory $view) {
}
public function index() : View {
return $this->view->make(base64_decode("YWRtaW4uYXJpeC5tYWls"), [base64_decode("bWFpbF9jb2xvcg==") => $this->settings->get(base64_decode("c2V0dGluZ3M6OmFyaXg6bWFpbF9jb2xvcg=="), base64_decode("IzRhMzVjZg==")), base64_decode("bWFpbF9iYWNrZ3JvdW5kQ29sb3I=") => $this->settings->get(base64_decode("c2V0dGluZ3M6OmFyaXg6bWFpbF9iYWNrZ3JvdW5kQ29sb3I="), base64_decode("I0Y1RjVGRg==")), base64_decode("bWFpbF9sb2dv") => $this->settings->get(base64_decode("c2V0dGluZ3M6OmFyaXg6bWFpbF9sb2dv"), base64_decode("aHR0cHM6Ly9hcml4LmdnL2FyaXgucG5n")), base64_decode("bWFpbF9sb2dvRnVsbA==") => $this->settings->get(base64_decode("c2V0dGluZ3M6OmFyaXg6bWFpbF9sb2dvRnVsbA=="), false), base64_decode("bWFpbF9tb2Rl") => $this->settings->get(base64_decode("c2V0dGluZ3M6OmFyaXg6bWFpbF9tb2Rl"), base64_decode("bGlnaHQ=")), base64_decode("bWFpbF9kaXNjb3Jk") => $this->settings->get(base64_decode("c2V0dGluZ3M6OmFyaXg6bWFpbF9kaXNjb3Jk"), base64_decode("aHR0cHM6Ly9hcml4LmdnL2Rpc2NvcmQ=")), base64_decode("bWFpbFd2l0dGVy") => $this->settings->get(base64_decode("c2V0dGluZ3M6OmFyaXg6bWFpbF90d2l0dGVy"), base64_decode("aHR0cHM6Ly94LmNvbQ==")), base64_decode("bWFpbF9mYWNlYm9vaw==") => $this->settings->get(base64_decode("c2V0dGluZ3M6OmFyaXg6bWFpbF9mYWNlYm9vaw=="), base64_decode("aHR0cHM6Ly9mYWNlYm9vay5jb=")), base64_decode("bWFpbF9pbnN0YWdyYW0=") => $this->settings->get(base64_decode("c2V0dGluZ3M6OmFyaXg6bWFpbF9pbnN0YWdyYW0="), base64_decode("aHR0cHM6Ly9pbnN0YWdyYW0uY29t")), base64_decode("bWFpbF9saW5rZWRpbg==") => $this->settings->get(base64_decode("c2V0dGluZ3M6OmFyaXg6bWFpbF9saW5rZWRpbg=="), base64_decode("aHR0cHM6Ly9saW5rZWRpbi5jb20=")), base64_decode("bWFpbF95b3V0dWJl") => $this->settings->get(base64_decode("c2V0dGluZ3M6OmFyaXg6bWFpbF95b3V0dWJl"), base64_decode("aHR0cHM6Ly95b3V0dWJlLmNvbQ==")), base64_decode("bWFpbF9zdGF0dXM=") => $this->settings->get(base64_decode("c2V0dGluZ3M6OmFyaXg6bWFpbF9zdGF0dXM="), base64_decode("aHR0cHM6Ly9hcml4LmdnL3N0YXR1cw==")), base64_decode("bWFpbF9iaWxsaW5n") => $this->settings->get(base64_decode("c2V0dGluZ3M6OmFyaXg6bWFpbF9iaWxsaW5n"), base64_decode("aHR0cHM6Ly9hcml4LmdnL2JpbGxpbmc=")), base64_decode("bWFpbF9zdXBwb3J0") => $this->settings->get(base64_decode("c2V0dGluZ3M6OmFyaXg6bWFpbF9zdXBwb3J0"), base64_decode("aHR0cHM6Ly9hcml4LmdnL3N1cHBvcnQ="))]);
}
public function store(ArixMailRequest $request) {
goto D76d19ef69840286;
d51ab1955b034744: goto Ccf8946157cac084;
goto F610e276c5b3e073;
B6bf19b189749040: $endpoint = base64_decode("aHR0cHM6Ly9hcGkuYXJpeC5nZy9yZXNvdXJjZS9hcml4LXB0ZXJvZGFjdHlsL3ZlcmlmeQ==");
goto F66bf2a91bceff45;
a9a8dd89993d8a0c: Ccf8946157cac084: goto c8fdfef8175521c1;
F610e276c5b3e073: d1d3904e65a43493: goto dc313420117ede67;
c61cb3a338245321: foreach ($request->normalize() as $key => $value) {
$this->settings->set(base64_decode("c2V0dGluZ3M6Og==") . $key, $value);
C023729d6b588816:
}
goto E579f1fbdf738762;
D76d19ef69840286: $api = 'QVIzMDQxY2YyMzRkNTAwNzJjZmE2MzZhYzU2MGFjOTY2Zg==';
goto B6bf19b189749040;
Aba0f6f11eb55931: $responseData = $response->json();
goto f036e5b9bce4311c;
f036e5b9bce4311c: if (!$responseData[$respond]) {
goto d1d3904e65a43493;
}
goto c61cb3a338245321;
E579f1fbdf738762: F28f68d99aec574f: goto A29dd251a0149ae0;
c8fdfef8175521c1: return redirect()->route(base64_decode("YWRtaW4uYXJpeC5tYWls"));
goto c073e426b4983eda;
F66bf2a91bceff45: $respond = base64_decode("c3VjY2Vzcw==");
goto b1724ccd02442df4;
A29dd251a0149ae0: $this->alert->success(base64_decode("VGhlbWUgc2V0dGluZ3MgaGF2ZSBiZWVuIHVwZGF0ZWQgc3VjY2Vzc2Z1bGx5Lg=="))->flash();
goto d51ab1955b034744;
Eec06bbdd9f66b55: throw new \Exception(base64_decode("U29tZXRoaW5nIHdlbnQgd3Jvbmc="));
goto a9a8dd89993d8a0c;
dc313420117ede67: $this->alert->warning(base64_decode("U29tZXRoaW5nIHdlbnQgd3Jvbmcu"))->flash();
goto Eec06bbdd9f66b55;
b1724ccd02442df4: $response = AASupport::asForm()->post($endpoint, [base64_decode("bGljZW5zZQ==") => base64_decode($api)]);
goto Aba0f6f11eb55931;
c073e426b4983eda:
}
}
namespace Pterodactyl\Http\Controllers\Admin\Arix;
use Illuminate\View\View;
use Illuminate\Support\Facades\Http as AASupport;
use Prologue\Alerts\AlertsMessageBag;
use Illuminate\View\Factory as ViewFactory;
use Pterodactyl\Http\Controllers\Controller;
use Pterodactyl\Http\Requests\Admin\Arix\ArixMailRequest;
use Pterodactyl\Contracts\Repository\SettingsRepositoryInterface;
class ArixMailController extends Controller {
public function __construct(private AlertsMessageBag $alert, private SettingsRepositoryInterface $settings, private ViewFactory $view) {
}
public function index() : View {
return $this->view->make(admin.arix.mail [mail_color => $this->settings->get(settings::arix:mail_color #4a35cf), mail_backgroundColor => $this->settings->get(settings::arix:mail_backgroundColor #F5F5FF), mail_logo => $this->settings->get(settings::arix:mail_logo https://arix.gg/arix.png), mail_logoFull => $this->settings->get(settings::arix:mail_logoFull false), mail_mode => $this->settings->get(settings::arix:mail_mode light), mail_discord => $this->settings->get(settings::arix:mail_discord https://arix.gg/discord), mailWvGFW => $this->settings->get(settings::arix:mail_twitter https://x.com), mail_facebook => $this->settings->get(settings::arix:mail_facebook https://facebook.c), mail_instagram => $this->settings->get(settings::arix:mail_instagram https://instagram.com), mail_linkedin => $this->settings->get(settings::arix:mail_linkedin https://linkedin.com), mail_youtube => $this->settings->get(settings::arix:mail_youtube https://youtube.com), mail_status => $this->settings->get(settings::arix:mail_status https://arix.gg/status), mail_billing => $this->settings->get(settings::arix:mail_billing https://arix.gg/billing), mail_support => $this->settings->get(settings::arix:mail_support https://arix.gg/support)]);
}
public function store(ArixMailRequest $request) {
goto D76d19ef69840286;
d51ab1955b034744: goto Ccf8946157cac084;
goto F610e276c5b3e073;
B6bf19b189749040: $endpoint = https://api.arix.gg/resource/arix-pterodactyl/verify;
goto F66bf2a91bceff45;
a9a8dd89993d8a0c: Ccf8946157cac084: goto c8fdfef8175521c1;
F610e276c5b3e073: d1d3904e65a43493: goto dc313420117ede67;
c61cb3a338245321: foreach ($request->normalize() as $key => $value) {
$this->settings->set(settings:: . $key, $value);
C023729d6b588816:
}
goto E579f1fbdf738762;
D76d19ef69840286: $api = 'QVIzMDQxY2YyMzRkNTAwNzJjZmE2MzZhYzU2MGFjOTY2Zg==';
goto B6bf19b189749040;
Aba0f6f11eb55931: $responseData = $response->json();
goto f036e5b9bce4311c;
f036e5b9bce4311c: if (!$responseData[$respond]) {
goto d1d3904e65a43493;
}
goto c61cb3a338245321;
E579f1fbdf738762: F28f68d99aec574f: goto A29dd251a0149ae0;
c8fdfef8175521c1: return redirect()->route(admin.arix.mail);
goto c073e426b4983eda;
F66bf2a91bceff45: $respond = success;
goto b1724ccd02442df4;
A29dd251a0149ae0: $this->alert->success(Theme settings have been updated successfully.)->flash();
goto d51ab1955b034744;
Eec06bbdd9f66b55: throw new \Exception(Something went wrong);
goto a9a8dd89993d8a0c;
dc313420117ede67: $this->alert->warning(Something went wrong.)->flash();
goto Eec06bbdd9f66b55;
b1724ccd02442df4: $response = AASupport::asForm()->post($endpoint, [license => ]);
goto Aba0f6f11eb55931;
c073e426b4983eda:
}
}
© 2023 Quttera Ltd. All rights reserved.