From 50656078a6768b5d71ac711f1822a6f671d49445 Mon Sep 17 00:00:00 2001 From: "E. S." Date: Sun, 31 Dec 2023 10:37:12 +0000 Subject: [PATCH] upd --- classes/handler/AboutHandler.php | 4 +--- htdocs/index.php | 3 +-- htdocs/yandex_6b8e89dc241d9757.html | 6 ++++++ skin/main.phps | 20 -------------------- 4 files changed, 8 insertions(+), 25 deletions(-) create mode 100644 htdocs/yandex_6b8e89dc241d9757.html diff --git a/classes/handler/AboutHandler.php b/classes/handler/AboutHandler.php index e49ede0..f28be66 100644 --- a/classes/handler/AboutHandler.php +++ b/classes/handler/AboutHandler.php @@ -7,10 +7,8 @@ use Response; class AboutHandler extends \RequestHandler { public function get(): Response { - global $config; $this->skin->title = $this->lang['contacts']; - return $this->skin->renderPage('main/contacts', - email: $config['admin_email']); + return $this->skin->renderPage('main/contacts'); } } \ No newline at end of file diff --git a/htdocs/index.php b/htdocs/index.php index 8e02c8e..da5850e 100644 --- a/htdocs/index.php +++ b/htdocs/index.php @@ -6,7 +6,6 @@ $r = (new Router()) // route handler input // ----- ------- ----- ->add('/', 'index') - //->add('about/', 'about') ->add('([a-zA-Z0-9\-]+)/', 'auto name=$(1)') ->add('feed.rss', 'RSS') @@ -16,7 +15,7 @@ $r = (new Router()) ->add('([a-zA-Z0-9\-]+)/{delete,edit}/', 'admin/auto_${1} short_name=$(1)') ->add('([a-zA-Z0-9\-]+)/create/', 'admin/page_add short_name=$(1)') - ->add('write/', 'admin/post_add') + //->add('write/', 'admin/post_add') ->add('admin/markdown-preview.ajax', 'admin/markdown_preview') ->add('uploads/', 'admin/uploads') diff --git a/htdocs/yandex_6b8e89dc241d9757.html b/htdocs/yandex_6b8e89dc241d9757.html new file mode 100644 index 0000000..f51ab5c --- /dev/null +++ b/htdocs/yandex_6b8e89dc241d9757.html @@ -0,0 +1,6 @@ + + + + + Verification: 6b8e89dc241d9757 + \ No newline at end of file diff --git a/skin/main.phps b/skin/main.phps index 08783a9..5060a8f 100644 --- a/skin/main.phps +++ b/skin/main.phps @@ -82,26 +82,6 @@ HTML; } -// contacts page -// ------------- - -function contacts($ctx, $email) { -return << - - -
Feel free to contact me by any of the following means:
- - - - Tox ID: - 4F6E82D285B342CAE83687FA63F1B083A9FD053C8BE08C709E25491C74E6016CB52C987692C3 - - -HTML; - -} - // any page // --------