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.
- Features
- Architecture
- Directory Structure
- Installation
- Usage
- Admin Panel
- API & Routes
- Configuration
- Database
- Author
- License
| 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 |
| 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 |
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
| 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 |
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!)
- PHP 8.1+
- MySQL 8.0+
- Composer 2.x
- Apache (mod_rewrite enabled) or Nginx
# 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 .envEdit .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.sqlOpen in browser: http://localhost/reroai.com.tr/public
Default credentials: admin / admin123 (change your password after first login)
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_keyhttps://reroai.com.tr — Animated hero section, feature cards, FAB menu.
/chat — AI chat interface for authenticated users.
| Tool | Path | Description |
|---|---|---|
| IP Lookup | /tools/ip |
IP address info and threat analysis |
| Security Analysis | /tools/security |
Security scan |
A floating quick-access menu visible on all pages (except chat and admin):
- Start a chat
- IP Lookup
- Security Analysis
- Scroll to top
/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 |
All routes are defined in routes/web.php.
| 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 |
| Method | Route | Description |
|---|---|---|
| GET | /profile |
Profile page |
| POST | /profile/update |
Update profile |
| GET | /notifications |
Notifications |
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 AITo 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
APP_DEBUG=1 # Development: error messages visible
APP_DEBUG=0 # Production: errors logged, not shown to usersManaged 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
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 |
Software Developer · AI Researcher
| Platform | Link |
|---|---|
| GitHub | @WHY-RERO |
| YouTube | @why_reronuzzz |
| @why_reronuzzz | |
| RERO AI | reroai.com.tr |
This project was designed and built from scratch by RERO.
Copyright (c) 2026 RERO — All Rights Reserved. / Errors have been corrected with AI
See LICENSE for full license text.