Conversation
Fixed database loading, fixed .env file not loading properly and added aton of stuff to homepage
github actions for php testing
added composer for testing
updated composer.json
Added initial project files including .htaccess, header, footer, and …
Add news pages, 404 error page, and motion blur effect; update footer…
Add contact us section with form and alert; update header and home page
Add admin contact dashboard for managing contact messages; implement …
This pull request introduces several enhancements and fixes across multiple files, focusing on security, database updates, frontend improvements, and new content additions. The most significant changes include securing access to sensitive files, updating the database schema, improving the user interface, and adding detailed news pages. ### Security Updates: * [`.htaccess`](diffhunk://#diff-270939b4fba4be968ab78e23dc0207eb893744491980a25c99a27c809a82ddabR4-R7): Added access restrictions to `adminContactDashboard.php` to prevent unauthorized access. ### Database and Backend Enhancements: * [`public/php/mysqlTables.php`](diffhunk://#diff-69e075df629d218b85512600dcb8c2dee023ab6dbd405a8d49857e8daa3b5564L3-R36): Updated the `ContactUS` table to include a `phonenumber` field and added a new `MatchResults` table to store match data. * [`public/html/contactus.php`](diffhunk://#diff-de1d046a32d72a4eb19681794364576f1e5b0ad665ac585520bd11d7df1f35e1R17-R24): Modified the form and database logic to include a phone number field, ensuring proper handling in form submission and SQL queries. [[1]](diffhunk://#diff-de1d046a32d72a4eb19681794364576f1e5b0ad665ac585520bd11d7df1f35e1R17-R24) [[2]](diffhunk://#diff-de1d046a32d72a4eb19681794364576f1e5b0ad665ac585520bd11d7df1f35e1R60-R65) ### Frontend Improvements: * [`public/css/style.css`](diffhunk://#diff-83372de0b8a443dc64be5edecd0b3537dafbe92799d70cb01c8d6c4d38b7562fL541-R552): Adjusted `.news-article img` styling for better responsiveness and visual consistency. * [`public/html/home.php`](diffhunk://#diff-8175393d455e368e459cb1a0f9e064c83adc7469e1e65d27109e3768bfe2263cL61-R73): Fixed broken links and updated image extensions to ensure proper rendering of news cards. ### Content Additions: * Added detailed news pages for recent events (`news-2.php`, `news-3.php`, `news-4.php`), including custom fonts, metadata, and structured content. [[1]](diffhunk://#diff-509ff062c19e4b01b6533bb070bc90b1f0cdb7f498a82be934fbb5e9a9f2745aL1-R34) [[2]](diffhunk://#diff-7985857142519cb786dab7364bd7bed9b4aa54d821ecfdbc6dce69fa7f9100bdL1-R32) [[3]](diffhunk://#diff-35cc4b5a7508368bfc4c20416f6a624dc43ffc0b6dbd89886b6f96942a321c64L1-R34) * Enhanced `news-1.php` with publication date, author details, and updated image references. [[1]](diffhunk://#diff-66344b6eafba5ef9e00d3d5ad094f8b61c8b0933bf6df463638c8f13319ee6aeR5) [[2]](diffhunk://#diff-66344b6eafba5ef9e00d3d5ad094f8b61c8b0933bf6df463638c8f13319ee6aeL13-R16) ### Minor Updates: * [`composer.json`](diffhunk://#diff-d2ab9925cad7eac58e0ff4cc0d251a937ecf49e4b6bf57f8b95aab76648a9d34L2-R2): Changed the project name from "moh/bld" to "rod/bld" for consistency. * [`public/admin/adminContactDashboard.php`](diffhunk://#diff-b72a021b0b9a27b4231e27db5e63eb01d34c808bbfdcf40fd3a44b54f478a9f9R54): Added a `Phone Number` column to the admin dashboard for better contact management. [[1]](diffhunk://#diff-b72a021b0b9a27b4231e27db5e63eb01d34c808bbfdcf40fd3a44b54f478a9f9R54) [[2]](diffhunk://#diff-b72a021b0b9a27b4231e27db5e63eb01d34c808bbfdcf40fd3a44b54f478a9f9R68) <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit - **New Features** - Added phone number field to the contact form, now required and stored in the database. - Admin dashboard now displays phone numbers for contact messages. - Introduced a new MatchResults table for storing match results. - **Improvements** - News articles are now static HTML pages with enhanced formatting, author lines, and publication dates. - News card links on the homepage now direct to individual news pages for improved navigation. - Updated news images and links for consistency and clarity. - **Bug Fixes** - Enhanced access restrictions to sensitive files for improved security. - **Style** - Updated news article image styles for better layout and appearance. - **Chores** - Updated project metadata and improved .gitignore for development environment compatibility. <!-- end of auto-generated comment: release notes by coderabbit.ai -->
|
Important Review skippedAuto reviews are disabled on base/target branches other than the default branch. Please check the settings in the CodeRabbit UI or the You can disable this status message by setting the Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
SupportNeed help? Create a ticket on our support page for assistance with any issues or questions. Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
No description provided.