From 453c2d1183e9fcfe262a03e22365de5c76abd877 Mon Sep 17 00:00:00 2001 From: George Halkiadakis Date: Mon, 12 Jun 2023 21:59:00 +0300 Subject: set viewport meta for mobile devices --- public/.htaccess | 65 +----- public/app/controllers/JsonToForm.php | 265 ---------------------- public/app/views/components/header_includes.php | 6 +- public/app/views/error/404.php | 1 + public/app/views/error/general.php | 1 + public/app/views/group.php | 13 -- public/app/views/item.php | 4 - public/app/views/templates/admin_petitions.php | 3 +- public/app/views/templates/admin_users.php | 3 +- public/app/views/templates/application.php | 1 + public/app/views/templates/create_pdf.php | 1 + public/app/views/templates/invite.php | 5 +- public/app/views/templates/penalty.php | 1 + public/app/views/user/control.php | 1 + public/app/views/user/invitation.php | 1 + public/app/views/user/login.php | 5 +- public/app/views/user/panel.php | 3 +- public/app/views/user/update_password.php | 5 +- public/app/views/user/update_properties.php | 5 +- public/app/views/welcome.php | 280 ------------------------ 20 files changed, 39 insertions(+), 630 deletions(-) delete mode 100644 public/app/views/group.php delete mode 100644 public/app/views/item.php delete mode 100644 public/app/views/welcome.php (limited to 'public') diff --git a/public/.htaccess b/public/.htaccess index fbc5167..d4d7c3d 100644 --- a/public/.htaccess +++ b/public/.htaccess @@ -1,59 +1,6 @@ ## Introduce the Server Header add Origin-Name coder - - - # # Data interchange - # - # # 2.2.x+ - # AddType text/xml xml - # # 2.2.x - 2.4.x - # AddType application/json json - # AddType application/rss+xml rss - # # 2.4.x+ - # AddType application/json map - # - # # JavaScript - # # 2.2.x+ - # # See: https://html.spec.whatwg.org/multipage/scripting.html#scriptingLanguages. - AddType apprication/javascript js mjs - - # # Manifest files - # # 2.2.x+ - # AddType application/manifest+json webmanifest - # AddType text/cache-manifest appcache - # - # # Media files - # # 2.2.x - 2.4.x - # AddType audio/mp4 f4a f4b m4a - # AddType audio/ogg oga ogg spx - # AddType video/mp4 mp4 mp4v mpg4 - # AddType video/ogg ogv - # AddType video/webm webm - # AddType video/x-flv flv - # # 2.2.x+ - # AddType image/svg+xml svgz - # AddType image/x-icon cur - # # 2.4.x+ - AddType image/webp webp - - # # Web fonts - # # 2.2.x - 2.4.x - # AddType application/vnd.ms-fontobject eot - # # 2.2.x+ - AddType font/woff woff - AddType font/woff2 woff2 - AddType font/ttf ttf - AddType font/collection ttc - AddType font/otf otf - - # # Other - # # 2.2.x+ - # AddType text/vtt vtt - - - - ### Deny access to specific folders ## deny all files too @@ -117,14 +64,14 @@ AddOutputFilterByType DEFLATE application/json ### ### CACHE-CONTROL HEADERS # CACHE-CONTROL IMAGES 100days -### -### Header set Cache-Control "max-age=8640000, public" -### + + Header set Cache-Control "max-age=8640000, public" + # CACHE-CONTROL FONTS 200days -### -### Header set Cache-Control "max-age=17280000, public" -### + + Header set Cache-Control "max-age=17280000, public" + # CACHE-CONTROL CSS and JS 30days ### diff --git a/public/app/controllers/JsonToForm.php b/public/app/controllers/JsonToForm.php index 5e16472..db8af11 100644 --- a/public/app/controllers/JsonToForm.php +++ b/public/app/controllers/JsonToForm.php @@ -417,268 +417,3 @@ class JsonToForm $ref2Select2JS = ""; // references to Select2-controls Javascript $initSelectsJS = ""; // js to initialize select fields (single or multiple) */ - - - /** post-DOM-end + scripts - * - * - * - * - * - * - * - * - * - * - * - * - * - * - */ diff --git a/public/app/views/components/header_includes.php b/public/app/views/components/header_includes.php index 9e1d239..ab16da1 100644 --- a/public/app/views/components/header_includes.php +++ b/public/app/views/components/header_includes.php @@ -58,9 +58,11 @@ + - - + + + diff --git a/public/app/views/error/404.php b/public/app/views/error/404.php index 41f17da..95ec039 100644 --- a/public/app/views/error/404.php +++ b/public/app/views/error/404.php @@ -21,6 +21,7 @@ + <?=$error_code?> : <?= $moto ?? 'Not found' ?> - - - -
-
- - - - -
-
- - - - - - - - - - - -- cgit v1.2.3