Skip to content

WHY-RERO/REROAI.com.tr-Script

Repository files navigation

NOX AI Platform

GitHub YouTube Instagram Website

PHP MySQL Composer License

PHP-based AI-powered web platform.

AI Chat · IP Lookup · Security Analysis · SEO Management · Admin Panel

⚠️ Notice: Bugs identified in this project were analyzed and fixed with the assistance of artificial intelligence.


Table of Contents


Features

Module Technology Details
AI Chat GPT integration Real-time chat with session history
IP Lookup ToolsController Location, ISP, and threat analysis
Security Analysis SecurityLog + IpBlock IP blocking, login attempt tracking
SEO Management SeoController Meta tags, Open Graph, Schema.org, robots.txt
Authentication AuthController Register, login, password reset, email verification
Email PHPMailer + SMTP Anti-spam headers, HTML templates, SPF/DKIM compliance
Admin Panel Admin/* Controllers User, content, session, log, announcement management
Notifications NotificationController Real-time notification system
Theme Cookie-based Server-side theme persistence
Animations AOS + Particles.js Hero animation, counters, FAB menu

Architecture

The project is built on a custom MVC framework.

HTTP Request
     │
     ▼
public/index.php
     │
     ▼
core/ (Router + Bootstrap)
     │
     ├── routes/web.php ──────────────► Controller class
     │                                       │
     │                                       ▼
     │                               app/Controllers/
     │                                       │
     │                          ┌────────────┴────────────┐
     │                          ▼                         ▼
     │                    app/Models/              app/Views/
     │                    (Database)               (HTML/PHP)
     │
     └── app/Middleware/ ─────────────► Auth, CSRF, Rate Limit

Layers

Layer Location Responsibility
Routing routes/web.php URL → Controller mapping
Controller app/Controllers/ Business logic, view dispatch
Model app/Models/ Database queries (PDO)
View app/Views/ HTML templates
Middleware app/Middleware/ Auth checks, CSRF
Lib app/Lib/ Mailer and helper classes
Service app/Services/ External service integrations

Directory Structure

reroai.com.tr/
├── app/
│   ├── Controllers/
│   │   ├── Admin/              # Admin panel controllers
│   │   ├── AuthController.php  # Login, register, password reset
│   │   ├── ChatController.php  # AI chat
│   │   ├── HomeController.php  # Homepage
│   │   ├── ToolsController.php # IP lookup, security tools
│   │   ├── UserController.php  # Profile, session management
│   │   └── NotificationController.php
│   ├── Models/                 # PDO-based model classes
│   ├── Views/
│   │   ├── layouts/            # header.php, footer.php, admin_header.php
│   │   ├── home/
│   │   ├── chat/
│   │   ├── auth/
│   │   └── admin/
│   ├── Lib/
│   │   └── Mailer.php          # PHPMailer wrapper (anti-spam)
│   ├── Middleware/
│   ├── Services/
│   └── Helpers/
│
├── config/                     # Application configuration
├── core/                       # MVC framework (Router, DB connection)
├── routes/
│   └── web.php                 # All URL routes
├── public/                     # Web-accessible directory (document root)
│   ├── index.php               # Application entry point
│   ├── assets/                 # CSS, JS, images
│   └── uploads/                # User uploads
├── database/
│   └── migrations/             # SQL migration files
├── storage/                    # Logs, cache
├── cron/                       # Cron job scripts
├── noxai.sql                   # Full database dump
├── composer.json
└── .env                        # Environment variables (do not share!)

Installation

Requirements

  • PHP 8.1+
  • MySQL 8.0+
  • Composer 2.x
  • Apache (mod_rewrite enabled) or Nginx

XAMPP (Local Development)

# 1. Clone the repository
git clone https://github.com/WHY-RERO/reroai.com.tr-Script.git
cd reroai.com.tr-Script

# 2. Install dependencies
composer install

# 3. Create the .env file
cp .env.example .env

Edit .env:

SITE_URL=http://localhost/reroai.com.tr/public
DB_HOST=127.0.0.1
DB_NAME=noxai
DB_USER=root
DB_PASS=
APP_DEBUG=1
SECRET_KEY=strong_random_key_here
# 4. Import the database (via phpMyAdmin or CLI)
mysql -u root noxai < noxai.sql

Open in browser: http://localhost/reroai.com.tr/public

Default credentials: admin / admin123 (change your password after first login)

cPanel / Production

For detailed cPanel installation instructions, see KURULUM.md.

SITE_URL=https://reroai.com.tr
DB_HOST=localhost
DB_NAME=your_database
DB_USER=your_db_user
DB_PASS=strong_password
APP_DEBUG=0
SECRET_KEY=long_random_secure_key

Usage

Homepage

https://reroai.com.tr — Animated hero section, feature cards, FAB menu.

AI Chat

/chat — AI chat interface for authenticated users.

Tools

Tool Path Description
IP Lookup /tools/ip IP address info and threat analysis
Security Analysis /tools/security Security scan

FAB Menu

A floating quick-access menu visible on all pages (except chat and admin):

  • Start a chat
  • IP Lookup
  • Security Analysis
  • Scroll to top

Admin Panel

/admin — Accessible with an administrator account.

Section Path Description
Dashboard /admin General statistics
Users /admin/users User listing and management
Content /admin/content Site content management
Announcements /admin/announcements User announcements
Logs /admin/logs System logs
Security /admin/security IP blocking, login attempts
API Keys /admin/apikeys API key management
SMTP /admin/settings Email configuration
SEO /admin/seo Meta tags, Open Graph, Analytics

API & Routes

All routes are defined in routes/web.php.

Authentication

Method Route Description
GET/POST /login Login
GET/POST /register Register
GET/POST /forgot-password Password reminder
GET/POST /reset-password Password reset
POST /logout Logout

User

Method Route Description
GET /profile Profile page
POST /profile/update Update profile
GET /notifications Notifications

Configuration

Email (SMTP)

Configured via Admin Panel → Settings → SMTP, or directly in .env:

MAIL_HOST=mail.reroai.com.tr
MAIL_PORT=587
MAIL_USER=noreply@reroai.com.tr
MAIL_PASS=smtp_password
MAIL_FROM=noreply@reroai.com.tr
MAIL_FROM_NAME=NOX AI

To reduce spam, add the following DNS records:

SPF  : v=spf1 include:mail.reroai.com.tr -all
DMARC: v=DMARC1; p=quarantine; rua=mailto:admin@reroai.com.tr

Debug Mode

APP_DEBUG=1   # Development: error messages visible
APP_DEBUG=0   # Production: errors logged, not shown to users

SEO Management

Managed from Admin Panel → SEO:

  • Meta title / description / keywords
  • Open Graph (Facebook, Twitter share cards)
  • Google Analytics / GTM integration
  • Schema.org structured data
  • Robots.txt content
  • Canonical URL

Database

Core tables:

Table Description
users User accounts
sessions Active sessions
messages Chat messages
logs System logs
security_logs Security events
ip_blocks Blocked IPs
login_attempts Login attempts
notifications User notifications
announcements Announcements
api_keys API keys
settings Application settings
smtp_configs SMTP configurations
seo_settings SEO settings
social_links Social media links

Author

RERO

Software Developer · AI Researcher

Platform Link
GitHub @WHY-RERO
YouTube @why_reronuzzz
Instagram @why_reronuzzz
RERO AI reroai.com.tr

This project was designed and built from scratch by RERO.


License

Copyright (c) 2026 RERO — All Rights Reserved. / Errors have been corrected with AI

See LICENSE for full license text.

About

Production-ready source code of the RERO AI website, featuring AI-focused content, modern UI/UX, and optimized performance.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages