Skip to content

updating dev with master#14

Merged
5RoD merged 10 commits intodevfrom
master
May 6, 2025
Merged

updating dev with master#14
5RoD merged 10 commits intodevfrom
master

Conversation

@5RoD
Copy link
Owner

@5RoD 5RoD commented May 6, 2025

No description provided.

5RoD and others added 10 commits April 27, 2025 21:44
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 -->
@coderabbitai
Copy link

coderabbitai bot commented May 6, 2025

Important

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.


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.

❤️ Share
🪧 Tips

Chat

There are 3 ways to chat with CodeRabbit:

  • Review comments: Directly reply to a review comment made by CodeRabbit. Example:
    • I pushed a fix in commit <commit_id>, please review it.
    • Generate unit testing code for this file.
    • Open a follow-up GitHub issue for this discussion.
  • Files and specific lines of code (under the "Files changed" tab): Tag @coderabbitai in a new review comment at the desired location with your query. Examples:
    • @coderabbitai generate unit testing code for this file.
    • @coderabbitai modularize this function.
  • PR comments: Tag @coderabbitai in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:
    • @coderabbitai gather interesting stats about this repository and render them as a table. Additionally, render a pie chart showing the language distribution in the codebase.
    • @coderabbitai read src/utils.ts and generate unit testing code.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.
    • @coderabbitai help me debug CodeRabbit configuration file.

Support

Need 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)

  • @coderabbitai pause to pause the reviews on a PR.
  • @coderabbitai resume to resume the paused reviews.
  • @coderabbitai review to trigger an incremental review. This is useful when automatic reviews are disabled for the repository.
  • @coderabbitai full review to do a full review from scratch and review all the files again.
  • @coderabbitai summary to regenerate the summary of the PR.
  • @coderabbitai generate docstrings to generate docstrings for this PR.
  • @coderabbitai generate sequence diagram to generate a sequence diagram of the changes in this PR.
  • @coderabbitai resolve resolve all the CodeRabbit review comments.
  • @coderabbitai configuration to show the current CodeRabbit configuration for the repository.
  • @coderabbitai help to get help.

Other keywords and placeholders

  • Add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.
  • Add @coderabbitai summary to generate the high-level summary at a specific location in the PR description.
  • Add @coderabbitai anywhere in the PR title to generate the title automatically.

CodeRabbit Configuration File (.coderabbit.yaml)

  • You can programmatically configure CodeRabbit by adding a .coderabbit.yaml file to the root of your repository.
  • Please see the configuration documentation for more information.
  • If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation: # yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json

Documentation and Community

  • Visit our Documentation for detailed information on how to use CodeRabbit.
  • Join our Discord Community to get help, request features, and share feedback.
  • Follow us on X/Twitter for updates and announcements.

@5RoD 5RoD merged commit c78db8f into dev May 6, 2025
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant