Dev->3.0 RC #5
66
CHANGELOG.md
66
CHANGELOG.md
@@ -1,51 +1,48 @@
|
|||||||
<!--
|
<!-- Copyright (C) 2025 Moko Consulting <hello@mokoconsulting.tech>
|
||||||
=========================================================================
|
|
||||||
Copyright (C) 2025 Moko Consulting <hello@mokoconsulting.tech>
|
|
||||||
|
|
||||||
This file is part of a Moko Consulting project.
|
This file is part of a Moko Consulting project.
|
||||||
|
|
||||||
SPDX-License-Identifier: GPL-3.0-or-later
|
SPDX-License-Identifier: GPL-3.0-or-later
|
||||||
|
|
||||||
This program is free software; you can redistribute it and/or modify
|
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3 of the License, or
|
||||||
it under the terms of the GNU General Public License as published by
|
|
||||||
the Free Software Foundation; either version 3 of the License, or
|
|
||||||
(at your option) any later version.
|
(at your option) any later version.
|
||||||
|
|
||||||
This program is distributed in the hope that it will be useful,
|
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
|
||||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
||||||
GNU General Public License for more details.
|
|
||||||
|
|
||||||
You should have received a copy of the GNU General Public License
|
You should have received a copy of the GNU General Public License along with this program. If not, see https://www.gnu.org/licenses/ .
|
||||||
along with this program. If not, see https://www.gnu.org/licenses/ .
|
|
||||||
=========================================================================
|
# FILE INFORMATION
|
||||||
FILE INFORMATION
|
|
||||||
DEFGROUP: Joomla
|
DEFGROUP: Joomla
|
||||||
INGROUP: Moko-Cassiopeia
|
INGROUP: Moko-Cassiopeia
|
||||||
PATH: CHANGELOG.md
|
PATH: CHANGELOG.md
|
||||||
VERSION: 02.01.05
|
VERSION: 02.01.05
|
||||||
BRIEF: Changelog file documenting version history of Moko-Cassiopeia
|
BRIEF: Changelog file documenting version history of Moko-Cassiopeia
|
||||||
=========================================================================
|
-->
|
||||||
-->
|
|
||||||
|
|
||||||
Changelog — Moko-Cassiopeia
|
# Changelog — Moko-Cassiopeia
|
||||||
|
|
||||||
# Version 02.01.05 (2025-09-04)
|
## [TODO]
|
||||||
**Minor Release**
|
- `./docs/*`
|
||||||
|
|
||||||
## Fixed
|
## [03.00 RC]
|
||||||
|
### Removed
|
||||||
|
- `./CODE_OF_CONDUCT.md`
|
||||||
|
- `./CONTRIBUTING.md`
|
||||||
|
|
||||||
|
### Updated
|
||||||
|
- Copyright Headers to MokoCodingDefaults standards
|
||||||
|
|
||||||
|
### Added
|
||||||
|
-
|
||||||
|
|
||||||
|
## [02.01.05] 2025-09-04
|
||||||
- Removed vmbasic.css
|
- Removed vmbasic.css
|
||||||
- Repaired temaplte.css and colors_standard.css
|
- Repaired temaplte.css and colors_standard.css
|
||||||
|
|
||||||
|
## [2.00.00] 2025-08-30
|
||||||
# Version 02.00.00 (2025-08-30)
|
### Added
|
||||||
|
|
||||||
**Major Release** — introduces the long-awaited **Dark Mode Toggle**, streamlining accessibility and usability enhancements.
|
|
||||||
|
|
||||||
## Added
|
|
||||||
|
|
||||||
* **Dark Mode Toggle**
|
* **Dark Mode Toggle**
|
||||||
|
|
||||||
* Frontend toggle switch included in template.
|
* Frontend toggle switch included in template.
|
||||||
* JavaScript handles switching between light/dark modes.
|
* JavaScript handles switching between light/dark modes.
|
||||||
* Dark mode CSS rules applied across template styles.
|
* Dark mode CSS rules applied across template styles.
|
||||||
@@ -61,23 +58,16 @@ Changelog — Moko-Cassiopeia
|
|||||||
* Automatic TOC injection when enabled.
|
* Automatic TOC injection when enabled.
|
||||||
* User selects placement via article > options > layout (`toc-left` or `toc-right`).
|
* User selects placement via article > options > layout (`toc-left` or `toc-right`).
|
||||||
|
|
||||||
## Improved
|
### Updated
|
||||||
|
|
||||||
* Cleaned up `index.php` by removing **skip-to-content** duplicate calls.
|
* Cleaned up `index.php` by removing **skip-to-content** duplicate calls.
|
||||||
* Consolidated JavaScript asset loading (ensuring dark-mode script is loaded correctly from external JS file).
|
* Consolidated JavaScript asset loading (ensuring dark-mode script is loaded correctly from external JS file).
|
||||||
* Streamlined CSS for **toggle switch**, ensuring it inherits Bootstrap/Cassiopeia defaults.
|
* Streamlined CSS for **toggle switch**, ensuring it inherits Bootstrap/Cassiopeia defaults.
|
||||||
* General accessibility refinements in typography and color contrast.
|
* General accessibility refinements in typography and color contrast.
|
||||||
|
|
||||||
## Fixed
|
|
||||||
|
|
||||||
* Fixed missing **logo param** in header output.
|
* Fixed missing **logo param** in header output.
|
||||||
* Corrected stylesheet inconsistencies between Bootstrap 5 helpers and template overrides.
|
* Corrected stylesheet inconsistencies between Bootstrap 5 helpers and template overrides.
|
||||||
* Patched redundant calls in script includes.
|
* Patched redundant calls in script includes.
|
||||||
|
|
||||||
---
|
|
||||||
|
|
||||||
#Previous Versions
|
|
||||||
|
|
||||||
## 01.00.00
|
## 01.00.00
|
||||||
|
|
||||||
* **Initial Public Release** with:
|
* **Initial Public Release** with:
|
||||||
@@ -87,7 +77,5 @@ Changelog — Moko-Cassiopeia
|
|||||||
* Automatic Table of Contents (TOC) utility
|
* Automatic Table of Contents (TOC) utility
|
||||||
* Moko Expansions: Google Tag Manager / GA4 hooks
|
* Moko Expansions: Google Tag Manager / GA4 hooks
|
||||||
|
|
||||||
---
|
|
||||||
|
|
||||||
For the full development roadmap, visit:
|
For the full development roadmap, visit:
|
||||||
[Moko-Cassiopeia Roadmap](https://mokoconsulting.tech/support/joomla-cms/moko-cassiopeia-roadmap)
|
[Moko-Cassiopeia Roadmap](https://mokoconsulting.tech/support/joomla-cms/moko-cassiopeia-roadmap)
|
||||||
|
|||||||
@@ -1,63 +0,0 @@
|
|||||||
<!--
|
|
||||||
=========================================================================
|
|
||||||
Copyright (C) 2025 Moko Consulting <hello@mokoconsulting.tech>
|
|
||||||
|
|
||||||
This file is part of a Moko Consulting project.
|
|
||||||
|
|
||||||
SPDX-License-Identifier: GPL-3.0-or-later
|
|
||||||
|
|
||||||
This program is free software; you can redistribute it and/or modify
|
|
||||||
it under the terms of the GNU General Public License as published by
|
|
||||||
the Free Software Foundation; either version 3 of the License, or
|
|
||||||
(at your option) any later version.
|
|
||||||
|
|
||||||
This program is distributed in the hope that it will be useful,
|
|
||||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
||||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
||||||
GNU General Public License for more details.
|
|
||||||
|
|
||||||
You should have received a copy of the GNU General Public License
|
|
||||||
along with this program. If not, see https://www.gnu.org/licenses/ .
|
|
||||||
=========================================================================
|
|
||||||
FILE INFORMATION
|
|
||||||
DEFGROUP: Joomla
|
|
||||||
INGROUP: Moko-Cassiopeia
|
|
||||||
PATH: CODE_OF_CONDUCT.md
|
|
||||||
VERSION: 02.01.05
|
|
||||||
BRIEF: Contributor Code of Conduct for Moko-Cassiopeia project
|
|
||||||
=========================================================================
|
|
||||||
-->
|
|
||||||
|
|
||||||
# Code of Conduct
|
|
||||||
|
|
||||||
## Our Pledge
|
|
||||||
|
|
||||||
We as members, contributors, and leaders pledge to make participation in our community a harassment-free experience for everyone, regardless of age, body size, disability, ethnicity, gender identity and expression, level of experience, education, socio-economic status, nationality, personal appearance, race, religion, or sexual identity and orientation.
|
|
||||||
|
|
||||||
## Our Standards
|
|
||||||
|
|
||||||
Examples of behavior that contributes to a positive environment for our community include:
|
|
||||||
- Using welcoming and inclusive language
|
|
||||||
- Being respectful of differing viewpoints and experiences
|
|
||||||
- Gracefully accepting constructive criticism
|
|
||||||
- Focusing on what is best for the community
|
|
||||||
- Showing empathy towards other community members
|
|
||||||
|
|
||||||
Examples of unacceptable behavior include:
|
|
||||||
- Trolling, insulting/derogatory comments, and personal or political attacks
|
|
||||||
- Public or private harassment
|
|
||||||
- Publishing others' private information without explicit permission
|
|
||||||
- Any conduct that could reasonably be considered inappropriate in a professional setting
|
|
||||||
|
|
||||||
## Enforcement Responsibilities
|
|
||||||
|
|
||||||
Community leaders are responsible for clarifying and enforcing our standards of acceptable behavior and will take appropriate and fair corrective action in response to any behavior they deem inappropriate, threatening, offensive, or harmful.
|
|
||||||
|
|
||||||
## Enforcement
|
|
||||||
|
|
||||||
Instances of abusive, harassing, or otherwise unacceptable behavior may be reported to the project team at [hello@mokoconsulting.tech](mailto:hello@mokoconsulting.tech). All complaints will be reviewed and investigated promptly and fairly.
|
|
||||||
|
|
||||||
---
|
|
||||||
|
|
||||||
© 2025 Moko Consulting. Licensed under the GNU General Public License v3.0 or later (GPL-3.0-or-later).
|
|
||||||
|
|
||||||
@@ -1,76 +0,0 @@
|
|||||||
<!--
|
|
||||||
=========================================================================
|
|
||||||
Copyright (C) 2025 Moko Consulting <hello@mokoconsulting.tech>
|
|
||||||
|
|
||||||
This file is part of a Moko Consulting project.
|
|
||||||
|
|
||||||
SPDX-License-Identifier: GPL-3.0-or-later
|
|
||||||
|
|
||||||
This program is free software; you can redistribute it and/or modify
|
|
||||||
it under the terms of the GNU General Public License as published by
|
|
||||||
the Free Software Foundation; either version 3 of the License, or
|
|
||||||
(at your option) any later version.
|
|
||||||
|
|
||||||
This program is distributed in the hope that it will be useful,
|
|
||||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
||||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
||||||
GNU General Public License for more details.
|
|
||||||
|
|
||||||
You should have received a copy of the GNU General Public License
|
|
||||||
along with this program. If not, see https://www.gnu.org/licenses/ .
|
|
||||||
=========================================================================
|
|
||||||
FILE INFORMATION
|
|
||||||
DEFGROUP: Joomla
|
|
||||||
INGROUP: Moko-Cassiopeia
|
|
||||||
PATH: CONTRIBUTING.md
|
|
||||||
VERSION: 02.01.05
|
|
||||||
BRIEF: Contribution guidelines for the Moko-Cassiopeia project
|
|
||||||
=========================================================================
|
|
||||||
-->
|
|
||||||
|
|
||||||
# Contributing Guidelines
|
|
||||||
|
|
||||||
Thank you for considering contributing to this project! We welcome contributions from the community and are grateful for your support.
|
|
||||||
|
|
||||||
## 📋 How to Contribute
|
|
||||||
|
|
||||||
1. **Fork the repository**
|
|
||||||
|
|
||||||
- Click the "Fork" button at the top of the repository page.
|
|
||||||
|
|
||||||
2. **Create a branch**
|
|
||||||
|
|
||||||
```bash
|
|
||||||
git checkout -b feature/your-feature-name
|
|
||||||
```
|
|
||||||
|
|
||||||
3. **Make your changes**
|
|
||||||
|
|
||||||
- Follow the existing code style.
|
|
||||||
- Write clear commit messages.
|
|
||||||
|
|
||||||
4. **Test your changes**
|
|
||||||
|
|
||||||
- Ensure all tests pass and new code is covered.
|
|
||||||
|
|
||||||
5. **Submit a pull request (PR)**
|
|
||||||
|
|
||||||
- Push your branch to your fork.
|
|
||||||
- Open a PR against the `main` branch.
|
|
||||||
|
|
||||||
---
|
|
||||||
|
|
||||||
## 🛠 Development Guidelines
|
|
||||||
|
|
||||||
- Use `.editorconfig` for consistent formatting.
|
|
||||||
- Keep commits focused — one feature/fix per commit.
|
|
||||||
- Write documentation for new features.
|
|
||||||
|
|
||||||
## 📜 Code of Conduct
|
|
||||||
|
|
||||||
By participating in this project, you agree to follow our [Code of Conduct](CODE_OF_CONDUCT.md).
|
|
||||||
|
|
||||||
---
|
|
||||||
|
|
||||||
© 2025 Moko Consulting. Licensed under the GNU General Public License v3.0 or later (GPL-3.0-or-later).
|
|
||||||
|
|
||||||
57
README.md
57
README.md
@@ -1,36 +1,27 @@
|
|||||||
<!--
|
<!-- Copyright (C) 2025 Moko Consulting <hello@mokoconsulting.tech>
|
||||||
========================================================================
|
|
||||||
Copyright (C) 2025 Moko Consulting <hello@mokoconsulting.tech>
|
|
||||||
|
|
||||||
This file is part of a Moko Consulting project.
|
This file is part of a Moko Consulting project.
|
||||||
|
|
||||||
SPDX-License-Identifier: GPL-3.0-or-later
|
SPDX-License-Identifier: GPL-3.0-or-later
|
||||||
|
|
||||||
This program is free software; you can redistribute it and/or modify
|
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3 of the License, or
|
||||||
it under the terms of the GNU General Public License as published by
|
|
||||||
the Free Software Foundation; either version 3 of the License, or
|
|
||||||
(at your option) any later version.
|
(at your option) any later version.
|
||||||
|
|
||||||
This program is distributed in the hope that it will be useful,
|
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
|
||||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
||||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
||||||
GNU General Public License for more details.
|
|
||||||
|
|
||||||
You should have received a copy of the GNU General Public License
|
You should have received a copy of the GNU General Public License along with this program. If not, see https://www.gnu.org/licenses/ .
|
||||||
along with this program. If not, see https://www.gnu.org/licenses/ .
|
|
||||||
========================================================================
|
|
||||||
|
|
||||||
FILE INFORMATION
|
# FILE INFORMATION
|
||||||
INGROUP: Template
|
DEFGROUP: Joomla
|
||||||
FILE: README.md
|
INGROUP: Template
|
||||||
VERSION: 02.01.05
|
FILE: ./README.md
|
||||||
BRIEF: Documentation for Moko-Cassiopeia template
|
VERSION: 03.00 RC
|
||||||
PATH: /templates/moko-cassiopeia/
|
BRIEF: Documentation for Moko-Cassiopeia template
|
||||||
NOTE: Includes Dark Mode and Soft Offline Mode
|
PATH: /templates/moko-cassiopeia/
|
||||||
VARIABLES: None
|
NOTE: Includes Dark Mode and Soft Offline Mode
|
||||||
-->
|
-->
|
||||||
|
|
||||||
# Moko-Cassiopeia (v02.01.05)
|
# Moko-Cassiopeia (v03.00 RC)
|
||||||
|
|
||||||
A modern, lightweight enhancement layer for Joomla's Cassiopeia
|
A modern, lightweight enhancement layer for Joomla's Cassiopeia
|
||||||
template.
|
template.
|
||||||
@@ -40,8 +31,6 @@ Expansions** including **Google Tag Manager** and **Google Analytics
|
|||||||
(GA4)** hooks---all while keeping core template overrides minimal and
|
(GA4)** hooks---all while keeping core template overrides minimal and
|
||||||
upgrade-friendly.
|
upgrade-friendly.
|
||||||
|
|
||||||
------------------------------------------------------------------------
|
|
||||||
|
|
||||||
## Table of Contents
|
## Table of Contents
|
||||||
|
|
||||||
- [Features](#features)\
|
- [Features](#features)\
|
||||||
@@ -58,8 +47,6 @@ upgrade-friendly.
|
|||||||
- [Changelog](#changelog)\
|
- [Changelog](#changelog)\
|
||||||
- [Roadmap](#roadmap)
|
- [Roadmap](#roadmap)
|
||||||
|
|
||||||
------------------------------------------------------------------------
|
|
||||||
|
|
||||||
## Features
|
## Features
|
||||||
|
|
||||||
### Core Enhancements
|
### Core Enhancements
|
||||||
@@ -89,16 +76,12 @@ upgrade-friendly.
|
|||||||
during maintenance.\
|
during maintenance.\
|
||||||
- Admin can configure which categories remain accessible.
|
- Admin can configure which categories remain accessible.
|
||||||
|
|
||||||
------------------------------------------------------------------------
|
|
||||||
|
|
||||||
## Requirements
|
## Requirements
|
||||||
|
|
||||||
- Joomla **4.4.x** or **5.x**\
|
- Joomla **4.4.x** or **5.x**\
|
||||||
- PHP **8.0+**\
|
- PHP **8.0+**\
|
||||||
- MySQL/MariaDB compatible database
|
- MySQL/MariaDB compatible database
|
||||||
|
|
||||||
------------------------------------------------------------------------
|
|
||||||
|
|
||||||
## Quick Start
|
## Quick Start
|
||||||
|
|
||||||
1. Install `moko-cassiopeia.zip` via Joomla's Template Installer.\
|
1. Install `moko-cassiopeia.zip` via Joomla's Template Installer.\
|
||||||
@@ -106,16 +89,12 @@ upgrade-friendly.
|
|||||||
3. Configure template options under **System → Site Templates →
|
3. Configure template options under **System → Site Templates →
|
||||||
Moko-Cassiopeia**.
|
Moko-Cassiopeia**.
|
||||||
|
|
||||||
------------------------------------------------------------------------
|
|
||||||
|
|
||||||
## Installation
|
## Installation
|
||||||
|
|
||||||
Upload and install through Joomla's extension manager.\
|
Upload and install through Joomla's extension manager.\
|
||||||
If upgrading from a prior version, Joomla will safely overwrite files
|
If upgrading from a prior version, Joomla will safely overwrite files
|
||||||
--- no manual uninstall required.
|
--- no manual uninstall required.
|
||||||
|
|
||||||
------------------------------------------------------------------------
|
|
||||||
|
|
||||||
## Configuration
|
## Configuration
|
||||||
|
|
||||||
### Global Params
|
### Global Params
|
||||||
@@ -151,14 +130,10 @@ If upgrading from a prior version, Joomla will safely overwrite files
|
|||||||
offline/maintenance mode.\
|
offline/maintenance mode.\
|
||||||
- Useful for compliance, legal, or policy content.
|
- Useful for compliance, legal, or policy content.
|
||||||
|
|
||||||
------------------------------------------------------------------------
|
|
||||||
|
|
||||||
## Changelog
|
## Changelog
|
||||||
|
|
||||||
See the [CHANGELOG.md](./CHANGELOG.md) for detailed version history.
|
See the [CHANGELOG.md](./CHANGELOG.md) for detailed version history.
|
||||||
|
|
||||||
------------------------------------------------------------------------
|
|
||||||
|
|
||||||
## Roadmap
|
## Roadmap
|
||||||
|
|
||||||
- **2.2 (Planned)**
|
- **2.2 (Planned)**
|
||||||
|
|||||||
@@ -1,29 +1,22 @@
|
|||||||
<!--
|
<!-- Copyright (C) 2025 Moko Consulting <jmiller@mokoconsulting.tech>
|
||||||
* Copyright (C) 2025 Moko Consulting <jmiller@mokoconsulting.tech>
|
|
||||||
*
|
|
||||||
* This file is part of a Moko Consulting project.
|
|
||||||
*
|
|
||||||
* SPDX-License-Identifier: GPL-3.0-or-later
|
|
||||||
*
|
|
||||||
* This program is free software; you can redistribute it and/or modify
|
|
||||||
* it under the terms of the GNU General Public License as published by
|
|
||||||
* the Free Software Foundation; either version 3 of the License, or
|
|
||||||
* (at your option) any later version.
|
|
||||||
*
|
|
||||||
* This program is distributed in the hope that it will be useful,
|
|
||||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
||||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
||||||
* GNU General Public License for more details.
|
|
||||||
*
|
|
||||||
* You should have received a copy of the GNU General Public License
|
|
||||||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
|
||||||
-->
|
|
||||||
|
|
||||||
<!--FILE INFORMATION
|
This file is part of a Moko Consulting project.
|
||||||
* DEFGROUP: Joomla.Site
|
|
||||||
* INGROUP: Templates.Moko-Cassiopeia
|
SPDX-License-Identifier: GPL-3.0-or-later
|
||||||
* FILE: index.html
|
|
||||||
* BRIEF: Security redirect page to block folder access and forward to site root.
|
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3 of the License, or
|
||||||
|
(at your option) any later version.
|
||||||
|
|
||||||
|
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
|
||||||
|
|
||||||
|
You should have received a copy of the GNU General Public License along with this program. If not, see https://www.gnu.org/licenses/ .
|
||||||
|
|
||||||
|
# FILE INFORMATION
|
||||||
|
DEFGROUP: Joomla.Site
|
||||||
|
INGROUP: Templates.Moko-Cassiopeia
|
||||||
|
FILE: ./index.html
|
||||||
|
BRIEF: Security redirect page to block folder access and forward to site root.
|
||||||
-->
|
-->
|
||||||
|
|
||||||
<!doctype html>
|
<!doctype html>
|
||||||
@@ -44,28 +37,7 @@
|
|||||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
/**
|
|
||||||
* @defgroup Dolibarr
|
|
||||||
* @file index.html (embedded script)
|
|
||||||
* @version 1.0.0
|
|
||||||
* @brief Security redirect logic. Replaces the current history entry with the site root.
|
|
||||||
* @details This script computes the absolute root URL using `location.origin` and
|
|
||||||
* forwards the user immediately. It prevents leaving the protected folder
|
|
||||||
* in the browser history by default.
|
|
||||||
*
|
|
||||||
* @section VARIABLES
|
|
||||||
* @var {Object} opts Configuration options for the redirect behavior.
|
|
||||||
* @var {string} opts.fallbackPath Path used when `location.origin` cannot be determined.
|
|
||||||
* @var {number} opts.delayMs Optional delay in milliseconds before redirecting.
|
|
||||||
* @var {"replace"|"assign"} opts.behavior Navigation method used for the redirect.
|
|
||||||
*
|
|
||||||
* @section OPTIONS
|
|
||||||
* - opts.fallbackPath: default "/" (root path)
|
|
||||||
* - opts.delayMs: default 0 (immediate)
|
|
||||||
* - opts.behavior: one of
|
|
||||||
* * "replace" — calls `location.replace(url)`; does not keep the folder page in history.
|
|
||||||
* * "assign" — calls `location.assign(url)`; keeps an extra history entry.
|
|
||||||
*/
|
|
||||||
(function redirectToRoot() {
|
(function redirectToRoot() {
|
||||||
// Configuration object with safe defaults.
|
// Configuration object with safe defaults.
|
||||||
var opts = {
|
var opts = {
|
||||||
|
|||||||
@@ -1,5 +1,4 @@
|
|||||||
; =========================================================================
|
; ; Copyright (C) 2025 Moko Consulting <hello@mokoconsulting.tech>
|
||||||
; Copyright (C) 2025 Moko Consulting <hello@mokoconsulting.tech>
|
|
||||||
;
|
;
|
||||||
; This file is part of a Moko Consulting project.
|
; This file is part of a Moko Consulting project.
|
||||||
;
|
;
|
||||||
@@ -17,15 +16,13 @@
|
|||||||
;
|
;
|
||||||
; You should have received a copy of the GNU General Public License
|
; You should have received a copy of the GNU General Public License
|
||||||
; along with this program. If not, see https://www.gnu.org/licenses/ .
|
; along with this program. If not, see https://www.gnu.org/licenses/ .
|
||||||
; =========================================================================
|
; ; FILE INFORMATION
|
||||||
; FILE INFORMATION
|
|
||||||
; DEFGROUP: Joomla
|
; DEFGROUP: Joomla
|
||||||
; INGROUP: Moko-Cassiopeia
|
;INGROUP: Moko-Cassiopeia
|
||||||
; PATH: language/en-GB/tpl_moko-cassiopeia.ini
|
; PATH: language/en-GB/tpl_moko-cassiopeia.ini
|
||||||
; VERSION: 02.01.05
|
; VERSION: 02.01.05
|
||||||
; BRIEF: English (GB) language strings for the Moko-Cassiopeia Joomla template
|
; BRIEF: English (GB) language strings for the Moko-Cassiopeia Joomla template
|
||||||
; =========================================================================
|
;
|
||||||
|
|
||||||
; ===== Template meta =====
|
; ===== Template meta =====
|
||||||
MOKO-CASSIOPEIA="MOKO-CASSIOPEIA Site template"
|
MOKO-CASSIOPEIA="MOKO-CASSIOPEIA Site template"
|
||||||
TPL_MOKO-CASSIOPEIA_XML_DESCRIPTION="Continuing the space theme (Solarflare from 1.0, Milkyway from 1.5 and Protostar from 3.0), MOKO-CASSIOPEIA is the Joomla 4 site template based on Bootstrap 5."
|
TPL_MOKO-CASSIOPEIA_XML_DESCRIPTION="Continuing the space theme (Solarflare from 1.0, Milkyway from 1.5 and Protostar from 3.0), MOKO-CASSIOPEIA is the Joomla 4 site template based on Bootstrap 5."
|
||||||
|
|||||||
@@ -1,5 +1,4 @@
|
|||||||
; =========================================================================
|
; ; Copyright (C) 2025 Moko Consulting <hello@mokoconsulting.tech>
|
||||||
; Copyright (C) 2025 Moko Consulting <hello@mokoconsulting.tech>
|
|
||||||
;
|
;
|
||||||
; This file is part of a Moko Consulting project.
|
; This file is part of a Moko Consulting project.
|
||||||
;
|
;
|
||||||
@@ -17,15 +16,13 @@
|
|||||||
;
|
;
|
||||||
; You should have received a copy of the GNU General Public License
|
; You should have received a copy of the GNU General Public License
|
||||||
; along with this program. If not, see https://www.gnu.org/licenses/ .
|
; along with this program. If not, see https://www.gnu.org/licenses/ .
|
||||||
; =========================================================================
|
; ; FILE INFORMATION
|
||||||
; FILE INFORMATION
|
|
||||||
; DEFGROUP: Joomla
|
; DEFGROUP: Joomla
|
||||||
; INGROUP: Moko-Cassiopeia
|
;INGROUP: Moko-Cassiopeia
|
||||||
; PATH: language/en-GB/tpl_moko-cassiopeia.sys.ini
|
; PATH: language/en-GB/tpl_moko-cassiopeia.sys.ini
|
||||||
; VERSION: 02.01.05
|
; VERSION: 02.01.05
|
||||||
; BRIEF: English (GB) system language strings for template metadata and installer
|
; BRIEF: English (GB) system language strings for template metadata and installer
|
||||||
; =========================================================================
|
;
|
||||||
|
|
||||||
TPL_MOKO-CASSIOPEIA="Moko-Cassiopeia Site template"
|
TPL_MOKO-CASSIOPEIA="Moko-Cassiopeia Site template"
|
||||||
TPL_MOKO-CASSIOPEIA_MOD_MENU_LAYOUT_COLLAPSE-METISMENU="Collapsible Dropdown"
|
TPL_MOKO-CASSIOPEIA_MOD_MENU_LAYOUT_COLLAPSE-METISMENU="Collapsible Dropdown"
|
||||||
TPL_MOKO-CASSIOPEIA_MOD_MENU_LAYOUT_DROPDOWN-METISMENU="Dropdown"
|
TPL_MOKO-CASSIOPEIA_MOD_MENU_LAYOUT_DROPDOWN-METISMENU="Dropdown"
|
||||||
|
|||||||
@@ -1,29 +1,22 @@
|
|||||||
<!--
|
<!-- Copyright (C) 2025 Moko Consulting <jmiller@mokoconsulting.tech>
|
||||||
* Copyright (C) 2025 Moko Consulting <jmiller@mokoconsulting.tech>
|
|
||||||
*
|
|
||||||
* This file is part of a Moko Consulting project.
|
|
||||||
*
|
|
||||||
* SPDX-License-Identifier: GPL-3.0-or-later
|
|
||||||
*
|
|
||||||
* This program is free software; you can redistribute it and/or modify
|
|
||||||
* it under the terms of the GNU General Public License as published by
|
|
||||||
* the Free Software Foundation; either version 3 of the License, or
|
|
||||||
* (at your option) any later version.
|
|
||||||
*
|
|
||||||
* This program is distributed in the hope that it will be useful,
|
|
||||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
||||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
||||||
* GNU General Public License for more details.
|
|
||||||
*
|
|
||||||
* You should have received a copy of the GNU General Public License
|
|
||||||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
|
||||||
-->
|
|
||||||
|
|
||||||
<!--FILE INFORMATION
|
This file is part of a Moko Consulting project.
|
||||||
* DEFGROUP: Joomla.Site
|
|
||||||
* INGROUP: Templates.Moko-Cassiopeia
|
SPDX-License-Identifier: GPL-3.0-or-later
|
||||||
* FILE: index.html
|
|
||||||
* BRIEF: Security redirect page to block folder access and forward to site root.
|
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3 of the License, or
|
||||||
|
(at your option) any later version.
|
||||||
|
|
||||||
|
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
|
||||||
|
|
||||||
|
You should have received a copy of the GNU General Public License along with this program. If not, see https://www.gnu.org/licenses/ .
|
||||||
|
|
||||||
|
# FILE INFORMATION
|
||||||
|
DEFGROUP: Joomla.Site
|
||||||
|
INGROUP: Templates.Moko-Cassiopeia
|
||||||
|
FILE: ./index.html
|
||||||
|
BRIEF: Security redirect page to block folder access and forward to site root.
|
||||||
-->
|
-->
|
||||||
|
|
||||||
<!doctype html>
|
<!doctype html>
|
||||||
@@ -44,28 +37,7 @@
|
|||||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
/**
|
|
||||||
* @defgroup Dolibarr
|
|
||||||
* @file index.html (embedded script)
|
|
||||||
* @version 1.0.0
|
|
||||||
* @brief Security redirect logic. Replaces the current history entry with the site root.
|
|
||||||
* @details This script computes the absolute root URL using `location.origin` and
|
|
||||||
* forwards the user immediately. It prevents leaving the protected folder
|
|
||||||
* in the browser history by default.
|
|
||||||
*
|
|
||||||
* @section VARIABLES
|
|
||||||
* @var {Object} opts Configuration options for the redirect behavior.
|
|
||||||
* @var {string} opts.fallbackPath Path used when `location.origin` cannot be determined.
|
|
||||||
* @var {number} opts.delayMs Optional delay in milliseconds before redirecting.
|
|
||||||
* @var {"replace"|"assign"} opts.behavior Navigation method used for the redirect.
|
|
||||||
*
|
|
||||||
* @section OPTIONS
|
|
||||||
* - opts.fallbackPath: default "/" (root path)
|
|
||||||
* - opts.delayMs: default 0 (immediate)
|
|
||||||
* - opts.behavior: one of
|
|
||||||
* * "replace" — calls `location.replace(url)`; does not keep the folder page in history.
|
|
||||||
* * "assign" — calls `location.assign(url)`; keeps an extra history entry.
|
|
||||||
*/
|
|
||||||
(function redirectToRoot() {
|
(function redirectToRoot() {
|
||||||
// Configuration object with safe defaults.
|
// Configuration object with safe defaults.
|
||||||
var opts = {
|
var opts = {
|
||||||
|
|||||||
@@ -1,5 +1,4 @@
|
|||||||
; =========================================================================
|
; ; Copyright (C) 2025 Moko Consulting <hello@mokoconsulting.tech>
|
||||||
; Copyright (C) 2025 Moko Consulting <hello@mokoconsulting.tech>
|
|
||||||
;
|
;
|
||||||
; This file is part of a Moko Consulting project.
|
; This file is part of a Moko Consulting project.
|
||||||
;
|
;
|
||||||
@@ -17,15 +16,13 @@
|
|||||||
;
|
;
|
||||||
; You should have received a copy of the GNU General Public License
|
; You should have received a copy of the GNU General Public License
|
||||||
; along with this program. If not, see https://www.gnu.org/licenses/ .
|
; along with this program. If not, see https://www.gnu.org/licenses/ .
|
||||||
; =========================================================================
|
; ; FILE INFORMATION
|
||||||
; FILE INFORMATION
|
|
||||||
; DEFGROUP: Joomla
|
; DEFGROUP: Joomla
|
||||||
; INGROUP: Moko-Cassiopeia
|
;INGROUP: Moko-Cassiopeia
|
||||||
; PATH: language/en-US/tpl_moko-cassiopeia.ini
|
; PATH: language/en-US/tpl_moko-cassiopeia.ini
|
||||||
; VERSION: 02.01.05
|
; VERSION: 02.01.05
|
||||||
; BRIEF: English (US) language strings for the Moko-Cassiopeia Joomla template
|
; BRIEF: English (US) language strings for the Moko-Cassiopeia Joomla template
|
||||||
; =========================================================================
|
;
|
||||||
|
|
||||||
; ===== Template meta =====
|
; ===== Template meta =====
|
||||||
MOKO-CASSIOPEIA="MOKO-CASSIOPEIA Site template"
|
MOKO-CASSIOPEIA="MOKO-CASSIOPEIA Site template"
|
||||||
TPL_MOKO-CASSIOPEIA_XML_DESCRIPTION="Continuing the space theme (Solarflare from 1.0, Milkyway from 1.5 and Protostar from 3.0), MOKO-CASSIOPEIA is the Joomla 4 site template based on Bootstrap 5."
|
TPL_MOKO-CASSIOPEIA_XML_DESCRIPTION="Continuing the space theme (Solarflare from 1.0, Milkyway from 1.5 and Protostar from 3.0), MOKO-CASSIOPEIA is the Joomla 4 site template based on Bootstrap 5."
|
||||||
|
|||||||
@@ -1,5 +1,4 @@
|
|||||||
; =========================================================================
|
; ; Copyright (C) 2025 Moko Consulting <hello@mokoconsulting.tech>
|
||||||
; Copyright (C) 2025 Moko Consulting <hello@mokoconsulting.tech>
|
|
||||||
;
|
;
|
||||||
; This file is part of a Moko Consulting project.
|
; This file is part of a Moko Consulting project.
|
||||||
;
|
;
|
||||||
@@ -17,15 +16,13 @@
|
|||||||
;
|
;
|
||||||
; You should have received a copy of the GNU General Public License
|
; You should have received a copy of the GNU General Public License
|
||||||
; along with this program. If not, see https://www.gnu.org/licenses/ .
|
; along with this program. If not, see https://www.gnu.org/licenses/ .
|
||||||
; =========================================================================
|
; ; FILE INFORMATION
|
||||||
; FILE INFORMATION
|
|
||||||
; DEFGROUP: Joomla
|
; DEFGROUP: Joomla
|
||||||
; INGROUP: Moko-Cassiopeia
|
;INGROUP: Moko-Cassiopeia
|
||||||
; PATH: language/en-US/tpl_moko-cassiopeia.sys.ini
|
; PATH: language/en-US/tpl_moko-cassiopeia.sys.ini
|
||||||
; VERSION: 02.01.05
|
; VERSION: 02.01.05
|
||||||
; BRIEF: English (US) system language strings for template metadata and installer
|
; BRIEF: English (US) system language strings for template metadata and installer
|
||||||
; =========================================================================
|
;
|
||||||
|
|
||||||
TPL_MOKO-CASSIOPEIA="Moko-Cassiopeia Site template"
|
TPL_MOKO-CASSIOPEIA="Moko-Cassiopeia Site template"
|
||||||
TPL_MOKO-CASSIOPEIA_MOD_MENU_LAYOUT_COLLAPSE-METISMENU="Collapsible Dropdown"
|
TPL_MOKO-CASSIOPEIA_MOD_MENU_LAYOUT_COLLAPSE-METISMENU="Collapsible Dropdown"
|
||||||
TPL_MOKO-CASSIOPEIA_MOD_MENU_LAYOUT_DROPDOWN-METISMENU="Dropdown"
|
TPL_MOKO-CASSIOPEIA_MOD_MENU_LAYOUT_DROPDOWN-METISMENU="Dropdown"
|
||||||
|
|||||||
@@ -1,29 +1,22 @@
|
|||||||
<!--
|
<!-- Copyright (C) 2025 Moko Consulting <jmiller@mokoconsulting.tech>
|
||||||
* Copyright (C) 2025 Moko Consulting <jmiller@mokoconsulting.tech>
|
|
||||||
*
|
|
||||||
* This file is part of a Moko Consulting project.
|
|
||||||
*
|
|
||||||
* SPDX-License-Identifier: GPL-3.0-or-later
|
|
||||||
*
|
|
||||||
* This program is free software; you can redistribute it and/or modify
|
|
||||||
* it under the terms of the GNU General Public License as published by
|
|
||||||
* the Free Software Foundation; either version 3 of the License, or
|
|
||||||
* (at your option) any later version.
|
|
||||||
*
|
|
||||||
* This program is distributed in the hope that it will be useful,
|
|
||||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
||||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
||||||
* GNU General Public License for more details.
|
|
||||||
*
|
|
||||||
* You should have received a copy of the GNU General Public License
|
|
||||||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
|
||||||
-->
|
|
||||||
|
|
||||||
<!--FILE INFORMATION
|
This file is part of a Moko Consulting project.
|
||||||
* DEFGROUP: Joomla.Site
|
|
||||||
* INGROUP: Templates.Moko-Cassiopeia
|
SPDX-License-Identifier: GPL-3.0-or-later
|
||||||
* FILE: index.html
|
|
||||||
* BRIEF: Security redirect page to block folder access and forward to site root.
|
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3 of the License, or
|
||||||
|
(at your option) any later version.
|
||||||
|
|
||||||
|
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
|
||||||
|
|
||||||
|
You should have received a copy of the GNU General Public License along with this program. If not, see https://www.gnu.org/licenses/ .
|
||||||
|
|
||||||
|
# FILE INFORMATION
|
||||||
|
DEFGROUP: Joomla.Site
|
||||||
|
INGROUP: Templates.Moko-Cassiopeia
|
||||||
|
FILE: ./index.html
|
||||||
|
BRIEF: Security redirect page to block folder access and forward to site root.
|
||||||
-->
|
-->
|
||||||
|
|
||||||
<!doctype html>
|
<!doctype html>
|
||||||
@@ -44,28 +37,7 @@
|
|||||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
/**
|
|
||||||
* @defgroup Dolibarr
|
|
||||||
* @file index.html (embedded script)
|
|
||||||
* @version 1.0.0
|
|
||||||
* @brief Security redirect logic. Replaces the current history entry with the site root.
|
|
||||||
* @details This script computes the absolute root URL using `location.origin` and
|
|
||||||
* forwards the user immediately. It prevents leaving the protected folder
|
|
||||||
* in the browser history by default.
|
|
||||||
*
|
|
||||||
* @section VARIABLES
|
|
||||||
* @var {Object} opts Configuration options for the redirect behavior.
|
|
||||||
* @var {string} opts.fallbackPath Path used when `location.origin` cannot be determined.
|
|
||||||
* @var {number} opts.delayMs Optional delay in milliseconds before redirecting.
|
|
||||||
* @var {"replace"|"assign"} opts.behavior Navigation method used for the redirect.
|
|
||||||
*
|
|
||||||
* @section OPTIONS
|
|
||||||
* - opts.fallbackPath: default "/" (root path)
|
|
||||||
* - opts.delayMs: default 0 (immediate)
|
|
||||||
* - opts.behavior: one of
|
|
||||||
* * "replace" — calls `location.replace(url)`; does not keep the folder page in history.
|
|
||||||
* * "assign" — calls `location.assign(url)`; keeps an extra history entry.
|
|
||||||
*/
|
|
||||||
(function redirectToRoot() {
|
(function redirectToRoot() {
|
||||||
// Configuration object with safe defaults.
|
// Configuration object with safe defaults.
|
||||||
var opts = {
|
var opts = {
|
||||||
|
|||||||
@@ -1,29 +1,22 @@
|
|||||||
<!--
|
<!-- Copyright (C) 2025 Moko Consulting <jmiller@mokoconsulting.tech>
|
||||||
* Copyright (C) 2025 Moko Consulting <jmiller@mokoconsulting.tech>
|
|
||||||
*
|
|
||||||
* This file is part of a Moko Consulting project.
|
|
||||||
*
|
|
||||||
* SPDX-License-Identifier: GPL-3.0-or-later
|
|
||||||
*
|
|
||||||
* This program is free software; you can redistribute it and/or modify
|
|
||||||
* it under the terms of the GNU General Public License as published by
|
|
||||||
* the Free Software Foundation; either version 3 of the License, or
|
|
||||||
* (at your option) any later version.
|
|
||||||
*
|
|
||||||
* This program is distributed in the hope that it will be useful,
|
|
||||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
||||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
||||||
* GNU General Public License for more details.
|
|
||||||
*
|
|
||||||
* You should have received a copy of the GNU General Public License
|
|
||||||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
|
||||||
-->
|
|
||||||
|
|
||||||
<!--FILE INFORMATION
|
This file is part of a Moko Consulting project.
|
||||||
* DEFGROUP: Joomla.Site
|
|
||||||
* INGROUP: Templates.Moko-Cassiopeia
|
SPDX-License-Identifier: GPL-3.0-or-later
|
||||||
* FILE: index.html
|
|
||||||
* BRIEF: Security redirect page to block folder access and forward to site root.
|
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3 of the License, or
|
||||||
|
(at your option) any later version.
|
||||||
|
|
||||||
|
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
|
||||||
|
|
||||||
|
You should have received a copy of the GNU General Public License along with this program. If not, see https://www.gnu.org/licenses/ .
|
||||||
|
|
||||||
|
# FILE INFORMATION
|
||||||
|
DEFGROUP: Joomla.Site
|
||||||
|
INGROUP: Templates.Moko-Cassiopeia
|
||||||
|
FILE: ./index.html
|
||||||
|
BRIEF: Security redirect page to block folder access and forward to site root.
|
||||||
-->
|
-->
|
||||||
|
|
||||||
<!doctype html>
|
<!doctype html>
|
||||||
@@ -44,28 +37,7 @@
|
|||||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
/**
|
|
||||||
* @defgroup Dolibarr
|
|
||||||
* @file index.html (embedded script)
|
|
||||||
* @version 1.0.0
|
|
||||||
* @brief Security redirect logic. Replaces the current history entry with the site root.
|
|
||||||
* @details This script computes the absolute root URL using `location.origin` and
|
|
||||||
* forwards the user immediately. It prevents leaving the protected folder
|
|
||||||
* in the browser history by default.
|
|
||||||
*
|
|
||||||
* @section VARIABLES
|
|
||||||
* @var {Object} opts Configuration options for the redirect behavior.
|
|
||||||
* @var {string} opts.fallbackPath Path used when `location.origin` cannot be determined.
|
|
||||||
* @var {number} opts.delayMs Optional delay in milliseconds before redirecting.
|
|
||||||
* @var {"replace"|"assign"} opts.behavior Navigation method used for the redirect.
|
|
||||||
*
|
|
||||||
* @section OPTIONS
|
|
||||||
* - opts.fallbackPath: default "/" (root path)
|
|
||||||
* - opts.delayMs: default 0 (immediate)
|
|
||||||
* - opts.behavior: one of
|
|
||||||
* * "replace" — calls `location.replace(url)`; does not keep the folder page in history.
|
|
||||||
* * "assign" — calls `location.assign(url)`; keeps an extra history entry.
|
|
||||||
*/
|
|
||||||
(function redirectToRoot() {
|
(function redirectToRoot() {
|
||||||
// Configuration object with safe defaults.
|
// Configuration object with safe defaults.
|
||||||
var opts = {
|
var opts = {
|
||||||
|
|||||||
@@ -1,29 +1,22 @@
|
|||||||
<!--
|
<!-- Copyright (C) 2025 Moko Consulting <jmiller@mokoconsulting.tech>
|
||||||
* Copyright (C) 2025 Moko Consulting <jmiller@mokoconsulting.tech>
|
|
||||||
*
|
|
||||||
* This file is part of a Moko Consulting project.
|
|
||||||
*
|
|
||||||
* SPDX-License-Identifier: GPL-3.0-or-later
|
|
||||||
*
|
|
||||||
* This program is free software; you can redistribute it and/or modify
|
|
||||||
* it under the terms of the GNU General Public License as published by
|
|
||||||
* the Free Software Foundation; either version 3 of the License, or
|
|
||||||
* (at your option) any later version.
|
|
||||||
*
|
|
||||||
* This program is distributed in the hope that it will be useful,
|
|
||||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
||||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
||||||
* GNU General Public License for more details.
|
|
||||||
*
|
|
||||||
* You should have received a copy of the GNU General Public License
|
|
||||||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
|
||||||
-->
|
|
||||||
|
|
||||||
<!--FILE INFORMATION
|
This file is part of a Moko Consulting project.
|
||||||
* DEFGROUP: Joomla.Site
|
|
||||||
* INGROUP: Templates.Moko-Cassiopeia
|
SPDX-License-Identifier: GPL-3.0-or-later
|
||||||
* FILE: index.html
|
|
||||||
* BRIEF: Security redirect page to block folder access and forward to site root.
|
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3 of the License, or
|
||||||
|
(at your option) any later version.
|
||||||
|
|
||||||
|
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
|
||||||
|
|
||||||
|
You should have received a copy of the GNU General Public License along with this program. If not, see https://www.gnu.org/licenses/ .
|
||||||
|
|
||||||
|
# FILE INFORMATION
|
||||||
|
DEFGROUP: Joomla.Site
|
||||||
|
INGROUP: Templates.Moko-Cassiopeia
|
||||||
|
FILE: ./index.html
|
||||||
|
BRIEF: Security redirect page to block folder access and forward to site root.
|
||||||
-->
|
-->
|
||||||
|
|
||||||
<!doctype html>
|
<!doctype html>
|
||||||
@@ -44,28 +37,7 @@
|
|||||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
/**
|
|
||||||
* @defgroup Dolibarr
|
|
||||||
* @file index.html (embedded script)
|
|
||||||
* @version 1.0.0
|
|
||||||
* @brief Security redirect logic. Replaces the current history entry with the site root.
|
|
||||||
* @details This script computes the absolute root URL using `location.origin` and
|
|
||||||
* forwards the user immediately. It prevents leaving the protected folder
|
|
||||||
* in the browser history by default.
|
|
||||||
*
|
|
||||||
* @section VARIABLES
|
|
||||||
* @var {Object} opts Configuration options for the redirect behavior.
|
|
||||||
* @var {string} opts.fallbackPath Path used when `location.origin` cannot be determined.
|
|
||||||
* @var {number} opts.delayMs Optional delay in milliseconds before redirecting.
|
|
||||||
* @var {"replace"|"assign"} opts.behavior Navigation method used for the redirect.
|
|
||||||
*
|
|
||||||
* @section OPTIONS
|
|
||||||
* - opts.fallbackPath: default "/" (root path)
|
|
||||||
* - opts.delayMs: default 0 (immediate)
|
|
||||||
* - opts.behavior: one of
|
|
||||||
* * "replace" — calls `location.replace(url)`; does not keep the folder page in history.
|
|
||||||
* * "assign" — calls `location.assign(url)`; keeps an extra history entry.
|
|
||||||
*/
|
|
||||||
(function redirectToRoot() {
|
(function redirectToRoot() {
|
||||||
// Configuration object with safe defaults.
|
// Configuration object with safe defaults.
|
||||||
var opts = {
|
var opts = {
|
||||||
|
|||||||
@@ -1,29 +1,22 @@
|
|||||||
<!--
|
<!-- Copyright (C) 2025 Moko Consulting <jmiller@mokoconsulting.tech>
|
||||||
* Copyright (C) 2025 Moko Consulting <jmiller@mokoconsulting.tech>
|
|
||||||
*
|
|
||||||
* This file is part of a Moko Consulting project.
|
|
||||||
*
|
|
||||||
* SPDX-License-Identifier: GPL-3.0-or-later
|
|
||||||
*
|
|
||||||
* This program is free software; you can redistribute it and/or modify
|
|
||||||
* it under the terms of the GNU General Public License as published by
|
|
||||||
* the Free Software Foundation; either version 3 of the License, or
|
|
||||||
* (at your option) any later version.
|
|
||||||
*
|
|
||||||
* This program is distributed in the hope that it will be useful,
|
|
||||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
||||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
||||||
* GNU General Public License for more details.
|
|
||||||
*
|
|
||||||
* You should have received a copy of the GNU General Public License
|
|
||||||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
|
||||||
-->
|
|
||||||
|
|
||||||
<!--FILE INFORMATION
|
This file is part of a Moko Consulting project.
|
||||||
* DEFGROUP: Joomla.Site
|
|
||||||
* INGROUP: Templates.Moko-Cassiopeia
|
SPDX-License-Identifier: GPL-3.0-or-later
|
||||||
* FILE: index.html
|
|
||||||
* BRIEF: Security redirect page to block folder access and forward to site root.
|
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3 of the License, or
|
||||||
|
(at your option) any later version.
|
||||||
|
|
||||||
|
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
|
||||||
|
|
||||||
|
You should have received a copy of the GNU General Public License along with this program. If not, see https://www.gnu.org/licenses/ .
|
||||||
|
|
||||||
|
# FILE INFORMATION
|
||||||
|
DEFGROUP: Joomla.Site
|
||||||
|
INGROUP: Templates.Moko-Cassiopeia
|
||||||
|
FILE: ./index.html
|
||||||
|
BRIEF: Security redirect page to block folder access and forward to site root.
|
||||||
-->
|
-->
|
||||||
|
|
||||||
<!doctype html>
|
<!doctype html>
|
||||||
@@ -44,28 +37,7 @@
|
|||||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
/**
|
|
||||||
* @defgroup Dolibarr
|
|
||||||
* @file index.html (embedded script)
|
|
||||||
* @version 1.0.0
|
|
||||||
* @brief Security redirect logic. Replaces the current history entry with the site root.
|
|
||||||
* @details This script computes the absolute root URL using `location.origin` and
|
|
||||||
* forwards the user immediately. It prevents leaving the protected folder
|
|
||||||
* in the browser history by default.
|
|
||||||
*
|
|
||||||
* @section VARIABLES
|
|
||||||
* @var {Object} opts Configuration options for the redirect behavior.
|
|
||||||
* @var {string} opts.fallbackPath Path used when `location.origin` cannot be determined.
|
|
||||||
* @var {number} opts.delayMs Optional delay in milliseconds before redirecting.
|
|
||||||
* @var {"replace"|"assign"} opts.behavior Navigation method used for the redirect.
|
|
||||||
*
|
|
||||||
* @section OPTIONS
|
|
||||||
* - opts.fallbackPath: default "/" (root path)
|
|
||||||
* - opts.delayMs: default 0 (immediate)
|
|
||||||
* - opts.behavior: one of
|
|
||||||
* * "replace" — calls `location.replace(url)`; does not keep the folder page in history.
|
|
||||||
* * "assign" — calls `location.assign(url)`; keeps an extra history entry.
|
|
||||||
*/
|
|
||||||
(function redirectToRoot() {
|
(function redirectToRoot() {
|
||||||
// Configuration object with safe defaults.
|
// Configuration object with safe defaults.
|
||||||
var opts = {
|
var opts = {
|
||||||
|
|||||||
@@ -1,31 +1,24 @@
|
|||||||
@charset "UTF-8";
|
@charset "UTF-8";
|
||||||
/* =========================================================================
|
/* Copyright (C) 2025 Moko Consulting <hello@mokoconsulting.tech>
|
||||||
* Copyright (C) 2025 Moko Consulting <hello@mokoconsulting.tech>
|
|
||||||
*
|
This file is part of a Moko Consulting project.
|
||||||
* This file is part of a Moko Consulting project.
|
|
||||||
*
|
SPDX-License-Identifier: GPL-3.0-or-later
|
||||||
* SPDX-License-Identifier: GPL-3.0-or-later
|
|
||||||
*
|
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3 of the License, or
|
||||||
* This program is free software; you can redistribute it and/or modify
|
(at your option) any later version.
|
||||||
* it under the terms of the GNU General Public License as published by
|
|
||||||
* the Free Software Foundation; either version 3 of the License, or
|
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
* (at your option) any later version.
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
|
||||||
*
|
|
||||||
* This program is distributed in the hope that it will be useful,
|
You should have received a copy of the GNU General Public License along with this program. If not, see https://www.gnu.org/licenses/ .
|
||||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
||||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
# FILE INFORMATION
|
||||||
* GNU General Public License for more details.
|
DEFGROUP: Joomla
|
||||||
*
|
INGROUP: Moko-Cassiopeia
|
||||||
* You should have received a copy of the GNU General Public License
|
PATH: media/templates/site/moko-cassiopeia/css/editor.css
|
||||||
* along with this program. If not, see https://www.gnu.org/licenses/ .
|
VERSION: 02.01.05
|
||||||
* =========================================================================
|
BRIEF: Stylesheet for Joomla editor content within Moko-Cassiopeia template
|
||||||
* FILE INFORMATION
|
|
||||||
* DEFGROUP: Joomla
|
|
||||||
* INGROUP: Moko-Cassiopeia
|
|
||||||
* PATH: media/templates/site/moko-cassiopeia/css/editor.css
|
|
||||||
* VERSION: 02.01.05
|
|
||||||
* BRIEF: Stylesheet for Joomla editor content within Moko-Cassiopeia template
|
|
||||||
* =========================================================================
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/* STYLES FOR JOOMLA! EDITOR */
|
/* STYLES FOR JOOMLA! EDITOR */
|
||||||
|
|||||||
@@ -1,31 +1,24 @@
|
|||||||
@charset "UTF-8";
|
@charset "UTF-8";
|
||||||
/* =========================================================================
|
/* Copyright (C) 2025 Moko Consulting <hello@mokoconsulting.tech>
|
||||||
* Copyright (C) 2025 Moko Consulting <hello@mokoconsulting.tech>
|
|
||||||
*
|
This file is part of a Moko Consulting project.
|
||||||
* This file is part of a Moko Consulting project.
|
|
||||||
*
|
SPDX-License-Identifier: GPL-3.0-or-later
|
||||||
* SPDX-License-Identifier: GPL-3.0-or-later
|
|
||||||
*
|
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3 of the License, or
|
||||||
* This program is free software; you can redistribute it and/or modify
|
(at your option) any later version.
|
||||||
* it under the terms of the GNU General Public License as published by
|
|
||||||
* the Free Software Foundation; either version 3 of the License, or
|
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
* (at your option) any later version.
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
|
||||||
*
|
|
||||||
* This program is distributed in the hope that it will be useful,
|
You should have received a copy of the GNU General Public License along with this program. If not, see https://www.gnu.org/licenses/ .
|
||||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
||||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
# FILE INFORMATION
|
||||||
* GNU General Public License for more details.
|
DEFGROUP: Joomla
|
||||||
*
|
INGROUP: Moko-Cassiopeia
|
||||||
* You should have received a copy of the GNU General Public License
|
PATH: media/templates/site/moko-cassiopeia/css/gable.css
|
||||||
* along with this program. If not, see https://www.gnu.org/licenses/ .
|
VERSION: 02.01.05
|
||||||
* =========================================================================
|
BRIEF: Stylesheet providing gable-specific layout and design rules for Moko-Cassiopeia
|
||||||
* FILE INFORMATION
|
|
||||||
* DEFGROUP: Joomla
|
|
||||||
* INGROUP: Moko-Cassiopeia
|
|
||||||
* PATH: media/templates/site/moko-cassiopeia/css/gable.css
|
|
||||||
* VERSION: 02.01.05
|
|
||||||
* BRIEF: Stylesheet providing gable-specific layout and design rules for Moko-Cassiopeia
|
|
||||||
* =========================================================================
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
:root {
|
:root {
|
||||||
|
|||||||
@@ -1,31 +1,24 @@
|
|||||||
@charset "UTF-8";
|
@charset "UTF-8";
|
||||||
/* =========================================================================
|
/* Copyright (C) 2025 Moko Consulting <hello@mokoconsulting.tech>
|
||||||
* Copyright (C) 2025 Moko Consulting <hello@mokoconsulting.tech>
|
|
||||||
*
|
This file is part of a Moko Consulting project.
|
||||||
* This file is part of a Moko Consulting project.
|
|
||||||
*
|
SPDX-License-Identifier: GPL-3.0-or-later
|
||||||
* SPDX-License-Identifier: GPL-3.0-or-later
|
|
||||||
*
|
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3 of the License, or
|
||||||
* This program is free software; you can redistribute it and/or modify
|
(at your option) any later version.
|
||||||
* it under the terms of the GNU General Public License as published by
|
|
||||||
* the Free Software Foundation; either version 3 of the License, or
|
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
* (at your option) any later version.
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
|
||||||
*
|
|
||||||
* This program is distributed in the hope that it will be useful,
|
You should have received a copy of the GNU General Public License along with this program. If not, see https://www.gnu.org/licenses/ .
|
||||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
||||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
# FILE INFORMATION
|
||||||
* GNU General Public License for more details.
|
DEFGROUP: Joomla
|
||||||
*
|
INGROUP: Moko-Cassiopeia
|
||||||
* You should have received a copy of the GNU General Public License
|
PATH: media/templates/site/moko-cassiopeia/css/global/dark/colors_alternative.css
|
||||||
* along with this program. If not, see https://www.gnu.org/licenses/ .
|
VERSION: 02.01.05
|
||||||
* =========================================================================
|
BRIEF: Alternative dark mode color definitions for Moko-Cassiopeia template
|
||||||
* FILE INFORMATION
|
|
||||||
* DEFGROUP: Joomla
|
|
||||||
* INGROUP: Moko-Cassiopeia
|
|
||||||
* PATH: media/templates/site/moko-cassiopeia/css/global/dark/colors_alternative.css
|
|
||||||
* VERSION: 02.01.05
|
|
||||||
* BRIEF: Alternative dark mode color definitions for Moko-Cassiopeia template
|
|
||||||
* =========================================================================
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/* -----------------------------------------------
|
/* -----------------------------------------------
|
||||||
|
|||||||
@@ -1,31 +1,24 @@
|
|||||||
@charset "UTF-8";
|
@charset "UTF-8";
|
||||||
/* =========================================================================
|
/* Copyright (C) 2025 Moko Consulting <hello@mokoconsulting.tech>
|
||||||
* Copyright (C) 2025 Moko Consulting <hello@mokoconsulting.tech>
|
|
||||||
*
|
This file is part of a Moko Consulting project.
|
||||||
* This file is part of a Moko Consulting project.
|
|
||||||
*
|
SPDX-License-Identifier: GPL-3.0-or-later
|
||||||
* SPDX-License-Identifier: GPL-3.0-or-later
|
|
||||||
*
|
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3 of the License, or
|
||||||
* This program is free software; you can redistribute it and/or modify
|
(at your option) any later version.
|
||||||
* it under the terms of the GNU General Public License as published by
|
|
||||||
* the Free Software Foundation; either version 3 of the License, or
|
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
* (at your option) any later version.
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
|
||||||
*
|
|
||||||
* This program is distributed in the hope that it will be useful,
|
You should have received a copy of the GNU General Public License along with this program. If not, see https://www.gnu.org/licenses/ .
|
||||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
||||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
# FILE INFORMATION
|
||||||
* GNU General Public License for more details.
|
DEFGROUP: Joomla
|
||||||
*
|
INGROUP: Moko-Cassiopeia
|
||||||
* You should have received a copy of the GNU General Public License
|
PATH: media/templates/site/moko-cassiopeia/css/global/dark/colors_standard.css
|
||||||
* along with this program. If not, see https://www.gnu.org/licenses/ .
|
VERSION: 02.01.05
|
||||||
* =========================================================================
|
BRIEF: Standard dark mode color definitions for Moko-Cassiopeia template
|
||||||
* FILE INFORMATION
|
|
||||||
* DEFGROUP: Joomla
|
|
||||||
* INGROUP: Moko-Cassiopeia
|
|
||||||
* PATH: media/templates/site/moko-cassiopeia/css/global/dark/colors_standard.css
|
|
||||||
* VERSION: 02.01.05
|
|
||||||
* BRIEF: Standard dark mode color definitions for Moko-Cassiopeia template
|
|
||||||
* =========================================================================
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/* -----------------------------------------------
|
/* -----------------------------------------------
|
||||||
|
|||||||
@@ -1,29 +1,22 @@
|
|||||||
<!--
|
<!-- Copyright (C) 2025 Moko Consulting <jmiller@mokoconsulting.tech>
|
||||||
* Copyright (C) 2025 Moko Consulting <jmiller@mokoconsulting.tech>
|
|
||||||
*
|
|
||||||
* This file is part of a Moko Consulting project.
|
|
||||||
*
|
|
||||||
* SPDX-License-Identifier: GPL-3.0-or-later
|
|
||||||
*
|
|
||||||
* This program is free software; you can redistribute it and/or modify
|
|
||||||
* it under the terms of the GNU General Public License as published by
|
|
||||||
* the Free Software Foundation; either version 3 of the License, or
|
|
||||||
* (at your option) any later version.
|
|
||||||
*
|
|
||||||
* This program is distributed in the hope that it will be useful,
|
|
||||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
||||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
||||||
* GNU General Public License for more details.
|
|
||||||
*
|
|
||||||
* You should have received a copy of the GNU General Public License
|
|
||||||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
|
||||||
-->
|
|
||||||
|
|
||||||
<!--FILE INFORMATION
|
This file is part of a Moko Consulting project.
|
||||||
* DEFGROUP: Joomla.Site
|
|
||||||
* INGROUP: Templates.Moko-Cassiopeia
|
SPDX-License-Identifier: GPL-3.0-or-later
|
||||||
* FILE: index.html
|
|
||||||
* BRIEF: Security redirect page to block folder access and forward to site root.
|
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3 of the License, or
|
||||||
|
(at your option) any later version.
|
||||||
|
|
||||||
|
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
|
||||||
|
|
||||||
|
You should have received a copy of the GNU General Public License along with this program. If not, see https://www.gnu.org/licenses/ .
|
||||||
|
|
||||||
|
# FILE INFORMATION
|
||||||
|
DEFGROUP: Joomla.Site
|
||||||
|
INGROUP: Templates.Moko-Cassiopeia
|
||||||
|
FILE: ./index.html
|
||||||
|
BRIEF: Security redirect page to block folder access and forward to site root.
|
||||||
-->
|
-->
|
||||||
|
|
||||||
<!doctype html>
|
<!doctype html>
|
||||||
@@ -44,28 +37,7 @@
|
|||||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
/**
|
|
||||||
* @defgroup Dolibarr
|
|
||||||
* @file index.html (embedded script)
|
|
||||||
* @version 1.0.0
|
|
||||||
* @brief Security redirect logic. Replaces the current history entry with the site root.
|
|
||||||
* @details This script computes the absolute root URL using `location.origin` and
|
|
||||||
* forwards the user immediately. It prevents leaving the protected folder
|
|
||||||
* in the browser history by default.
|
|
||||||
*
|
|
||||||
* @section VARIABLES
|
|
||||||
* @var {Object} opts Configuration options for the redirect behavior.
|
|
||||||
* @var {string} opts.fallbackPath Path used when `location.origin` cannot be determined.
|
|
||||||
* @var {number} opts.delayMs Optional delay in milliseconds before redirecting.
|
|
||||||
* @var {"replace"|"assign"} opts.behavior Navigation method used for the redirect.
|
|
||||||
*
|
|
||||||
* @section OPTIONS
|
|
||||||
* - opts.fallbackPath: default "/" (root path)
|
|
||||||
* - opts.delayMs: default 0 (immediate)
|
|
||||||
* - opts.behavior: one of
|
|
||||||
* * "replace" — calls `location.replace(url)`; does not keep the folder page in history.
|
|
||||||
* * "assign" — calls `location.assign(url)`; keeps an extra history entry.
|
|
||||||
*/
|
|
||||||
(function redirectToRoot() {
|
(function redirectToRoot() {
|
||||||
// Configuration object with safe defaults.
|
// Configuration object with safe defaults.
|
||||||
var opts = {
|
var opts = {
|
||||||
|
|||||||
@@ -1,31 +1,24 @@
|
|||||||
@charset "UTF-8";
|
@charset "UTF-8";
|
||||||
/* =========================================================================
|
/* Copyright (C) 2025 Moko Consulting <hello@mokoconsulting.tech>
|
||||||
* Copyright (C) 2025 Moko Consulting <hello@mokoconsulting.tech>
|
|
||||||
*
|
This file is part of a Moko Consulting project.
|
||||||
* This file is part of a Moko Consulting project.
|
|
||||||
*
|
SPDX-License-Identifier: GPL-3.0-or-later
|
||||||
* SPDX-License-Identifier: GPL-3.0-or-later
|
|
||||||
*
|
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3 of the License, or
|
||||||
* This program is free software; you can redistribute it and/or modify
|
(at your option) any later version.
|
||||||
* it under the terms of the GNU General Public License as published by
|
|
||||||
* the Free Software Foundation; either version 3 of the License, or
|
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
* (at your option) any later version.
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
|
||||||
*
|
|
||||||
* This program is distributed in the hope that it will be useful,
|
You should have received a copy of the GNU General Public License along with this program. If not, see https://www.gnu.org/licenses/ .
|
||||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
||||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
# FILE INFORMATION
|
||||||
* GNU General Public License for more details.
|
DEFGROUP: Joomla
|
||||||
*
|
INGROUP: Moko-Cassiopeia
|
||||||
* You should have received a copy of the GNU General Public License
|
PATH: media/templates/site/moko-cassiopeia/css/global/fonts-local_roboto.css
|
||||||
* along with this program. If not, see https://www.gnu.org/licenses/ .
|
VERSION: 02.01.05
|
||||||
* =========================================================================
|
BRIEF: Local Roboto font-face definitions for the Moko-Cassiopeia template
|
||||||
* FILE INFORMATION
|
|
||||||
* DEFGROUP: Joomla
|
|
||||||
* INGROUP: Moko-Cassiopeia
|
|
||||||
* PATH: media/templates/site/moko-cassiopeia/css/global/fonts-local_roboto.css
|
|
||||||
* VERSION: 02.01.05
|
|
||||||
* BRIEF: Local Roboto font-face definitions for the Moko-Cassiopeia template
|
|
||||||
* =========================================================================
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
@font-face {
|
@font-face {
|
||||||
|
|||||||
@@ -1,29 +1,22 @@
|
|||||||
<!--
|
<!-- Copyright (C) 2025 Moko Consulting <jmiller@mokoconsulting.tech>
|
||||||
* Copyright (C) 2025 Moko Consulting <jmiller@mokoconsulting.tech>
|
|
||||||
*
|
|
||||||
* This file is part of a Moko Consulting project.
|
|
||||||
*
|
|
||||||
* SPDX-License-Identifier: GPL-3.0-or-later
|
|
||||||
*
|
|
||||||
* This program is free software; you can redistribute it and/or modify
|
|
||||||
* it under the terms of the GNU General Public License as published by
|
|
||||||
* the Free Software Foundation; either version 3 of the License, or
|
|
||||||
* (at your option) any later version.
|
|
||||||
*
|
|
||||||
* This program is distributed in the hope that it will be useful,
|
|
||||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
||||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
||||||
* GNU General Public License for more details.
|
|
||||||
*
|
|
||||||
* You should have received a copy of the GNU General Public License
|
|
||||||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
|
||||||
-->
|
|
||||||
|
|
||||||
<!--FILE INFORMATION
|
This file is part of a Moko Consulting project.
|
||||||
* DEFGROUP: Joomla.Site
|
|
||||||
* INGROUP: Templates.Moko-Cassiopeia
|
SPDX-License-Identifier: GPL-3.0-or-later
|
||||||
* FILE: index.html
|
|
||||||
* BRIEF: Security redirect page to block folder access and forward to site root.
|
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3 of the License, or
|
||||||
|
(at your option) any later version.
|
||||||
|
|
||||||
|
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
|
||||||
|
|
||||||
|
You should have received a copy of the GNU General Public License along with this program. If not, see https://www.gnu.org/licenses/ .
|
||||||
|
|
||||||
|
# FILE INFORMATION
|
||||||
|
DEFGROUP: Joomla.Site
|
||||||
|
INGROUP: Templates.Moko-Cassiopeia
|
||||||
|
FILE: ./index.html
|
||||||
|
BRIEF: Security redirect page to block folder access and forward to site root.
|
||||||
-->
|
-->
|
||||||
|
|
||||||
<!doctype html>
|
<!doctype html>
|
||||||
@@ -44,28 +37,7 @@
|
|||||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
/**
|
|
||||||
* @defgroup Dolibarr
|
|
||||||
* @file index.html (embedded script)
|
|
||||||
* @version 1.0.0
|
|
||||||
* @brief Security redirect logic. Replaces the current history entry with the site root.
|
|
||||||
* @details This script computes the absolute root URL using `location.origin` and
|
|
||||||
* forwards the user immediately. It prevents leaving the protected folder
|
|
||||||
* in the browser history by default.
|
|
||||||
*
|
|
||||||
* @section VARIABLES
|
|
||||||
* @var {Object} opts Configuration options for the redirect behavior.
|
|
||||||
* @var {string} opts.fallbackPath Path used when `location.origin` cannot be determined.
|
|
||||||
* @var {number} opts.delayMs Optional delay in milliseconds before redirecting.
|
|
||||||
* @var {"replace"|"assign"} opts.behavior Navigation method used for the redirect.
|
|
||||||
*
|
|
||||||
* @section OPTIONS
|
|
||||||
* - opts.fallbackPath: default "/" (root path)
|
|
||||||
* - opts.delayMs: default 0 (immediate)
|
|
||||||
* - opts.behavior: one of
|
|
||||||
* * "replace" — calls `location.replace(url)`; does not keep the folder page in history.
|
|
||||||
* * "assign" — calls `location.assign(url)`; keeps an extra history entry.
|
|
||||||
*/
|
|
||||||
(function redirectToRoot() {
|
(function redirectToRoot() {
|
||||||
// Configuration object with safe defaults.
|
// Configuration object with safe defaults.
|
||||||
var opts = {
|
var opts = {
|
||||||
|
|||||||
@@ -1,31 +1,24 @@
|
|||||||
@charset "UTF-8";
|
@charset "UTF-8";
|
||||||
/* =========================================================================
|
/* Copyright (C) 2025 Moko Consulting <hello@mokoconsulting.tech>
|
||||||
* Copyright (C) 2025 Moko Consulting <hello@mokoconsulting.tech>
|
|
||||||
*
|
This file is part of a Moko Consulting project.
|
||||||
* This file is part of a Moko Consulting project.
|
|
||||||
*
|
SPDX-License-Identifier: GPL-3.0-or-later
|
||||||
* SPDX-License-Identifier: GPL-3.0-or-later
|
|
||||||
*
|
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3 of the License, or
|
||||||
* This program is free software; you can redistribute it and/or modify
|
(at your option) any later version.
|
||||||
* it under the terms of the GNU General Public License as published by
|
|
||||||
* the Free Software Foundation; either version 3 of the License, or
|
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
* (at your option) any later version.
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
|
||||||
*
|
|
||||||
* This program is distributed in the hope that it will be useful,
|
You should have received a copy of the GNU General Public License along with this program. If not, see https://www.gnu.org/licenses/ .
|
||||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
||||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
# FILE INFORMATION
|
||||||
* GNU General Public License for more details.
|
DEFGROUP: Joomla
|
||||||
*
|
INGROUP: Moko-Cassiopeia
|
||||||
* You should have received a copy of the GNU General Public License
|
PATH: media/templates/site/moko-cassiopeia/css/global/light/colors_alternative.css
|
||||||
* along with this program. If not, see https://www.gnu.org/licenses/ .
|
VERSION: 02.01.05
|
||||||
* =========================================================================
|
BRIEF: Alternative light mode color definitions for Moko-Cassiopeia template
|
||||||
* FILE INFORMATION
|
|
||||||
* DEFGROUP: Joomla
|
|
||||||
* INGROUP: Moko-Cassiopeia
|
|
||||||
* PATH: media/templates/site/moko-cassiopeia/css/global/light/colors_alternative.css
|
|
||||||
* VERSION: 02.01.05
|
|
||||||
* BRIEF: Alternative light mode color definitions for Moko-Cassiopeia template
|
|
||||||
* =========================================================================
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/* -----------------------------------------------
|
/* -----------------------------------------------
|
||||||
|
|||||||
@@ -1,31 +1,24 @@
|
|||||||
@charset "UTF-8";
|
@charset "UTF-8";
|
||||||
/* =========================================================================
|
/* Copyright (C) 2025 Moko Consulting <hello@mokoconsulting.tech>
|
||||||
* Copyright (C) 2025 Moko Consulting <hello@mokoconsulting.tech>
|
|
||||||
*
|
This file is part of a Moko Consulting project.
|
||||||
* This file is part of a Moko Consulting project.
|
|
||||||
*
|
SPDX-License-Identifier: GPL-3.0-or-later
|
||||||
* SPDX-License-Identifier: GPL-3.0-or-later
|
|
||||||
*
|
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3 of the License, or
|
||||||
* This program is free software; you can redistribute it and/or modify
|
(at your option) any later version.
|
||||||
* it under the terms of the GNU General Public License as published by
|
|
||||||
* the Free Software Foundation; either version 3 of the License, or
|
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
* (at your option) any later version.
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
|
||||||
*
|
|
||||||
* This program is distributed in the hope that it will be useful,
|
You should have received a copy of the GNU General Public License along with this program. If not, see https://www.gnu.org/licenses/ .
|
||||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
||||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
# FILE INFORMATION
|
||||||
* GNU General Public License for more details.
|
DEFGROUP: Joomla
|
||||||
*
|
INGROUP: Moko-Cassiopeia
|
||||||
* You should have received a copy of the GNU General Public License
|
PATH: media/templates/site/moko-cassiopeia/css/global/light/colors_standard.css
|
||||||
* along with this program. If not, see https://www.gnu.org/licenses/ .
|
VERSION: 02.01.05
|
||||||
* =========================================================================
|
BRIEF: Standard light mode color definitions for Moko-Cassiopeia template
|
||||||
* FILE INFORMATION
|
|
||||||
* DEFGROUP: Joomla
|
|
||||||
* INGROUP: Moko-Cassiopeia
|
|
||||||
* PATH: media/templates/site/moko-cassiopeia/css/global/light/colors_standard.css
|
|
||||||
* VERSION: 02.01.05
|
|
||||||
* BRIEF: Standard light mode color definitions for Moko-Cassiopeia template
|
|
||||||
* =========================================================================
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/* -----------------------------------------------
|
/* -----------------------------------------------
|
||||||
|
|||||||
@@ -1,29 +1,22 @@
|
|||||||
<!--
|
<!-- Copyright (C) 2025 Moko Consulting <jmiller@mokoconsulting.tech>
|
||||||
* Copyright (C) 2025 Moko Consulting <jmiller@mokoconsulting.tech>
|
|
||||||
*
|
|
||||||
* This file is part of a Moko Consulting project.
|
|
||||||
*
|
|
||||||
* SPDX-License-Identifier: GPL-3.0-or-later
|
|
||||||
*
|
|
||||||
* This program is free software; you can redistribute it and/or modify
|
|
||||||
* it under the terms of the GNU General Public License as published by
|
|
||||||
* the Free Software Foundation; either version 3 of the License, or
|
|
||||||
* (at your option) any later version.
|
|
||||||
*
|
|
||||||
* This program is distributed in the hope that it will be useful,
|
|
||||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
||||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
||||||
* GNU General Public License for more details.
|
|
||||||
*
|
|
||||||
* You should have received a copy of the GNU General Public License
|
|
||||||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
|
||||||
-->
|
|
||||||
|
|
||||||
<!--FILE INFORMATION
|
This file is part of a Moko Consulting project.
|
||||||
* DEFGROUP: Joomla.Site
|
|
||||||
* INGROUP: Templates.Moko-Cassiopeia
|
SPDX-License-Identifier: GPL-3.0-or-later
|
||||||
* FILE: index.html
|
|
||||||
* BRIEF: Security redirect page to block folder access and forward to site root.
|
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3 of the License, or
|
||||||
|
(at your option) any later version.
|
||||||
|
|
||||||
|
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
|
||||||
|
|
||||||
|
You should have received a copy of the GNU General Public License along with this program. If not, see https://www.gnu.org/licenses/ .
|
||||||
|
|
||||||
|
# FILE INFORMATION
|
||||||
|
DEFGROUP: Joomla.Site
|
||||||
|
INGROUP: Templates.Moko-Cassiopeia
|
||||||
|
FILE: ./index.html
|
||||||
|
BRIEF: Security redirect page to block folder access and forward to site root.
|
||||||
-->
|
-->
|
||||||
|
|
||||||
<!doctype html>
|
<!doctype html>
|
||||||
@@ -44,28 +37,7 @@
|
|||||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
/**
|
|
||||||
* @defgroup Dolibarr
|
|
||||||
* @file index.html (embedded script)
|
|
||||||
* @version 1.0.0
|
|
||||||
* @brief Security redirect logic. Replaces the current history entry with the site root.
|
|
||||||
* @details This script computes the absolute root URL using `location.origin` and
|
|
||||||
* forwards the user immediately. It prevents leaving the protected folder
|
|
||||||
* in the browser history by default.
|
|
||||||
*
|
|
||||||
* @section VARIABLES
|
|
||||||
* @var {Object} opts Configuration options for the redirect behavior.
|
|
||||||
* @var {string} opts.fallbackPath Path used when `location.origin` cannot be determined.
|
|
||||||
* @var {number} opts.delayMs Optional delay in milliseconds before redirecting.
|
|
||||||
* @var {"replace"|"assign"} opts.behavior Navigation method used for the redirect.
|
|
||||||
*
|
|
||||||
* @section OPTIONS
|
|
||||||
* - opts.fallbackPath: default "/" (root path)
|
|
||||||
* - opts.delayMs: default 0 (immediate)
|
|
||||||
* - opts.behavior: one of
|
|
||||||
* * "replace" — calls `location.replace(url)`; does not keep the folder page in history.
|
|
||||||
* * "assign" — calls `location.assign(url)`; keeps an extra history entry.
|
|
||||||
*/
|
|
||||||
(function redirectToRoot() {
|
(function redirectToRoot() {
|
||||||
// Configuration object with safe defaults.
|
// Configuration object with safe defaults.
|
||||||
var opts = {
|
var opts = {
|
||||||
|
|||||||
@@ -1,38 +1,31 @@
|
|||||||
@charset "UTF-8";
|
@charset "UTF-8";
|
||||||
/* =========================================================================
|
/* Copyright (C) 2025 Moko Consulting <hello@mokoconsulting.tech>
|
||||||
* Copyright (C) 2025 Moko Consulting <hello@mokoconsulting.tech>
|
|
||||||
*
|
This file is part of a Moko Consulting project.
|
||||||
* This file is part of a Moko Consulting project.
|
|
||||||
*
|
SPDX-License-Identifier: GPL-3.0-or-later
|
||||||
* SPDX-License-Identifier: GPL-3.0-or-later
|
|
||||||
*
|
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3 of the License, or
|
||||||
* This program is free software; you can redistribute it and/or modify
|
(at your option) any later version.
|
||||||
* it under the terms of the GNU General Public License as published by
|
|
||||||
* the Free Software Foundation; either version 3 of the License, or
|
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
* (at your option) any later version.
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
|
||||||
*
|
|
||||||
* This program is distributed in the hope that it will be useful,
|
You should have received a copy of the GNU General Public License along with this program. If not, see https://www.gnu.org/licenses/ .
|
||||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
||||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
# FILE INFORMATION
|
||||||
* GNU General Public License for more details.
|
DEFGROUP: Joomla
|
||||||
*
|
INGROUP: Moko-Cassiopeia
|
||||||
* You should have received a copy of the GNU General Public License
|
PATH: media/templates/site/moko-cassiopeia/css/global/social-media-demo.css
|
||||||
* along with this program. If not, see https://www.gnu.org/licenses/ .
|
VERSION: 02.01.05
|
||||||
* =========================================================================
|
BRIEF: Demo styles for showcasing social media elements in Moko-Cassiopeia template
|
||||||
* FILE INFORMATION
|
|
||||||
* DEFGROUP: Joomla
|
|
||||||
* INGROUP: Moko-Cassiopeia
|
|
||||||
* PATH: media/templates/site/moko-cassiopeia/css/global/social-media-demo.css
|
|
||||||
* VERSION: 02.01.05
|
|
||||||
* BRIEF: Demo styles for showcasing social media elements in Moko-Cassiopeia template
|
|
||||||
* =========================================================================
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/*
|
/*
|
||||||
======================================================================
|
======================================================================
|
||||||
Social Media Demo — FULL CSS (Joomla-safe, fully scoped)
|
Social Media Demo — FULL CSS (Joomla-safe, fully scoped)
|
||||||
Scope: All selectors prefixed with .social-media-demo to avoid leakage
|
Scope: All selectors prefixed with .social-media-demo to avoid leakage
|
||||||
Usage: Wrap your article markup in <div class="social-media-demo"> ... </div>
|
Usage: Wrap your article markup in <div class="social-media-demo"> ... </div>
|
||||||
Version: 2.0 (2025-08-23)
|
Version: 2.0 (2025-08-23)
|
||||||
|
|
||||||
How it’s organized:
|
How it’s organized:
|
||||||
@@ -94,14 +87,14 @@ REQUIRED IMAGE SIZES — Social Media Demo Wireframes
|
|||||||
--fb-cover-img: url('../../../../../image/social/fb-cover.jpg');
|
--fb-cover-img: url('../../../../../image/social/fb-cover.jpg');
|
||||||
--fb-avatar-img: url('../../../../../image/social/fb-avatar.jpg');
|
--fb-avatar-img: url('../../../../../image/social/fb-avatar.jpg');
|
||||||
|
|
||||||
--x-cover-img: url('../../../../../image/social/x-cover.jpg');
|
--x-cover-img: url('../../../../../image/social/x-cover.jpg');
|
||||||
--x-avatar-img: url('../../../../../image/social/x-avatar.jpg');
|
--x-avatar-img: url('../../../../../image/social/x-avatar.jpg');
|
||||||
|
|
||||||
--li-cover-img: url('../../../../../image/social/li-cover.jpg');
|
--li-cover-img: url('../../../../../image/social/li-cover.jpg');
|
||||||
--li-logo-img: url('../../../../../image/social/li-logo.jpg');
|
--li-logo-img: url('../../../../../image/social/li-logo.jpg');
|
||||||
|
|
||||||
--gmb-cover-img: url('../../../../../image/social/gmb-cover.jpg');
|
--gmb-cover-img: url('../../../../../image/social/gmb-cover.jpg');
|
||||||
--gmb-logo-img: url('../../../../../image/social/gmb-logo.jpg');
|
--gmb-logo-img: url('../../../../../image/social/gmb-logo.jpg');
|
||||||
|
|
||||||
--ig-cover-img: url('../../../../../image/social/ig-cover.jpg');
|
--ig-cover-img: url('../../../../../image/social/ig-cover.jpg');
|
||||||
--ig-avatar-img: url('../../../../../image/social/ig-avatar.jpg');
|
--ig-avatar-img: url('../../../../../image/social/ig-avatar.jpg');
|
||||||
|
|||||||
@@ -1,29 +1,22 @@
|
|||||||
<!--
|
<!-- Copyright (C) 2025 Moko Consulting <jmiller@mokoconsulting.tech>
|
||||||
* Copyright (C) 2025 Moko Consulting <jmiller@mokoconsulting.tech>
|
|
||||||
*
|
|
||||||
* This file is part of a Moko Consulting project.
|
|
||||||
*
|
|
||||||
* SPDX-License-Identifier: GPL-3.0-or-later
|
|
||||||
*
|
|
||||||
* This program is free software; you can redistribute it and/or modify
|
|
||||||
* it under the terms of the GNU General Public License as published by
|
|
||||||
* the Free Software Foundation; either version 3 of the License, or
|
|
||||||
* (at your option) any later version.
|
|
||||||
*
|
|
||||||
* This program is distributed in the hope that it will be useful,
|
|
||||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
||||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
||||||
* GNU General Public License for more details.
|
|
||||||
*
|
|
||||||
* You should have received a copy of the GNU General Public License
|
|
||||||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
|
||||||
-->
|
|
||||||
|
|
||||||
<!--FILE INFORMATION
|
This file is part of a Moko Consulting project.
|
||||||
* DEFGROUP: Joomla.Site
|
|
||||||
* INGROUP: Templates.Moko-Cassiopeia
|
SPDX-License-Identifier: GPL-3.0-or-later
|
||||||
* FILE: index.html
|
|
||||||
* BRIEF: Security redirect page to block folder access and forward to site root.
|
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3 of the License, or
|
||||||
|
(at your option) any later version.
|
||||||
|
|
||||||
|
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
|
||||||
|
|
||||||
|
You should have received a copy of the GNU General Public License along with this program. If not, see https://www.gnu.org/licenses/ .
|
||||||
|
|
||||||
|
# FILE INFORMATION
|
||||||
|
DEFGROUP: Joomla.Site
|
||||||
|
INGROUP: Templates.Moko-Cassiopeia
|
||||||
|
FILE: ./index.html
|
||||||
|
BRIEF: Security redirect page to block folder access and forward to site root.
|
||||||
-->
|
-->
|
||||||
|
|
||||||
<!doctype html>
|
<!doctype html>
|
||||||
@@ -44,28 +37,7 @@
|
|||||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
/**
|
|
||||||
* @defgroup Dolibarr
|
|
||||||
* @file index.html (embedded script)
|
|
||||||
* @version 1.0.0
|
|
||||||
* @brief Security redirect logic. Replaces the current history entry with the site root.
|
|
||||||
* @details This script computes the absolute root URL using `location.origin` and
|
|
||||||
* forwards the user immediately. It prevents leaving the protected folder
|
|
||||||
* in the browser history by default.
|
|
||||||
*
|
|
||||||
* @section VARIABLES
|
|
||||||
* @var {Object} opts Configuration options for the redirect behavior.
|
|
||||||
* @var {string} opts.fallbackPath Path used when `location.origin` cannot be determined.
|
|
||||||
* @var {number} opts.delayMs Optional delay in milliseconds before redirecting.
|
|
||||||
* @var {"replace"|"assign"} opts.behavior Navigation method used for the redirect.
|
|
||||||
*
|
|
||||||
* @section OPTIONS
|
|
||||||
* - opts.fallbackPath: default "/" (root path)
|
|
||||||
* - opts.delayMs: default 0 (immediate)
|
|
||||||
* - opts.behavior: one of
|
|
||||||
* * "replace" — calls `location.replace(url)`; does not keep the folder page in history.
|
|
||||||
* * "assign" — calls `location.assign(url)`; keeps an extra history entry.
|
|
||||||
*/
|
|
||||||
(function redirectToRoot() {
|
(function redirectToRoot() {
|
||||||
// Configuration object with safe defaults.
|
// Configuration object with safe defaults.
|
||||||
var opts = {
|
var opts = {
|
||||||
|
|||||||
@@ -1,29 +1,22 @@
|
|||||||
<!--
|
<!-- Copyright (C) 2025 Moko Consulting <jmiller@mokoconsulting.tech>
|
||||||
* Copyright (C) 2025 Moko Consulting <jmiller@mokoconsulting.tech>
|
|
||||||
*
|
|
||||||
* This file is part of a Moko Consulting project.
|
|
||||||
*
|
|
||||||
* SPDX-License-Identifier: GPL-3.0-or-later
|
|
||||||
*
|
|
||||||
* This program is free software; you can redistribute it and/or modify
|
|
||||||
* it under the terms of the GNU General Public License as published by
|
|
||||||
* the Free Software Foundation; either version 3 of the License, or
|
|
||||||
* (at your option) any later version.
|
|
||||||
*
|
|
||||||
* This program is distributed in the hope that it will be useful,
|
|
||||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
||||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
||||||
* GNU General Public License for more details.
|
|
||||||
*
|
|
||||||
* You should have received a copy of the GNU General Public License
|
|
||||||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
|
||||||
-->
|
|
||||||
|
|
||||||
<!--FILE INFORMATION
|
This file is part of a Moko Consulting project.
|
||||||
* DEFGROUP: Joomla.Site
|
|
||||||
* INGROUP: Templates.Moko-Cassiopeia
|
SPDX-License-Identifier: GPL-3.0-or-later
|
||||||
* FILE: index.html
|
|
||||||
* BRIEF: Security redirect page to block folder access and forward to site root.
|
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3 of the License, or
|
||||||
|
(at your option) any later version.
|
||||||
|
|
||||||
|
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
|
||||||
|
|
||||||
|
You should have received a copy of the GNU General Public License along with this program. If not, see https://www.gnu.org/licenses/ .
|
||||||
|
|
||||||
|
# FILE INFORMATION
|
||||||
|
DEFGROUP: Joomla.Site
|
||||||
|
INGROUP: Templates.Moko-Cassiopeia
|
||||||
|
FILE: ./index.html
|
||||||
|
BRIEF: Security redirect page to block folder access and forward to site root.
|
||||||
-->
|
-->
|
||||||
|
|
||||||
<!doctype html>
|
<!doctype html>
|
||||||
@@ -44,28 +37,7 @@
|
|||||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
/**
|
|
||||||
* @defgroup Dolibarr
|
|
||||||
* @file index.html (embedded script)
|
|
||||||
* @version 1.0.0
|
|
||||||
* @brief Security redirect logic. Replaces the current history entry with the site root.
|
|
||||||
* @details This script computes the absolute root URL using `location.origin` and
|
|
||||||
* forwards the user immediately. It prevents leaving the protected folder
|
|
||||||
* in the browser history by default.
|
|
||||||
*
|
|
||||||
* @section VARIABLES
|
|
||||||
* @var {Object} opts Configuration options for the redirect behavior.
|
|
||||||
* @var {string} opts.fallbackPath Path used when `location.origin` cannot be determined.
|
|
||||||
* @var {number} opts.delayMs Optional delay in milliseconds before redirecting.
|
|
||||||
* @var {"replace"|"assign"} opts.behavior Navigation method used for the redirect.
|
|
||||||
*
|
|
||||||
* @section OPTIONS
|
|
||||||
* - opts.fallbackPath: default "/" (root path)
|
|
||||||
* - opts.delayMs: default 0 (immediate)
|
|
||||||
* - opts.behavior: one of
|
|
||||||
* * "replace" — calls `location.replace(url)`; does not keep the folder page in history.
|
|
||||||
* * "assign" — calls `location.assign(url)`; keeps an extra history entry.
|
|
||||||
*/
|
|
||||||
(function redirectToRoot() {
|
(function redirectToRoot() {
|
||||||
// Configuration object with safe defaults.
|
// Configuration object with safe defaults.
|
||||||
var opts = {
|
var opts = {
|
||||||
|
|||||||
@@ -1,29 +1,22 @@
|
|||||||
<!--
|
<!-- Copyright (C) 2025 Moko Consulting <jmiller@mokoconsulting.tech>
|
||||||
* Copyright (C) 2025 Moko Consulting <jmiller@mokoconsulting.tech>
|
|
||||||
*
|
|
||||||
* This file is part of a Moko Consulting project.
|
|
||||||
*
|
|
||||||
* SPDX-License-Identifier: GPL-3.0-or-later
|
|
||||||
*
|
|
||||||
* This program is free software; you can redistribute it and/or modify
|
|
||||||
* it under the terms of the GNU General Public License as published by
|
|
||||||
* the Free Software Foundation; either version 3 of the License, or
|
|
||||||
* (at your option) any later version.
|
|
||||||
*
|
|
||||||
* This program is distributed in the hope that it will be useful,
|
|
||||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
||||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
||||||
* GNU General Public License for more details.
|
|
||||||
*
|
|
||||||
* You should have received a copy of the GNU General Public License
|
|
||||||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
|
||||||
-->
|
|
||||||
|
|
||||||
<!--FILE INFORMATION
|
This file is part of a Moko Consulting project.
|
||||||
* DEFGROUP: Joomla.Site
|
|
||||||
* INGROUP: Templates.Moko-Cassiopeia
|
SPDX-License-Identifier: GPL-3.0-or-later
|
||||||
* FILE: index.html
|
|
||||||
* BRIEF: Security redirect page to block folder access and forward to site root.
|
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3 of the License, or
|
||||||
|
(at your option) any later version.
|
||||||
|
|
||||||
|
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
|
||||||
|
|
||||||
|
You should have received a copy of the GNU General Public License along with this program. If not, see https://www.gnu.org/licenses/ .
|
||||||
|
|
||||||
|
# FILE INFORMATION
|
||||||
|
DEFGROUP: Joomla.Site
|
||||||
|
INGROUP: Templates.Moko-Cassiopeia
|
||||||
|
FILE: ./index.html
|
||||||
|
BRIEF: Security redirect page to block folder access and forward to site root.
|
||||||
-->
|
-->
|
||||||
|
|
||||||
<!doctype html>
|
<!doctype html>
|
||||||
@@ -44,28 +37,7 @@
|
|||||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
/**
|
|
||||||
* @defgroup Dolibarr
|
|
||||||
* @file index.html (embedded script)
|
|
||||||
* @version 1.0.0
|
|
||||||
* @brief Security redirect logic. Replaces the current history entry with the site root.
|
|
||||||
* @details This script computes the absolute root URL using `location.origin` and
|
|
||||||
* forwards the user immediately. It prevents leaving the protected folder
|
|
||||||
* in the browser history by default.
|
|
||||||
*
|
|
||||||
* @section VARIABLES
|
|
||||||
* @var {Object} opts Configuration options for the redirect behavior.
|
|
||||||
* @var {string} opts.fallbackPath Path used when `location.origin` cannot be determined.
|
|
||||||
* @var {number} opts.delayMs Optional delay in milliseconds before redirecting.
|
|
||||||
* @var {"replace"|"assign"} opts.behavior Navigation method used for the redirect.
|
|
||||||
*
|
|
||||||
* @section OPTIONS
|
|
||||||
* - opts.fallbackPath: default "/" (root path)
|
|
||||||
* - opts.delayMs: default 0 (immediate)
|
|
||||||
* - opts.behavior: one of
|
|
||||||
* * "replace" — calls `location.replace(url)`; does not keep the folder page in history.
|
|
||||||
* * "assign" — calls `location.assign(url)`; keeps an extra history entry.
|
|
||||||
*/
|
|
||||||
(function redirectToRoot() {
|
(function redirectToRoot() {
|
||||||
// Configuration object with safe defaults.
|
// Configuration object with safe defaults.
|
||||||
var opts = {
|
var opts = {
|
||||||
|
|||||||
@@ -1,31 +1,24 @@
|
|||||||
@charset "UTF-8";
|
@charset "UTF-8";
|
||||||
/* =========================================================================
|
/* Copyright (C) 2025 Moko Consulting <hello@mokoconsulting.tech>
|
||||||
* Copyright (C) 2025 Moko Consulting <hello@mokoconsulting.tech>
|
|
||||||
*
|
This file is part of a Moko Consulting project.
|
||||||
* This file is part of a Moko Consulting project.
|
|
||||||
*
|
SPDX-License-Identifier: GPL-3.0-or-later
|
||||||
* SPDX-License-Identifier: GPL-3.0-or-later
|
|
||||||
*
|
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3 of the License, or
|
||||||
* This program is free software; you can redistribute it and/or modify
|
(at your option) any later version.
|
||||||
* it under the terms of the GNU General Public License as published by
|
|
||||||
* the Free Software Foundation; either version 3 of the License, or
|
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
* (at your option) any later version.
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
|
||||||
*
|
|
||||||
* This program is distributed in the hope that it will be useful,
|
You should have received a copy of the GNU General Public License along with this program. If not, see https://www.gnu.org/licenses/ .
|
||||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
||||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
# FILE INFORMATION
|
||||||
* GNU General Public License for more details.
|
DEFGROUP: Joomla
|
||||||
*
|
INGROUP: Moko-Cassiopeia
|
||||||
* You should have received a copy of the GNU General Public License
|
PATH: media/templates/site/moko-cassiopeia/css/system/searchtools/searchtools.css
|
||||||
* along with this program. If not, see https://www.gnu.org/licenses/ .
|
VERSION: 02.01.05
|
||||||
* =========================================================================
|
BRIEF: Stylesheet for Joomla search tools integration in Moko-Cassiopeia template
|
||||||
* FILE INFORMATION
|
|
||||||
* DEFGROUP: Joomla
|
|
||||||
* INGROUP: Moko-Cassiopeia
|
|
||||||
* PATH: media/templates/site/moko-cassiopeia/css/system/searchtools/searchtools.css
|
|
||||||
* VERSION: 02.01.05
|
|
||||||
* BRIEF: Stylesheet for Joomla search tools integration in Moko-Cassiopeia template
|
|
||||||
* =========================================================================
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
.js-stools-container-bar {
|
.js-stools-container-bar {
|
||||||
|
|||||||
@@ -1,31 +1,24 @@
|
|||||||
@charset "UTF-8";
|
@charset "UTF-8";
|
||||||
/* =========================================================================
|
/* Copyright (C) 2025 Moko Consulting <hello@mokoconsulting.tech>
|
||||||
* Copyright (C) 2025 Moko Consulting <hello@mokoconsulting.tech>
|
|
||||||
*
|
This file is part of a Moko Consulting project.
|
||||||
* This file is part of a Moko Consulting project.
|
|
||||||
*
|
SPDX-License-Identifier: GPL-3.0-or-later
|
||||||
* SPDX-License-Identifier: GPL-3.0-or-later
|
|
||||||
*
|
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3 of the License, or
|
||||||
* This program is free software; you can redistribute it and/or modify
|
(at your option) any later version.
|
||||||
* it under the terms of the GNU General Public License as published by
|
|
||||||
* the Free Software Foundation; either version 3 of the License, or
|
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
* (at your option) any later version.
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
|
||||||
*
|
|
||||||
* This program is distributed in the hope that it will be useful,
|
You should have received a copy of the GNU General Public License along with this program. If not, see https://www.gnu.org/licenses/ .
|
||||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
||||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
# FILE INFORMATION
|
||||||
* GNU General Public License for more details.
|
DEFGROUP: Joomla
|
||||||
*
|
INGROUP: Moko-Cassiopeia
|
||||||
* You should have received a copy of the GNU General Public License
|
PATH: media/templates/site/moko-cassiopeia/css/template-rtl.css
|
||||||
* along with this program. If not, see https://www.gnu.org/licenses/ .
|
VERSION: 02.01.05
|
||||||
* =========================================================================
|
BRIEF: Right-to-left (RTL) layout stylesheet for Moko-Cassiopeia template
|
||||||
* FILE INFORMATION
|
|
||||||
* DEFGROUP: Joomla
|
|
||||||
* INGROUP: Moko-Cassiopeia
|
|
||||||
* PATH: media/templates/site/moko-cassiopeia/css/template-rtl.css
|
|
||||||
* VERSION: 02.01.05
|
|
||||||
* BRIEF: Right-to-left (RTL) layout stylesheet for Moko-Cassiopeia template
|
|
||||||
* =========================================================================
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/*!
|
/*!
|
||||||
|
|||||||
@@ -1,31 +1,24 @@
|
|||||||
@charset "UTF-8";
|
@charset "UTF-8";
|
||||||
/* =========================================================================
|
/* Copyright (C) 2025 Moko Consulting <hello@mokoconsulting.tech>
|
||||||
* Copyright (C) 2025 Moko Consulting <hello@mokoconsulting.tech>
|
|
||||||
*
|
This file is part of a Moko Consulting project.
|
||||||
* This file is part of a Moko Consulting project.
|
|
||||||
*
|
SPDX-License-Identifier: GPL-3.0-or-later
|
||||||
* SPDX-License-Identifier: GPL-3.0-or-later
|
|
||||||
*
|
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3 of the License, or
|
||||||
* This program is free software; you can redistribute it and/or modify
|
(at your option) any later version.
|
||||||
* it under the terms of the GNU General Public License as published by
|
|
||||||
* the Free Software Foundation; either version 3 of the License, or
|
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
* (at your option) any later version.
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
|
||||||
*
|
|
||||||
* This program is distributed in the hope that it will be useful,
|
You should have received a copy of the GNU General Public License along with this program. If not, see https://www.gnu.org/licenses/ .
|
||||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
||||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
# FILE INFORMATION
|
||||||
* GNU General Public License for more details.
|
DEFGROUP: Joomla
|
||||||
*
|
INGROUP: Moko-Cassiopeia
|
||||||
* You should have received a copy of the GNU General Public License
|
PATH: media/templates/site/moko-cassiopeia/css/template.css
|
||||||
* along with this program. If not, see https://www.gnu.org/licenses/ .
|
VERSION: 02.01.05
|
||||||
* =========================================================================
|
BRIEF: Main stylesheet providing layout, typography, and component styles for Moko-Cassiopeia
|
||||||
* FILE INFORMATION
|
|
||||||
* DEFGROUP: Joomla
|
|
||||||
* INGROUP: Moko-Cassiopeia
|
|
||||||
* PATH: media/templates/site/moko-cassiopeia/css/template.css
|
|
||||||
* VERSION: 02.01.05
|
|
||||||
* BRIEF: Main stylesheet providing layout, typography, and component styles for Moko-Cassiopeia
|
|
||||||
* =========================================================================
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
*,
|
*,
|
||||||
|
|||||||
@@ -1,29 +1,22 @@
|
|||||||
<!--
|
<!-- Copyright (C) 2025 Moko Consulting <jmiller@mokoconsulting.tech>
|
||||||
* Copyright (C) 2025 Moko Consulting <jmiller@mokoconsulting.tech>
|
|
||||||
*
|
|
||||||
* This file is part of a Moko Consulting project.
|
|
||||||
*
|
|
||||||
* SPDX-License-Identifier: GPL-3.0-or-later
|
|
||||||
*
|
|
||||||
* This program is free software; you can redistribute it and/or modify
|
|
||||||
* it under the terms of the GNU General Public License as published by
|
|
||||||
* the Free Software Foundation; either version 3 of the License, or
|
|
||||||
* (at your option) any later version.
|
|
||||||
*
|
|
||||||
* This program is distributed in the hope that it will be useful,
|
|
||||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
||||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
||||||
* GNU General Public License for more details.
|
|
||||||
*
|
|
||||||
* You should have received a copy of the GNU General Public License
|
|
||||||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
|
||||||
-->
|
|
||||||
|
|
||||||
<!--FILE INFORMATION
|
This file is part of a Moko Consulting project.
|
||||||
* DEFGROUP: Joomla.Site
|
|
||||||
* INGROUP: Templates.Moko-Cassiopeia
|
SPDX-License-Identifier: GPL-3.0-or-later
|
||||||
* FILE: index.html
|
|
||||||
* BRIEF: Security redirect page to block folder access and forward to site root.
|
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3 of the License, or
|
||||||
|
(at your option) any later version.
|
||||||
|
|
||||||
|
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
|
||||||
|
|
||||||
|
You should have received a copy of the GNU General Public License along with this program. If not, see https://www.gnu.org/licenses/ .
|
||||||
|
|
||||||
|
# FILE INFORMATION
|
||||||
|
DEFGROUP: Joomla.Site
|
||||||
|
INGROUP: Templates.Moko-Cassiopeia
|
||||||
|
FILE: ./index.html
|
||||||
|
BRIEF: Security redirect page to block folder access and forward to site root.
|
||||||
-->
|
-->
|
||||||
|
|
||||||
<!doctype html>
|
<!doctype html>
|
||||||
@@ -44,28 +37,7 @@
|
|||||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
/**
|
|
||||||
* @defgroup Dolibarr
|
|
||||||
* @file index.html (embedded script)
|
|
||||||
* @version 1.0.0
|
|
||||||
* @brief Security redirect logic. Replaces the current history entry with the site root.
|
|
||||||
* @details This script computes the absolute root URL using `location.origin` and
|
|
||||||
* forwards the user immediately. It prevents leaving the protected folder
|
|
||||||
* in the browser history by default.
|
|
||||||
*
|
|
||||||
* @section VARIABLES
|
|
||||||
* @var {Object} opts Configuration options for the redirect behavior.
|
|
||||||
* @var {string} opts.fallbackPath Path used when `location.origin` cannot be determined.
|
|
||||||
* @var {number} opts.delayMs Optional delay in milliseconds before redirecting.
|
|
||||||
* @var {"replace"|"assign"} opts.behavior Navigation method used for the redirect.
|
|
||||||
*
|
|
||||||
* @section OPTIONS
|
|
||||||
* - opts.fallbackPath: default "/" (root path)
|
|
||||||
* - opts.delayMs: default 0 (immediate)
|
|
||||||
* - opts.behavior: one of
|
|
||||||
* * "replace" — calls `location.replace(url)`; does not keep the folder page in history.
|
|
||||||
* * "assign" — calls `location.assign(url)`; keeps an extra history entry.
|
|
||||||
*/
|
|
||||||
(function redirectToRoot() {
|
(function redirectToRoot() {
|
||||||
// Configuration object with safe defaults.
|
// Configuration object with safe defaults.
|
||||||
var opts = {
|
var opts = {
|
||||||
|
|||||||
@@ -1,31 +1,24 @@
|
|||||||
@charset "UTF-8";
|
@charset "UTF-8";
|
||||||
/* =========================================================================
|
/* Copyright (C) 2025 Moko Consulting <hello@mokoconsulting.tech>
|
||||||
* Copyright (C) 2025 Moko Consulting <hello@mokoconsulting.tech>
|
|
||||||
*
|
This file is part of a Moko Consulting project.
|
||||||
* This file is part of a Moko Consulting project.
|
|
||||||
*
|
SPDX-License-Identifier: GPL-3.0-or-later
|
||||||
* SPDX-License-Identifier: GPL-3.0-or-later
|
|
||||||
*
|
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3 of the License, or
|
||||||
* This program is free software; you can redistribute it and/or modify
|
(at your option) any later version.
|
||||||
* it under the terms of the GNU General Public License as published by
|
|
||||||
* the Free Software Foundation; either version 3 of the License, or
|
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
* (at your option) any later version.
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
|
||||||
*
|
|
||||||
* This program is distributed in the hope that it will be useful,
|
You should have received a copy of the GNU General Public License along with this program. If not, see https://www.gnu.org/licenses/ .
|
||||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
||||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
# FILE INFORMATION
|
||||||
* GNU General Public License for more details.
|
DEFGROUP: Joomla
|
||||||
*
|
INGROUP: Moko-Cassiopeia
|
||||||
* You should have received a copy of the GNU General Public License
|
PATH: media/templates/site/moko-cassiopeia/css/vendor/choicesjs/choices.css
|
||||||
* along with this program. If not, see https://www.gnu.org/licenses/ .
|
VERSION: 02.01.05
|
||||||
* =========================================================================
|
BRIEF: Vendor stylesheet for Choices.js select and input enhancements in Moko-Cassiopeia
|
||||||
* FILE INFORMATION
|
|
||||||
* DEFGROUP: Joomla
|
|
||||||
* INGROUP: Moko-Cassiopeia
|
|
||||||
* PATH: media/templates/site/moko-cassiopeia/css/vendor/choicesjs/choices.css
|
|
||||||
* VERSION: 02.01.05
|
|
||||||
* BRIEF: Vendor stylesheet for Choices.js select and input enhancements in Moko-Cassiopeia
|
|
||||||
* =========================================================================
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/* ===============================
|
/* ===============================
|
||||||
|
|||||||
@@ -1,29 +1,22 @@
|
|||||||
<!--
|
<!-- Copyright (C) 2025 Moko Consulting <jmiller@mokoconsulting.tech>
|
||||||
* Copyright (C) 2025 Moko Consulting <jmiller@mokoconsulting.tech>
|
|
||||||
*
|
|
||||||
* This file is part of a Moko Consulting project.
|
|
||||||
*
|
|
||||||
* SPDX-License-Identifier: GPL-3.0-or-later
|
|
||||||
*
|
|
||||||
* This program is free software; you can redistribute it and/or modify
|
|
||||||
* it under the terms of the GNU General Public License as published by
|
|
||||||
* the Free Software Foundation; either version 3 of the License, or
|
|
||||||
* (at your option) any later version.
|
|
||||||
*
|
|
||||||
* This program is distributed in the hope that it will be useful,
|
|
||||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
||||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
||||||
* GNU General Public License for more details.
|
|
||||||
*
|
|
||||||
* You should have received a copy of the GNU General Public License
|
|
||||||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
|
||||||
-->
|
|
||||||
|
|
||||||
<!--FILE INFORMATION
|
This file is part of a Moko Consulting project.
|
||||||
* DEFGROUP: Joomla.Site
|
|
||||||
* INGROUP: Templates.Moko-Cassiopeia
|
SPDX-License-Identifier: GPL-3.0-or-later
|
||||||
* FILE: index.html
|
|
||||||
* BRIEF: Security redirect page to block folder access and forward to site root.
|
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3 of the License, or
|
||||||
|
(at your option) any later version.
|
||||||
|
|
||||||
|
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
|
||||||
|
|
||||||
|
You should have received a copy of the GNU General Public License along with this program. If not, see https://www.gnu.org/licenses/ .
|
||||||
|
|
||||||
|
# FILE INFORMATION
|
||||||
|
DEFGROUP: Joomla.Site
|
||||||
|
INGROUP: Templates.Moko-Cassiopeia
|
||||||
|
FILE: ./index.html
|
||||||
|
BRIEF: Security redirect page to block folder access and forward to site root.
|
||||||
-->
|
-->
|
||||||
|
|
||||||
<!doctype html>
|
<!doctype html>
|
||||||
@@ -44,28 +37,7 @@
|
|||||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
/**
|
|
||||||
* @defgroup Dolibarr
|
|
||||||
* @file index.html (embedded script)
|
|
||||||
* @version 1.0.0
|
|
||||||
* @brief Security redirect logic. Replaces the current history entry with the site root.
|
|
||||||
* @details This script computes the absolute root URL using `location.origin` and
|
|
||||||
* forwards the user immediately. It prevents leaving the protected folder
|
|
||||||
* in the browser history by default.
|
|
||||||
*
|
|
||||||
* @section VARIABLES
|
|
||||||
* @var {Object} opts Configuration options for the redirect behavior.
|
|
||||||
* @var {string} opts.fallbackPath Path used when `location.origin` cannot be determined.
|
|
||||||
* @var {number} opts.delayMs Optional delay in milliseconds before redirecting.
|
|
||||||
* @var {"replace"|"assign"} opts.behavior Navigation method used for the redirect.
|
|
||||||
*
|
|
||||||
* @section OPTIONS
|
|
||||||
* - opts.fallbackPath: default "/" (root path)
|
|
||||||
* - opts.delayMs: default 0 (immediate)
|
|
||||||
* - opts.behavior: one of
|
|
||||||
* * "replace" — calls `location.replace(url)`; does not keep the folder page in history.
|
|
||||||
* * "assign" — calls `location.assign(url)`; keeps an extra history entry.
|
|
||||||
*/
|
|
||||||
(function redirectToRoot() {
|
(function redirectToRoot() {
|
||||||
// Configuration object with safe defaults.
|
// Configuration object with safe defaults.
|
||||||
var opts = {
|
var opts = {
|
||||||
|
|||||||
@@ -1,29 +1,22 @@
|
|||||||
<!--
|
<!-- Copyright (C) 2025 Moko Consulting <jmiller@mokoconsulting.tech>
|
||||||
* Copyright (C) 2025 Moko Consulting <jmiller@mokoconsulting.tech>
|
|
||||||
*
|
|
||||||
* This file is part of a Moko Consulting project.
|
|
||||||
*
|
|
||||||
* SPDX-License-Identifier: GPL-3.0-or-later
|
|
||||||
*
|
|
||||||
* This program is free software; you can redistribute it and/or modify
|
|
||||||
* it under the terms of the GNU General Public License as published by
|
|
||||||
* the Free Software Foundation; either version 3 of the License, or
|
|
||||||
* (at your option) any later version.
|
|
||||||
*
|
|
||||||
* This program is distributed in the hope that it will be useful,
|
|
||||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
||||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
||||||
* GNU General Public License for more details.
|
|
||||||
*
|
|
||||||
* You should have received a copy of the GNU General Public License
|
|
||||||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
|
||||||
-->
|
|
||||||
|
|
||||||
<!--FILE INFORMATION
|
This file is part of a Moko Consulting project.
|
||||||
* DEFGROUP: Joomla.Site
|
|
||||||
* INGROUP: Templates.Moko-Cassiopeia
|
SPDX-License-Identifier: GPL-3.0-or-later
|
||||||
* FILE: index.html
|
|
||||||
* BRIEF: Security redirect page to block folder access and forward to site root.
|
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3 of the License, or
|
||||||
|
(at your option) any later version.
|
||||||
|
|
||||||
|
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
|
||||||
|
|
||||||
|
You should have received a copy of the GNU General Public License along with this program. If not, see https://www.gnu.org/licenses/ .
|
||||||
|
|
||||||
|
# FILE INFORMATION
|
||||||
|
DEFGROUP: Joomla.Site
|
||||||
|
INGROUP: Templates.Moko-Cassiopeia
|
||||||
|
FILE: ./index.html
|
||||||
|
BRIEF: Security redirect page to block folder access and forward to site root.
|
||||||
-->
|
-->
|
||||||
|
|
||||||
<!doctype html>
|
<!doctype html>
|
||||||
@@ -44,28 +37,7 @@
|
|||||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
/**
|
|
||||||
* @defgroup Dolibarr
|
|
||||||
* @file index.html (embedded script)
|
|
||||||
* @version 1.0.0
|
|
||||||
* @brief Security redirect logic. Replaces the current history entry with the site root.
|
|
||||||
* @details This script computes the absolute root URL using `location.origin` and
|
|
||||||
* forwards the user immediately. It prevents leaving the protected folder
|
|
||||||
* in the browser history by default.
|
|
||||||
*
|
|
||||||
* @section VARIABLES
|
|
||||||
* @var {Object} opts Configuration options for the redirect behavior.
|
|
||||||
* @var {string} opts.fallbackPath Path used when `location.origin` cannot be determined.
|
|
||||||
* @var {number} opts.delayMs Optional delay in milliseconds before redirecting.
|
|
||||||
* @var {"replace"|"assign"} opts.behavior Navigation method used for the redirect.
|
|
||||||
*
|
|
||||||
* @section OPTIONS
|
|
||||||
* - opts.fallbackPath: default "/" (root path)
|
|
||||||
* - opts.delayMs: default 0 (immediate)
|
|
||||||
* - opts.behavior: one of
|
|
||||||
* * "replace" — calls `location.replace(url)`; does not keep the folder page in history.
|
|
||||||
* * "assign" — calls `location.assign(url)`; keeps an extra history entry.
|
|
||||||
*/
|
|
||||||
(function redirectToRoot() {
|
(function redirectToRoot() {
|
||||||
// Configuration object with safe defaults.
|
// Configuration object with safe defaults.
|
||||||
var opts = {
|
var opts = {
|
||||||
|
|||||||
@@ -1,29 +1,22 @@
|
|||||||
<!--
|
<!-- Copyright (C) 2025 Moko Consulting <jmiller@mokoconsulting.tech>
|
||||||
* Copyright (C) 2025 Moko Consulting <jmiller@mokoconsulting.tech>
|
|
||||||
*
|
|
||||||
* This file is part of a Moko Consulting project.
|
|
||||||
*
|
|
||||||
* SPDX-License-Identifier: GPL-3.0-or-later
|
|
||||||
*
|
|
||||||
* This program is free software; you can redistribute it and/or modify
|
|
||||||
* it under the terms of the GNU General Public License as published by
|
|
||||||
* the Free Software Foundation; either version 3 of the License, or
|
|
||||||
* (at your option) any later version.
|
|
||||||
*
|
|
||||||
* This program is distributed in the hope that it will be useful,
|
|
||||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
||||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
||||||
* GNU General Public License for more details.
|
|
||||||
*
|
|
||||||
* You should have received a copy of the GNU General Public License
|
|
||||||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
|
||||||
-->
|
|
||||||
|
|
||||||
<!--FILE INFORMATION
|
This file is part of a Moko Consulting project.
|
||||||
* DEFGROUP: Joomla.Site
|
|
||||||
* INGROUP: Templates.Moko-Cassiopeia
|
SPDX-License-Identifier: GPL-3.0-or-later
|
||||||
* FILE: index.html
|
|
||||||
* BRIEF: Security redirect page to block folder access and forward to site root.
|
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3 of the License, or
|
||||||
|
(at your option) any later version.
|
||||||
|
|
||||||
|
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
|
||||||
|
|
||||||
|
You should have received a copy of the GNU General Public License along with this program. If not, see https://www.gnu.org/licenses/ .
|
||||||
|
|
||||||
|
# FILE INFORMATION
|
||||||
|
DEFGROUP: Joomla.Site
|
||||||
|
INGROUP: Templates.Moko-Cassiopeia
|
||||||
|
FILE: ./index.html
|
||||||
|
BRIEF: Security redirect page to block folder access and forward to site root.
|
||||||
-->
|
-->
|
||||||
|
|
||||||
<!doctype html>
|
<!doctype html>
|
||||||
@@ -44,28 +37,7 @@
|
|||||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
/**
|
|
||||||
* @defgroup Dolibarr
|
|
||||||
* @file index.html (embedded script)
|
|
||||||
* @version 1.0.0
|
|
||||||
* @brief Security redirect logic. Replaces the current history entry with the site root.
|
|
||||||
* @details This script computes the absolute root URL using `location.origin` and
|
|
||||||
* forwards the user immediately. It prevents leaving the protected folder
|
|
||||||
* in the browser history by default.
|
|
||||||
*
|
|
||||||
* @section VARIABLES
|
|
||||||
* @var {Object} opts Configuration options for the redirect behavior.
|
|
||||||
* @var {string} opts.fallbackPath Path used when `location.origin` cannot be determined.
|
|
||||||
* @var {number} opts.delayMs Optional delay in milliseconds before redirecting.
|
|
||||||
* @var {"replace"|"assign"} opts.behavior Navigation method used for the redirect.
|
|
||||||
*
|
|
||||||
* @section OPTIONS
|
|
||||||
* - opts.fallbackPath: default "/" (root path)
|
|
||||||
* - opts.delayMs: default 0 (immediate)
|
|
||||||
* - opts.behavior: one of
|
|
||||||
* * "replace" — calls `location.replace(url)`; does not keep the folder page in history.
|
|
||||||
* * "assign" — calls `location.assign(url)`; keeps an extra history entry.
|
|
||||||
*/
|
|
||||||
(function redirectToRoot() {
|
(function redirectToRoot() {
|
||||||
// Configuration object with safe defaults.
|
// Configuration object with safe defaults.
|
||||||
var opts = {
|
var opts = {
|
||||||
|
|||||||
@@ -1,31 +1,24 @@
|
|||||||
@charset "UTF-8";
|
@charset "UTF-8";
|
||||||
/* =========================================================================
|
/* Copyright (C) 2025 Moko Consulting <hello@mokoconsulting.tech>
|
||||||
* Copyright (C) 2025 Moko Consulting <hello@mokoconsulting.tech>
|
|
||||||
*
|
This file is part of a Moko Consulting project.
|
||||||
* This file is part of a Moko Consulting project.
|
|
||||||
*
|
SPDX-License-Identifier: GPL-3.0-or-later
|
||||||
* SPDX-License-Identifier: GPL-3.0-or-later
|
|
||||||
*
|
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3 of the License, or
|
||||||
* This program is free software; you can redistribute it and/or modify
|
(at your option) any later version.
|
||||||
* it under the terms of the GNU General Public License as published by
|
|
||||||
* the Free Software Foundation; either version 3 of the License, or
|
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
* (at your option) any later version.
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
|
||||||
*
|
|
||||||
* This program is distributed in the hope that it will be useful,
|
You should have received a copy of the GNU General Public License along with this program. If not, see https://www.gnu.org/licenses/ .
|
||||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
||||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
# FILE INFORMATION
|
||||||
* GNU General Public License for more details.
|
DEFGROUP: Joomla
|
||||||
*
|
INGROUP: Moko-Cassiopeia
|
||||||
* You should have received a copy of the GNU General Public License
|
PATH: media/templates/site/moko-cassiopeia/css/vendor/choicesjs/choices.css
|
||||||
* along with this program. If not, see https://www.gnu.org/licenses/ .
|
VERSION: 02.01.05
|
||||||
* =========================================================================
|
BRIEF: Vendor stylesheet for Choices.js select and input enhancements in Moko-Cassiopeia
|
||||||
* FILE INFORMATION
|
|
||||||
* DEFGROUP: Joomla
|
|
||||||
* INGROUP: Moko-Cassiopeia
|
|
||||||
* PATH: media/templates/site/moko-cassiopeia/css/vendor/choicesjs/choices.css
|
|
||||||
* VERSION: 02.01.05
|
|
||||||
* BRIEF: Vendor stylesheet for Choices.js select and input enhancements in Moko-Cassiopeia
|
|
||||||
* =========================================================================
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
@import "../../../../../../vendor/joomla-custom-elements/css/joomla-alert.css";
|
@import "../../../../../../vendor/joomla-custom-elements/css/joomla-alert.css";
|
||||||
|
|||||||
@@ -1,29 +1,22 @@
|
|||||||
<!--
|
<!-- Copyright (C) 2025 Moko Consulting <jmiller@mokoconsulting.tech>
|
||||||
* Copyright (C) 2025 Moko Consulting <jmiller@mokoconsulting.tech>
|
|
||||||
*
|
|
||||||
* This file is part of a Moko Consulting project.
|
|
||||||
*
|
|
||||||
* SPDX-License-Identifier: GPL-3.0-or-later
|
|
||||||
*
|
|
||||||
* This program is free software; you can redistribute it and/or modify
|
|
||||||
* it under the terms of the GNU General Public License as published by
|
|
||||||
* the Free Software Foundation; either version 3 of the License, or
|
|
||||||
* (at your option) any later version.
|
|
||||||
*
|
|
||||||
* This program is distributed in the hope that it will be useful,
|
|
||||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
||||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
||||||
* GNU General Public License for more details.
|
|
||||||
*
|
|
||||||
* You should have received a copy of the GNU General Public License
|
|
||||||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
|
||||||
-->
|
|
||||||
|
|
||||||
<!--FILE INFORMATION
|
This file is part of a Moko Consulting project.
|
||||||
* DEFGROUP: Joomla.Site
|
|
||||||
* INGROUP: Templates.Moko-Cassiopeia
|
SPDX-License-Identifier: GPL-3.0-or-later
|
||||||
* FILE: index.html
|
|
||||||
* BRIEF: Security redirect page to block folder access and forward to site root.
|
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3 of the License, or
|
||||||
|
(at your option) any later version.
|
||||||
|
|
||||||
|
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
|
||||||
|
|
||||||
|
You should have received a copy of the GNU General Public License along with this program. If not, see https://www.gnu.org/licenses/ .
|
||||||
|
|
||||||
|
# FILE INFORMATION
|
||||||
|
DEFGROUP: Joomla.Site
|
||||||
|
INGROUP: Templates.Moko-Cassiopeia
|
||||||
|
FILE: ./index.html
|
||||||
|
BRIEF: Security redirect page to block folder access and forward to site root.
|
||||||
-->
|
-->
|
||||||
|
|
||||||
<!doctype html>
|
<!doctype html>
|
||||||
@@ -44,28 +37,7 @@
|
|||||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
/**
|
|
||||||
* @defgroup Dolibarr
|
|
||||||
* @file index.html (embedded script)
|
|
||||||
* @version 1.0.0
|
|
||||||
* @brief Security redirect logic. Replaces the current history entry with the site root.
|
|
||||||
* @details This script computes the absolute root URL using `location.origin` and
|
|
||||||
* forwards the user immediately. It prevents leaving the protected folder
|
|
||||||
* in the browser history by default.
|
|
||||||
*
|
|
||||||
* @section VARIABLES
|
|
||||||
* @var {Object} opts Configuration options for the redirect behavior.
|
|
||||||
* @var {string} opts.fallbackPath Path used when `location.origin` cannot be determined.
|
|
||||||
* @var {number} opts.delayMs Optional delay in milliseconds before redirecting.
|
|
||||||
* @var {"replace"|"assign"} opts.behavior Navigation method used for the redirect.
|
|
||||||
*
|
|
||||||
* @section OPTIONS
|
|
||||||
* - opts.fallbackPath: default "/" (root path)
|
|
||||||
* - opts.delayMs: default 0 (immediate)
|
|
||||||
* - opts.behavior: one of
|
|
||||||
* * "replace" — calls `location.replace(url)`; does not keep the folder page in history.
|
|
||||||
* * "assign" — calls `location.assign(url)`; keeps an extra history entry.
|
|
||||||
*/
|
|
||||||
(function redirectToRoot() {
|
(function redirectToRoot() {
|
||||||
// Configuration object with safe defaults.
|
// Configuration object with safe defaults.
|
||||||
var opts = {
|
var opts = {
|
||||||
|
|||||||
@@ -1,29 +1,22 @@
|
|||||||
<!--
|
<!-- Copyright (C) 2025 Moko Consulting <jmiller@mokoconsulting.tech>
|
||||||
* Copyright (C) 2025 Moko Consulting <jmiller@mokoconsulting.tech>
|
|
||||||
*
|
|
||||||
* This file is part of a Moko Consulting project.
|
|
||||||
*
|
|
||||||
* SPDX-License-Identifier: GPL-3.0-or-later
|
|
||||||
*
|
|
||||||
* This program is free software; you can redistribute it and/or modify
|
|
||||||
* it under the terms of the GNU General Public License as published by
|
|
||||||
* the Free Software Foundation; either version 3 of the License, or
|
|
||||||
* (at your option) any later version.
|
|
||||||
*
|
|
||||||
* This program is distributed in the hope that it will be useful,
|
|
||||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
||||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
||||||
* GNU General Public License for more details.
|
|
||||||
*
|
|
||||||
* You should have received a copy of the GNU General Public License
|
|
||||||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
|
||||||
-->
|
|
||||||
|
|
||||||
<!--FILE INFORMATION
|
This file is part of a Moko Consulting project.
|
||||||
* DEFGROUP: Joomla.Site
|
|
||||||
* INGROUP: Templates.Moko-Cassiopeia
|
SPDX-License-Identifier: GPL-3.0-or-later
|
||||||
* FILE: index.html
|
|
||||||
* BRIEF: Security redirect page to block folder access and forward to site root.
|
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3 of the License, or
|
||||||
|
(at your option) any later version.
|
||||||
|
|
||||||
|
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
|
||||||
|
|
||||||
|
You should have received a copy of the GNU General Public License along with this program. If not, see https://www.gnu.org/licenses/ .
|
||||||
|
|
||||||
|
# FILE INFORMATION
|
||||||
|
DEFGROUP: Joomla.Site
|
||||||
|
INGROUP: Templates.Moko-Cassiopeia
|
||||||
|
FILE: ./index.html
|
||||||
|
BRIEF: Security redirect page to block folder access and forward to site root.
|
||||||
-->
|
-->
|
||||||
|
|
||||||
<!doctype html>
|
<!doctype html>
|
||||||
@@ -44,28 +37,7 @@
|
|||||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
/**
|
|
||||||
* @defgroup Dolibarr
|
|
||||||
* @file index.html (embedded script)
|
|
||||||
* @version 1.0.0
|
|
||||||
* @brief Security redirect logic. Replaces the current history entry with the site root.
|
|
||||||
* @details This script computes the absolute root URL using `location.origin` and
|
|
||||||
* forwards the user immediately. It prevents leaving the protected folder
|
|
||||||
* in the browser history by default.
|
|
||||||
*
|
|
||||||
* @section VARIABLES
|
|
||||||
* @var {Object} opts Configuration options for the redirect behavior.
|
|
||||||
* @var {string} opts.fallbackPath Path used when `location.origin` cannot be determined.
|
|
||||||
* @var {number} opts.delayMs Optional delay in milliseconds before redirecting.
|
|
||||||
* @var {"replace"|"assign"} opts.behavior Navigation method used for the redirect.
|
|
||||||
*
|
|
||||||
* @section OPTIONS
|
|
||||||
* - opts.fallbackPath: default "/" (root path)
|
|
||||||
* - opts.delayMs: default 0 (immediate)
|
|
||||||
* - opts.behavior: one of
|
|
||||||
* * "replace" — calls `location.replace(url)`; does not keep the folder page in history.
|
|
||||||
* * "assign" — calls `location.assign(url)`; keeps an extra history entry.
|
|
||||||
*/
|
|
||||||
(function redirectToRoot() {
|
(function redirectToRoot() {
|
||||||
// Configuration object with safe defaults.
|
// Configuration object with safe defaults.
|
||||||
var opts = {
|
var opts = {
|
||||||
|
|||||||
@@ -1,29 +1,22 @@
|
|||||||
<!--
|
<!-- Copyright (C) 2025 Moko Consulting <jmiller@mokoconsulting.tech>
|
||||||
* Copyright (C) 2025 Moko Consulting <jmiller@mokoconsulting.tech>
|
|
||||||
*
|
|
||||||
* This file is part of a Moko Consulting project.
|
|
||||||
*
|
|
||||||
* SPDX-License-Identifier: GPL-3.0-or-later
|
|
||||||
*
|
|
||||||
* This program is free software; you can redistribute it and/or modify
|
|
||||||
* it under the terms of the GNU General Public License as published by
|
|
||||||
* the Free Software Foundation; either version 3 of the License, or
|
|
||||||
* (at your option) any later version.
|
|
||||||
*
|
|
||||||
* This program is distributed in the hope that it will be useful,
|
|
||||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
||||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
||||||
* GNU General Public License for more details.
|
|
||||||
*
|
|
||||||
* You should have received a copy of the GNU General Public License
|
|
||||||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
|
||||||
-->
|
|
||||||
|
|
||||||
<!--FILE INFORMATION
|
This file is part of a Moko Consulting project.
|
||||||
* DEFGROUP: Joomla.Site
|
|
||||||
* INGROUP: Templates.Moko-Cassiopeia
|
SPDX-License-Identifier: GPL-3.0-or-later
|
||||||
* FILE: index.html
|
|
||||||
* BRIEF: Security redirect page to block folder access and forward to site root.
|
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3 of the License, or
|
||||||
|
(at your option) any later version.
|
||||||
|
|
||||||
|
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
|
||||||
|
|
||||||
|
You should have received a copy of the GNU General Public License along with this program. If not, see https://www.gnu.org/licenses/ .
|
||||||
|
|
||||||
|
# FILE INFORMATION
|
||||||
|
DEFGROUP: Joomla.Site
|
||||||
|
INGROUP: Templates.Moko-Cassiopeia
|
||||||
|
FILE: ./index.html
|
||||||
|
BRIEF: Security redirect page to block folder access and forward to site root.
|
||||||
-->
|
-->
|
||||||
|
|
||||||
<!doctype html>
|
<!doctype html>
|
||||||
@@ -44,28 +37,7 @@
|
|||||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
/**
|
|
||||||
* @defgroup Dolibarr
|
|
||||||
* @file index.html (embedded script)
|
|
||||||
* @version 1.0.0
|
|
||||||
* @brief Security redirect logic. Replaces the current history entry with the site root.
|
|
||||||
* @details This script computes the absolute root URL using `location.origin` and
|
|
||||||
* forwards the user immediately. It prevents leaving the protected folder
|
|
||||||
* in the browser history by default.
|
|
||||||
*
|
|
||||||
* @section VARIABLES
|
|
||||||
* @var {Object} opts Configuration options for the redirect behavior.
|
|
||||||
* @var {string} opts.fallbackPath Path used when `location.origin` cannot be determined.
|
|
||||||
* @var {number} opts.delayMs Optional delay in milliseconds before redirecting.
|
|
||||||
* @var {"replace"|"assign"} opts.behavior Navigation method used for the redirect.
|
|
||||||
*
|
|
||||||
* @section OPTIONS
|
|
||||||
* - opts.fallbackPath: default "/" (root path)
|
|
||||||
* - opts.delayMs: default 0 (immediate)
|
|
||||||
* - opts.behavior: one of
|
|
||||||
* * "replace" — calls `location.replace(url)`; does not keep the folder page in history.
|
|
||||||
* * "assign" — calls `location.assign(url)`; keeps an extra history entry.
|
|
||||||
*/
|
|
||||||
(function redirectToRoot() {
|
(function redirectToRoot() {
|
||||||
// Configuration object with safe defaults.
|
// Configuration object with safe defaults.
|
||||||
var opts = {
|
var opts = {
|
||||||
|
|||||||
@@ -1,30 +1,23 @@
|
|||||||
/* =========================================================================
|
/* Copyright (C) 2025 Moko Consulting <hello@mokoconsulting.tech>
|
||||||
* Copyright (C) 2025 Moko Consulting <hello@mokoconsulting.tech>
|
|
||||||
*
|
This file is part of a Moko Consulting project.
|
||||||
* This file is part of a Moko Consulting project.
|
|
||||||
*
|
SPDX-License-Identifier: GPL-3.0-or-later
|
||||||
* SPDX-License-Identifier: GPL-3.0-or-later
|
|
||||||
*
|
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3 of the License, or
|
||||||
* This program is free software; you can redistribute it and/or modify
|
(at your option) any later version.
|
||||||
* it under the terms of the GNU General Public License as published by
|
|
||||||
* the Free Software Foundation; either version 3 of the License, or
|
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
* (at your option) any later version.
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
|
||||||
*
|
|
||||||
* This program is distributed in the hope that it will be useful,
|
You should have received a copy of the GNU General Public License along with this program. If not, see https://www.gnu.org/licenses/ .
|
||||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
||||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
# FILE INFORMATION
|
||||||
* GNU General Public License for more details.
|
DEFGROUP: Joomla
|
||||||
*
|
INGROUP: Moko-Cassiopeia
|
||||||
* You should have received a copy of the GNU General Public License
|
PATH: media/templates/site/moko-cassiopeia/js/darkmode-toggle.js
|
||||||
* along with this program. If not, see https://www.gnu.org/licenses/ .
|
VERSION: 02.01.05
|
||||||
* =========================================================================
|
BRIEF: JavaScript logic for dark mode toggle functionality in Moko-Cassiopeia
|
||||||
* FILE INFORMATION
|
|
||||||
* DEFGROUP: Joomla
|
|
||||||
* INGROUP: Moko-Cassiopeia
|
|
||||||
* PATH: media/templates/site/moko-cassiopeia/js/darkmode-toggle.js
|
|
||||||
* VERSION: 02.01.05
|
|
||||||
* BRIEF: JavaScript logic for dark mode toggle functionality in Moko-Cassiopeia
|
|
||||||
* =========================================================================
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
(function () {
|
(function () {
|
||||||
|
|||||||
@@ -1,25 +1,20 @@
|
|||||||
/*
|
/* Copyright (C) 2025 Moko Consulting <hello@mokoconsulting.tech>
|
||||||
=========================================================================
|
|
||||||
Copyright (C) 2025 Moko Consulting <hello@mokoconsulting.tech>
|
|
||||||
This file is part of a Moko Consulting project.
|
This file is part of a Moko Consulting project.
|
||||||
|
|
||||||
SPDX-License-Identifier: GPL-3.0-or-later
|
SPDX-License-Identifier: GPL-3.0-or-later
|
||||||
|
|
||||||
This program is free software; you can redistribute it and/or modify
|
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3 of the License, or
|
||||||
it under the terms of the GNU General Public License as published by
|
|
||||||
the Free Software Foundation; either version 3 of the License, or
|
|
||||||
(at your option) any later version.
|
(at your option) any later version.
|
||||||
|
|
||||||
This program is distributed in the hope that it will be useful,
|
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
|
||||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
||||||
GNU General Public License for more details.
|
|
||||||
|
|
||||||
You should have received a copy of the GNU General Public License
|
You should have received a copy of the GNU General Public License along with this program. If not, see https://www.gnu.org/licenses/ .
|
||||||
along with this program. If not, see https://www.gnu.org/licenses/ .
|
|
||||||
=========================================================================
|
# FILE INFORMATION
|
||||||
FILE INFORMATION
|
|
||||||
DEFGROUP: Joomla Template
|
DEFGROUP: Joomla Template
|
||||||
FILE: media/templates/site/moko-cassiopeia/js/gtm.js
|
FILE: ./media/templates/site/moko-cassiopeia/js/gtm.js
|
||||||
HEADER VERSION: 1.0
|
HEADER VERSION: 1.0
|
||||||
VERSION: 2.0
|
VERSION: 2.0
|
||||||
BRIEF: Safe, configurable Google Tag Manager loader for Moko-Cassiopeia.
|
BRIEF: Safe, configurable Google Tag Manager loader for Moko-Cassiopeia.
|
||||||
@@ -32,8 +27,7 @@
|
|||||||
- data- attributes on the script tag or <html>/<body>:
|
- data- attributes on the script tag or <html>/<body>:
|
||||||
data-gtm-id, data-data-layer, data-debug, data-ignore-dnt,
|
data-gtm-id, data-data-layer, data-debug, data-ignore-dnt,
|
||||||
data-env-auth, data-env-preview, data-block-on-dev
|
data-env-auth, data-env-preview, data-block-on-dev
|
||||||
=========================================================================
|
*/
|
||||||
*/
|
|
||||||
|
|
||||||
/* global window, document, navigator */
|
/* global window, document, navigator */
|
||||||
(() => {
|
(() => {
|
||||||
|
|||||||
@@ -1,29 +1,22 @@
|
|||||||
<!--
|
<!-- Copyright (C) 2025 Moko Consulting <jmiller@mokoconsulting.tech>
|
||||||
* Copyright (C) 2025 Moko Consulting <jmiller@mokoconsulting.tech>
|
|
||||||
*
|
|
||||||
* This file is part of a Moko Consulting project.
|
|
||||||
*
|
|
||||||
* SPDX-License-Identifier: GPL-3.0-or-later
|
|
||||||
*
|
|
||||||
* This program is free software; you can redistribute it and/or modify
|
|
||||||
* it under the terms of the GNU General Public License as published by
|
|
||||||
* the Free Software Foundation; either version 3 of the License, or
|
|
||||||
* (at your option) any later version.
|
|
||||||
*
|
|
||||||
* This program is distributed in the hope that it will be useful,
|
|
||||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
||||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
||||||
* GNU General Public License for more details.
|
|
||||||
*
|
|
||||||
* You should have received a copy of the GNU General Public License
|
|
||||||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
|
||||||
-->
|
|
||||||
|
|
||||||
<!--FILE INFORMATION
|
This file is part of a Moko Consulting project.
|
||||||
* DEFGROUP: Joomla.Site
|
|
||||||
* INGROUP: Templates.Moko-Cassiopeia
|
SPDX-License-Identifier: GPL-3.0-or-later
|
||||||
* FILE: index.html
|
|
||||||
* BRIEF: Security redirect page to block folder access and forward to site root.
|
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3 of the License, or
|
||||||
|
(at your option) any later version.
|
||||||
|
|
||||||
|
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
|
||||||
|
|
||||||
|
You should have received a copy of the GNU General Public License along with this program. If not, see https://www.gnu.org/licenses/ .
|
||||||
|
|
||||||
|
# FILE INFORMATION
|
||||||
|
DEFGROUP: Joomla.Site
|
||||||
|
INGROUP: Templates.Moko-Cassiopeia
|
||||||
|
FILE: ./index.html
|
||||||
|
BRIEF: Security redirect page to block folder access and forward to site root.
|
||||||
-->
|
-->
|
||||||
|
|
||||||
<!doctype html>
|
<!doctype html>
|
||||||
@@ -44,28 +37,7 @@
|
|||||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
/**
|
|
||||||
* @defgroup Dolibarr
|
|
||||||
* @file index.html (embedded script)
|
|
||||||
* @version 1.0.0
|
|
||||||
* @brief Security redirect logic. Replaces the current history entry with the site root.
|
|
||||||
* @details This script computes the absolute root URL using `location.origin` and
|
|
||||||
* forwards the user immediately. It prevents leaving the protected folder
|
|
||||||
* in the browser history by default.
|
|
||||||
*
|
|
||||||
* @section VARIABLES
|
|
||||||
* @var {Object} opts Configuration options for the redirect behavior.
|
|
||||||
* @var {string} opts.fallbackPath Path used when `location.origin` cannot be determined.
|
|
||||||
* @var {number} opts.delayMs Optional delay in milliseconds before redirecting.
|
|
||||||
* @var {"replace"|"assign"} opts.behavior Navigation method used for the redirect.
|
|
||||||
*
|
|
||||||
* @section OPTIONS
|
|
||||||
* - opts.fallbackPath: default "/" (root path)
|
|
||||||
* - opts.delayMs: default 0 (immediate)
|
|
||||||
* - opts.behavior: one of
|
|
||||||
* * "replace" — calls `location.replace(url)`; does not keep the folder page in history.
|
|
||||||
* * "assign" — calls `location.assign(url)`; keeps an extra history entry.
|
|
||||||
*/
|
|
||||||
(function redirectToRoot() {
|
(function redirectToRoot() {
|
||||||
// Configuration object with safe defaults.
|
// Configuration object with safe defaults.
|
||||||
var opts = {
|
var opts = {
|
||||||
|
|||||||
@@ -1,29 +1,22 @@
|
|||||||
<!--
|
<!-- Copyright (C) 2025 Moko Consulting <jmiller@mokoconsulting.tech>
|
||||||
* Copyright (C) 2025 Moko Consulting <jmiller@mokoconsulting.tech>
|
|
||||||
*
|
|
||||||
* This file is part of a Moko Consulting project.
|
|
||||||
*
|
|
||||||
* SPDX-License-Identifier: GPL-3.0-or-later
|
|
||||||
*
|
|
||||||
* This program is free software; you can redistribute it and/or modify
|
|
||||||
* it under the terms of the GNU General Public License as published by
|
|
||||||
* the Free Software Foundation; either version 3 of the License, or
|
|
||||||
* (at your option) any later version.
|
|
||||||
*
|
|
||||||
* This program is distributed in the hope that it will be useful,
|
|
||||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
||||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
||||||
* GNU General Public License for more details.
|
|
||||||
*
|
|
||||||
* You should have received a copy of the GNU General Public License
|
|
||||||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
|
||||||
-->
|
|
||||||
|
|
||||||
<!--FILE INFORMATION
|
This file is part of a Moko Consulting project.
|
||||||
* DEFGROUP: Joomla.Site
|
|
||||||
* INGROUP: Templates.Moko-Cassiopeia
|
SPDX-License-Identifier: GPL-3.0-or-later
|
||||||
* FILE: index.html
|
|
||||||
* BRIEF: Security redirect page to block folder access and forward to site root.
|
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3 of the License, or
|
||||||
|
(at your option) any later version.
|
||||||
|
|
||||||
|
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
|
||||||
|
|
||||||
|
You should have received a copy of the GNU General Public License along with this program. If not, see https://www.gnu.org/licenses/ .
|
||||||
|
|
||||||
|
# FILE INFORMATION
|
||||||
|
DEFGROUP: Joomla.Site
|
||||||
|
INGROUP: Templates.Moko-Cassiopeia
|
||||||
|
FILE: ./index.html
|
||||||
|
BRIEF: Security redirect page to block folder access and forward to site root.
|
||||||
-->
|
-->
|
||||||
|
|
||||||
<!doctype html>
|
<!doctype html>
|
||||||
@@ -44,28 +37,7 @@
|
|||||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
/**
|
|
||||||
* @defgroup Dolibarr
|
|
||||||
* @file index.html (embedded script)
|
|
||||||
* @version 1.0.0
|
|
||||||
* @brief Security redirect logic. Replaces the current history entry with the site root.
|
|
||||||
* @details This script computes the absolute root URL using `location.origin` and
|
|
||||||
* forwards the user immediately. It prevents leaving the protected folder
|
|
||||||
* in the browser history by default.
|
|
||||||
*
|
|
||||||
* @section VARIABLES
|
|
||||||
* @var {Object} opts Configuration options for the redirect behavior.
|
|
||||||
* @var {string} opts.fallbackPath Path used when `location.origin` cannot be determined.
|
|
||||||
* @var {number} opts.delayMs Optional delay in milliseconds before redirecting.
|
|
||||||
* @var {"replace"|"assign"} opts.behavior Navigation method used for the redirect.
|
|
||||||
*
|
|
||||||
* @section OPTIONS
|
|
||||||
* - opts.fallbackPath: default "/" (root path)
|
|
||||||
* - opts.delayMs: default 0 (immediate)
|
|
||||||
* - opts.behavior: one of
|
|
||||||
* * "replace" — calls `location.replace(url)`; does not keep the folder page in history.
|
|
||||||
* * "assign" — calls `location.assign(url)`; keeps an extra history entry.
|
|
||||||
*/
|
|
||||||
(function redirectToRoot() {
|
(function redirectToRoot() {
|
||||||
// Configuration object with safe defaults.
|
// Configuration object with safe defaults.
|
||||||
var opts = {
|
var opts = {
|
||||||
|
|||||||
@@ -1,30 +1,23 @@
|
|||||||
/* =========================================================================
|
/* Copyright (C) 2025 Moko Consulting <hello@mokoconsulting.tech>
|
||||||
* Copyright (C) 2025 Moko Consulting <hello@mokoconsulting.tech>
|
|
||||||
*
|
This file is part of a Moko Consulting project.
|
||||||
* This file is part of a Moko Consulting project.
|
|
||||||
*
|
SPDX-License-Identifier: GPL-3.0-or-later
|
||||||
* SPDX-License-Identifier: GPL-3.0-or-later
|
|
||||||
*
|
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3 of the License, or
|
||||||
* This program is free software; you can redistribute it and/or modify
|
(at your option) any later version.
|
||||||
* it under the terms of the GNU General Public License as published by
|
|
||||||
* the Free Software Foundation; either version 3 of the License, or
|
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
* (at your option) any later version.
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
|
||||||
*
|
|
||||||
* This program is distributed in the hope that it will be useful,
|
You should have received a copy of the GNU General Public License along with this program. If not, see https://www.gnu.org/licenses/ .
|
||||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
||||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
# FILE INFORMATION
|
||||||
* GNU General Public License for more details.
|
DEFGROUP: Joomla
|
||||||
*
|
INGROUP: Moko-Cassiopeia
|
||||||
* You should have received a copy of the GNU General Public License
|
PATH: media/templates/site/moko-cassiopeia/js/mod_menu/menu-metismenu-es5.js
|
||||||
* along with this program. If not, see https://www.gnu.org/licenses/ .
|
VERSION: 02.01.05
|
||||||
* =========================================================================
|
BRIEF: ES5-compatible MetisMenu script for Joomla mod_menu in Moko-Cassiopeia
|
||||||
* FILE INFORMATION
|
|
||||||
* DEFGROUP: Joomla
|
|
||||||
* INGROUP: Moko-Cassiopeia
|
|
||||||
* PATH: media/templates/site/moko-cassiopeia/js/mod_menu/menu-metismenu-es5.js
|
|
||||||
* VERSION: 02.01.05
|
|
||||||
* BRIEF: ES5-compatible MetisMenu script for Joomla mod_menu in Moko-Cassiopeia
|
|
||||||
* =========================================================================
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
(function () {
|
(function () {
|
||||||
|
|||||||
@@ -1,30 +1,23 @@
|
|||||||
/* =========================================================================
|
/* Copyright (C) 2025 Moko Consulting <hello@mokoconsulting.tech>
|
||||||
* Copyright (C) 2025 Moko Consulting <hello@mokoconsulting.tech>
|
|
||||||
*
|
This file is part of a Moko Consulting project.
|
||||||
* This file is part of a Moko Consulting project.
|
|
||||||
*
|
SPDX-License-Identifier: GPL-3.0-or-later
|
||||||
* SPDX-License-Identifier: GPL-3.0-or-later
|
|
||||||
*
|
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3 of the License, or
|
||||||
* This program is free software; you can redistribute it and/or modify
|
(at your option) any later version.
|
||||||
* it under the terms of the GNU General Public License as published by
|
|
||||||
* the Free Software Foundation; either version 3 of the License, or
|
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
* (at your option) any later version.
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
|
||||||
*
|
|
||||||
* This program is distributed in the hope that it will be useful,
|
You should have received a copy of the GNU General Public License along with this program. If not, see https://www.gnu.org/licenses/ .
|
||||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
||||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
# FILE INFORMATION
|
||||||
* GNU General Public License for more details.
|
DEFGROUP: Joomla
|
||||||
*
|
INGROUP: Moko-Cassiopeia
|
||||||
* You should have received a copy of the GNU General Public License
|
PATH: media/templates/site/moko-cassiopeia/js/mod_menu/menu-metismenu.js
|
||||||
* along with this program. If not, see https://www.gnu.org/licenses/ .
|
VERSION: 02.01.05
|
||||||
* =========================================================================
|
BRIEF: Modern MetisMenu script for Joomla mod_menu in Moko-Cassiopeia
|
||||||
* FILE INFORMATION
|
|
||||||
* DEFGROUP: Joomla
|
|
||||||
* INGROUP: Moko-Cassiopeia
|
|
||||||
* PATH: media/templates/site/moko-cassiopeia/js/mod_menu/menu-metismenu.js
|
|
||||||
* VERSION: 02.01.05
|
|
||||||
* BRIEF: Modern MetisMenu script for Joomla mod_menu in Moko-Cassiopeia
|
|
||||||
* =========================================================================
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
document.addEventListener('DOMContentLoaded', () => {
|
document.addEventListener('DOMContentLoaded', () => {
|
||||||
|
|||||||
@@ -1,30 +1,23 @@
|
|||||||
/* =========================================================================
|
/* Copyright (C) 2025 Moko Consulting <hello@mokoconsulting.tech>
|
||||||
* Copyright (C) 2025 Moko Consulting <hello@mokoconsulting.tech>
|
|
||||||
*
|
This file is part of a Moko Consulting project.
|
||||||
* This file is part of a Moko Consulting project.
|
|
||||||
*
|
SPDX-License-Identifier: GPL-3.0-or-later
|
||||||
* SPDX-License-Identifier: GPL-3.0-or-later
|
|
||||||
*
|
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3 of the License, or
|
||||||
* This program is free software; you can redistribute it and/or modify
|
(at your option) any later version.
|
||||||
* it under the terms of the GNU General Public License as published by
|
|
||||||
* the Free Software Foundation; either version 3 of the License, or
|
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
* (at your option) any later version.
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
|
||||||
*
|
|
||||||
* This program is distributed in the hope that it will be useful,
|
You should have received a copy of the GNU General Public License along with this program. If not, see https://www.gnu.org/licenses/ .
|
||||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
||||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
# FILE INFORMATION
|
||||||
* GNU General Public License for more details.
|
DEFGROUP: Joomla
|
||||||
*
|
INGROUP: Moko-Cassiopeia
|
||||||
* You should have received a copy of the GNU General Public License
|
PATH: media/templates/site/moko-cassiopeia/js/template.js
|
||||||
* along with this program. If not, see https://www.gnu.org/licenses/ .
|
VERSION: 02.01.05
|
||||||
* =========================================================================
|
BRIEF: Core JavaScript utilities and behaviors for Moko-Cassiopeia template
|
||||||
* FILE INFORMATION
|
|
||||||
* DEFGROUP: Joomla
|
|
||||||
* INGROUP: Moko-Cassiopeia
|
|
||||||
* PATH: media/templates/site/moko-cassiopeia/js/template.js
|
|
||||||
* VERSION: 02.01.05
|
|
||||||
* BRIEF: Core JavaScript utilities and behaviors for Moko-Cassiopeia template
|
|
||||||
* =========================================================================
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
(function (win, doc) {
|
(function (win, doc) {
|
||||||
|
|||||||
@@ -1,30 +1,23 @@
|
|||||||
/* =========================================================================
|
/* Copyright (C) 2025 Moko Consulting <hello@mokoconsulting.tech>
|
||||||
* Copyright (C) 2025 Moko Consulting <hello@mokoconsulting.tech>
|
|
||||||
*
|
This file is part of a Moko Consulting project.
|
||||||
* This file is part of a Moko Consulting project.
|
|
||||||
*
|
SPDX-License-Identifier: GPL-3.0-or-later
|
||||||
* SPDX-License-Identifier: GPL-3.0-or-later
|
|
||||||
*
|
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3 of the License, or
|
||||||
* This program is free software; you can redistribute it and/or modify
|
(at your option) any later version.
|
||||||
* it under the terms of the GNU General Public License as published by
|
|
||||||
* the Free Software Foundation; either version 3 of the License, or
|
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
* (at your option) any later version.
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
|
||||||
*
|
|
||||||
* This program is distributed in the hope that it will be useful,
|
You should have received a copy of the GNU General Public License along with this program. If not, see https://www.gnu.org/licenses/ .
|
||||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
||||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
# FILE INFORMATION
|
||||||
* GNU General Public License for more details.
|
DEFGROUP: Joomla
|
||||||
*
|
INGROUP: Moko-Cassiopeia
|
||||||
* You should have received a copy of the GNU General Public License
|
PATH: media/templates/site/moko-cassiopeia/js/theme-init.js
|
||||||
* along with this program. If not, see https://www.gnu.org/licenses/ .
|
VERSION: 02.01.05
|
||||||
* =========================================================================
|
BRIEF: Initialization script for Moko-Cassiopeia theme features and behaviors
|
||||||
* FILE INFORMATION
|
|
||||||
* DEFGROUP: Joomla
|
|
||||||
* INGROUP: Moko-Cassiopeia
|
|
||||||
* PATH: media/templates/site/moko-cassiopeia/js/theme-init.js
|
|
||||||
* VERSION: 02.01.05
|
|
||||||
* BRIEF: Initialization script for Moko-Cassiopeia theme features and behaviors
|
|
||||||
* =========================================================================
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
(function (win, doc) {
|
(function (win, doc) {
|
||||||
|
|||||||
@@ -1,28 +1,21 @@
|
|||||||
/* =========================================================================
|
/* Copyright (C) 2025 Moko Consulting <hello@mokoconsulting.tech>
|
||||||
* Copyright (C) 2025 Moko Consulting <hello@mokoconsulting.tech>
|
|
||||||
*
|
This file is part of a Moko Consulting project.
|
||||||
* This file is part of a Moko Consulting project.
|
|
||||||
*
|
SPDX-License-Identifier: GPL-3.0-or-later
|
||||||
* SPDX-License-Identifier: GPL-3.0-or-later
|
|
||||||
*
|
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3 of the License, or
|
||||||
* This program is free software; you can redistribute it and/or modify
|
(at your option) any later version.
|
||||||
* it under the terms of the GNU General Public License as published by
|
|
||||||
* the Free Software Foundation; either version 3 of the License, or
|
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
* (at your option) any later version.
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
|
||||||
*
|
|
||||||
* This program is distributed in the hope that it will be useful,
|
You should have received a copy of the GNU General Public License along with this program. If not, see https://www.gnu.org/licenses/ .
|
||||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
||||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
# FILE INFORMATION
|
||||||
* GNU General Public License for more details.
|
DEFGROUP: Joomla
|
||||||
*
|
INGROUP: Moko-Cassiopeia
|
||||||
* You should have received a copy of the GNU General Public License
|
PATH: media/templates/site/moko-cassiopeia/js/user.js
|
||||||
* along with this program. If not, see https://www.gnu.org/licenses/ .
|
VERSION: 02.01.05
|
||||||
* =========================================================================
|
BRIEF: JavaScript for handling user-specific interactions in Moko-Cassiopeia template
|
||||||
* FILE INFORMATION
|
|
||||||
* DEFGROUP: Joomla
|
|
||||||
* INGROUP: Moko-Cassiopeia
|
|
||||||
* PATH: media/templates/site/moko-cassiopeia/js/user.js
|
|
||||||
* VERSION: 02.01.05
|
|
||||||
* BRIEF: JavaScript for handling user-specific interactions in Moko-Cassiopeia template
|
|
||||||
* =========================================================================
|
|
||||||
*/
|
*/
|
||||||
|
|||||||
@@ -1,29 +1,22 @@
|
|||||||
<!--
|
<!-- Copyright (C) 2025 Moko Consulting <jmiller@mokoconsulting.tech>
|
||||||
* Copyright (C) 2025 Moko Consulting <jmiller@mokoconsulting.tech>
|
|
||||||
*
|
|
||||||
* This file is part of a Moko Consulting project.
|
|
||||||
*
|
|
||||||
* SPDX-License-Identifier: GPL-3.0-or-later
|
|
||||||
*
|
|
||||||
* This program is free software; you can redistribute it and/or modify
|
|
||||||
* it under the terms of the GNU General Public License as published by
|
|
||||||
* the Free Software Foundation; either version 3 of the License, or
|
|
||||||
* (at your option) any later version.
|
|
||||||
*
|
|
||||||
* This program is distributed in the hope that it will be useful,
|
|
||||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
||||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
||||||
* GNU General Public License for more details.
|
|
||||||
*
|
|
||||||
* You should have received a copy of the GNU General Public License
|
|
||||||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
|
||||||
-->
|
|
||||||
|
|
||||||
<!--FILE INFORMATION
|
This file is part of a Moko Consulting project.
|
||||||
* DEFGROUP: Joomla.Site
|
|
||||||
* INGROUP: Templates.Moko-Cassiopeia
|
SPDX-License-Identifier: GPL-3.0-or-later
|
||||||
* FILE: index.html
|
|
||||||
* BRIEF: Security redirect page to block folder access and forward to site root.
|
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3 of the License, or
|
||||||
|
(at your option) any later version.
|
||||||
|
|
||||||
|
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
|
||||||
|
|
||||||
|
You should have received a copy of the GNU General Public License along with this program. If not, see https://www.gnu.org/licenses/ .
|
||||||
|
|
||||||
|
# FILE INFORMATION
|
||||||
|
DEFGROUP: Joomla.Site
|
||||||
|
INGROUP: Templates.Moko-Cassiopeia
|
||||||
|
FILE: ./index.html
|
||||||
|
BRIEF: Security redirect page to block folder access and forward to site root.
|
||||||
-->
|
-->
|
||||||
|
|
||||||
<!doctype html>
|
<!doctype html>
|
||||||
@@ -44,28 +37,7 @@
|
|||||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
/**
|
|
||||||
* @defgroup Dolibarr
|
|
||||||
* @file index.html (embedded script)
|
|
||||||
* @version 1.0.0
|
|
||||||
* @brief Security redirect logic. Replaces the current history entry with the site root.
|
|
||||||
* @details This script computes the absolute root URL using `location.origin` and
|
|
||||||
* forwards the user immediately. It prevents leaving the protected folder
|
|
||||||
* in the browser history by default.
|
|
||||||
*
|
|
||||||
* @section VARIABLES
|
|
||||||
* @var {Object} opts Configuration options for the redirect behavior.
|
|
||||||
* @var {string} opts.fallbackPath Path used when `location.origin` cannot be determined.
|
|
||||||
* @var {number} opts.delayMs Optional delay in milliseconds before redirecting.
|
|
||||||
* @var {"replace"|"assign"} opts.behavior Navigation method used for the redirect.
|
|
||||||
*
|
|
||||||
* @section OPTIONS
|
|
||||||
* - opts.fallbackPath: default "/" (root path)
|
|
||||||
* - opts.delayMs: default 0 (immediate)
|
|
||||||
* - opts.behavior: one of
|
|
||||||
* * "replace" — calls `location.replace(url)`; does not keep the folder page in history.
|
|
||||||
* * "assign" — calls `location.assign(url)`; keeps an extra history entry.
|
|
||||||
*/
|
|
||||||
(function redirectToRoot() {
|
(function redirectToRoot() {
|
||||||
// Configuration object with safe defaults.
|
// Configuration object with safe defaults.
|
||||||
var opts = {
|
var opts = {
|
||||||
|
|||||||
@@ -1,29 +1,22 @@
|
|||||||
<!--
|
<!-- Copyright (C) 2025 Moko Consulting <jmiller@mokoconsulting.tech>
|
||||||
* Copyright (C) 2025 Moko Consulting <jmiller@mokoconsulting.tech>
|
|
||||||
*
|
|
||||||
* This file is part of a Moko Consulting project.
|
|
||||||
*
|
|
||||||
* SPDX-License-Identifier: GPL-3.0-or-later
|
|
||||||
*
|
|
||||||
* This program is free software; you can redistribute it and/or modify
|
|
||||||
* it under the terms of the GNU General Public License as published by
|
|
||||||
* the Free Software Foundation; either version 3 of the License, or
|
|
||||||
* (at your option) any later version.
|
|
||||||
*
|
|
||||||
* This program is distributed in the hope that it will be useful,
|
|
||||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
||||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
||||||
* GNU General Public License for more details.
|
|
||||||
*
|
|
||||||
* You should have received a copy of the GNU General Public License
|
|
||||||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
|
||||||
-->
|
|
||||||
|
|
||||||
<!--FILE INFORMATION
|
This file is part of a Moko Consulting project.
|
||||||
* DEFGROUP: Joomla.Site
|
|
||||||
* INGROUP: Templates.Moko-Cassiopeia
|
SPDX-License-Identifier: GPL-3.0-or-later
|
||||||
* FILE: index.html
|
|
||||||
* BRIEF: Security redirect page to block folder access and forward to site root.
|
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3 of the License, or
|
||||||
|
(at your option) any later version.
|
||||||
|
|
||||||
|
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
|
||||||
|
|
||||||
|
You should have received a copy of the GNU General Public License along with this program. If not, see https://www.gnu.org/licenses/ .
|
||||||
|
|
||||||
|
# FILE INFORMATION
|
||||||
|
DEFGROUP: Joomla.Site
|
||||||
|
INGROUP: Templates.Moko-Cassiopeia
|
||||||
|
FILE: ./index.html
|
||||||
|
BRIEF: Security redirect page to block folder access and forward to site root.
|
||||||
-->
|
-->
|
||||||
|
|
||||||
<!doctype html>
|
<!doctype html>
|
||||||
@@ -44,28 +37,7 @@
|
|||||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
/**
|
|
||||||
* @defgroup Dolibarr
|
|
||||||
* @file index.html (embedded script)
|
|
||||||
* @version 1.0.0
|
|
||||||
* @brief Security redirect logic. Replaces the current history entry with the site root.
|
|
||||||
* @details This script computes the absolute root URL using `location.origin` and
|
|
||||||
* forwards the user immediately. It prevents leaving the protected folder
|
|
||||||
* in the browser history by default.
|
|
||||||
*
|
|
||||||
* @section VARIABLES
|
|
||||||
* @var {Object} opts Configuration options for the redirect behavior.
|
|
||||||
* @var {string} opts.fallbackPath Path used when `location.origin` cannot be determined.
|
|
||||||
* @var {number} opts.delayMs Optional delay in milliseconds before redirecting.
|
|
||||||
* @var {"replace"|"assign"} opts.behavior Navigation method used for the redirect.
|
|
||||||
*
|
|
||||||
* @section OPTIONS
|
|
||||||
* - opts.fallbackPath: default "/" (root path)
|
|
||||||
* - opts.delayMs: default 0 (immediate)
|
|
||||||
* - opts.behavior: one of
|
|
||||||
* * "replace" — calls `location.replace(url)`; does not keep the folder page in history.
|
|
||||||
* * "assign" — calls `location.assign(url)`; keeps an extra history entry.
|
|
||||||
*/
|
|
||||||
(function redirectToRoot() {
|
(function redirectToRoot() {
|
||||||
// Configuration object with safe defaults.
|
// Configuration object with safe defaults.
|
||||||
var opts = {
|
var opts = {
|
||||||
|
|||||||
@@ -1,29 +1,22 @@
|
|||||||
<!--
|
<!-- Copyright (C) 2025 Moko Consulting <jmiller@mokoconsulting.tech>
|
||||||
* Copyright (C) 2025 Moko Consulting <jmiller@mokoconsulting.tech>
|
|
||||||
*
|
|
||||||
* This file is part of a Moko Consulting project.
|
|
||||||
*
|
|
||||||
* SPDX-License-Identifier: GPL-3.0-or-later
|
|
||||||
*
|
|
||||||
* This program is free software; you can redistribute it and/or modify
|
|
||||||
* it under the terms of the GNU General Public License as published by
|
|
||||||
* the Free Software Foundation; either version 3 of the License, or
|
|
||||||
* (at your option) any later version.
|
|
||||||
*
|
|
||||||
* This program is distributed in the hope that it will be useful,
|
|
||||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
||||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
||||||
* GNU General Public License for more details.
|
|
||||||
*
|
|
||||||
* You should have received a copy of the GNU General Public License
|
|
||||||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
|
||||||
-->
|
|
||||||
|
|
||||||
<!--FILE INFORMATION
|
This file is part of a Moko Consulting project.
|
||||||
* DEFGROUP: Joomla.Site
|
|
||||||
* INGROUP: Templates.Moko-Cassiopeia
|
SPDX-License-Identifier: GPL-3.0-or-later
|
||||||
* FILE: index.html
|
|
||||||
* BRIEF: Security redirect page to block folder access and forward to site root.
|
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3 of the License, or
|
||||||
|
(at your option) any later version.
|
||||||
|
|
||||||
|
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
|
||||||
|
|
||||||
|
You should have received a copy of the GNU General Public License along with this program. If not, see https://www.gnu.org/licenses/ .
|
||||||
|
|
||||||
|
# FILE INFORMATION
|
||||||
|
DEFGROUP: Joomla.Site
|
||||||
|
INGROUP: Templates.Moko-Cassiopeia
|
||||||
|
FILE: ./index.html
|
||||||
|
BRIEF: Security redirect page to block folder access and forward to site root.
|
||||||
-->
|
-->
|
||||||
|
|
||||||
<!doctype html>
|
<!doctype html>
|
||||||
@@ -44,28 +37,7 @@
|
|||||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
/**
|
|
||||||
* @defgroup Dolibarr
|
|
||||||
* @file index.html (embedded script)
|
|
||||||
* @version 1.0.0
|
|
||||||
* @brief Security redirect logic. Replaces the current history entry with the site root.
|
|
||||||
* @details This script computes the absolute root URL using `location.origin` and
|
|
||||||
* forwards the user immediately. It prevents leaving the protected folder
|
|
||||||
* in the browser history by default.
|
|
||||||
*
|
|
||||||
* @section VARIABLES
|
|
||||||
* @var {Object} opts Configuration options for the redirect behavior.
|
|
||||||
* @var {string} opts.fallbackPath Path used when `location.origin` cannot be determined.
|
|
||||||
* @var {number} opts.delayMs Optional delay in milliseconds before redirecting.
|
|
||||||
* @var {"replace"|"assign"} opts.behavior Navigation method used for the redirect.
|
|
||||||
*
|
|
||||||
* @section OPTIONS
|
|
||||||
* - opts.fallbackPath: default "/" (root path)
|
|
||||||
* - opts.delayMs: default 0 (immediate)
|
|
||||||
* - opts.behavior: one of
|
|
||||||
* * "replace" — calls `location.replace(url)`; does not keep the folder page in history.
|
|
||||||
* * "assign" — calls `location.assign(url)`; keeps an extra history entry.
|
|
||||||
*/
|
|
||||||
(function redirectToRoot() {
|
(function redirectToRoot() {
|
||||||
// Configuration object with safe defaults.
|
// Configuration object with safe defaults.
|
||||||
var opts = {
|
var opts = {
|
||||||
|
|||||||
@@ -1,31 +1,24 @@
|
|||||||
<?php
|
<?php
|
||||||
/* =========================================================================
|
/* Copyright (C) 2025 Moko Consulting <hello@mokoconsulting.tech>
|
||||||
* Copyright (C) 2025 Moko Consulting <hello@mokoconsulting.tech>
|
|
||||||
*
|
This file is part of a Moko Consulting project.
|
||||||
* This file is part of a Moko Consulting project.
|
|
||||||
*
|
SPDX-License-Identifier: GPL-3.0-or-later
|
||||||
* SPDX-License-Identifier: GPL-3.0-or-later
|
|
||||||
*
|
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3 of the License, or
|
||||||
* This program is free software; you can redistribute it and/or modify
|
(at your option) any later version.
|
||||||
* it under the terms of the GNU General Public License as published by
|
|
||||||
* the Free Software Foundation; either version 3 of the License, or
|
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
* (at your option) any later version.
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
|
||||||
*
|
|
||||||
* This program is distributed in the hope that it will be useful,
|
You should have received a copy of the GNU General Public License along with this program. If not, see https://www.gnu.org/licenses/ .
|
||||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
||||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
# FILE INFORMATION
|
||||||
* GNU General Public License for more details.
|
DEFGROUP: Joomla
|
||||||
*
|
INGROUP: Moko-Cassiopeia
|
||||||
* You should have received a copy of the GNU General Public License
|
PATH: templates/moko-cassiopeia/component.php
|
||||||
* along with this program. If not, see https://www.gnu.org/licenses/ .
|
VERSION: 02.01.05
|
||||||
* =========================================================================
|
BRIEF: Minimal component-only template file for Moko-Cassiopeia
|
||||||
* FILE INFORMATION
|
|
||||||
* DEFGROUP: Joomla
|
|
||||||
* INGROUP: Moko-Cassiopeia
|
|
||||||
* PATH: templates/moko-cassiopeia/component.php
|
|
||||||
* VERSION: 02.01.05
|
|
||||||
* BRIEF: Minimal component-only template file for Moko-Cassiopeia
|
|
||||||
* =========================================================================
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
defined('_JEXEC') or die;
|
defined('_JEXEC') or die;
|
||||||
|
|||||||
@@ -1,31 +1,24 @@
|
|||||||
<?php
|
<?php
|
||||||
/* =========================================================================
|
/* Copyright (C) 2025 Moko Consulting <hello@mokoconsulting.tech>
|
||||||
* Copyright (C) 2025 Moko Consulting <hello@mokoconsulting.tech>
|
|
||||||
*
|
This file is part of a Moko Consulting project.
|
||||||
* This file is part of a Moko Consulting project.
|
|
||||||
*
|
SPDX-License-Identifier: GPL-3.0-or-later
|
||||||
* SPDX-License-Identifier: GPL-3.0-or-later
|
|
||||||
*
|
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3 of the License, or
|
||||||
* This program is free software; you can redistribute it and/or modify
|
(at your option) any later version.
|
||||||
* it under the terms of the GNU General Public License as published by
|
|
||||||
* the Free Software Foundation; either version 3 of the License, or
|
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
* (at your option) any later version.
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
|
||||||
*
|
|
||||||
* This program is distributed in the hope that it will be useful,
|
You should have received a copy of the GNU General Public License along with this program. If not, see https://www.gnu.org/licenses/ .
|
||||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
||||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
# FILE INFORMATION
|
||||||
* GNU General Public License for more details.
|
DEFGROUP: Joomla
|
||||||
*
|
INGROUP: Moko-Cassiopeia
|
||||||
* You should have received a copy of the GNU General Public License
|
PATH: templates/moko-cassiopeia/custom.php
|
||||||
* along with this program. If not, see https://www.gnu.org/licenses/ .
|
VERSION: 02.01.05
|
||||||
* =========================================================================
|
BRIEF: Custom entry template file for Moko-Cassiopeia with user-defined overrides
|
||||||
* FILE INFORMATION
|
|
||||||
* DEFGROUP: Joomla
|
|
||||||
* INGROUP: Moko-Cassiopeia
|
|
||||||
* PATH: templates/moko-cassiopeia/custom.php
|
|
||||||
* VERSION: 02.01.05
|
|
||||||
* BRIEF: Custom entry template file for Moko-Cassiopeia with user-defined overrides
|
|
||||||
* =========================================================================
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
function console_log($output, $with_script_tags = true) {
|
function console_log($output, $with_script_tags = true) {
|
||||||
|
|||||||
@@ -1,31 +1,24 @@
|
|||||||
<?php
|
<?php
|
||||||
/* =========================================================================
|
/* Copyright (C) 2025 Moko Consulting <hello@mokoconsulting.tech>
|
||||||
* Copyright (C) 2025 Moko Consulting <hello@mokoconsulting.tech>
|
|
||||||
*
|
This file is part of a Moko Consulting project.
|
||||||
* This file is part of a Moko Consulting project.
|
|
||||||
*
|
SPDX-License-Identifier: GPL-3.0-or-later
|
||||||
* SPDX-License-Identifier: GPL-3.0-or-later
|
|
||||||
*
|
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3 of the License, or
|
||||||
* This program is free software; you can redistribute it and/or modify
|
(at your option) any later version.
|
||||||
* it under the terms of the GNU General Public License as published by
|
|
||||||
* the Free Software Foundation; either version 3 of the License, or
|
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
* (at your option) any later version.
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
|
||||||
*
|
|
||||||
* This program is distributed in the hope that it will be useful,
|
You should have received a copy of the GNU General Public License along with this program. If not, see https://www.gnu.org/licenses/ .
|
||||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
||||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
# FILE INFORMATION
|
||||||
* GNU General Public License for more details.
|
DEFGROUP: Joomla
|
||||||
*
|
INGROUP: Moko-Cassiopeia
|
||||||
* You should have received a copy of the GNU General Public License
|
PATH: templates/moko-cassiopeia/error.php
|
||||||
* along with this program. If not, see https://www.gnu.org/licenses/ .
|
VERSION: 02.01.05
|
||||||
* =========================================================================
|
BRIEF: Error page template file for Moko-Cassiopeia
|
||||||
* FILE INFORMATION
|
|
||||||
* DEFGROUP: Joomla
|
|
||||||
* INGROUP: Moko-Cassiopeia
|
|
||||||
* PATH: templates/moko-cassiopeia/error.php
|
|
||||||
* VERSION: 02.01.05
|
|
||||||
* BRIEF: Error page template file for Moko-Cassiopeia
|
|
||||||
* =========================================================================
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
defined('_JEXEC') or die;
|
defined('_JEXEC') or die;
|
||||||
|
|||||||
@@ -1,29 +1,22 @@
|
|||||||
<!--
|
<!-- Copyright (C) 2025 Moko Consulting <jmiller@mokoconsulting.tech>
|
||||||
* Copyright (C) 2025 Moko Consulting <jmiller@mokoconsulting.tech>
|
|
||||||
*
|
|
||||||
* This file is part of a Moko Consulting project.
|
|
||||||
*
|
|
||||||
* SPDX-License-Identifier: GPL-3.0-or-later
|
|
||||||
*
|
|
||||||
* This program is free software; you can redistribute it and/or modify
|
|
||||||
* it under the terms of the GNU General Public License as published by
|
|
||||||
* the Free Software Foundation; either version 3 of the License, or
|
|
||||||
* (at your option) any later version.
|
|
||||||
*
|
|
||||||
* This program is distributed in the hope that it will be useful,
|
|
||||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
||||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
||||||
* GNU General Public License for more details.
|
|
||||||
*
|
|
||||||
* You should have received a copy of the GNU General Public License
|
|
||||||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
|
||||||
-->
|
|
||||||
|
|
||||||
<!--FILE INFORMATION
|
This file is part of a Moko Consulting project.
|
||||||
* DEFGROUP: Joomla.Site
|
|
||||||
* INGROUP: Templates.Moko-Cassiopeia
|
SPDX-License-Identifier: GPL-3.0-or-later
|
||||||
* FILE: index.html
|
|
||||||
* BRIEF: Security redirect page to block folder access and forward to site root.
|
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3 of the License, or
|
||||||
|
(at your option) any later version.
|
||||||
|
|
||||||
|
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
|
||||||
|
|
||||||
|
You should have received a copy of the GNU General Public License along with this program. If not, see https://www.gnu.org/licenses/ .
|
||||||
|
|
||||||
|
# FILE INFORMATION
|
||||||
|
DEFGROUP: Joomla.Site
|
||||||
|
INGROUP: Templates.Moko-Cassiopeia
|
||||||
|
FILE: ./index.html
|
||||||
|
BRIEF: Security redirect page to block folder access and forward to site root.
|
||||||
-->
|
-->
|
||||||
|
|
||||||
<!doctype html>
|
<!doctype html>
|
||||||
@@ -44,28 +37,7 @@
|
|||||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
/**
|
|
||||||
* @defgroup Dolibarr
|
|
||||||
* @file index.html (embedded script)
|
|
||||||
* @version 1.0.0
|
|
||||||
* @brief Security redirect logic. Replaces the current history entry with the site root.
|
|
||||||
* @details This script computes the absolute root URL using `location.origin` and
|
|
||||||
* forwards the user immediately. It prevents leaving the protected folder
|
|
||||||
* in the browser history by default.
|
|
||||||
*
|
|
||||||
* @section VARIABLES
|
|
||||||
* @var {Object} opts Configuration options for the redirect behavior.
|
|
||||||
* @var {string} opts.fallbackPath Path used when `location.origin` cannot be determined.
|
|
||||||
* @var {number} opts.delayMs Optional delay in milliseconds before redirecting.
|
|
||||||
* @var {"replace"|"assign"} opts.behavior Navigation method used for the redirect.
|
|
||||||
*
|
|
||||||
* @section OPTIONS
|
|
||||||
* - opts.fallbackPath: default "/" (root path)
|
|
||||||
* - opts.delayMs: default 0 (immediate)
|
|
||||||
* - opts.behavior: one of
|
|
||||||
* * "replace" — calls `location.replace(url)`; does not keep the folder page in history.
|
|
||||||
* * "assign" — calls `location.assign(url)`; keeps an extra history entry.
|
|
||||||
*/
|
|
||||||
(function redirectToRoot() {
|
(function redirectToRoot() {
|
||||||
// Configuration object with safe defaults.
|
// Configuration object with safe defaults.
|
||||||
var opts = {
|
var opts = {
|
||||||
|
|||||||
@@ -1,29 +1,22 @@
|
|||||||
<!--
|
<!-- Copyright (C) 2025 Moko Consulting <jmiller@mokoconsulting.tech>
|
||||||
* Copyright (C) 2025 Moko Consulting <jmiller@mokoconsulting.tech>
|
|
||||||
*
|
|
||||||
* This file is part of a Moko Consulting project.
|
|
||||||
*
|
|
||||||
* SPDX-License-Identifier: GPL-3.0-or-later
|
|
||||||
*
|
|
||||||
* This program is free software; you can redistribute it and/or modify
|
|
||||||
* it under the terms of the GNU General Public License as published by
|
|
||||||
* the Free Software Foundation; either version 3 of the License, or
|
|
||||||
* (at your option) any later version.
|
|
||||||
*
|
|
||||||
* This program is distributed in the hope that it will be useful,
|
|
||||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
||||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
||||||
* GNU General Public License for more details.
|
|
||||||
*
|
|
||||||
* You should have received a copy of the GNU General Public License
|
|
||||||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
|
||||||
-->
|
|
||||||
|
|
||||||
<!--FILE INFORMATION
|
This file is part of a Moko Consulting project.
|
||||||
* DEFGROUP: Joomla.Site
|
|
||||||
* INGROUP: Templates.Moko-Cassiopeia
|
SPDX-License-Identifier: GPL-3.0-or-later
|
||||||
* FILE: index.html
|
|
||||||
* BRIEF: Security redirect page to block folder access and forward to site root.
|
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3 of the License, or
|
||||||
|
(at your option) any later version.
|
||||||
|
|
||||||
|
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
|
||||||
|
|
||||||
|
You should have received a copy of the GNU General Public License along with this program. If not, see https://www.gnu.org/licenses/ .
|
||||||
|
|
||||||
|
# FILE INFORMATION
|
||||||
|
DEFGROUP: Joomla.Site
|
||||||
|
INGROUP: Templates.Moko-Cassiopeia
|
||||||
|
FILE: ./index.html
|
||||||
|
BRIEF: Security redirect page to block folder access and forward to site root.
|
||||||
-->
|
-->
|
||||||
|
|
||||||
<!doctype html>
|
<!doctype html>
|
||||||
@@ -44,28 +37,7 @@
|
|||||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
/**
|
|
||||||
* @defgroup Dolibarr
|
|
||||||
* @file index.html (embedded script)
|
|
||||||
* @version 1.0.0
|
|
||||||
* @brief Security redirect logic. Replaces the current history entry with the site root.
|
|
||||||
* @details This script computes the absolute root URL using `location.origin` and
|
|
||||||
* forwards the user immediately. It prevents leaving the protected folder
|
|
||||||
* in the browser history by default.
|
|
||||||
*
|
|
||||||
* @section VARIABLES
|
|
||||||
* @var {Object} opts Configuration options for the redirect behavior.
|
|
||||||
* @var {string} opts.fallbackPath Path used when `location.origin` cannot be determined.
|
|
||||||
* @var {number} opts.delayMs Optional delay in milliseconds before redirecting.
|
|
||||||
* @var {"replace"|"assign"} opts.behavior Navigation method used for the redirect.
|
|
||||||
*
|
|
||||||
* @section OPTIONS
|
|
||||||
* - opts.fallbackPath: default "/" (root path)
|
|
||||||
* - opts.delayMs: default 0 (immediate)
|
|
||||||
* - opts.behavior: one of
|
|
||||||
* * "replace" — calls `location.replace(url)`; does not keep the folder page in history.
|
|
||||||
* * "assign" — calls `location.assign(url)`; keeps an extra history entry.
|
|
||||||
*/
|
|
||||||
(function redirectToRoot() {
|
(function redirectToRoot() {
|
||||||
// Configuration object with safe defaults.
|
// Configuration object with safe defaults.
|
||||||
var opts = {
|
var opts = {
|
||||||
|
|||||||
@@ -1,29 +1,22 @@
|
|||||||
<!--
|
<!-- Copyright (C) 2025 Moko Consulting <jmiller@mokoconsulting.tech>
|
||||||
* Copyright (C) 2025 Moko Consulting <jmiller@mokoconsulting.tech>
|
|
||||||
*
|
|
||||||
* This file is part of a Moko Consulting project.
|
|
||||||
*
|
|
||||||
* SPDX-License-Identifier: GPL-3.0-or-later
|
|
||||||
*
|
|
||||||
* This program is free software; you can redistribute it and/or modify
|
|
||||||
* it under the terms of the GNU General Public License as published by
|
|
||||||
* the Free Software Foundation; either version 3 of the License, or
|
|
||||||
* (at your option) any later version.
|
|
||||||
*
|
|
||||||
* This program is distributed in the hope that it will be useful,
|
|
||||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
||||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
||||||
* GNU General Public License for more details.
|
|
||||||
*
|
|
||||||
* You should have received a copy of the GNU General Public License
|
|
||||||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
|
||||||
-->
|
|
||||||
|
|
||||||
<!--FILE INFORMATION
|
This file is part of a Moko Consulting project.
|
||||||
* DEFGROUP: Joomla.Site
|
|
||||||
* INGROUP: Templates.Moko-Cassiopeia
|
SPDX-License-Identifier: GPL-3.0-or-later
|
||||||
* FILE: index.html
|
|
||||||
* BRIEF: Security redirect page to block folder access and forward to site root.
|
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3 of the License, or
|
||||||
|
(at your option) any later version.
|
||||||
|
|
||||||
|
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
|
||||||
|
|
||||||
|
You should have received a copy of the GNU General Public License along with this program. If not, see https://www.gnu.org/licenses/ .
|
||||||
|
|
||||||
|
# FILE INFORMATION
|
||||||
|
DEFGROUP: Joomla.Site
|
||||||
|
INGROUP: Templates.Moko-Cassiopeia
|
||||||
|
FILE: ./index.html
|
||||||
|
BRIEF: Security redirect page to block folder access and forward to site root.
|
||||||
-->
|
-->
|
||||||
|
|
||||||
<!doctype html>
|
<!doctype html>
|
||||||
@@ -44,28 +37,7 @@
|
|||||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
/**
|
|
||||||
* @defgroup Dolibarr
|
|
||||||
* @file index.html (embedded script)
|
|
||||||
* @version 1.0.0
|
|
||||||
* @brief Security redirect logic. Replaces the current history entry with the site root.
|
|
||||||
* @details This script computes the absolute root URL using `location.origin` and
|
|
||||||
* forwards the user immediately. It prevents leaving the protected folder
|
|
||||||
* in the browser history by default.
|
|
||||||
*
|
|
||||||
* @section VARIABLES
|
|
||||||
* @var {Object} opts Configuration options for the redirect behavior.
|
|
||||||
* @var {string} opts.fallbackPath Path used when `location.origin` cannot be determined.
|
|
||||||
* @var {number} opts.delayMs Optional delay in milliseconds before redirecting.
|
|
||||||
* @var {"replace"|"assign"} opts.behavior Navigation method used for the redirect.
|
|
||||||
*
|
|
||||||
* @section OPTIONS
|
|
||||||
* - opts.fallbackPath: default "/" (root path)
|
|
||||||
* - opts.delayMs: default 0 (immediate)
|
|
||||||
* - opts.behavior: one of
|
|
||||||
* * "replace" — calls `location.replace(url)`; does not keep the folder page in history.
|
|
||||||
* * "assign" — calls `location.assign(url)`; keeps an extra history entry.
|
|
||||||
*/
|
|
||||||
(function redirectToRoot() {
|
(function redirectToRoot() {
|
||||||
// Configuration object with safe defaults.
|
// Configuration object with safe defaults.
|
||||||
var opts = {
|
var opts = {
|
||||||
|
|||||||
@@ -1,31 +1,24 @@
|
|||||||
<?php
|
<?php
|
||||||
/* =========================================================================
|
/* Copyright (C) 2025 Moko Consulting <hello@mokoconsulting.tech>
|
||||||
* Copyright (C) 2025 Moko Consulting <hello@mokoconsulting.tech>
|
|
||||||
*
|
This file is part of a Moko Consulting project.
|
||||||
* This file is part of a Moko Consulting project.
|
|
||||||
*
|
SPDX-License-Identifier: GPL-3.0-or-later
|
||||||
* SPDX-License-Identifier: GPL-3.0-or-later
|
|
||||||
*
|
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3 of the License, or
|
||||||
* This program is free software; you can redistribute it and/or modify
|
(at your option) any later version.
|
||||||
* it under the terms of the GNU General Public License as published by
|
|
||||||
* the Free Software Foundation; either version 3 of the License, or
|
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
* (at your option) any later version.
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
|
||||||
*
|
|
||||||
* This program is distributed in the hope that it will be useful,
|
You should have received a copy of the GNU General Public License along with this program. If not, see https://www.gnu.org/licenses/ .
|
||||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
||||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
# FILE INFORMATION
|
||||||
* GNU General Public License for more details.
|
DEFGROUP: Joomla
|
||||||
*
|
INGROUP: Moko-Cassiopeia
|
||||||
* You should have received a copy of the GNU General Public License
|
PATH: templates/moko-cassiopeia/html/com_content/article/toc-left.php
|
||||||
* along with this program. If not, see https://www.gnu.org/licenses/ .
|
VERSION: 02.01.05
|
||||||
* =========================================================================
|
BRIEF: Template override for Joomla articles with Table of Contents aligned left
|
||||||
* FILE INFORMATION
|
|
||||||
* DEFGROUP: Joomla
|
|
||||||
* INGROUP: Moko-Cassiopeia
|
|
||||||
* PATH: templates/moko-cassiopeia/html/com_content/article/toc-left.php
|
|
||||||
* VERSION: 02.01.05
|
|
||||||
* BRIEF: Template override for Joomla articles with Table of Contents aligned left
|
|
||||||
* =========================================================================
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
defined('_JEXEC') or die;
|
defined('_JEXEC') or die;
|
||||||
|
|||||||
@@ -1,31 +1,24 @@
|
|||||||
<?php
|
<?php
|
||||||
/* =========================================================================
|
/* Copyright (C) 2025 Moko Consulting <hello@mokoconsulting.tech>
|
||||||
* Copyright (C) 2025 Moko Consulting <hello@mokoconsulting.tech>
|
|
||||||
*
|
This file is part of a Moko Consulting project.
|
||||||
* This file is part of a Moko Consulting project.
|
|
||||||
*
|
SPDX-License-Identifier: GPL-3.0-or-later
|
||||||
* SPDX-License-Identifier: GPL-3.0-or-later
|
|
||||||
*
|
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3 of the License, or
|
||||||
* This program is free software; you can redistribute it and/or modify
|
(at your option) any later version.
|
||||||
* it under the terms of the GNU General Public License as published by
|
|
||||||
* the Free Software Foundation; either version 3 of the License, or
|
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
* (at your option) any later version.
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
|
||||||
*
|
|
||||||
* This program is distributed in the hope that it will be useful,
|
You should have received a copy of the GNU General Public License along with this program. If not, see https://www.gnu.org/licenses/ .
|
||||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
||||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
# FILE INFORMATION
|
||||||
* GNU General Public License for more details.
|
DEFGROUP: Joomla
|
||||||
*
|
INGROUP: Moko-Cassiopeia
|
||||||
* You should have received a copy of the GNU General Public License
|
PATH: templates/moko-cassiopeia/html/com_content/article/toc-right.php
|
||||||
* along with this program. If not, see https://www.gnu.org/licenses/ .
|
VERSION: 02.01.05
|
||||||
* =========================================================================
|
BRIEF: Template override for Joomla articles with Table of Contents aligned right
|
||||||
* FILE INFORMATION
|
|
||||||
* DEFGROUP: Joomla
|
|
||||||
* INGROUP: Moko-Cassiopeia
|
|
||||||
* PATH: templates/moko-cassiopeia/html/com_content/article/toc-right.php
|
|
||||||
* VERSION: 02.01.05
|
|
||||||
* BRIEF: Template override for Joomla articles with Table of Contents aligned right
|
|
||||||
* =========================================================================
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
defined('_JEXEC') or die;
|
defined('_JEXEC') or die;
|
||||||
|
|||||||
@@ -1,29 +1,22 @@
|
|||||||
<!--
|
<!-- Copyright (C) 2025 Moko Consulting <jmiller@mokoconsulting.tech>
|
||||||
* Copyright (C) 2025 Moko Consulting <jmiller@mokoconsulting.tech>
|
|
||||||
*
|
|
||||||
* This file is part of a Moko Consulting project.
|
|
||||||
*
|
|
||||||
* SPDX-License-Identifier: GPL-3.0-or-later
|
|
||||||
*
|
|
||||||
* This program is free software; you can redistribute it and/or modify
|
|
||||||
* it under the terms of the GNU General Public License as published by
|
|
||||||
* the Free Software Foundation; either version 3 of the License, or
|
|
||||||
* (at your option) any later version.
|
|
||||||
*
|
|
||||||
* This program is distributed in the hope that it will be useful,
|
|
||||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
||||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
||||||
* GNU General Public License for more details.
|
|
||||||
*
|
|
||||||
* You should have received a copy of the GNU General Public License
|
|
||||||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
|
||||||
-->
|
|
||||||
|
|
||||||
<!--FILE INFORMATION
|
This file is part of a Moko Consulting project.
|
||||||
* DEFGROUP: Joomla.Site
|
|
||||||
* INGROUP: Templates.Moko-Cassiopeia
|
SPDX-License-Identifier: GPL-3.0-or-later
|
||||||
* FILE: index.html
|
|
||||||
* BRIEF: Security redirect page to block folder access and forward to site root.
|
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3 of the License, or
|
||||||
|
(at your option) any later version.
|
||||||
|
|
||||||
|
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
|
||||||
|
|
||||||
|
You should have received a copy of the GNU General Public License along with this program. If not, see https://www.gnu.org/licenses/ .
|
||||||
|
|
||||||
|
# FILE INFORMATION
|
||||||
|
DEFGROUP: Joomla.Site
|
||||||
|
INGROUP: Templates.Moko-Cassiopeia
|
||||||
|
FILE: ./index.html
|
||||||
|
BRIEF: Security redirect page to block folder access and forward to site root.
|
||||||
-->
|
-->
|
||||||
|
|
||||||
<!doctype html>
|
<!doctype html>
|
||||||
@@ -44,28 +37,7 @@
|
|||||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
/**
|
|
||||||
* @defgroup Dolibarr
|
|
||||||
* @file index.html (embedded script)
|
|
||||||
* @version 1.0.0
|
|
||||||
* @brief Security redirect logic. Replaces the current history entry with the site root.
|
|
||||||
* @details This script computes the absolute root URL using `location.origin` and
|
|
||||||
* forwards the user immediately. It prevents leaving the protected folder
|
|
||||||
* in the browser history by default.
|
|
||||||
*
|
|
||||||
* @section VARIABLES
|
|
||||||
* @var {Object} opts Configuration options for the redirect behavior.
|
|
||||||
* @var {string} opts.fallbackPath Path used when `location.origin` cannot be determined.
|
|
||||||
* @var {number} opts.delayMs Optional delay in milliseconds before redirecting.
|
|
||||||
* @var {"replace"|"assign"} opts.behavior Navigation method used for the redirect.
|
|
||||||
*
|
|
||||||
* @section OPTIONS
|
|
||||||
* - opts.fallbackPath: default "/" (root path)
|
|
||||||
* - opts.delayMs: default 0 (immediate)
|
|
||||||
* - opts.behavior: one of
|
|
||||||
* * "replace" — calls `location.replace(url)`; does not keep the folder page in history.
|
|
||||||
* * "assign" — calls `location.assign(url)`; keeps an extra history entry.
|
|
||||||
*/
|
|
||||||
(function redirectToRoot() {
|
(function redirectToRoot() {
|
||||||
// Configuration object with safe defaults.
|
// Configuration object with safe defaults.
|
||||||
var opts = {
|
var opts = {
|
||||||
|
|||||||
@@ -1,29 +1,22 @@
|
|||||||
<!--
|
<!-- Copyright (C) 2025 Moko Consulting <jmiller@mokoconsulting.tech>
|
||||||
* Copyright (C) 2025 Moko Consulting <jmiller@mokoconsulting.tech>
|
|
||||||
*
|
|
||||||
* This file is part of a Moko Consulting project.
|
|
||||||
*
|
|
||||||
* SPDX-License-Identifier: GPL-3.0-or-later
|
|
||||||
*
|
|
||||||
* This program is free software; you can redistribute it and/or modify
|
|
||||||
* it under the terms of the GNU General Public License as published by
|
|
||||||
* the Free Software Foundation; either version 3 of the License, or
|
|
||||||
* (at your option) any later version.
|
|
||||||
*
|
|
||||||
* This program is distributed in the hope that it will be useful,
|
|
||||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
||||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
||||||
* GNU General Public License for more details.
|
|
||||||
*
|
|
||||||
* You should have received a copy of the GNU General Public License
|
|
||||||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
|
||||||
-->
|
|
||||||
|
|
||||||
<!--FILE INFORMATION
|
This file is part of a Moko Consulting project.
|
||||||
* DEFGROUP: Joomla.Site
|
|
||||||
* INGROUP: Templates.Moko-Cassiopeia
|
SPDX-License-Identifier: GPL-3.0-or-later
|
||||||
* FILE: index.html
|
|
||||||
* BRIEF: Security redirect page to block folder access and forward to site root.
|
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3 of the License, or
|
||||||
|
(at your option) any later version.
|
||||||
|
|
||||||
|
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
|
||||||
|
|
||||||
|
You should have received a copy of the GNU General Public License along with this program. If not, see https://www.gnu.org/licenses/ .
|
||||||
|
|
||||||
|
# FILE INFORMATION
|
||||||
|
DEFGROUP: Joomla.Site
|
||||||
|
INGROUP: Templates.Moko-Cassiopeia
|
||||||
|
FILE: ./index.html
|
||||||
|
BRIEF: Security redirect page to block folder access and forward to site root.
|
||||||
-->
|
-->
|
||||||
|
|
||||||
<!doctype html>
|
<!doctype html>
|
||||||
@@ -44,28 +37,7 @@
|
|||||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
/**
|
|
||||||
* @defgroup Dolibarr
|
|
||||||
* @file index.html (embedded script)
|
|
||||||
* @version 1.0.0
|
|
||||||
* @brief Security redirect logic. Replaces the current history entry with the site root.
|
|
||||||
* @details This script computes the absolute root URL using `location.origin` and
|
|
||||||
* forwards the user immediately. It prevents leaving the protected folder
|
|
||||||
* in the browser history by default.
|
|
||||||
*
|
|
||||||
* @section VARIABLES
|
|
||||||
* @var {Object} opts Configuration options for the redirect behavior.
|
|
||||||
* @var {string} opts.fallbackPath Path used when `location.origin` cannot be determined.
|
|
||||||
* @var {number} opts.delayMs Optional delay in milliseconds before redirecting.
|
|
||||||
* @var {"replace"|"assign"} opts.behavior Navigation method used for the redirect.
|
|
||||||
*
|
|
||||||
* @section OPTIONS
|
|
||||||
* - opts.fallbackPath: default "/" (root path)
|
|
||||||
* - opts.delayMs: default 0 (immediate)
|
|
||||||
* - opts.behavior: one of
|
|
||||||
* * "replace" — calls `location.replace(url)`; does not keep the folder page in history.
|
|
||||||
* * "assign" — calls `location.assign(url)`; keeps an extra history entry.
|
|
||||||
*/
|
|
||||||
(function redirectToRoot() {
|
(function redirectToRoot() {
|
||||||
// Configuration object with safe defaults.
|
// Configuration object with safe defaults.
|
||||||
var opts = {
|
var opts = {
|
||||||
|
|||||||
@@ -1,29 +1,22 @@
|
|||||||
<!--
|
<!-- Copyright (C) 2025 Moko Consulting <jmiller@mokoconsulting.tech>
|
||||||
* Copyright (C) 2025 Moko Consulting <jmiller@mokoconsulting.tech>
|
|
||||||
*
|
|
||||||
* This file is part of a Moko Consulting project.
|
|
||||||
*
|
|
||||||
* SPDX-License-Identifier: GPL-3.0-or-later
|
|
||||||
*
|
|
||||||
* This program is free software; you can redistribute it and/or modify
|
|
||||||
* it under the terms of the GNU General Public License as published by
|
|
||||||
* the Free Software Foundation; either version 3 of the License, or
|
|
||||||
* (at your option) any later version.
|
|
||||||
*
|
|
||||||
* This program is distributed in the hope that it will be useful,
|
|
||||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
||||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
||||||
* GNU General Public License for more details.
|
|
||||||
*
|
|
||||||
* You should have received a copy of the GNU General Public License
|
|
||||||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
|
||||||
-->
|
|
||||||
|
|
||||||
<!--FILE INFORMATION
|
This file is part of a Moko Consulting project.
|
||||||
* DEFGROUP: Joomla.Site
|
|
||||||
* INGROUP: Templates.Moko-Cassiopeia
|
SPDX-License-Identifier: GPL-3.0-or-later
|
||||||
* FILE: index.html
|
|
||||||
* BRIEF: Security redirect page to block folder access and forward to site root.
|
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3 of the License, or
|
||||||
|
(at your option) any later version.
|
||||||
|
|
||||||
|
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
|
||||||
|
|
||||||
|
You should have received a copy of the GNU General Public License along with this program. If not, see https://www.gnu.org/licenses/ .
|
||||||
|
|
||||||
|
# FILE INFORMATION
|
||||||
|
DEFGROUP: Joomla.Site
|
||||||
|
INGROUP: Templates.Moko-Cassiopeia
|
||||||
|
FILE: ./index.html
|
||||||
|
BRIEF: Security redirect page to block folder access and forward to site root.
|
||||||
-->
|
-->
|
||||||
|
|
||||||
<!doctype html>
|
<!doctype html>
|
||||||
@@ -44,28 +37,7 @@
|
|||||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
/**
|
|
||||||
* @defgroup Dolibarr
|
|
||||||
* @file index.html (embedded script)
|
|
||||||
* @version 1.0.0
|
|
||||||
* @brief Security redirect logic. Replaces the current history entry with the site root.
|
|
||||||
* @details This script computes the absolute root URL using `location.origin` and
|
|
||||||
* forwards the user immediately. It prevents leaving the protected folder
|
|
||||||
* in the browser history by default.
|
|
||||||
*
|
|
||||||
* @section VARIABLES
|
|
||||||
* @var {Object} opts Configuration options for the redirect behavior.
|
|
||||||
* @var {string} opts.fallbackPath Path used when `location.origin` cannot be determined.
|
|
||||||
* @var {number} opts.delayMs Optional delay in milliseconds before redirecting.
|
|
||||||
* @var {"replace"|"assign"} opts.behavior Navigation method used for the redirect.
|
|
||||||
*
|
|
||||||
* @section OPTIONS
|
|
||||||
* - opts.fallbackPath: default "/" (root path)
|
|
||||||
* - opts.delayMs: default 0 (immediate)
|
|
||||||
* - opts.behavior: one of
|
|
||||||
* * "replace" — calls `location.replace(url)`; does not keep the folder page in history.
|
|
||||||
* * "assign" — calls `location.assign(url)`; keeps an extra history entry.
|
|
||||||
*/
|
|
||||||
(function redirectToRoot() {
|
(function redirectToRoot() {
|
||||||
// Configuration object with safe defaults.
|
// Configuration object with safe defaults.
|
||||||
var opts = {
|
var opts = {
|
||||||
|
|||||||
@@ -1,29 +1,22 @@
|
|||||||
<!--
|
<!-- Copyright (C) 2025 Moko Consulting <jmiller@mokoconsulting.tech>
|
||||||
* Copyright (C) 2025 Moko Consulting <jmiller@mokoconsulting.tech>
|
|
||||||
*
|
|
||||||
* This file is part of a Moko Consulting project.
|
|
||||||
*
|
|
||||||
* SPDX-License-Identifier: GPL-3.0-or-later
|
|
||||||
*
|
|
||||||
* This program is free software; you can redistribute it and/or modify
|
|
||||||
* it under the terms of the GNU General Public License as published by
|
|
||||||
* the Free Software Foundation; either version 3 of the License, or
|
|
||||||
* (at your option) any later version.
|
|
||||||
*
|
|
||||||
* This program is distributed in the hope that it will be useful,
|
|
||||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
||||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
||||||
* GNU General Public License for more details.
|
|
||||||
*
|
|
||||||
* You should have received a copy of the GNU General Public License
|
|
||||||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
|
||||||
-->
|
|
||||||
|
|
||||||
<!--FILE INFORMATION
|
This file is part of a Moko Consulting project.
|
||||||
* DEFGROUP: Joomla.Site
|
|
||||||
* INGROUP: Templates.Moko-Cassiopeia
|
SPDX-License-Identifier: GPL-3.0-or-later
|
||||||
* FILE: index.html
|
|
||||||
* BRIEF: Security redirect page to block folder access and forward to site root.
|
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3 of the License, or
|
||||||
|
(at your option) any later version.
|
||||||
|
|
||||||
|
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
|
||||||
|
|
||||||
|
You should have received a copy of the GNU General Public License along with this program. If not, see https://www.gnu.org/licenses/ .
|
||||||
|
|
||||||
|
# FILE INFORMATION
|
||||||
|
DEFGROUP: Joomla.Site
|
||||||
|
INGROUP: Templates.Moko-Cassiopeia
|
||||||
|
FILE: ./index.html
|
||||||
|
BRIEF: Security redirect page to block folder access and forward to site root.
|
||||||
-->
|
-->
|
||||||
|
|
||||||
<!doctype html>
|
<!doctype html>
|
||||||
@@ -44,28 +37,7 @@
|
|||||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
/**
|
|
||||||
* @defgroup Dolibarr
|
|
||||||
* @file index.html (embedded script)
|
|
||||||
* @version 1.0.0
|
|
||||||
* @brief Security redirect logic. Replaces the current history entry with the site root.
|
|
||||||
* @details This script computes the absolute root URL using `location.origin` and
|
|
||||||
* forwards the user immediately. It prevents leaving the protected folder
|
|
||||||
* in the browser history by default.
|
|
||||||
*
|
|
||||||
* @section VARIABLES
|
|
||||||
* @var {Object} opts Configuration options for the redirect behavior.
|
|
||||||
* @var {string} opts.fallbackPath Path used when `location.origin` cannot be determined.
|
|
||||||
* @var {number} opts.delayMs Optional delay in milliseconds before redirecting.
|
|
||||||
* @var {"replace"|"assign"} opts.behavior Navigation method used for the redirect.
|
|
||||||
*
|
|
||||||
* @section OPTIONS
|
|
||||||
* - opts.fallbackPath: default "/" (root path)
|
|
||||||
* - opts.delayMs: default 0 (immediate)
|
|
||||||
* - opts.behavior: one of
|
|
||||||
* * "replace" — calls `location.replace(url)`; does not keep the folder page in history.
|
|
||||||
* * "assign" — calls `location.assign(url)`; keeps an extra history entry.
|
|
||||||
*/
|
|
||||||
(function redirectToRoot() {
|
(function redirectToRoot() {
|
||||||
// Configuration object with safe defaults.
|
// Configuration object with safe defaults.
|
||||||
var opts = {
|
var opts = {
|
||||||
|
|||||||
@@ -1,29 +1,22 @@
|
|||||||
<!--
|
<!-- Copyright (C) 2025 Moko Consulting <jmiller@mokoconsulting.tech>
|
||||||
* Copyright (C) 2025 Moko Consulting <jmiller@mokoconsulting.tech>
|
|
||||||
*
|
|
||||||
* This file is part of a Moko Consulting project.
|
|
||||||
*
|
|
||||||
* SPDX-License-Identifier: GPL-3.0-or-later
|
|
||||||
*
|
|
||||||
* This program is free software; you can redistribute it and/or modify
|
|
||||||
* it under the terms of the GNU General Public License as published by
|
|
||||||
* the Free Software Foundation; either version 3 of the License, or
|
|
||||||
* (at your option) any later version.
|
|
||||||
*
|
|
||||||
* This program is distributed in the hope that it will be useful,
|
|
||||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
||||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
||||||
* GNU General Public License for more details.
|
|
||||||
*
|
|
||||||
* You should have received a copy of the GNU General Public License
|
|
||||||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
|
||||||
-->
|
|
||||||
|
|
||||||
<!--FILE INFORMATION
|
This file is part of a Moko Consulting project.
|
||||||
* DEFGROUP: Joomla.Site
|
|
||||||
* INGROUP: Templates.Moko-Cassiopeia
|
SPDX-License-Identifier: GPL-3.0-or-later
|
||||||
* FILE: index.html
|
|
||||||
* BRIEF: Security redirect page to block folder access and forward to site root.
|
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3 of the License, or
|
||||||
|
(at your option) any later version.
|
||||||
|
|
||||||
|
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
|
||||||
|
|
||||||
|
You should have received a copy of the GNU General Public License along with this program. If not, see https://www.gnu.org/licenses/ .
|
||||||
|
|
||||||
|
# FILE INFORMATION
|
||||||
|
DEFGROUP: Joomla.Site
|
||||||
|
INGROUP: Templates.Moko-Cassiopeia
|
||||||
|
FILE: ./index.html
|
||||||
|
BRIEF: Security redirect page to block folder access and forward to site root.
|
||||||
-->
|
-->
|
||||||
|
|
||||||
<!doctype html>
|
<!doctype html>
|
||||||
@@ -44,28 +37,7 @@
|
|||||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
/**
|
|
||||||
* @defgroup Dolibarr
|
|
||||||
* @file index.html (embedded script)
|
|
||||||
* @version 1.0.0
|
|
||||||
* @brief Security redirect logic. Replaces the current history entry with the site root.
|
|
||||||
* @details This script computes the absolute root URL using `location.origin` and
|
|
||||||
* forwards the user immediately. It prevents leaving the protected folder
|
|
||||||
* in the browser history by default.
|
|
||||||
*
|
|
||||||
* @section VARIABLES
|
|
||||||
* @var {Object} opts Configuration options for the redirect behavior.
|
|
||||||
* @var {string} opts.fallbackPath Path used when `location.origin` cannot be determined.
|
|
||||||
* @var {number} opts.delayMs Optional delay in milliseconds before redirecting.
|
|
||||||
* @var {"replace"|"assign"} opts.behavior Navigation method used for the redirect.
|
|
||||||
*
|
|
||||||
* @section OPTIONS
|
|
||||||
* - opts.fallbackPath: default "/" (root path)
|
|
||||||
* - opts.delayMs: default 0 (immediate)
|
|
||||||
* - opts.behavior: one of
|
|
||||||
* * "replace" — calls `location.replace(url)`; does not keep the folder page in history.
|
|
||||||
* * "assign" — calls `location.assign(url)`; keeps an extra history entry.
|
|
||||||
*/
|
|
||||||
(function redirectToRoot() {
|
(function redirectToRoot() {
|
||||||
// Configuration object with safe defaults.
|
// Configuration object with safe defaults.
|
||||||
var opts = {
|
var opts = {
|
||||||
|
|||||||
@@ -1,29 +1,22 @@
|
|||||||
<!--
|
<!-- Copyright (C) 2025 Moko Consulting <jmiller@mokoconsulting.tech>
|
||||||
* Copyright (C) 2025 Moko Consulting <jmiller@mokoconsulting.tech>
|
|
||||||
*
|
|
||||||
* This file is part of a Moko Consulting project.
|
|
||||||
*
|
|
||||||
* SPDX-License-Identifier: GPL-3.0-or-later
|
|
||||||
*
|
|
||||||
* This program is free software; you can redistribute it and/or modify
|
|
||||||
* it under the terms of the GNU General Public License as published by
|
|
||||||
* the Free Software Foundation; either version 3 of the License, or
|
|
||||||
* (at your option) any later version.
|
|
||||||
*
|
|
||||||
* This program is distributed in the hope that it will be useful,
|
|
||||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
||||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
||||||
* GNU General Public License for more details.
|
|
||||||
*
|
|
||||||
* You should have received a copy of the GNU General Public License
|
|
||||||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
|
||||||
-->
|
|
||||||
|
|
||||||
<!--FILE INFORMATION
|
This file is part of a Moko Consulting project.
|
||||||
* DEFGROUP: Joomla.Site
|
|
||||||
* INGROUP: Templates.Moko-Cassiopeia
|
SPDX-License-Identifier: GPL-3.0-or-later
|
||||||
* FILE: index.html
|
|
||||||
* BRIEF: Security redirect page to block folder access and forward to site root.
|
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3 of the License, or
|
||||||
|
(at your option) any later version.
|
||||||
|
|
||||||
|
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
|
||||||
|
|
||||||
|
You should have received a copy of the GNU General Public License along with this program. If not, see https://www.gnu.org/licenses/ .
|
||||||
|
|
||||||
|
# FILE INFORMATION
|
||||||
|
DEFGROUP: Joomla.Site
|
||||||
|
INGROUP: Templates.Moko-Cassiopeia
|
||||||
|
FILE: ./index.html
|
||||||
|
BRIEF: Security redirect page to block folder access and forward to site root.
|
||||||
-->
|
-->
|
||||||
|
|
||||||
<!doctype html>
|
<!doctype html>
|
||||||
@@ -44,28 +37,7 @@
|
|||||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
/**
|
|
||||||
* @defgroup Dolibarr
|
|
||||||
* @file index.html (embedded script)
|
|
||||||
* @version 1.0.0
|
|
||||||
* @brief Security redirect logic. Replaces the current history entry with the site root.
|
|
||||||
* @details This script computes the absolute root URL using `location.origin` and
|
|
||||||
* forwards the user immediately. It prevents leaving the protected folder
|
|
||||||
* in the browser history by default.
|
|
||||||
*
|
|
||||||
* @section VARIABLES
|
|
||||||
* @var {Object} opts Configuration options for the redirect behavior.
|
|
||||||
* @var {string} opts.fallbackPath Path used when `location.origin` cannot be determined.
|
|
||||||
* @var {number} opts.delayMs Optional delay in milliseconds before redirecting.
|
|
||||||
* @var {"replace"|"assign"} opts.behavior Navigation method used for the redirect.
|
|
||||||
*
|
|
||||||
* @section OPTIONS
|
|
||||||
* - opts.fallbackPath: default "/" (root path)
|
|
||||||
* - opts.delayMs: default 0 (immediate)
|
|
||||||
* - opts.behavior: one of
|
|
||||||
* * "replace" — calls `location.replace(url)`; does not keep the folder page in history.
|
|
||||||
* * "assign" — calls `location.assign(url)`; keeps an extra history entry.
|
|
||||||
*/
|
|
||||||
(function redirectToRoot() {
|
(function redirectToRoot() {
|
||||||
// Configuration object with safe defaults.
|
// Configuration object with safe defaults.
|
||||||
var opts = {
|
var opts = {
|
||||||
|
|||||||
@@ -37,7 +37,7 @@ for ($i = 0 , $n = count($items) ; $i < $n ; $i++)
|
|||||||
<a href="<?php echo $link; ?>" class="osm-item-title-link">
|
<a href="<?php echo $link; ?>" class="osm-item-title-link">
|
||||||
<?php echo $item->title;?>
|
<?php echo $item->title;?>
|
||||||
</a>
|
</a>
|
||||||
<span class="<?php echo $bootstrapHelper->getClassMapping('badge badge-info'); ?>"><?php echo $item->total_plans ;?> <?php echo $item->total_plans > 1 ? Text::_('OSM_PLANS') : Text::_('OSM_PLAN') ; ?></span>
|
<span class="<?php echo $bootstrapHelper->getClassMapping('badge badge-info'); ?>"><?php echo $item->total_plans ;?> <?php echo $item->total_plans > 1 ? Text::_('OSM_PLANS') : Text::_('OSM_PLAN') ; ?></span>
|
||||||
</h3>
|
</h3>
|
||||||
</div>
|
</div>
|
||||||
<?php
|
<?php
|
||||||
|
|||||||
@@ -1,29 +1,22 @@
|
|||||||
<!--
|
<!-- Copyright (C) 2025 Moko Consulting <jmiller@mokoconsulting.tech>
|
||||||
* Copyright (C) 2025 Moko Consulting <jmiller@mokoconsulting.tech>
|
|
||||||
*
|
|
||||||
* This file is part of a Moko Consulting project.
|
|
||||||
*
|
|
||||||
* SPDX-License-Identifier: GPL-3.0-or-later
|
|
||||||
*
|
|
||||||
* This program is free software; you can redistribute it and/or modify
|
|
||||||
* it under the terms of the GNU General Public License as published by
|
|
||||||
* the Free Software Foundation; either version 3 of the License, or
|
|
||||||
* (at your option) any later version.
|
|
||||||
*
|
|
||||||
* This program is distributed in the hope that it will be useful,
|
|
||||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
||||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
||||||
* GNU General Public License for more details.
|
|
||||||
*
|
|
||||||
* You should have received a copy of the GNU General Public License
|
|
||||||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
|
||||||
-->
|
|
||||||
|
|
||||||
<!--FILE INFORMATION
|
This file is part of a Moko Consulting project.
|
||||||
* DEFGROUP: Joomla.Site
|
|
||||||
* INGROUP: Templates.Moko-Cassiopeia
|
SPDX-License-Identifier: GPL-3.0-or-later
|
||||||
* FILE: index.html
|
|
||||||
* BRIEF: Security redirect page to block folder access and forward to site root.
|
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3 of the License, or
|
||||||
|
(at your option) any later version.
|
||||||
|
|
||||||
|
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
|
||||||
|
|
||||||
|
You should have received a copy of the GNU General Public License along with this program. If not, see https://www.gnu.org/licenses/ .
|
||||||
|
|
||||||
|
# FILE INFORMATION
|
||||||
|
DEFGROUP: Joomla.Site
|
||||||
|
INGROUP: Templates.Moko-Cassiopeia
|
||||||
|
FILE: ./index.html
|
||||||
|
BRIEF: Security redirect page to block folder access and forward to site root.
|
||||||
-->
|
-->
|
||||||
|
|
||||||
<!doctype html>
|
<!doctype html>
|
||||||
@@ -44,28 +37,7 @@
|
|||||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
/**
|
|
||||||
* @defgroup Dolibarr
|
|
||||||
* @file index.html (embedded script)
|
|
||||||
* @version 1.0.0
|
|
||||||
* @brief Security redirect logic. Replaces the current history entry with the site root.
|
|
||||||
* @details This script computes the absolute root URL using `location.origin` and
|
|
||||||
* forwards the user immediately. It prevents leaving the protected folder
|
|
||||||
* in the browser history by default.
|
|
||||||
*
|
|
||||||
* @section VARIABLES
|
|
||||||
* @var {Object} opts Configuration options for the redirect behavior.
|
|
||||||
* @var {string} opts.fallbackPath Path used when `location.origin` cannot be determined.
|
|
||||||
* @var {number} opts.delayMs Optional delay in milliseconds before redirecting.
|
|
||||||
* @var {"replace"|"assign"} opts.behavior Navigation method used for the redirect.
|
|
||||||
*
|
|
||||||
* @section OPTIONS
|
|
||||||
* - opts.fallbackPath: default "/" (root path)
|
|
||||||
* - opts.delayMs: default 0 (immediate)
|
|
||||||
* - opts.behavior: one of
|
|
||||||
* * "replace" — calls `location.replace(url)`; does not keep the folder page in history.
|
|
||||||
* * "assign" — calls `location.assign(url)`; keeps an extra history entry.
|
|
||||||
*/
|
|
||||||
(function redirectToRoot() {
|
(function redirectToRoot() {
|
||||||
// Configuration object with safe defaults.
|
// Configuration object with safe defaults.
|
||||||
var opts = {
|
var opts = {
|
||||||
|
|||||||
@@ -1,29 +1,22 @@
|
|||||||
<!--
|
<!-- Copyright (C) 2025 Moko Consulting <jmiller@mokoconsulting.tech>
|
||||||
* Copyright (C) 2025 Moko Consulting <jmiller@mokoconsulting.tech>
|
|
||||||
*
|
|
||||||
* This file is part of a Moko Consulting project.
|
|
||||||
*
|
|
||||||
* SPDX-License-Identifier: GPL-3.0-or-later
|
|
||||||
*
|
|
||||||
* This program is free software; you can redistribute it and/or modify
|
|
||||||
* it under the terms of the GNU General Public License as published by
|
|
||||||
* the Free Software Foundation; either version 3 of the License, or
|
|
||||||
* (at your option) any later version.
|
|
||||||
*
|
|
||||||
* This program is distributed in the hope that it will be useful,
|
|
||||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
||||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
||||||
* GNU General Public License for more details.
|
|
||||||
*
|
|
||||||
* You should have received a copy of the GNU General Public License
|
|
||||||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
|
||||||
-->
|
|
||||||
|
|
||||||
<!--FILE INFORMATION
|
This file is part of a Moko Consulting project.
|
||||||
* DEFGROUP: Joomla.Site
|
|
||||||
* INGROUP: Templates.Moko-Cassiopeia
|
SPDX-License-Identifier: GPL-3.0-or-later
|
||||||
* FILE: index.html
|
|
||||||
* BRIEF: Security redirect page to block folder access and forward to site root.
|
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3 of the License, or
|
||||||
|
(at your option) any later version.
|
||||||
|
|
||||||
|
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
|
||||||
|
|
||||||
|
You should have received a copy of the GNU General Public License along with this program. If not, see https://www.gnu.org/licenses/ .
|
||||||
|
|
||||||
|
# FILE INFORMATION
|
||||||
|
DEFGROUP: Joomla.Site
|
||||||
|
INGROUP: Templates.Moko-Cassiopeia
|
||||||
|
FILE: ./index.html
|
||||||
|
BRIEF: Security redirect page to block folder access and forward to site root.
|
||||||
-->
|
-->
|
||||||
|
|
||||||
<!doctype html>
|
<!doctype html>
|
||||||
@@ -44,28 +37,7 @@
|
|||||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
/**
|
|
||||||
* @defgroup Dolibarr
|
|
||||||
* @file index.html (embedded script)
|
|
||||||
* @version 1.0.0
|
|
||||||
* @brief Security redirect logic. Replaces the current history entry with the site root.
|
|
||||||
* @details This script computes the absolute root URL using `location.origin` and
|
|
||||||
* forwards the user immediately. It prevents leaving the protected folder
|
|
||||||
* in the browser history by default.
|
|
||||||
*
|
|
||||||
* @section VARIABLES
|
|
||||||
* @var {Object} opts Configuration options for the redirect behavior.
|
|
||||||
* @var {string} opts.fallbackPath Path used when `location.origin` cannot be determined.
|
|
||||||
* @var {number} opts.delayMs Optional delay in milliseconds before redirecting.
|
|
||||||
* @var {"replace"|"assign"} opts.behavior Navigation method used for the redirect.
|
|
||||||
*
|
|
||||||
* @section OPTIONS
|
|
||||||
* - opts.fallbackPath: default "/" (root path)
|
|
||||||
* - opts.delayMs: default 0 (immediate)
|
|
||||||
* - opts.behavior: one of
|
|
||||||
* * "replace" — calls `location.replace(url)`; does not keep the folder page in history.
|
|
||||||
* * "assign" — calls `location.assign(url)`; keeps an extra history entry.
|
|
||||||
*/
|
|
||||||
(function redirectToRoot() {
|
(function redirectToRoot() {
|
||||||
// Configuration object with safe defaults.
|
// Configuration object with safe defaults.
|
||||||
var opts = {
|
var opts = {
|
||||||
|
|||||||
@@ -1,29 +1,22 @@
|
|||||||
<!--
|
<!-- Copyright (C) 2025 Moko Consulting <jmiller@mokoconsulting.tech>
|
||||||
* Copyright (C) 2025 Moko Consulting <jmiller@mokoconsulting.tech>
|
|
||||||
*
|
|
||||||
* This file is part of a Moko Consulting project.
|
|
||||||
*
|
|
||||||
* SPDX-License-Identifier: GPL-3.0-or-later
|
|
||||||
*
|
|
||||||
* This program is free software; you can redistribute it and/or modify
|
|
||||||
* it under the terms of the GNU General Public License as published by
|
|
||||||
* the Free Software Foundation; either version 3 of the License, or
|
|
||||||
* (at your option) any later version.
|
|
||||||
*
|
|
||||||
* This program is distributed in the hope that it will be useful,
|
|
||||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
||||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
||||||
* GNU General Public License for more details.
|
|
||||||
*
|
|
||||||
* You should have received a copy of the GNU General Public License
|
|
||||||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
|
||||||
-->
|
|
||||||
|
|
||||||
<!--FILE INFORMATION
|
This file is part of a Moko Consulting project.
|
||||||
* DEFGROUP: Joomla.Site
|
|
||||||
* INGROUP: Templates.Moko-Cassiopeia
|
SPDX-License-Identifier: GPL-3.0-or-later
|
||||||
* FILE: index.html
|
|
||||||
* BRIEF: Security redirect page to block folder access and forward to site root.
|
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3 of the License, or
|
||||||
|
(at your option) any later version.
|
||||||
|
|
||||||
|
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
|
||||||
|
|
||||||
|
You should have received a copy of the GNU General Public License along with this program. If not, see https://www.gnu.org/licenses/ .
|
||||||
|
|
||||||
|
# FILE INFORMATION
|
||||||
|
DEFGROUP: Joomla.Site
|
||||||
|
INGROUP: Templates.Moko-Cassiopeia
|
||||||
|
FILE: ./index.html
|
||||||
|
BRIEF: Security redirect page to block folder access and forward to site root.
|
||||||
-->
|
-->
|
||||||
|
|
||||||
<!doctype html>
|
<!doctype html>
|
||||||
@@ -44,28 +37,7 @@
|
|||||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
/**
|
|
||||||
* @defgroup Dolibarr
|
|
||||||
* @file index.html (embedded script)
|
|
||||||
* @version 1.0.0
|
|
||||||
* @brief Security redirect logic. Replaces the current history entry with the site root.
|
|
||||||
* @details This script computes the absolute root URL using `location.origin` and
|
|
||||||
* forwards the user immediately. It prevents leaving the protected folder
|
|
||||||
* in the browser history by default.
|
|
||||||
*
|
|
||||||
* @section VARIABLES
|
|
||||||
* @var {Object} opts Configuration options for the redirect behavior.
|
|
||||||
* @var {string} opts.fallbackPath Path used when `location.origin` cannot be determined.
|
|
||||||
* @var {number} opts.delayMs Optional delay in milliseconds before redirecting.
|
|
||||||
* @var {"replace"|"assign"} opts.behavior Navigation method used for the redirect.
|
|
||||||
*
|
|
||||||
* @section OPTIONS
|
|
||||||
* - opts.fallbackPath: default "/" (root path)
|
|
||||||
* - opts.delayMs: default 0 (immediate)
|
|
||||||
* - opts.behavior: one of
|
|
||||||
* * "replace" — calls `location.replace(url)`; does not keep the folder page in history.
|
|
||||||
* * "assign" — calls `location.assign(url)`; keeps an extra history entry.
|
|
||||||
*/
|
|
||||||
(function redirectToRoot() {
|
(function redirectToRoot() {
|
||||||
// Configuration object with safe defaults.
|
// Configuration object with safe defaults.
|
||||||
var opts = {
|
var opts = {
|
||||||
|
|||||||
@@ -1,29 +1,22 @@
|
|||||||
<!--
|
<!-- Copyright (C) 2025 Moko Consulting <jmiller@mokoconsulting.tech>
|
||||||
* Copyright (C) 2025 Moko Consulting <jmiller@mokoconsulting.tech>
|
|
||||||
*
|
|
||||||
* This file is part of a Moko Consulting project.
|
|
||||||
*
|
|
||||||
* SPDX-License-Identifier: GPL-3.0-or-later
|
|
||||||
*
|
|
||||||
* This program is free software; you can redistribute it and/or modify
|
|
||||||
* it under the terms of the GNU General Public License as published by
|
|
||||||
* the Free Software Foundation; either version 3 of the License, or
|
|
||||||
* (at your option) any later version.
|
|
||||||
*
|
|
||||||
* This program is distributed in the hope that it will be useful,
|
|
||||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
||||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
||||||
* GNU General Public License for more details.
|
|
||||||
*
|
|
||||||
* You should have received a copy of the GNU General Public License
|
|
||||||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
|
||||||
-->
|
|
||||||
|
|
||||||
<!--FILE INFORMATION
|
This file is part of a Moko Consulting project.
|
||||||
* DEFGROUP: Joomla.Site
|
|
||||||
* INGROUP: Templates.Moko-Cassiopeia
|
SPDX-License-Identifier: GPL-3.0-or-later
|
||||||
* FILE: index.html
|
|
||||||
* BRIEF: Security redirect page to block folder access and forward to site root.
|
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3 of the License, or
|
||||||
|
(at your option) any later version.
|
||||||
|
|
||||||
|
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
|
||||||
|
|
||||||
|
You should have received a copy of the GNU General Public License along with this program. If not, see https://www.gnu.org/licenses/ .
|
||||||
|
|
||||||
|
# FILE INFORMATION
|
||||||
|
DEFGROUP: Joomla.Site
|
||||||
|
INGROUP: Templates.Moko-Cassiopeia
|
||||||
|
FILE: ./index.html
|
||||||
|
BRIEF: Security redirect page to block folder access and forward to site root.
|
||||||
-->
|
-->
|
||||||
|
|
||||||
<!doctype html>
|
<!doctype html>
|
||||||
@@ -44,28 +37,7 @@
|
|||||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
/**
|
|
||||||
* @defgroup Dolibarr
|
|
||||||
* @file index.html (embedded script)
|
|
||||||
* @version 1.0.0
|
|
||||||
* @brief Security redirect logic. Replaces the current history entry with the site root.
|
|
||||||
* @details This script computes the absolute root URL using `location.origin` and
|
|
||||||
* forwards the user immediately. It prevents leaving the protected folder
|
|
||||||
* in the browser history by default.
|
|
||||||
*
|
|
||||||
* @section VARIABLES
|
|
||||||
* @var {Object} opts Configuration options for the redirect behavior.
|
|
||||||
* @var {string} opts.fallbackPath Path used when `location.origin` cannot be determined.
|
|
||||||
* @var {number} opts.delayMs Optional delay in milliseconds before redirecting.
|
|
||||||
* @var {"replace"|"assign"} opts.behavior Navigation method used for the redirect.
|
|
||||||
*
|
|
||||||
* @section OPTIONS
|
|
||||||
* - opts.fallbackPath: default "/" (root path)
|
|
||||||
* - opts.delayMs: default 0 (immediate)
|
|
||||||
* - opts.behavior: one of
|
|
||||||
* * "replace" — calls `location.replace(url)`; does not keep the folder page in history.
|
|
||||||
* * "assign" — calls `location.assign(url)`; keeps an extra history entry.
|
|
||||||
*/
|
|
||||||
(function redirectToRoot() {
|
(function redirectToRoot() {
|
||||||
// Configuration object with safe defaults.
|
// Configuration object with safe defaults.
|
||||||
var opts = {
|
var opts = {
|
||||||
|
|||||||
@@ -1,29 +1,22 @@
|
|||||||
<!--
|
<!-- Copyright (C) 2025 Moko Consulting <jmiller@mokoconsulting.tech>
|
||||||
* Copyright (C) 2025 Moko Consulting <jmiller@mokoconsulting.tech>
|
|
||||||
*
|
|
||||||
* This file is part of a Moko Consulting project.
|
|
||||||
*
|
|
||||||
* SPDX-License-Identifier: GPL-3.0-or-later
|
|
||||||
*
|
|
||||||
* This program is free software; you can redistribute it and/or modify
|
|
||||||
* it under the terms of the GNU General Public License as published by
|
|
||||||
* the Free Software Foundation; either version 3 of the License, or
|
|
||||||
* (at your option) any later version.
|
|
||||||
*
|
|
||||||
* This program is distributed in the hope that it will be useful,
|
|
||||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
||||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
||||||
* GNU General Public License for more details.
|
|
||||||
*
|
|
||||||
* You should have received a copy of the GNU General Public License
|
|
||||||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
|
||||||
-->
|
|
||||||
|
|
||||||
<!--FILE INFORMATION
|
This file is part of a Moko Consulting project.
|
||||||
* DEFGROUP: Joomla.Site
|
|
||||||
* INGROUP: Templates.Moko-Cassiopeia
|
SPDX-License-Identifier: GPL-3.0-or-later
|
||||||
* FILE: index.html
|
|
||||||
* BRIEF: Security redirect page to block folder access and forward to site root.
|
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3 of the License, or
|
||||||
|
(at your option) any later version.
|
||||||
|
|
||||||
|
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
|
||||||
|
|
||||||
|
You should have received a copy of the GNU General Public License along with this program. If not, see https://www.gnu.org/licenses/ .
|
||||||
|
|
||||||
|
# FILE INFORMATION
|
||||||
|
DEFGROUP: Joomla.Site
|
||||||
|
INGROUP: Templates.Moko-Cassiopeia
|
||||||
|
FILE: ./index.html
|
||||||
|
BRIEF: Security redirect page to block folder access and forward to site root.
|
||||||
-->
|
-->
|
||||||
|
|
||||||
<!doctype html>
|
<!doctype html>
|
||||||
@@ -44,28 +37,7 @@
|
|||||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
/**
|
|
||||||
* @defgroup Dolibarr
|
|
||||||
* @file index.html (embedded script)
|
|
||||||
* @version 1.0.0
|
|
||||||
* @brief Security redirect logic. Replaces the current history entry with the site root.
|
|
||||||
* @details This script computes the absolute root URL using `location.origin` and
|
|
||||||
* forwards the user immediately. It prevents leaving the protected folder
|
|
||||||
* in the browser history by default.
|
|
||||||
*
|
|
||||||
* @section VARIABLES
|
|
||||||
* @var {Object} opts Configuration options for the redirect behavior.
|
|
||||||
* @var {string} opts.fallbackPath Path used when `location.origin` cannot be determined.
|
|
||||||
* @var {number} opts.delayMs Optional delay in milliseconds before redirecting.
|
|
||||||
* @var {"replace"|"assign"} opts.behavior Navigation method used for the redirect.
|
|
||||||
*
|
|
||||||
* @section OPTIONS
|
|
||||||
* - opts.fallbackPath: default "/" (root path)
|
|
||||||
* - opts.delayMs: default 0 (immediate)
|
|
||||||
* - opts.behavior: one of
|
|
||||||
* * "replace" — calls `location.replace(url)`; does not keep the folder page in history.
|
|
||||||
* * "assign" — calls `location.assign(url)`; keeps an extra history entry.
|
|
||||||
*/
|
|
||||||
(function redirectToRoot() {
|
(function redirectToRoot() {
|
||||||
// Configuration object with safe defaults.
|
// Configuration object with safe defaults.
|
||||||
var opts = {
|
var opts = {
|
||||||
|
|||||||
@@ -1,29 +1,22 @@
|
|||||||
<!--
|
<!-- Copyright (C) 2025 Moko Consulting <jmiller@mokoconsulting.tech>
|
||||||
* Copyright (C) 2025 Moko Consulting <jmiller@mokoconsulting.tech>
|
|
||||||
*
|
|
||||||
* This file is part of a Moko Consulting project.
|
|
||||||
*
|
|
||||||
* SPDX-License-Identifier: GPL-3.0-or-later
|
|
||||||
*
|
|
||||||
* This program is free software; you can redistribute it and/or modify
|
|
||||||
* it under the terms of the GNU General Public License as published by
|
|
||||||
* the Free Software Foundation; either version 3 of the License, or
|
|
||||||
* (at your option) any later version.
|
|
||||||
*
|
|
||||||
* This program is distributed in the hope that it will be useful,
|
|
||||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
||||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
||||||
* GNU General Public License for more details.
|
|
||||||
*
|
|
||||||
* You should have received a copy of the GNU General Public License
|
|
||||||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
|
||||||
-->
|
|
||||||
|
|
||||||
<!--FILE INFORMATION
|
This file is part of a Moko Consulting project.
|
||||||
* DEFGROUP: Joomla.Site
|
|
||||||
* INGROUP: Templates.Moko-Cassiopeia
|
SPDX-License-Identifier: GPL-3.0-or-later
|
||||||
* FILE: index.html
|
|
||||||
* BRIEF: Security redirect page to block folder access and forward to site root.
|
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3 of the License, or
|
||||||
|
(at your option) any later version.
|
||||||
|
|
||||||
|
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
|
||||||
|
|
||||||
|
You should have received a copy of the GNU General Public License along with this program. If not, see https://www.gnu.org/licenses/ .
|
||||||
|
|
||||||
|
# FILE INFORMATION
|
||||||
|
DEFGROUP: Joomla.Site
|
||||||
|
INGROUP: Templates.Moko-Cassiopeia
|
||||||
|
FILE: ./index.html
|
||||||
|
BRIEF: Security redirect page to block folder access and forward to site root.
|
||||||
-->
|
-->
|
||||||
|
|
||||||
<!doctype html>
|
<!doctype html>
|
||||||
@@ -44,28 +37,7 @@
|
|||||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
/**
|
|
||||||
* @defgroup Dolibarr
|
|
||||||
* @file index.html (embedded script)
|
|
||||||
* @version 1.0.0
|
|
||||||
* @brief Security redirect logic. Replaces the current history entry with the site root.
|
|
||||||
* @details This script computes the absolute root URL using `location.origin` and
|
|
||||||
* forwards the user immediately. It prevents leaving the protected folder
|
|
||||||
* in the browser history by default.
|
|
||||||
*
|
|
||||||
* @section VARIABLES
|
|
||||||
* @var {Object} opts Configuration options for the redirect behavior.
|
|
||||||
* @var {string} opts.fallbackPath Path used when `location.origin` cannot be determined.
|
|
||||||
* @var {number} opts.delayMs Optional delay in milliseconds before redirecting.
|
|
||||||
* @var {"replace"|"assign"} opts.behavior Navigation method used for the redirect.
|
|
||||||
*
|
|
||||||
* @section OPTIONS
|
|
||||||
* - opts.fallbackPath: default "/" (root path)
|
|
||||||
* - opts.delayMs: default 0 (immediate)
|
|
||||||
* - opts.behavior: one of
|
|
||||||
* * "replace" — calls `location.replace(url)`; does not keep the folder page in history.
|
|
||||||
* * "assign" — calls `location.assign(url)`; keeps an extra history entry.
|
|
||||||
*/
|
|
||||||
(function redirectToRoot() {
|
(function redirectToRoot() {
|
||||||
// Configuration object with safe defaults.
|
// Configuration object with safe defaults.
|
||||||
var opts = {
|
var opts = {
|
||||||
|
|||||||
@@ -1,29 +1,22 @@
|
|||||||
<!--
|
<!-- Copyright (C) 2025 Moko Consulting <jmiller@mokoconsulting.tech>
|
||||||
* Copyright (C) 2025 Moko Consulting <jmiller@mokoconsulting.tech>
|
|
||||||
*
|
|
||||||
* This file is part of a Moko Consulting project.
|
|
||||||
*
|
|
||||||
* SPDX-License-Identifier: GPL-3.0-or-later
|
|
||||||
*
|
|
||||||
* This program is free software; you can redistribute it and/or modify
|
|
||||||
* it under the terms of the GNU General Public License as published by
|
|
||||||
* the Free Software Foundation; either version 3 of the License, or
|
|
||||||
* (at your option) any later version.
|
|
||||||
*
|
|
||||||
* This program is distributed in the hope that it will be useful,
|
|
||||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
||||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
||||||
* GNU General Public License for more details.
|
|
||||||
*
|
|
||||||
* You should have received a copy of the GNU General Public License
|
|
||||||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
|
||||||
-->
|
|
||||||
|
|
||||||
<!--FILE INFORMATION
|
This file is part of a Moko Consulting project.
|
||||||
* DEFGROUP: Joomla.Site
|
|
||||||
* INGROUP: Templates.Moko-Cassiopeia
|
SPDX-License-Identifier: GPL-3.0-or-later
|
||||||
* FILE: index.html
|
|
||||||
* BRIEF: Security redirect page to block folder access and forward to site root.
|
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3 of the License, or
|
||||||
|
(at your option) any later version.
|
||||||
|
|
||||||
|
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
|
||||||
|
|
||||||
|
You should have received a copy of the GNU General Public License along with this program. If not, see https://www.gnu.org/licenses/ .
|
||||||
|
|
||||||
|
# FILE INFORMATION
|
||||||
|
DEFGROUP: Joomla.Site
|
||||||
|
INGROUP: Templates.Moko-Cassiopeia
|
||||||
|
FILE: ./index.html
|
||||||
|
BRIEF: Security redirect page to block folder access and forward to site root.
|
||||||
-->
|
-->
|
||||||
|
|
||||||
<!doctype html>
|
<!doctype html>
|
||||||
@@ -44,28 +37,7 @@
|
|||||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
/**
|
|
||||||
* @defgroup Dolibarr
|
|
||||||
* @file index.html (embedded script)
|
|
||||||
* @version 1.0.0
|
|
||||||
* @brief Security redirect logic. Replaces the current history entry with the site root.
|
|
||||||
* @details This script computes the absolute root URL using `location.origin` and
|
|
||||||
* forwards the user immediately. It prevents leaving the protected folder
|
|
||||||
* in the browser history by default.
|
|
||||||
*
|
|
||||||
* @section VARIABLES
|
|
||||||
* @var {Object} opts Configuration options for the redirect behavior.
|
|
||||||
* @var {string} opts.fallbackPath Path used when `location.origin` cannot be determined.
|
|
||||||
* @var {number} opts.delayMs Optional delay in milliseconds before redirecting.
|
|
||||||
* @var {"replace"|"assign"} opts.behavior Navigation method used for the redirect.
|
|
||||||
*
|
|
||||||
* @section OPTIONS
|
|
||||||
* - opts.fallbackPath: default "/" (root path)
|
|
||||||
* - opts.delayMs: default 0 (immediate)
|
|
||||||
* - opts.behavior: one of
|
|
||||||
* * "replace" — calls `location.replace(url)`; does not keep the folder page in history.
|
|
||||||
* * "assign" — calls `location.assign(url)`; keeps an extra history entry.
|
|
||||||
*/
|
|
||||||
(function redirectToRoot() {
|
(function redirectToRoot() {
|
||||||
// Configuration object with safe defaults.
|
// Configuration object with safe defaults.
|
||||||
var opts = {
|
var opts = {
|
||||||
|
|||||||
@@ -1,29 +1,22 @@
|
|||||||
<!--
|
<!-- Copyright (C) 2025 Moko Consulting <jmiller@mokoconsulting.tech>
|
||||||
* Copyright (C) 2025 Moko Consulting <jmiller@mokoconsulting.tech>
|
|
||||||
*
|
|
||||||
* This file is part of a Moko Consulting project.
|
|
||||||
*
|
|
||||||
* SPDX-License-Identifier: GPL-3.0-or-later
|
|
||||||
*
|
|
||||||
* This program is free software; you can redistribute it and/or modify
|
|
||||||
* it under the terms of the GNU General Public License as published by
|
|
||||||
* the Free Software Foundation; either version 3 of the License, or
|
|
||||||
* (at your option) any later version.
|
|
||||||
*
|
|
||||||
* This program is distributed in the hope that it will be useful,
|
|
||||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
||||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
||||||
* GNU General Public License for more details.
|
|
||||||
*
|
|
||||||
* You should have received a copy of the GNU General Public License
|
|
||||||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
|
||||||
-->
|
|
||||||
|
|
||||||
<!--FILE INFORMATION
|
This file is part of a Moko Consulting project.
|
||||||
* DEFGROUP: Joomla.Site
|
|
||||||
* INGROUP: Templates.Moko-Cassiopeia
|
SPDX-License-Identifier: GPL-3.0-or-later
|
||||||
* FILE: index.html
|
|
||||||
* BRIEF: Security redirect page to block folder access and forward to site root.
|
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3 of the License, or
|
||||||
|
(at your option) any later version.
|
||||||
|
|
||||||
|
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
|
||||||
|
|
||||||
|
You should have received a copy of the GNU General Public License along with this program. If not, see https://www.gnu.org/licenses/ .
|
||||||
|
|
||||||
|
# FILE INFORMATION
|
||||||
|
DEFGROUP: Joomla.Site
|
||||||
|
INGROUP: Templates.Moko-Cassiopeia
|
||||||
|
FILE: ./index.html
|
||||||
|
BRIEF: Security redirect page to block folder access and forward to site root.
|
||||||
-->
|
-->
|
||||||
|
|
||||||
<!doctype html>
|
<!doctype html>
|
||||||
@@ -44,28 +37,7 @@
|
|||||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
/**
|
|
||||||
* @defgroup Dolibarr
|
|
||||||
* @file index.html (embedded script)
|
|
||||||
* @version 1.0.0
|
|
||||||
* @brief Security redirect logic. Replaces the current history entry with the site root.
|
|
||||||
* @details This script computes the absolute root URL using `location.origin` and
|
|
||||||
* forwards the user immediately. It prevents leaving the protected folder
|
|
||||||
* in the browser history by default.
|
|
||||||
*
|
|
||||||
* @section VARIABLES
|
|
||||||
* @var {Object} opts Configuration options for the redirect behavior.
|
|
||||||
* @var {string} opts.fallbackPath Path used when `location.origin` cannot be determined.
|
|
||||||
* @var {number} opts.delayMs Optional delay in milliseconds before redirecting.
|
|
||||||
* @var {"replace"|"assign"} opts.behavior Navigation method used for the redirect.
|
|
||||||
*
|
|
||||||
* @section OPTIONS
|
|
||||||
* - opts.fallbackPath: default "/" (root path)
|
|
||||||
* - opts.delayMs: default 0 (immediate)
|
|
||||||
* - opts.behavior: one of
|
|
||||||
* * "replace" — calls `location.replace(url)`; does not keep the folder page in history.
|
|
||||||
* * "assign" — calls `location.assign(url)`; keeps an extra history entry.
|
|
||||||
*/
|
|
||||||
(function redirectToRoot() {
|
(function redirectToRoot() {
|
||||||
// Configuration object with safe defaults.
|
// Configuration object with safe defaults.
|
||||||
var opts = {
|
var opts = {
|
||||||
|
|||||||
@@ -1,29 +1,22 @@
|
|||||||
<!--
|
<!-- Copyright (C) 2025 Moko Consulting <jmiller@mokoconsulting.tech>
|
||||||
* Copyright (C) 2025 Moko Consulting <jmiller@mokoconsulting.tech>
|
|
||||||
*
|
|
||||||
* This file is part of a Moko Consulting project.
|
|
||||||
*
|
|
||||||
* SPDX-License-Identifier: GPL-3.0-or-later
|
|
||||||
*
|
|
||||||
* This program is free software; you can redistribute it and/or modify
|
|
||||||
* it under the terms of the GNU General Public License as published by
|
|
||||||
* the Free Software Foundation; either version 3 of the License, or
|
|
||||||
* (at your option) any later version.
|
|
||||||
*
|
|
||||||
* This program is distributed in the hope that it will be useful,
|
|
||||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
||||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
||||||
* GNU General Public License for more details.
|
|
||||||
*
|
|
||||||
* You should have received a copy of the GNU General Public License
|
|
||||||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
|
||||||
-->
|
|
||||||
|
|
||||||
<!--FILE INFORMATION
|
This file is part of a Moko Consulting project.
|
||||||
* DEFGROUP: Joomla.Site
|
|
||||||
* INGROUP: Templates.Moko-Cassiopeia
|
SPDX-License-Identifier: GPL-3.0-or-later
|
||||||
* FILE: index.html
|
|
||||||
* BRIEF: Security redirect page to block folder access and forward to site root.
|
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3 of the License, or
|
||||||
|
(at your option) any later version.
|
||||||
|
|
||||||
|
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
|
||||||
|
|
||||||
|
You should have received a copy of the GNU General Public License along with this program. If not, see https://www.gnu.org/licenses/ .
|
||||||
|
|
||||||
|
# FILE INFORMATION
|
||||||
|
DEFGROUP: Joomla.Site
|
||||||
|
INGROUP: Templates.Moko-Cassiopeia
|
||||||
|
FILE: ./index.html
|
||||||
|
BRIEF: Security redirect page to block folder access and forward to site root.
|
||||||
-->
|
-->
|
||||||
|
|
||||||
<!doctype html>
|
<!doctype html>
|
||||||
@@ -44,28 +37,7 @@
|
|||||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
/**
|
|
||||||
* @defgroup Dolibarr
|
|
||||||
* @file index.html (embedded script)
|
|
||||||
* @version 1.0.0
|
|
||||||
* @brief Security redirect logic. Replaces the current history entry with the site root.
|
|
||||||
* @details This script computes the absolute root URL using `location.origin` and
|
|
||||||
* forwards the user immediately. It prevents leaving the protected folder
|
|
||||||
* in the browser history by default.
|
|
||||||
*
|
|
||||||
* @section VARIABLES
|
|
||||||
* @var {Object} opts Configuration options for the redirect behavior.
|
|
||||||
* @var {string} opts.fallbackPath Path used when `location.origin` cannot be determined.
|
|
||||||
* @var {number} opts.delayMs Optional delay in milliseconds before redirecting.
|
|
||||||
* @var {"replace"|"assign"} opts.behavior Navigation method used for the redirect.
|
|
||||||
*
|
|
||||||
* @section OPTIONS
|
|
||||||
* - opts.fallbackPath: default "/" (root path)
|
|
||||||
* - opts.delayMs: default 0 (immediate)
|
|
||||||
* - opts.behavior: one of
|
|
||||||
* * "replace" — calls `location.replace(url)`; does not keep the folder page in history.
|
|
||||||
* * "assign" — calls `location.assign(url)`; keeps an extra history entry.
|
|
||||||
*/
|
|
||||||
(function redirectToRoot() {
|
(function redirectToRoot() {
|
||||||
// Configuration object with safe defaults.
|
// Configuration object with safe defaults.
|
||||||
var opts = {
|
var opts = {
|
||||||
|
|||||||
@@ -1,29 +1,22 @@
|
|||||||
<!--
|
<!-- Copyright (C) 2025 Moko Consulting <jmiller@mokoconsulting.tech>
|
||||||
* Copyright (C) 2025 Moko Consulting <jmiller@mokoconsulting.tech>
|
|
||||||
*
|
|
||||||
* This file is part of a Moko Consulting project.
|
|
||||||
*
|
|
||||||
* SPDX-License-Identifier: GPL-3.0-or-later
|
|
||||||
*
|
|
||||||
* This program is free software; you can redistribute it and/or modify
|
|
||||||
* it under the terms of the GNU General Public License as published by
|
|
||||||
* the Free Software Foundation; either version 3 of the License, or
|
|
||||||
* (at your option) any later version.
|
|
||||||
*
|
|
||||||
* This program is distributed in the hope that it will be useful,
|
|
||||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
||||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
||||||
* GNU General Public License for more details.
|
|
||||||
*
|
|
||||||
* You should have received a copy of the GNU General Public License
|
|
||||||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
|
||||||
-->
|
|
||||||
|
|
||||||
<!--FILE INFORMATION
|
This file is part of a Moko Consulting project.
|
||||||
* DEFGROUP: Joomla.Site
|
|
||||||
* INGROUP: Templates.Moko-Cassiopeia
|
SPDX-License-Identifier: GPL-3.0-or-later
|
||||||
* FILE: index.html
|
|
||||||
* BRIEF: Security redirect page to block folder access and forward to site root.
|
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3 of the License, or
|
||||||
|
(at your option) any later version.
|
||||||
|
|
||||||
|
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
|
||||||
|
|
||||||
|
You should have received a copy of the GNU General Public License along with this program. If not, see https://www.gnu.org/licenses/ .
|
||||||
|
|
||||||
|
# FILE INFORMATION
|
||||||
|
DEFGROUP: Joomla.Site
|
||||||
|
INGROUP: Templates.Moko-Cassiopeia
|
||||||
|
FILE: ./index.html
|
||||||
|
BRIEF: Security redirect page to block folder access and forward to site root.
|
||||||
-->
|
-->
|
||||||
|
|
||||||
<!doctype html>
|
<!doctype html>
|
||||||
@@ -44,28 +37,7 @@
|
|||||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
/**
|
|
||||||
* @defgroup Dolibarr
|
|
||||||
* @file index.html (embedded script)
|
|
||||||
* @version 1.0.0
|
|
||||||
* @brief Security redirect logic. Replaces the current history entry with the site root.
|
|
||||||
* @details This script computes the absolute root URL using `location.origin` and
|
|
||||||
* forwards the user immediately. It prevents leaving the protected folder
|
|
||||||
* in the browser history by default.
|
|
||||||
*
|
|
||||||
* @section VARIABLES
|
|
||||||
* @var {Object} opts Configuration options for the redirect behavior.
|
|
||||||
* @var {string} opts.fallbackPath Path used when `location.origin` cannot be determined.
|
|
||||||
* @var {number} opts.delayMs Optional delay in milliseconds before redirecting.
|
|
||||||
* @var {"replace"|"assign"} opts.behavior Navigation method used for the redirect.
|
|
||||||
*
|
|
||||||
* @section OPTIONS
|
|
||||||
* - opts.fallbackPath: default "/" (root path)
|
|
||||||
* - opts.delayMs: default 0 (immediate)
|
|
||||||
* - opts.behavior: one of
|
|
||||||
* * "replace" — calls `location.replace(url)`; does not keep the folder page in history.
|
|
||||||
* * "assign" — calls `location.assign(url)`; keeps an extra history entry.
|
|
||||||
*/
|
|
||||||
(function redirectToRoot() {
|
(function redirectToRoot() {
|
||||||
// Configuration object with safe defaults.
|
// Configuration object with safe defaults.
|
||||||
var opts = {
|
var opts = {
|
||||||
|
|||||||
@@ -1,29 +1,22 @@
|
|||||||
<!--
|
<!-- Copyright (C) 2025 Moko Consulting <jmiller@mokoconsulting.tech>
|
||||||
* Copyright (C) 2025 Moko Consulting <jmiller@mokoconsulting.tech>
|
|
||||||
*
|
|
||||||
* This file is part of a Moko Consulting project.
|
|
||||||
*
|
|
||||||
* SPDX-License-Identifier: GPL-3.0-or-later
|
|
||||||
*
|
|
||||||
* This program is free software; you can redistribute it and/or modify
|
|
||||||
* it under the terms of the GNU General Public License as published by
|
|
||||||
* the Free Software Foundation; either version 3 of the License, or
|
|
||||||
* (at your option) any later version.
|
|
||||||
*
|
|
||||||
* This program is distributed in the hope that it will be useful,
|
|
||||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
||||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
||||||
* GNU General Public License for more details.
|
|
||||||
*
|
|
||||||
* You should have received a copy of the GNU General Public License
|
|
||||||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
|
||||||
-->
|
|
||||||
|
|
||||||
<!--FILE INFORMATION
|
This file is part of a Moko Consulting project.
|
||||||
* DEFGROUP: Joomla.Site
|
|
||||||
* INGROUP: Templates.Moko-Cassiopeia
|
SPDX-License-Identifier: GPL-3.0-or-later
|
||||||
* FILE: index.html
|
|
||||||
* BRIEF: Security redirect page to block folder access and forward to site root.
|
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3 of the License, or
|
||||||
|
(at your option) any later version.
|
||||||
|
|
||||||
|
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
|
||||||
|
|
||||||
|
You should have received a copy of the GNU General Public License along with this program. If not, see https://www.gnu.org/licenses/ .
|
||||||
|
|
||||||
|
# FILE INFORMATION
|
||||||
|
DEFGROUP: Joomla.Site
|
||||||
|
INGROUP: Templates.Moko-Cassiopeia
|
||||||
|
FILE: ./index.html
|
||||||
|
BRIEF: Security redirect page to block folder access and forward to site root.
|
||||||
-->
|
-->
|
||||||
|
|
||||||
<!doctype html>
|
<!doctype html>
|
||||||
@@ -44,28 +37,7 @@
|
|||||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
/**
|
|
||||||
* @defgroup Dolibarr
|
|
||||||
* @file index.html (embedded script)
|
|
||||||
* @version 1.0.0
|
|
||||||
* @brief Security redirect logic. Replaces the current history entry with the site root.
|
|
||||||
* @details This script computes the absolute root URL using `location.origin` and
|
|
||||||
* forwards the user immediately. It prevents leaving the protected folder
|
|
||||||
* in the browser history by default.
|
|
||||||
*
|
|
||||||
* @section VARIABLES
|
|
||||||
* @var {Object} opts Configuration options for the redirect behavior.
|
|
||||||
* @var {string} opts.fallbackPath Path used when `location.origin` cannot be determined.
|
|
||||||
* @var {number} opts.delayMs Optional delay in milliseconds before redirecting.
|
|
||||||
* @var {"replace"|"assign"} opts.behavior Navigation method used for the redirect.
|
|
||||||
*
|
|
||||||
* @section OPTIONS
|
|
||||||
* - opts.fallbackPath: default "/" (root path)
|
|
||||||
* - opts.delayMs: default 0 (immediate)
|
|
||||||
* - opts.behavior: one of
|
|
||||||
* * "replace" — calls `location.replace(url)`; does not keep the folder page in history.
|
|
||||||
* * "assign" — calls `location.assign(url)`; keeps an extra history entry.
|
|
||||||
*/
|
|
||||||
(function redirectToRoot() {
|
(function redirectToRoot() {
|
||||||
// Configuration object with safe defaults.
|
// Configuration object with safe defaults.
|
||||||
var opts = {
|
var opts = {
|
||||||
|
|||||||
@@ -1,29 +1,22 @@
|
|||||||
<!--
|
<!-- Copyright (C) 2025 Moko Consulting <jmiller@mokoconsulting.tech>
|
||||||
* Copyright (C) 2025 Moko Consulting <jmiller@mokoconsulting.tech>
|
|
||||||
*
|
|
||||||
* This file is part of a Moko Consulting project.
|
|
||||||
*
|
|
||||||
* SPDX-License-Identifier: GPL-3.0-or-later
|
|
||||||
*
|
|
||||||
* This program is free software; you can redistribute it and/or modify
|
|
||||||
* it under the terms of the GNU General Public License as published by
|
|
||||||
* the Free Software Foundation; either version 3 of the License, or
|
|
||||||
* (at your option) any later version.
|
|
||||||
*
|
|
||||||
* This program is distributed in the hope that it will be useful,
|
|
||||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
||||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
||||||
* GNU General Public License for more details.
|
|
||||||
*
|
|
||||||
* You should have received a copy of the GNU General Public License
|
|
||||||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
|
||||||
-->
|
|
||||||
|
|
||||||
<!--FILE INFORMATION
|
This file is part of a Moko Consulting project.
|
||||||
* DEFGROUP: Joomla.Site
|
|
||||||
* INGROUP: Templates.Moko-Cassiopeia
|
SPDX-License-Identifier: GPL-3.0-or-later
|
||||||
* FILE: index.html
|
|
||||||
* BRIEF: Security redirect page to block folder access and forward to site root.
|
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3 of the License, or
|
||||||
|
(at your option) any later version.
|
||||||
|
|
||||||
|
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
|
||||||
|
|
||||||
|
You should have received a copy of the GNU General Public License along with this program. If not, see https://www.gnu.org/licenses/ .
|
||||||
|
|
||||||
|
# FILE INFORMATION
|
||||||
|
DEFGROUP: Joomla.Site
|
||||||
|
INGROUP: Templates.Moko-Cassiopeia
|
||||||
|
FILE: ./index.html
|
||||||
|
BRIEF: Security redirect page to block folder access and forward to site root.
|
||||||
-->
|
-->
|
||||||
|
|
||||||
<!doctype html>
|
<!doctype html>
|
||||||
@@ -44,28 +37,7 @@
|
|||||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
/**
|
|
||||||
* @defgroup Dolibarr
|
|
||||||
* @file index.html (embedded script)
|
|
||||||
* @version 1.0.0
|
|
||||||
* @brief Security redirect logic. Replaces the current history entry with the site root.
|
|
||||||
* @details This script computes the absolute root URL using `location.origin` and
|
|
||||||
* forwards the user immediately. It prevents leaving the protected folder
|
|
||||||
* in the browser history by default.
|
|
||||||
*
|
|
||||||
* @section VARIABLES
|
|
||||||
* @var {Object} opts Configuration options for the redirect behavior.
|
|
||||||
* @var {string} opts.fallbackPath Path used when `location.origin` cannot be determined.
|
|
||||||
* @var {number} opts.delayMs Optional delay in milliseconds before redirecting.
|
|
||||||
* @var {"replace"|"assign"} opts.behavior Navigation method used for the redirect.
|
|
||||||
*
|
|
||||||
* @section OPTIONS
|
|
||||||
* - opts.fallbackPath: default "/" (root path)
|
|
||||||
* - opts.delayMs: default 0 (immediate)
|
|
||||||
* - opts.behavior: one of
|
|
||||||
* * "replace" — calls `location.replace(url)`; does not keep the folder page in history.
|
|
||||||
* * "assign" — calls `location.assign(url)`; keeps an extra history entry.
|
|
||||||
*/
|
|
||||||
(function redirectToRoot() {
|
(function redirectToRoot() {
|
||||||
// Configuration object with safe defaults.
|
// Configuration object with safe defaults.
|
||||||
var opts = {
|
var opts = {
|
||||||
|
|||||||
@@ -1,29 +1,22 @@
|
|||||||
<!--
|
<!-- Copyright (C) 2025 Moko Consulting <jmiller@mokoconsulting.tech>
|
||||||
* Copyright (C) 2025 Moko Consulting <jmiller@mokoconsulting.tech>
|
|
||||||
*
|
|
||||||
* This file is part of a Moko Consulting project.
|
|
||||||
*
|
|
||||||
* SPDX-License-Identifier: GPL-3.0-or-later
|
|
||||||
*
|
|
||||||
* This program is free software; you can redistribute it and/or modify
|
|
||||||
* it under the terms of the GNU General Public License as published by
|
|
||||||
* the Free Software Foundation; either version 3 of the License, or
|
|
||||||
* (at your option) any later version.
|
|
||||||
*
|
|
||||||
* This program is distributed in the hope that it will be useful,
|
|
||||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
||||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
||||||
* GNU General Public License for more details.
|
|
||||||
*
|
|
||||||
* You should have received a copy of the GNU General Public License
|
|
||||||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
|
||||||
-->
|
|
||||||
|
|
||||||
<!--FILE INFORMATION
|
This file is part of a Moko Consulting project.
|
||||||
* DEFGROUP: Joomla.Site
|
|
||||||
* INGROUP: Templates.Moko-Cassiopeia
|
SPDX-License-Identifier: GPL-3.0-or-later
|
||||||
* FILE: index.html
|
|
||||||
* BRIEF: Security redirect page to block folder access and forward to site root.
|
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3 of the License, or
|
||||||
|
(at your option) any later version.
|
||||||
|
|
||||||
|
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
|
||||||
|
|
||||||
|
You should have received a copy of the GNU General Public License along with this program. If not, see https://www.gnu.org/licenses/ .
|
||||||
|
|
||||||
|
# FILE INFORMATION
|
||||||
|
DEFGROUP: Joomla.Site
|
||||||
|
INGROUP: Templates.Moko-Cassiopeia
|
||||||
|
FILE: ./index.html
|
||||||
|
BRIEF: Security redirect page to block folder access and forward to site root.
|
||||||
-->
|
-->
|
||||||
|
|
||||||
<!doctype html>
|
<!doctype html>
|
||||||
@@ -44,28 +37,7 @@
|
|||||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
/**
|
|
||||||
* @defgroup Dolibarr
|
|
||||||
* @file index.html (embedded script)
|
|
||||||
* @version 1.0.0
|
|
||||||
* @brief Security redirect logic. Replaces the current history entry with the site root.
|
|
||||||
* @details This script computes the absolute root URL using `location.origin` and
|
|
||||||
* forwards the user immediately. It prevents leaving the protected folder
|
|
||||||
* in the browser history by default.
|
|
||||||
*
|
|
||||||
* @section VARIABLES
|
|
||||||
* @var {Object} opts Configuration options for the redirect behavior.
|
|
||||||
* @var {string} opts.fallbackPath Path used when `location.origin` cannot be determined.
|
|
||||||
* @var {number} opts.delayMs Optional delay in milliseconds before redirecting.
|
|
||||||
* @var {"replace"|"assign"} opts.behavior Navigation method used for the redirect.
|
|
||||||
*
|
|
||||||
* @section OPTIONS
|
|
||||||
* - opts.fallbackPath: default "/" (root path)
|
|
||||||
* - opts.delayMs: default 0 (immediate)
|
|
||||||
* - opts.behavior: one of
|
|
||||||
* * "replace" — calls `location.replace(url)`; does not keep the folder page in history.
|
|
||||||
* * "assign" — calls `location.assign(url)`; keeps an extra history entry.
|
|
||||||
*/
|
|
||||||
(function redirectToRoot() {
|
(function redirectToRoot() {
|
||||||
// Configuration object with safe defaults.
|
// Configuration object with safe defaults.
|
||||||
var opts = {
|
var opts = {
|
||||||
|
|||||||
@@ -1,29 +1,22 @@
|
|||||||
<!--
|
<!-- Copyright (C) 2025 Moko Consulting <jmiller@mokoconsulting.tech>
|
||||||
* Copyright (C) 2025 Moko Consulting <jmiller@mokoconsulting.tech>
|
|
||||||
*
|
|
||||||
* This file is part of a Moko Consulting project.
|
|
||||||
*
|
|
||||||
* SPDX-License-Identifier: GPL-3.0-or-later
|
|
||||||
*
|
|
||||||
* This program is free software; you can redistribute it and/or modify
|
|
||||||
* it under the terms of the GNU General Public License as published by
|
|
||||||
* the Free Software Foundation; either version 3 of the License, or
|
|
||||||
* (at your option) any later version.
|
|
||||||
*
|
|
||||||
* This program is distributed in the hope that it will be useful,
|
|
||||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
||||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
||||||
* GNU General Public License for more details.
|
|
||||||
*
|
|
||||||
* You should have received a copy of the GNU General Public License
|
|
||||||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
|
||||||
-->
|
|
||||||
|
|
||||||
<!--FILE INFORMATION
|
This file is part of a Moko Consulting project.
|
||||||
* DEFGROUP: Joomla.Site
|
|
||||||
* INGROUP: Templates.Moko-Cassiopeia
|
SPDX-License-Identifier: GPL-3.0-or-later
|
||||||
* FILE: index.html
|
|
||||||
* BRIEF: Security redirect page to block folder access and forward to site root.
|
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3 of the License, or
|
||||||
|
(at your option) any later version.
|
||||||
|
|
||||||
|
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
|
||||||
|
|
||||||
|
You should have received a copy of the GNU General Public License along with this program. If not, see https://www.gnu.org/licenses/ .
|
||||||
|
|
||||||
|
# FILE INFORMATION
|
||||||
|
DEFGROUP: Joomla.Site
|
||||||
|
INGROUP: Templates.Moko-Cassiopeia
|
||||||
|
FILE: ./index.html
|
||||||
|
BRIEF: Security redirect page to block folder access and forward to site root.
|
||||||
-->
|
-->
|
||||||
|
|
||||||
<!doctype html>
|
<!doctype html>
|
||||||
@@ -44,28 +37,7 @@
|
|||||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
/**
|
|
||||||
* @defgroup Dolibarr
|
|
||||||
* @file index.html (embedded script)
|
|
||||||
* @version 1.0.0
|
|
||||||
* @brief Security redirect logic. Replaces the current history entry with the site root.
|
|
||||||
* @details This script computes the absolute root URL using `location.origin` and
|
|
||||||
* forwards the user immediately. It prevents leaving the protected folder
|
|
||||||
* in the browser history by default.
|
|
||||||
*
|
|
||||||
* @section VARIABLES
|
|
||||||
* @var {Object} opts Configuration options for the redirect behavior.
|
|
||||||
* @var {string} opts.fallbackPath Path used when `location.origin` cannot be determined.
|
|
||||||
* @var {number} opts.delayMs Optional delay in milliseconds before redirecting.
|
|
||||||
* @var {"replace"|"assign"} opts.behavior Navigation method used for the redirect.
|
|
||||||
*
|
|
||||||
* @section OPTIONS
|
|
||||||
* - opts.fallbackPath: default "/" (root path)
|
|
||||||
* - opts.delayMs: default 0 (immediate)
|
|
||||||
* - opts.behavior: one of
|
|
||||||
* * "replace" — calls `location.replace(url)`; does not keep the folder page in history.
|
|
||||||
* * "assign" — calls `location.assign(url)`; keeps an extra history entry.
|
|
||||||
*/
|
|
||||||
(function redirectToRoot() {
|
(function redirectToRoot() {
|
||||||
// Configuration object with safe defaults.
|
// Configuration object with safe defaults.
|
||||||
var opts = {
|
var opts = {
|
||||||
|
|||||||
@@ -1,29 +1,22 @@
|
|||||||
<!--
|
<!-- Copyright (C) 2025 Moko Consulting <jmiller@mokoconsulting.tech>
|
||||||
* Copyright (C) 2025 Moko Consulting <jmiller@mokoconsulting.tech>
|
|
||||||
*
|
|
||||||
* This file is part of a Moko Consulting project.
|
|
||||||
*
|
|
||||||
* SPDX-License-Identifier: GPL-3.0-or-later
|
|
||||||
*
|
|
||||||
* This program is free software; you can redistribute it and/or modify
|
|
||||||
* it under the terms of the GNU General Public License as published by
|
|
||||||
* the Free Software Foundation; either version 3 of the License, or
|
|
||||||
* (at your option) any later version.
|
|
||||||
*
|
|
||||||
* This program is distributed in the hope that it will be useful,
|
|
||||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
||||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
||||||
* GNU General Public License for more details.
|
|
||||||
*
|
|
||||||
* You should have received a copy of the GNU General Public License
|
|
||||||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
|
||||||
-->
|
|
||||||
|
|
||||||
<!--FILE INFORMATION
|
This file is part of a Moko Consulting project.
|
||||||
* DEFGROUP: Joomla.Site
|
|
||||||
* INGROUP: Templates.Moko-Cassiopeia
|
SPDX-License-Identifier: GPL-3.0-or-later
|
||||||
* FILE: index.html
|
|
||||||
* BRIEF: Security redirect page to block folder access and forward to site root.
|
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3 of the License, or
|
||||||
|
(at your option) any later version.
|
||||||
|
|
||||||
|
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
|
||||||
|
|
||||||
|
You should have received a copy of the GNU General Public License along with this program. If not, see https://www.gnu.org/licenses/ .
|
||||||
|
|
||||||
|
# FILE INFORMATION
|
||||||
|
DEFGROUP: Joomla.Site
|
||||||
|
INGROUP: Templates.Moko-Cassiopeia
|
||||||
|
FILE: ./index.html
|
||||||
|
BRIEF: Security redirect page to block folder access and forward to site root.
|
||||||
-->
|
-->
|
||||||
|
|
||||||
<!doctype html>
|
<!doctype html>
|
||||||
@@ -44,28 +37,7 @@
|
|||||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
/**
|
|
||||||
* @defgroup Dolibarr
|
|
||||||
* @file index.html (embedded script)
|
|
||||||
* @version 1.0.0
|
|
||||||
* @brief Security redirect logic. Replaces the current history entry with the site root.
|
|
||||||
* @details This script computes the absolute root URL using `location.origin` and
|
|
||||||
* forwards the user immediately. It prevents leaving the protected folder
|
|
||||||
* in the browser history by default.
|
|
||||||
*
|
|
||||||
* @section VARIABLES
|
|
||||||
* @var {Object} opts Configuration options for the redirect behavior.
|
|
||||||
* @var {string} opts.fallbackPath Path used when `location.origin` cannot be determined.
|
|
||||||
* @var {number} opts.delayMs Optional delay in milliseconds before redirecting.
|
|
||||||
* @var {"replace"|"assign"} opts.behavior Navigation method used for the redirect.
|
|
||||||
*
|
|
||||||
* @section OPTIONS
|
|
||||||
* - opts.fallbackPath: default "/" (root path)
|
|
||||||
* - opts.delayMs: default 0 (immediate)
|
|
||||||
* - opts.behavior: one of
|
|
||||||
* * "replace" — calls `location.replace(url)`; does not keep the folder page in history.
|
|
||||||
* * "assign" — calls `location.assign(url)`; keeps an extra history entry.
|
|
||||||
*/
|
|
||||||
(function redirectToRoot() {
|
(function redirectToRoot() {
|
||||||
// Configuration object with safe defaults.
|
// Configuration object with safe defaults.
|
||||||
var opts = {
|
var opts = {
|
||||||
|
|||||||
@@ -1,29 +1,22 @@
|
|||||||
<!--
|
<!-- Copyright (C) 2025 Moko Consulting <jmiller@mokoconsulting.tech>
|
||||||
* Copyright (C) 2025 Moko Consulting <jmiller@mokoconsulting.tech>
|
|
||||||
*
|
|
||||||
* This file is part of a Moko Consulting project.
|
|
||||||
*
|
|
||||||
* SPDX-License-Identifier: GPL-3.0-or-later
|
|
||||||
*
|
|
||||||
* This program is free software; you can redistribute it and/or modify
|
|
||||||
* it under the terms of the GNU General Public License as published by
|
|
||||||
* the Free Software Foundation; either version 3 of the License, or
|
|
||||||
* (at your option) any later version.
|
|
||||||
*
|
|
||||||
* This program is distributed in the hope that it will be useful,
|
|
||||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
||||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
||||||
* GNU General Public License for more details.
|
|
||||||
*
|
|
||||||
* You should have received a copy of the GNU General Public License
|
|
||||||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
|
||||||
-->
|
|
||||||
|
|
||||||
<!--FILE INFORMATION
|
This file is part of a Moko Consulting project.
|
||||||
* DEFGROUP: Joomla.Site
|
|
||||||
* INGROUP: Templates.Moko-Cassiopeia
|
SPDX-License-Identifier: GPL-3.0-or-later
|
||||||
* FILE: index.html
|
|
||||||
* BRIEF: Security redirect page to block folder access and forward to site root.
|
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3 of the License, or
|
||||||
|
(at your option) any later version.
|
||||||
|
|
||||||
|
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
|
||||||
|
|
||||||
|
You should have received a copy of the GNU General Public License along with this program. If not, see https://www.gnu.org/licenses/ .
|
||||||
|
|
||||||
|
# FILE INFORMATION
|
||||||
|
DEFGROUP: Joomla.Site
|
||||||
|
INGROUP: Templates.Moko-Cassiopeia
|
||||||
|
FILE: ./index.html
|
||||||
|
BRIEF: Security redirect page to block folder access and forward to site root.
|
||||||
-->
|
-->
|
||||||
|
|
||||||
<!doctype html>
|
<!doctype html>
|
||||||
@@ -44,28 +37,7 @@
|
|||||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
/**
|
|
||||||
* @defgroup Dolibarr
|
|
||||||
* @file index.html (embedded script)
|
|
||||||
* @version 1.0.0
|
|
||||||
* @brief Security redirect logic. Replaces the current history entry with the site root.
|
|
||||||
* @details This script computes the absolute root URL using `location.origin` and
|
|
||||||
* forwards the user immediately. It prevents leaving the protected folder
|
|
||||||
* in the browser history by default.
|
|
||||||
*
|
|
||||||
* @section VARIABLES
|
|
||||||
* @var {Object} opts Configuration options for the redirect behavior.
|
|
||||||
* @var {string} opts.fallbackPath Path used when `location.origin` cannot be determined.
|
|
||||||
* @var {number} opts.delayMs Optional delay in milliseconds before redirecting.
|
|
||||||
* @var {"replace"|"assign"} opts.behavior Navigation method used for the redirect.
|
|
||||||
*
|
|
||||||
* @section OPTIONS
|
|
||||||
* - opts.fallbackPath: default "/" (root path)
|
|
||||||
* - opts.delayMs: default 0 (immediate)
|
|
||||||
* - opts.behavior: one of
|
|
||||||
* * "replace" — calls `location.replace(url)`; does not keep the folder page in history.
|
|
||||||
* * "assign" — calls `location.assign(url)`; keeps an extra history entry.
|
|
||||||
*/
|
|
||||||
(function redirectToRoot() {
|
(function redirectToRoot() {
|
||||||
// Configuration object with safe defaults.
|
// Configuration object with safe defaults.
|
||||||
var opts = {
|
var opts = {
|
||||||
|
|||||||
@@ -1,29 +1,22 @@
|
|||||||
<!--
|
<!-- Copyright (C) 2025 Moko Consulting <jmiller@mokoconsulting.tech>
|
||||||
* Copyright (C) 2025 Moko Consulting <jmiller@mokoconsulting.tech>
|
|
||||||
*
|
|
||||||
* This file is part of a Moko Consulting project.
|
|
||||||
*
|
|
||||||
* SPDX-License-Identifier: GPL-3.0-or-later
|
|
||||||
*
|
|
||||||
* This program is free software; you can redistribute it and/or modify
|
|
||||||
* it under the terms of the GNU General Public License as published by
|
|
||||||
* the Free Software Foundation; either version 3 of the License, or
|
|
||||||
* (at your option) any later version.
|
|
||||||
*
|
|
||||||
* This program is distributed in the hope that it will be useful,
|
|
||||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
||||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
||||||
* GNU General Public License for more details.
|
|
||||||
*
|
|
||||||
* You should have received a copy of the GNU General Public License
|
|
||||||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
|
||||||
-->
|
|
||||||
|
|
||||||
<!--FILE INFORMATION
|
This file is part of a Moko Consulting project.
|
||||||
* DEFGROUP: Joomla.Site
|
|
||||||
* INGROUP: Templates.Moko-Cassiopeia
|
SPDX-License-Identifier: GPL-3.0-or-later
|
||||||
* FILE: index.html
|
|
||||||
* BRIEF: Security redirect page to block folder access and forward to site root.
|
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3 of the License, or
|
||||||
|
(at your option) any later version.
|
||||||
|
|
||||||
|
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
|
||||||
|
|
||||||
|
You should have received a copy of the GNU General Public License along with this program. If not, see https://www.gnu.org/licenses/ .
|
||||||
|
|
||||||
|
# FILE INFORMATION
|
||||||
|
DEFGROUP: Joomla.Site
|
||||||
|
INGROUP: Templates.Moko-Cassiopeia
|
||||||
|
FILE: ./index.html
|
||||||
|
BRIEF: Security redirect page to block folder access and forward to site root.
|
||||||
-->
|
-->
|
||||||
|
|
||||||
<!doctype html>
|
<!doctype html>
|
||||||
@@ -44,28 +37,7 @@
|
|||||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
/**
|
|
||||||
* @defgroup Dolibarr
|
|
||||||
* @file index.html (embedded script)
|
|
||||||
* @version 1.0.0
|
|
||||||
* @brief Security redirect logic. Replaces the current history entry with the site root.
|
|
||||||
* @details This script computes the absolute root URL using `location.origin` and
|
|
||||||
* forwards the user immediately. It prevents leaving the protected folder
|
|
||||||
* in the browser history by default.
|
|
||||||
*
|
|
||||||
* @section VARIABLES
|
|
||||||
* @var {Object} opts Configuration options for the redirect behavior.
|
|
||||||
* @var {string} opts.fallbackPath Path used when `location.origin` cannot be determined.
|
|
||||||
* @var {number} opts.delayMs Optional delay in milliseconds before redirecting.
|
|
||||||
* @var {"replace"|"assign"} opts.behavior Navigation method used for the redirect.
|
|
||||||
*
|
|
||||||
* @section OPTIONS
|
|
||||||
* - opts.fallbackPath: default "/" (root path)
|
|
||||||
* - opts.delayMs: default 0 (immediate)
|
|
||||||
* - opts.behavior: one of
|
|
||||||
* * "replace" — calls `location.replace(url)`; does not keep the folder page in history.
|
|
||||||
* * "assign" — calls `location.assign(url)`; keeps an extra history entry.
|
|
||||||
*/
|
|
||||||
(function redirectToRoot() {
|
(function redirectToRoot() {
|
||||||
// Configuration object with safe defaults.
|
// Configuration object with safe defaults.
|
||||||
var opts = {
|
var opts = {
|
||||||
|
|||||||
@@ -1,29 +1,22 @@
|
|||||||
<!--
|
<!-- Copyright (C) 2025 Moko Consulting <jmiller@mokoconsulting.tech>
|
||||||
* Copyright (C) 2025 Moko Consulting <jmiller@mokoconsulting.tech>
|
|
||||||
*
|
|
||||||
* This file is part of a Moko Consulting project.
|
|
||||||
*
|
|
||||||
* SPDX-License-Identifier: GPL-3.0-or-later
|
|
||||||
*
|
|
||||||
* This program is free software; you can redistribute it and/or modify
|
|
||||||
* it under the terms of the GNU General Public License as published by
|
|
||||||
* the Free Software Foundation; either version 3 of the License, or
|
|
||||||
* (at your option) any later version.
|
|
||||||
*
|
|
||||||
* This program is distributed in the hope that it will be useful,
|
|
||||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
||||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
||||||
* GNU General Public License for more details.
|
|
||||||
*
|
|
||||||
* You should have received a copy of the GNU General Public License
|
|
||||||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
|
||||||
-->
|
|
||||||
|
|
||||||
<!--FILE INFORMATION
|
This file is part of a Moko Consulting project.
|
||||||
* DEFGROUP: Joomla.Site
|
|
||||||
* INGROUP: Templates.Moko-Cassiopeia
|
SPDX-License-Identifier: GPL-3.0-or-later
|
||||||
* FILE: index.html
|
|
||||||
* BRIEF: Security redirect page to block folder access and forward to site root.
|
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3 of the License, or
|
||||||
|
(at your option) any later version.
|
||||||
|
|
||||||
|
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
|
||||||
|
|
||||||
|
You should have received a copy of the GNU General Public License along with this program. If not, see https://www.gnu.org/licenses/ .
|
||||||
|
|
||||||
|
# FILE INFORMATION
|
||||||
|
DEFGROUP: Joomla.Site
|
||||||
|
INGROUP: Templates.Moko-Cassiopeia
|
||||||
|
FILE: ./index.html
|
||||||
|
BRIEF: Security redirect page to block folder access and forward to site root.
|
||||||
-->
|
-->
|
||||||
|
|
||||||
<!doctype html>
|
<!doctype html>
|
||||||
@@ -44,28 +37,7 @@
|
|||||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
/**
|
|
||||||
* @defgroup Dolibarr
|
|
||||||
* @file index.html (embedded script)
|
|
||||||
* @version 1.0.0
|
|
||||||
* @brief Security redirect logic. Replaces the current history entry with the site root.
|
|
||||||
* @details This script computes the absolute root URL using `location.origin` and
|
|
||||||
* forwards the user immediately. It prevents leaving the protected folder
|
|
||||||
* in the browser history by default.
|
|
||||||
*
|
|
||||||
* @section VARIABLES
|
|
||||||
* @var {Object} opts Configuration options for the redirect behavior.
|
|
||||||
* @var {string} opts.fallbackPath Path used when `location.origin` cannot be determined.
|
|
||||||
* @var {number} opts.delayMs Optional delay in milliseconds before redirecting.
|
|
||||||
* @var {"replace"|"assign"} opts.behavior Navigation method used for the redirect.
|
|
||||||
*
|
|
||||||
* @section OPTIONS
|
|
||||||
* - opts.fallbackPath: default "/" (root path)
|
|
||||||
* - opts.delayMs: default 0 (immediate)
|
|
||||||
* - opts.behavior: one of
|
|
||||||
* * "replace" — calls `location.replace(url)`; does not keep the folder page in history.
|
|
||||||
* * "assign" — calls `location.assign(url)`; keeps an extra history entry.
|
|
||||||
*/
|
|
||||||
(function redirectToRoot() {
|
(function redirectToRoot() {
|
||||||
// Configuration object with safe defaults.
|
// Configuration object with safe defaults.
|
||||||
var opts = {
|
var opts = {
|
||||||
|
|||||||
@@ -1,29 +1,22 @@
|
|||||||
<!--
|
<!-- Copyright (C) 2025 Moko Consulting <jmiller@mokoconsulting.tech>
|
||||||
* Copyright (C) 2025 Moko Consulting <jmiller@mokoconsulting.tech>
|
|
||||||
*
|
|
||||||
* This file is part of a Moko Consulting project.
|
|
||||||
*
|
|
||||||
* SPDX-License-Identifier: GPL-3.0-or-later
|
|
||||||
*
|
|
||||||
* This program is free software; you can redistribute it and/or modify
|
|
||||||
* it under the terms of the GNU General Public License as published by
|
|
||||||
* the Free Software Foundation; either version 3 of the License, or
|
|
||||||
* (at your option) any later version.
|
|
||||||
*
|
|
||||||
* This program is distributed in the hope that it will be useful,
|
|
||||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
||||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
||||||
* GNU General Public License for more details.
|
|
||||||
*
|
|
||||||
* You should have received a copy of the GNU General Public License
|
|
||||||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
|
||||||
-->
|
|
||||||
|
|
||||||
<!--FILE INFORMATION
|
This file is part of a Moko Consulting project.
|
||||||
* DEFGROUP: Joomla.Site
|
|
||||||
* INGROUP: Templates.Moko-Cassiopeia
|
SPDX-License-Identifier: GPL-3.0-or-later
|
||||||
* FILE: index.html
|
|
||||||
* BRIEF: Security redirect page to block folder access and forward to site root.
|
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3 of the License, or
|
||||||
|
(at your option) any later version.
|
||||||
|
|
||||||
|
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
|
||||||
|
|
||||||
|
You should have received a copy of the GNU General Public License along with this program. If not, see https://www.gnu.org/licenses/ .
|
||||||
|
|
||||||
|
# FILE INFORMATION
|
||||||
|
DEFGROUP: Joomla.Site
|
||||||
|
INGROUP: Templates.Moko-Cassiopeia
|
||||||
|
FILE: ./index.html
|
||||||
|
BRIEF: Security redirect page to block folder access and forward to site root.
|
||||||
-->
|
-->
|
||||||
|
|
||||||
<!doctype html>
|
<!doctype html>
|
||||||
@@ -44,28 +37,7 @@
|
|||||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
/**
|
|
||||||
* @defgroup Dolibarr
|
|
||||||
* @file index.html (embedded script)
|
|
||||||
* @version 1.0.0
|
|
||||||
* @brief Security redirect logic. Replaces the current history entry with the site root.
|
|
||||||
* @details This script computes the absolute root URL using `location.origin` and
|
|
||||||
* forwards the user immediately. It prevents leaving the protected folder
|
|
||||||
* in the browser history by default.
|
|
||||||
*
|
|
||||||
* @section VARIABLES
|
|
||||||
* @var {Object} opts Configuration options for the redirect behavior.
|
|
||||||
* @var {string} opts.fallbackPath Path used when `location.origin` cannot be determined.
|
|
||||||
* @var {number} opts.delayMs Optional delay in milliseconds before redirecting.
|
|
||||||
* @var {"replace"|"assign"} opts.behavior Navigation method used for the redirect.
|
|
||||||
*
|
|
||||||
* @section OPTIONS
|
|
||||||
* - opts.fallbackPath: default "/" (root path)
|
|
||||||
* - opts.delayMs: default 0 (immediate)
|
|
||||||
* - opts.behavior: one of
|
|
||||||
* * "replace" — calls `location.replace(url)`; does not keep the folder page in history.
|
|
||||||
* * "assign" — calls `location.assign(url)`; keeps an extra history entry.
|
|
||||||
*/
|
|
||||||
(function redirectToRoot() {
|
(function redirectToRoot() {
|
||||||
// Configuration object with safe defaults.
|
// Configuration object with safe defaults.
|
||||||
var opts = {
|
var opts = {
|
||||||
|
|||||||
@@ -1,29 +1,22 @@
|
|||||||
<!--
|
<!-- Copyright (C) 2025 Moko Consulting <jmiller@mokoconsulting.tech>
|
||||||
* Copyright (C) 2025 Moko Consulting <jmiller@mokoconsulting.tech>
|
|
||||||
*
|
|
||||||
* This file is part of a Moko Consulting project.
|
|
||||||
*
|
|
||||||
* SPDX-License-Identifier: GPL-3.0-or-later
|
|
||||||
*
|
|
||||||
* This program is free software; you can redistribute it and/or modify
|
|
||||||
* it under the terms of the GNU General Public License as published by
|
|
||||||
* the Free Software Foundation; either version 3 of the License, or
|
|
||||||
* (at your option) any later version.
|
|
||||||
*
|
|
||||||
* This program is distributed in the hope that it will be useful,
|
|
||||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
||||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
||||||
* GNU General Public License for more details.
|
|
||||||
*
|
|
||||||
* You should have received a copy of the GNU General Public License
|
|
||||||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
|
||||||
-->
|
|
||||||
|
|
||||||
<!--FILE INFORMATION
|
This file is part of a Moko Consulting project.
|
||||||
* DEFGROUP: Joomla.Site
|
|
||||||
* INGROUP: Templates.Moko-Cassiopeia
|
SPDX-License-Identifier: GPL-3.0-or-later
|
||||||
* FILE: index.html
|
|
||||||
* BRIEF: Security redirect page to block folder access and forward to site root.
|
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3 of the License, or
|
||||||
|
(at your option) any later version.
|
||||||
|
|
||||||
|
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
|
||||||
|
|
||||||
|
You should have received a copy of the GNU General Public License along with this program. If not, see https://www.gnu.org/licenses/ .
|
||||||
|
|
||||||
|
# FILE INFORMATION
|
||||||
|
DEFGROUP: Joomla.Site
|
||||||
|
INGROUP: Templates.Moko-Cassiopeia
|
||||||
|
FILE: ./index.html
|
||||||
|
BRIEF: Security redirect page to block folder access and forward to site root.
|
||||||
-->
|
-->
|
||||||
|
|
||||||
<!doctype html>
|
<!doctype html>
|
||||||
@@ -44,28 +37,7 @@
|
|||||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
/**
|
|
||||||
* @defgroup Dolibarr
|
|
||||||
* @file index.html (embedded script)
|
|
||||||
* @version 1.0.0
|
|
||||||
* @brief Security redirect logic. Replaces the current history entry with the site root.
|
|
||||||
* @details This script computes the absolute root URL using `location.origin` and
|
|
||||||
* forwards the user immediately. It prevents leaving the protected folder
|
|
||||||
* in the browser history by default.
|
|
||||||
*
|
|
||||||
* @section VARIABLES
|
|
||||||
* @var {Object} opts Configuration options for the redirect behavior.
|
|
||||||
* @var {string} opts.fallbackPath Path used when `location.origin` cannot be determined.
|
|
||||||
* @var {number} opts.delayMs Optional delay in milliseconds before redirecting.
|
|
||||||
* @var {"replace"|"assign"} opts.behavior Navigation method used for the redirect.
|
|
||||||
*
|
|
||||||
* @section OPTIONS
|
|
||||||
* - opts.fallbackPath: default "/" (root path)
|
|
||||||
* - opts.delayMs: default 0 (immediate)
|
|
||||||
* - opts.behavior: one of
|
|
||||||
* * "replace" — calls `location.replace(url)`; does not keep the folder page in history.
|
|
||||||
* * "assign" — calls `location.assign(url)`; keeps an extra history entry.
|
|
||||||
*/
|
|
||||||
(function redirectToRoot() {
|
(function redirectToRoot() {
|
||||||
// Configuration object with safe defaults.
|
// Configuration object with safe defaults.
|
||||||
var opts = {
|
var opts = {
|
||||||
|
|||||||
@@ -1,29 +1,22 @@
|
|||||||
<!--
|
<!-- Copyright (C) 2025 Moko Consulting <jmiller@mokoconsulting.tech>
|
||||||
* Copyright (C) 2025 Moko Consulting <jmiller@mokoconsulting.tech>
|
|
||||||
*
|
|
||||||
* This file is part of a Moko Consulting project.
|
|
||||||
*
|
|
||||||
* SPDX-License-Identifier: GPL-3.0-or-later
|
|
||||||
*
|
|
||||||
* This program is free software; you can redistribute it and/or modify
|
|
||||||
* it under the terms of the GNU General Public License as published by
|
|
||||||
* the Free Software Foundation; either version 3 of the License, or
|
|
||||||
* (at your option) any later version.
|
|
||||||
*
|
|
||||||
* This program is distributed in the hope that it will be useful,
|
|
||||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
||||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
||||||
* GNU General Public License for more details.
|
|
||||||
*
|
|
||||||
* You should have received a copy of the GNU General Public License
|
|
||||||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
|
||||||
-->
|
|
||||||
|
|
||||||
<!--FILE INFORMATION
|
This file is part of a Moko Consulting project.
|
||||||
* DEFGROUP: Joomla.Site
|
|
||||||
* INGROUP: Templates.Moko-Cassiopeia
|
SPDX-License-Identifier: GPL-3.0-or-later
|
||||||
* FILE: index.html
|
|
||||||
* BRIEF: Security redirect page to block folder access and forward to site root.
|
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3 of the License, or
|
||||||
|
(at your option) any later version.
|
||||||
|
|
||||||
|
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
|
||||||
|
|
||||||
|
You should have received a copy of the GNU General Public License along with this program. If not, see https://www.gnu.org/licenses/ .
|
||||||
|
|
||||||
|
# FILE INFORMATION
|
||||||
|
DEFGROUP: Joomla.Site
|
||||||
|
INGROUP: Templates.Moko-Cassiopeia
|
||||||
|
FILE: ./index.html
|
||||||
|
BRIEF: Security redirect page to block folder access and forward to site root.
|
||||||
-->
|
-->
|
||||||
|
|
||||||
<!doctype html>
|
<!doctype html>
|
||||||
@@ -44,28 +37,7 @@
|
|||||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
/**
|
|
||||||
* @defgroup Dolibarr
|
|
||||||
* @file index.html (embedded script)
|
|
||||||
* @version 1.0.0
|
|
||||||
* @brief Security redirect logic. Replaces the current history entry with the site root.
|
|
||||||
* @details This script computes the absolute root URL using `location.origin` and
|
|
||||||
* forwards the user immediately. It prevents leaving the protected folder
|
|
||||||
* in the browser history by default.
|
|
||||||
*
|
|
||||||
* @section VARIABLES
|
|
||||||
* @var {Object} opts Configuration options for the redirect behavior.
|
|
||||||
* @var {string} opts.fallbackPath Path used when `location.origin` cannot be determined.
|
|
||||||
* @var {number} opts.delayMs Optional delay in milliseconds before redirecting.
|
|
||||||
* @var {"replace"|"assign"} opts.behavior Navigation method used for the redirect.
|
|
||||||
*
|
|
||||||
* @section OPTIONS
|
|
||||||
* - opts.fallbackPath: default "/" (root path)
|
|
||||||
* - opts.delayMs: default 0 (immediate)
|
|
||||||
* - opts.behavior: one of
|
|
||||||
* * "replace" — calls `location.replace(url)`; does not keep the folder page in history.
|
|
||||||
* * "assign" — calls `location.assign(url)`; keeps an extra history entry.
|
|
||||||
*/
|
|
||||||
(function redirectToRoot() {
|
(function redirectToRoot() {
|
||||||
// Configuration object with safe defaults.
|
// Configuration object with safe defaults.
|
||||||
var opts = {
|
var opts = {
|
||||||
|
|||||||
@@ -1,31 +1,24 @@
|
|||||||
<?php
|
<?php
|
||||||
/* =========================================================================
|
/* Copyright (C) 2025 Moko Consulting <hello@mokoconsulting.tech>
|
||||||
* Copyright (C) 2025 Moko Consulting <hello@mokoconsulting.tech>
|
|
||||||
*
|
This file is part of a Moko Consulting project.
|
||||||
* This file is part of a Moko Consulting project.
|
|
||||||
*
|
SPDX-License-Identifier: GPL-3.0-or-later
|
||||||
* SPDX-License-Identifier: GPL-3.0-or-later
|
|
||||||
*
|
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3 of the License, or
|
||||||
* This program is free software; you can redistribute it and/or modify
|
(at your option) any later version.
|
||||||
* it under the terms of the GNU General Public License as published by
|
|
||||||
* the Free Software Foundation; either version 3 of the License, or
|
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
* (at your option) any later version.
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
|
||||||
*
|
|
||||||
* This program is distributed in the hope that it will be useful,
|
You should have received a copy of the GNU General Public License along with this program. If not, see https://www.gnu.org/licenses/ .
|
||||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
||||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
# FILE INFORMATION
|
||||||
* GNU General Public License for more details.
|
DEFGROUP: Joomla
|
||||||
*
|
INGROUP: Moko-Cassiopeia
|
||||||
* You should have received a copy of the GNU General Public License
|
PATH: templates/moko-cassiopeia/index.php
|
||||||
* along with this program. If not, see https://www.gnu.org/licenses/ .
|
VERSION: 02.01.05
|
||||||
* =========================================================================
|
BRIEF: Main template index file for Moko-Cassiopeia rendering site layout
|
||||||
* FILE INFORMATION
|
|
||||||
* DEFGROUP: Joomla
|
|
||||||
* INGROUP: Moko-Cassiopeia
|
|
||||||
* PATH: templates/moko-cassiopeia/index.php
|
|
||||||
* VERSION: 02.01.05
|
|
||||||
* BRIEF: Main template index file for Moko-Cassiopeia rendering site layout
|
|
||||||
* =========================================================================
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -1,31 +1,24 @@
|
|||||||
<?php
|
<?php
|
||||||
/* =========================================================================
|
/* Copyright (C) 2025 Moko Consulting <hello@mokoconsulting.tech>
|
||||||
* Copyright (C) 2025 Moko Consulting <hello@mokoconsulting.tech>
|
|
||||||
*
|
This file is part of a Moko Consulting project.
|
||||||
* This file is part of a Moko Consulting project.
|
|
||||||
*
|
SPDX-License-Identifier: GPL-3.0-or-later
|
||||||
* SPDX-License-Identifier: GPL-3.0-or-later
|
|
||||||
*
|
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3 of the License, or
|
||||||
* This program is free software; you can redistribute it and/or modify
|
(at your option) any later version.
|
||||||
* it under the terms of the GNU General Public License as published by
|
|
||||||
* the Free Software Foundation; either version 3 of the License, or
|
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
* (at your option) any later version.
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
|
||||||
*
|
|
||||||
* This program is distributed in the hope that it will be useful,
|
You should have received a copy of the GNU General Public License along with this program. If not, see https://www.gnu.org/licenses/ .
|
||||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
||||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
# FILE INFORMATION
|
||||||
* GNU General Public License for more details.
|
DEFGROUP: Joomla
|
||||||
*
|
INGROUP: Moko-Cassiopeia
|
||||||
* You should have received a copy of the GNU General Public License
|
PATH: templates/moko-cassiopeia/offline.php
|
||||||
* along with this program. If not, see https://www.gnu.org/licenses/ .
|
VERSION: 02.01.05
|
||||||
* =========================================================================
|
BRIEF: Offline page template file for Moko-Cassiopeia
|
||||||
* FILE INFORMATION
|
|
||||||
* DEFGROUP: Joomla
|
|
||||||
* INGROUP: Moko-Cassiopeia
|
|
||||||
* PATH: templates/moko-cassiopeia/offline.php
|
|
||||||
* VERSION: 02.01.05
|
|
||||||
* BRIEF: Offline page template file for Moko-Cassiopeia
|
|
||||||
* =========================================================================
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
declare(strict_types=1);
|
declare(strict_types=1);
|
||||||
|
|||||||
@@ -1,32 +1,25 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
<!-- =========================================================================
|
<!-- Copyright (C) 2025 Moko Consulting <hello@mokoconsulting.tech>
|
||||||
Copyright (C) 2025 Moko Consulting <hello@mokoconsulting.tech>
|
|
||||||
|
|
||||||
This file is part of a Moko Consulting project.
|
This file is part of a Moko Consulting project.
|
||||||
|
|
||||||
SPDX-License-Identifier: GPL-3.0-or-later
|
SPDX-License-Identifier: GPL-3.0-or-later
|
||||||
|
|
||||||
This program is free software; you can redistribute it and/or modify
|
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3 of the License, or
|
||||||
it under the terms of the GNU General Public License as published by
|
(at your option) any later version.
|
||||||
the Free Software Foundation; either version 3 of the License, or
|
|
||||||
(at your option) any later version.
|
|
||||||
|
|
||||||
This program is distributed in the hope that it will be useful,
|
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
|
||||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
||||||
GNU General Public License for more details.
|
|
||||||
|
|
||||||
You should have received a copy of the GNU General Public License
|
You should have received a copy of the GNU General Public License along with this program. If not, see https://www.gnu.org/licenses/ .
|
||||||
along with this program. If not, see https://www.gnu.org/licenses/ .
|
|
||||||
=========================================================================
|
# FILE INFORMATION
|
||||||
FILE INFORMATION
|
DEFGROUP: Joomla
|
||||||
DEFGROUP: Joomla
|
INGROUP: Moko-Cassiopeia
|
||||||
INGROUP: Moko-Cassiopeia
|
PATH: templates/moko-cassiopeia/templateDetails.xml
|
||||||
PATH: templates/moko-cassiopeia/templateDetails.xml
|
VERSION: 03.00 RC
|
||||||
VERSION: 02.01.05
|
BRIEF: Template manifest XML file for Moko-Cassiopeia
|
||||||
BRIEF: Template manifest XML file for Moko-Cassiopeia
|
-->
|
||||||
=========================================================================
|
|
||||||
-->
|
|
||||||
<extension type="template" client="site" method="upgrade">
|
<extension type="template" client="site" method="upgrade">
|
||||||
<updateservers>
|
<updateservers>
|
||||||
<server type="extension" name="Moko Consulting">https://raw.githubusercontent.com/mokoconsulting-tech/MokoUpdates/refs/heads/main/joomla/moko-cassiopeia/updates.xml</server>
|
<server type="extension" name="Moko Consulting">https://raw.githubusercontent.com/mokoconsulting-tech/MokoUpdates/refs/heads/main/joomla/moko-cassiopeia/updates.xml</server>
|
||||||
|
|||||||
Reference in New Issue
Block a user