diff --git a/.gitignore b/.gitignore index 7f9355a..ab59e35 100644 --- a/.gitignore +++ b/.gitignore @@ -129,3 +129,8 @@ _modules/* public/uploads/* !public/uploads/.gitkeep + +# Always allow branding assets to be committed when present +!public/assets/ +!public/assets/img/ +!public/assets/img/** diff --git a/OPEN_SOURCE_NOTICE.md b/OPEN_SOURCE_NOTICE.md new file mode 100644 index 0000000..b6ad488 --- /dev/null +++ b/OPEN_SOURCE_NOTICE.md @@ -0,0 +1,21 @@ +# Open Source Notice + +This application uses open-source software components. + +## Primary Framework +- CodeIgniter 4 +- License: MIT +- License Text: See LICENSE file in this repository + +## PHP Dependencies +Installed dependency metadata and versions are maintained in: +- composer.json +- composer.lock + +Dependency source trees are available in vendor/ and remain subject to their original licenses. + +## Notice Rule +Where required by an upstream license, copyright notices and license text must be preserved in all relevant distributions. + +## Conflict Rule +If terms in SOFTWARE_USE_LICENSE.md differ from an upstream open-source license for a specific component, the upstream open-source license governs that component. diff --git a/README.md b/README.md index 45f98af..48a83b2 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,11 @@ # CodeIgniter 4 Application Starter +## Project Documents + +- Complete software help guide: docs/HOSPITAL_STOCK_HELP.md +- Software use license: SOFTWARE_USE_LICENSE.md +- Open-source notice: OPEN_SOURCE_NOTICE.md + ## What is CodeIgniter? CodeIgniter is a PHP full-stack web framework that is light, fast, flexible and secure. diff --git a/SOFTWARE_USE_LICENSE.md b/SOFTWARE_USE_LICENSE.md new file mode 100644 index 0000000..d78b0c0 --- /dev/null +++ b/SOFTWARE_USE_LICENSE.md @@ -0,0 +1,55 @@ +# Software Use License (Application Distribution) + +Version: 1.0 +Effective Date: 2026-04-02 + +## 1. Scope +This Software Use License applies to the hospital management application customizations, modules, and business logic delivered in this repository, excluding third-party components that are licensed separately. + +## 2. License Grant +Subject to compliance with this document, the copyright holder grants the licensed user a limited, non-exclusive, non-transferable right to: +- Install and run the software for internal business operations. +- Configure and use the software within the licensed organization. +- Create internal backups for recovery and continuity. + +## 3. Restrictions +Without prior written permission, the licensed user may not: +- Resell, sublicense, or redistribute the custom application as a commercial product. +- Remove copyright, attribution, or license notices. +- Misrepresent authorship of custom code. +- Use the software for unlawful activities. + +## 4. Third-Party Open-Source Components +This application includes or depends on open-source software (for example, framework and package dependencies). Those components remain under their own original licenses. + +Important rules: +- Open-source license terms are not replaced by this document. +- Where open-source licenses require attribution or inclusion of notices, users must preserve them. +- If any conflict exists, the third-party component license controls for that component. + +Refer to: +- LICENSE (framework/base license text in repository) +- composer.json and composer.lock (package dependency records) +- OPEN_SOURCE_NOTICE.md (summary notice file) + +## 5. Ownership +- Ownership of third-party components remains with their respective authors. +- Ownership of custom HMS business modules and modifications remains with the custom code owner unless transferred by separate written agreement. + +## 6. Warranty Disclaimer +The software is provided on an as-is and as-available basis, without express or implied warranties, including merchantability, fitness for a particular purpose, and non-infringement, except where prohibited by applicable law. + +## 7. Limitation of Liability +To the maximum extent permitted by law, the copyright holder shall not be liable for indirect, incidental, special, consequential, or punitive damages, including data loss, business interruption, or procurement of substitute services. + +## 8. Compliance Responsibilities +The deploying organization is responsible for: +- Proper configuration and access control. +- Backup and disaster recovery. +- Compliance with local healthcare, data protection, and record retention regulations. + +## 9. Termination +This license terminates automatically if material terms are breached. On termination, usage must stop, except where continuing rights are required under third-party open-source licenses. + +## 10. Contact and Custom Terms +For commercial redistribution rights, OEM terms, or transfer of ownership rights, a separate signed agreement is required. diff --git a/app/Views/auth/login.php b/app/Views/auth/login.php index 6229e45..f52497d 100644 --- a/app/Views/auth/login.php +++ b/app/Views/auth/login.php @@ -10,7 +10,8 @@ - + + @@ -133,7 +134,9 @@ diff --git a/app/Views/partials/header.php b/app/Views/partials/header.php index 171b337..f9e04ca 100644 --- a/app/Views/partials/header.php +++ b/app/Views/partials/header.php @@ -50,6 +50,12 @@ $serverDisplayTime = $serverNow->format('d-m-Y h:i A') . ' (' . $serverTimeZoneLabel . ')'; ?>