From 40e67b0c0c549d62be3c53ddcf57080bd797c27b Mon Sep 17 00:00:00 2001 From: Miraty Date: Mon, 17 Jul 2023 21:15:18 +0200 Subject: [PATCH] declare(strict_types=1); --- fn/auth.php | 2 +- fn/common.php | 2 +- fn/dns.php | 2 +- fn/ht.php | 2 +- fn/ns.php | 2 +- fn/reg.php | 2 +- init.php | 2 +- jobs/check.php | 3 ++- jobs/delete-old-testing.php | 2 +- jobs/ns-sync.php | 2 +- jobs/reg-cds.php | 2 +- jobs/reg-csync.php | 2 +- pages.php | 2 +- pg-act/auth/approval.php | 2 +- pg-act/auth/login.php | 2 +- pg-act/auth/logout.php | 3 --- pg-act/auth/password.php | 2 +- pg-act/auth/register.php | 2 +- pg-act/auth/unregister.php | 2 +- pg-act/auth/username.php | 2 +- pg-act/ht/add-dns.php | 2 +- pg-act/ht/add-onion.php | 2 +- pg-act/ht/add-subdomain.php | 2 +- pg-act/ht/add-subpath.php | 2 +- pg-act/ht/del.php | 2 +- pg-act/ht/keys.php | 2 +- pg-act/ns/caa.php | 2 +- pg-act/ns/cname.php | 2 +- pg-act/ns/dname.php | 2 +- pg-act/ns/edit.php | 2 +- pg-act/ns/ip.php | 2 +- pg-act/ns/loc.php | 2 +- pg-act/ns/mx.php | 2 +- pg-act/ns/ns.php | 2 +- pg-act/ns/print.php | 2 +- pg-act/ns/srv.php | 2 +- pg-act/ns/sshfp.php | 2 +- pg-act/ns/sync.php | 2 +- pg-act/ns/tlsa.php | 2 +- pg-act/ns/txt.php | 2 +- pg-act/ns/zone-add.php | 2 +- pg-act/ns/zone-del.php | 2 +- pg-act/reg/ds.php | 2 +- pg-act/reg/glue.php | 2 +- pg-act/reg/ns.php | 2 +- pg-act/reg/print.php | 2 +- pg-act/reg/register.php | 2 +- pg-act/reg/transfer.php | 2 +- pg-act/reg/unregister.php | 2 +- pg-view/auth/approval.php | 1 + pg-view/auth/index.php | 1 + pg-view/auth/login.php | 1 + pg-view/auth/logout.php | 2 +- pg-view/auth/password.php | 1 + pg-view/auth/register.php | 1 + pg-view/auth/unregister.php | 1 + pg-view/auth/username.php | 1 + pg-view/ht/add-dns.php | 1 + pg-view/ht/add-onion.php | 1 + pg-view/ht/add-subdomain.php | 1 + pg-view/ht/add-subpath.php | 1 + pg-view/ht/del.php | 1 + pg-view/ht/index.php | 1 + pg-view/ht/keys.php | 1 + pg-view/index.php | 1 + pg-view/ns/caa.php | 1 + pg-view/ns/cname.php | 1 + pg-view/ns/dname.php | 1 + pg-view/ns/edit.php | 1 + pg-view/ns/form.ns.php | 1 + pg-view/ns/index.php | 1 + pg-view/ns/ip.php | 1 + pg-view/ns/loc.php | 1 + pg-view/ns/mx.php | 1 + pg-view/ns/ns.php | 1 + pg-view/ns/print.php | 1 + pg-view/ns/srv.php | 1 + pg-view/ns/sshfp.php | 1 + pg-view/ns/sync.php | 1 + pg-view/ns/tlsa.php | 1 + pg-view/ns/txt.php | 1 + pg-view/ns/zone-add.php | 1 + pg-view/ns/zone-del.php | 1 + pg-view/reg/ds.php | 1 + pg-view/reg/glue.php | 1 + pg-view/reg/index.php | 1 + pg-view/reg/ns.php | 1 + pg-view/reg/print.php | 1 + pg-view/reg/register.php | 1 + pg-view/reg/select-action.inc.php | 1 + pg-view/reg/select-domain.inc.php | 1 + pg-view/reg/transfer.php | 1 + pg-view/reg/unregister.php | 1 + router.php | 2 +- sftpgo-auth.php | 3 ++- view.php | 1 + 96 files changed, 97 insertions(+), 54 deletions(-) delete mode 100644 pg-act/auth/logout.php diff --git a/fn/auth.php b/fn/auth.php index fd3d48f..240f8ea 100644 --- a/fn/auth.php +++ b/fn/auth.php @@ -1,4 +1,4 @@ - 10800, diff --git a/fn/reg.php b/fn/reg.php index c49e6c4..d71b8f3 100644 --- a/fn/reg.php +++ b/fn/reg.php @@ -1,4 +1,4 @@ - [ diff --git a/pg-act/auth/approval.php b/pg-act/auth/approval.php index 9a8a046..b6f568e 100644 --- a/pg-act/auth/approval.php +++ b/pg-act/auth/approval.php @@ -1,4 +1,4 @@ -dir.'); diff --git a/pg-act/ht/add-subdomain.php b/pg-act/ht/add-subdomain.php index 0a1b667..b47234c 100644 --- a/pg-act/ht/add-subdomain.php +++ b/pg-act/ht/add-subdomain.php @@ -1,4 +1,4 @@ -dir.'); diff --git a/pg-act/ht/add-subpath.php b/pg-act/ht/add-subpath.php index e0bb139..8a0fa27 100644 --- a/pg-act/ht/add-subpath.php +++ b/pg-act/ht/add-subpath.php @@ -1,4 +1,4 @@ -dir.'); diff --git a/pg-act/ht/del.php b/pg-act/ht/del.php index 476cfcc..8b25929 100644 --- a/pg-act/ht/del.php +++ b/pg-act/ht/del.php @@ -1,4 +1,4 @@ -subpath|subdomain|onion|dns):(?
[a-z0-9._-]{1,256})$/D', $_POST['site'], $site) !== 1) output(403, 'Malformed value for site.'); diff --git a/pg-act/ht/keys.php b/pg-act/ht/keys.php index 3ff46aa..2d537df 100755 --- a/pg-act/ht/keys.php +++ b/pg-act/ht/keys.php @@ -1,4 +1,4 @@ - 8) diff --git a/pg-act/ns/caa.php b/pg-act/ns/caa.php index ee528a6..8012efe 100644 --- a/pg-act/ns/caa.php +++ b/pg-act/ns/caa.php @@ -1,4 +1,4 @@ - 8) diff --git a/pg-act/ns/tlsa.php b/pg-act/ns/tlsa.php index de5241e..5550e00 100644 --- a/pg-act/ns/tlsa.php +++ b/pg-act/ns/tlsa.php @@ -1,4 +1,4 @@ -algo.'); diff --git a/pg-act/reg/glue.php b/pg-act/reg/glue.php index a7a8ca9..60177a2 100644 --- a/pg-act/reg/glue.php +++ b/pg-act/reg/glue.php @@ -1,4 +1,4 @@ -

diff --git a/pg-view/auth/index.php b/pg-view/auth/index.php index e0d156b..1ef1675 100644 --- a/pg-view/auth/index.php +++ b/pg-view/auth/index.php @@ -1,3 +1,4 @@ +

diff --git a/pg-view/auth/login.php b/pg-view/auth/login.php index 1adf3be..55a438c 100644 --- a/pg-view/auth/login.php +++ b/pg-view/auth/login.php @@ -1,3 +1,4 @@ +

diff --git a/pg-view/auth/logout.php b/pg-view/auth/logout.php index bf11e4b..1459a06 100644 --- a/pg-view/auth/logout.php +++ b/pg-view/auth/logout.php @@ -1,3 +1,3 @@ -

diff --git a/pg-view/auth/register.php b/pg-view/auth/register.php index 5ecc0ab..3eda2a0 100644 --- a/pg-view/auth/register.php +++ b/pg-view/auth/register.php @@ -1,3 +1,4 @@ +

' . _('Registrations are currently closed on this installation.') . '

' : '' ?> diff --git a/pg-view/auth/unregister.php b/pg-view/auth/unregister.php index f517c39..cfdb1ff 100644 --- a/pg-view/auth/unregister.php +++ b/pg-view/auth/unregister.php @@ -1,3 +1,4 @@ +

diff --git a/pg-view/auth/username.php b/pg-view/auth/username.php index 1bba92e..95a6397 100644 --- a/pg-view/auth/username.php +++ b/pg-view/auth/username.php @@ -1,3 +1,4 @@ +

diff --git a/pg-view/ht/add-dns.php b/pg-view/ht/add-dns.php index 96d665e..02432cf 100644 --- a/pg-view/ht/add-dns.php +++ b/pg-view/ht/add-dns.php @@ -1,3 +1,4 @@ +

diff --git a/pg-view/ht/add-onion.php b/pg-view/ht/add-onion.php index 40f6bed..aa04ecd 100644 --- a/pg-view/ht/add-onion.php +++ b/pg-view/ht/add-onion.php @@ -1,3 +1,4 @@ +
diff --git a/pg-view/ht/index.php b/pg-view/ht/index.php index 388877d..e55b292 100644 --- a/pg-view/ht/index.php +++ b/pg-view/ht/index.php @@ -1,3 +1,4 @@ +

diff --git a/pg-view/ht/keys.php b/pg-view/ht/keys.php index 3f613ef..4529576 100755 --- a/pg-view/ht/keys.php +++ b/pg-view/ht/keys.php @@ -1,3 +1,4 @@ +

/) or to any arbitrary subdirectory. A key is always allowed to list any directory content.') ?>

diff --git a/pg-view/index.php b/pg-view/index.php index 355c09c..ba564cb 100644 --- a/pg-view/index.php +++ b/pg-view/index.php @@ -1,3 +1,4 @@ +